Re:Why Ruby is an acceptable Lisp (2005)
by olavk on Thursday January 01, 2009 @03:45PM
(#416664)
I don't see how Ruby could be called a Lisp.
To me, the fundamental concept of Lisp is that the basic data structure is the cons-pair, and that both code and data can be represented and manipulated as graphs of cons-pairs.
The blog is arguing that Ruby is an acceptable alternative to Lisp, which may be true. But that doesn't make Ruby a Lisp.
Re:Why Ruby is an acceptable Lisp (2005)
by jrockway on Friday January 02, 2009 @09:59AM
(#417353)
Its lambdas don't even close over lexical state, so I'm not sure why they even exist. Yet another concept the PHP designers don't get, I guess, but feel pressured to add. (See also: PHP's object system.)
Re:Why Ruby is an acceptable Lisp (2005)
by neeson on Thursday January 01, 2009 @08:02PM
(#416854)
Interestingly enough, one of Clojure's selling points is that the basic data structure is not the cons-pair (rather the implementation details of storage are abstracted). It is clearly a lisp, however.
Re:Why Ruby is an acceptable Lisp (2005)
by gruseom on Thursday January 01, 2009 @03:39PM
(#416657)
This is so wrong in so many ways, but I think the ur-mistake, the one that leads to all the others, is writing an article like this in the first place. You like Ruby? You like Ruby. Use it! Why write a whole article trying to justify how you feel? It's as if the author is trying to give himself (and others) permission not to use Lisp.
Re:Why Ruby is an acceptable Lisp (2005)
by pg on Thursday January 01, 2009 @06:36PM
(#416789)
He is saying something. Something false, I believe, but not meaningless. There is a certain style of programming that was once only possible in Lisp. The author is claiming that you can program that way in Ruby, or close enough.
Re:Why Ruby is an acceptable Lisp (2005)
by gruseom on Thursday January 01, 2009 @07:02PM
(#416804)
Oh, I don't think it's meaningless, just that the arguments are bad, and seem to have been invented in order to justify something that doesn't really need justifying.
Now I suppose someone is going to ask me what arguments are bad. Two examples: 1. "The most common use of LISP macros is to avoid typing lambda quite so much" - obviously false; 2. Using Lisp to model a Ruby example of "mini-language" demonstrates Lisp's power, not Ruby's.
Re:Why Ruby is an acceptable Lisp (2005)
by strlen on Thursday January 01, 2009 @08:21PM
(#416865)
I think the definite false part is 'ruby is a[n acceptable] Lisp' - which is false. One could have a language with a ruby like syntax and co-routines and be a Lisp.
One could probably argue that Perl6 is a Lisp with CFGs a first order language primitive (which is in essence what macros allow), c.f. Greenspun's Tenth.
Re:Why Ruby is an acceptable Lisp (2005)
by gruseom on Thursday January 01, 2009 @06:54PM
(#416799)
Don't read articles about Ruby!
I usually don't! This is an article about Ruby and "LISP". I read articles about Lisp. This one is mistaken, I think, mostly because the author hasn't used Lisp to do much, but writes about it anyway.
But I really don't mean to carp about the article. Ruby makes him happy, that's great.
Re:Why Ruby is an acceptable Lisp (2005)
by ii on Thursday January 01, 2009 @07:29PM
(#416825)
I see your point. But, please, let's encourage people to write more articles about what they think is right. Even if the article is wrong it's still good that it was written.
Re:Why Ruby is an acceptable Lisp (2005)
by qqq on Thursday January 01, 2009 @04:50PM
(#416699)
Suppose you're right. He is trying to give himself permission to not use lisp, so he feels better. Then writing this helps him use ruby (as you advise). so it's good that he wrote it. (but no need for you to read it).
Re:Why Ruby is an acceptable Lisp (2005)
by tptacek on Thursday January 01, 2009 @05:35PM
(#416723)
Stating the obvious: there's a difference between "provides much of the value of in practice" and "being". The same logic says that Esperanto is an acceptable English.
Re:Why Ruby is an acceptable Lisp (2005)
by zitterbewegung on Thursday January 01, 2009 @03:53PM
(#416671)
No offense but I think a great deal of hacker news fans have seen this one way or the other. I remember there was response to this called lisp is an acceptable lisp. If you want lisp and are using ruby why not just use lisp? If you want ruby but use lisp just use ruby. It doesn't matter which programming language you express your ideas in. It only matters if you actually get cracking and implement your ideas. Pointless saber rattling about programming languages is quaint and dandy if you aren't actually programming. To quote feynmann "If I were forced to sum up in one sentence what the Copenhagen interpretation says to me, it would be 'Shut up and calculate!"
Re:Why Ruby is an acceptable Lisp (2005)
by radu_floricica on Thursday January 01, 2009 @05:01PM
(#416709)
The lisp vs foo is somewhat special. An accessible, easy-to-learn lisp platform with a full complement of libraries is pretty much a bit of a Holy Grail.
edit: Ups, read the "Lisp is not an acceptable Lisp". Makes the same point...
Re:Why Ruby is an acceptable Lisp (2005)
by jrockway on Friday January 02, 2009 @10:09AM
(#417358)
An accessible, easy-to-learn lisp platform with a full complement of libraries
PLT Scheme? Clojure?
Even CL has some of the best libraries I've used, although coverage can be spotty at times.
This still hasn't killed all the other programming languages, which leads me to believe that libraries aren't actually what matters. I think, instead, that most people pick programming languages based on what's crammed down their throats. For a UNIX app, you "have to" use C. For everything else, you "have to" use Java, since that's what you learned at school (now it's .NET too).
Popularity is overrated anyway. Haskell and SBCL are not exactly popular, but they have great runtimes, important modern features, and plenty of libraries and tools. The only reason not to use them is because you'd rather use Java instead.
Re:Why Ruby is an acceptable Lisp (2005)
by zitterbewegung on Sunday January 04, 2009 @03:00PM
(#419451)
Why does a language make such an dichotomy. Why not instead learn tools and apply it in the languages that you know. Use what you know not the dogma of the other languages.
Re:Why Ruby is an acceptable Lisp (2005)
by radu_floricica on Thursday January 01, 2009 @05:22PM
(#416718)
Humm... I still think the problems with the platform are about an order of magnitude greater then the problems with the language per se. You first need to have something to work with, and only after that you can think about improving it.
Re:Why Ruby is an acceptable Lisp (2005)
by gaius on Friday January 02, 2009 @01:05AM
(#417118)
Reading the comments on that blog entry, I can't help but think Lisp is Blub. The Lisp users posting there simply can't comprehend that anything is wrong and have no tolerance for anyone who says anything is.
Re:Why Ruby is an acceptable Lisp (2005)
by zitterbewegung on Thursday January 01, 2009 @10:04PM
(#416964)
I misread yegge. lisp isn't a popular language its more of a language where you either use for industry or you use for experimentation or both. I personally think it doesn't matter what you code in blub or not blub it just doesn't matter. What matters is if you ship or not.
The blog is arguing that Ruby is an acceptable alternative to Lisp, which may be true. But that doesn't make Ruby a Lisp.
In my experience, being that I'm learning Haskell and coming from a Ruby background, merely having lambdas doesn't qualify for functional status.
Now I suppose someone is going to ask me what arguments are bad. Two examples: 1. "The most common use of LISP macros is to avoid typing lambda quite so much" - obviously false; 2. Using Lisp to model a Ruby example of "mini-language" demonstrates Lisp's power, not Ruby's.
One could probably argue that Perl6 is a Lisp with CFGs a first order language primitive (which is in essence what macros allow), c.f. Greenspun's Tenth.
I for one may use Ruby as a scripting language for my next project, I want to see more articles like this.
I usually don't! This is an article about Ruby and "LISP". I read articles about Lisp. This one is mistaken, I think, mostly because the author hasn't used Lisp to do much, but writes about it anyway.
But I really don't mean to carp about the article. Ruby makes him happy, that's great.
http://news.ycombinator.com/item?id=98438
edit: Ups, read the "Lisp is not an acceptable Lisp". Makes the same point...
PLT Scheme? Clojure?
Even CL has some of the best libraries I've used, although coverage can be spotty at times.
This still hasn't killed all the other programming languages, which leads me to believe that libraries aren't actually what matters. I think, instead, that most people pick programming languages based on what's crammed down their throats. For a UNIX app, you "have to" use C. For everything else, you "have to" use Java, since that's what you learned at school (now it's .NET too).
Popularity is overrated anyway. Haskell and SBCL are not exactly popular, but they have great runtimes, important modern features, and plenty of libraries and tools. The only reason not to use them is because you'd rather use Java instead.
So far as the idea "Ruby is an acceptable Lisp"? This is as wrong as the idea "Time is Money".