From ruby-talk-admin@ruby-lang.org Fri Dec 16 00:51:38 2005 Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (8.12.3/8.12.3/Debian-6.6) with ESMTP id jBFFpcZk025901; Fri, 16 Dec 2005 00:51:38 +0900 Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 8D3635D8E; Fri, 16 Dec 2005 00:51:39 +0900 (JST) Received: from localhost (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 69875F04897; Fri, 16 Dec 2005 00:51:43 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id E4616F04866; Fri, 16 Dec 2005 00:51:40 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [210.163.138.100]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 9A4AD630029; Fri, 16 Dec 2005 00:51:43 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 3E94733AA0; Fri, 16 Dec 2005 00:51:39 +0900 (JST) Received: from localhost (beryllium.ruby-lang.org [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id A197133C88 for ; Fri, 16 Dec 2005 00:51:15 +0900 (JST) Received: from beryllium.ruby-lang.org ([127.0.0.1]) by localhost (beryllium.ruby-lang.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14728-07 for ; Fri, 16 Dec 2005 00:51:15 +0900 (JST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 1719C33AA0 for ; Fri, 16 Dec 2005 00:51:14 +0900 (JST) Received: by zproxy.gmail.com with SMTP id 8so387135nzo for ; Thu, 15 Dec 2005 07:51:09 -0800 (PST) Received: by 10.37.12.73 with SMTP id p73mr1943016nzi; Thu, 15 Dec 2005 07:51:09 -0800 (PST) Received: from lilith.local ( [84.157.5.7]) by mx.gmail.com with ESMTP id 5sm3039431nzk.2005.12.15.07.51.08; Thu, 15 Dec 2005 07:51:09 -0800 (PST) Received: by lilith.local (Postfix, from userid 501) id EFF964A67B1; Thu, 15 Dec 2005 16:51:05 +0100 (CET) Delivered-To: ruby-talk@ruby-lang.org Date: Fri, 16 Dec 2005 00:51:16 +0900 Posted: Thu, 15 Dec 2005 16:51:05 +0100 From: Christian Neukirchen Reply-To: ruby-talk@ruby-lang.org Subject: Re: ruby beats them all To: ruby-talk@ruby-lang.org (ruby-talk ML) Message-Id: In-Reply-To: (Stephen Kellett's message of "Thu, 15 Dec 2005 22:52:40 +0900") References: <30085.1134584182@www7.gmx.net> X-ML-Name: ruby-talk X-Mail-Count: 51 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-talk-ctl@ruby-lang.org; help= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) X-Original-To: ruby-talk@ruby-lang.org DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:subject:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=NsEHiOVj5l+hGfQr9/qwGTB1i7r3+kzPCXDR7rObdXyAsY838KbtFXaU5r1FFGfPUKmM4nMbjXyMRfjRNKBOaNxCcFomlrQDdX69HKEppDr1N1k/NNa3VnsjvFWxG4mY5pciWKaElisAHI1V2zoJLW9bga3WotAbZWy1UXHxu9M= X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ruby-lang.org X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on beryllium.ruby-lang.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=7.0 tests=AWL,BAYES_00,BLARS00, BLARS_SPAM00,CONTENT_TYPE_PRESENT,QENCPTR1,QENCPTR2,RCVDFRMLOCALIP, RCVD_BY_IP,RCVD_IN_BLARS,RCVD_IN_BLARS_HOOPS,RCVD_IN_BLARS_SPAM autolearn=ham version=3.0.3 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Precedence: bulk Lines: 37 List-Id: ruby-talk.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: X-Virus-Scanned: by AMaViS snapshot-20020531 Stephen Kellett writes: > In message , Christian Neukirchen > writes >>def fib(n) >> (1..n-2).inject([1, 1]) { |(a, b), n| [b, a+b] }.last >>end > > Thats about as readable as APL. Maintenance nightmare. I disagree. APL isn't about readability to outsiders (and this is IMO not a thing every language needs to strive for, sometimes there are things more important). Take this piece of J: f =: 1:`($:@<:&<:+$:@<:)@.(1:<]) (taken from http://cubbi.org/serious/fibonacci/j.html) Or, in K: fibonacci:{x(|+\)\1 1} (taken from http://www.kuro5hin.org/?op=displaystory;sid=2002/11/14/22741/791) Or, again in K: fx:{x{x,+/-2#x}/0 1} (taken from http://www.kx.com/listbox/k/msg05165.html) These all are far more unreadable to me, even though I know the basics of APL... Besides, what is there to maintain about fibonacci? > Stephen -- Christian Neukirchen http://chneukirchen.org