72 points · by steiger · 17y ago · 92 comments
People who actually use Lisp (opposed to people who only write about it) have no problem that there are extensions to the standard. The whole point of Lisp is that it is easily extended in many ways: the programmable programming language. Sure it brings a bunch of problems, but that's what it is and why people use it.
The stuff he writes about CLOS is mostly wrong. CLOS is not implemented as a bunch of macros. CLOS is actually a three level architecture: the core is written object-oriented in CLOS itself, on top is a functional interface and for user convenience there is a bunch of macros for easy definition of classes, generic functions, methods and some other language objects.
Then, macros are no problem. They are a feature. No, 'hygienic' is fine, but not needed. No they don't need to be rethought. They do a useful job like they are.
No, Lisp will never be massively successful (because it is a bit too complicated, too dynamic, too powerful for many users) and bending the language trying to make it 'massively successful' won't improve anything. No, I don't want a dictator. Lisp has choice, various alternatives and a more democratic approach.
Lisp is still a good choice for computing with symbols. If you don't need that, then you might not need Lisp. But that's not a reason that Lisp should change. Should a helicopter be changed in design because someone does not use it, but drives a car? Should the helicopter be changed, because more people drive cars, getting a drivers license for cars is easier than getting a pilot's license for helicopters? Lisp is different, for a reason and this difference will ensure its survival for many years. We have now fifty years that the basic ideas have proven to be useful and I don't see that this will change in the coming years.
This needs to be repeated more often - quality isn't measured by popularity. It's obvious when we talk about food establishments (McDonald's being the equivalent of Java), but for some reason, the logic is completely lost on people when we start talking about programming languages.
Is this true, or is it something you want to be true. I would say its a disservice to the language which in many ways was better than its peers and has since been imitated a lot (VMs, Javadoc, Parts of the platform library).
The tools in terms of breadth and quality available for java (IDEs, testing, decompiling, AOP ... etc.) are years ahead of most other platforms. (Excluding C#, what else...?).
A large part of this is due to the simplicity of the language (and the stability). Is java worse if you are developping in Vim, no doubt, but this is a strawman. With the tools vs. python|ruby|lisp is a different proposition entirely.
Lisp is the antithesis to this: it is a language laboratory - the programmable programming language. The programmer needs to develop skills to understand when and how to change the language. Changing and extending the language is a core mechanism. This makes the language unstable and puts a lot of linguistic power into the programmer. With Lisp you need to trust the programmer and the programmer has to learn how to justify the trust (by learning to effectively use macros, by learning when and when not to use EVAL, ...).
The Lisp programmer has to learn how to program languages and the concepts he may want to use for that.
A large part of this is due to the simplicity of the language
I was with you until that part - maybe the abstraction Java programmers deal with, sure. But the question "what is my computer doing?" when you run a Java program is well beyond the vast majority of Java developers, partially because it's so complicated. This is a Very Bad Thing.
No, the quality of things is not measured necessarily by the amount of uneducated users.
Lisp has a cost for useage. Higher learning curve, Different way of thinking about patterns. Harder to use correctly at first. It's worth it for the "good cook" to pay the cost. Maybe not for the everyone else.
(as an aside I love my expensive set of high quality knives. and always feel handicapped when I have to cook without them. But they did cost a small fortune)
Therefore inexperienced cooks should prepare food with butter knives?
Java:Starbucks::C#:Coffee Bean & Tea Leaf
Java:Starbucks::Scala:Peets
Java:Starbucks::Groovy:Mystic Mocha
Java:Starbucks::Algol60:Vesuvio Café
I agree with you that CLOS and macros are not problems. Common Lisp is not primarily an object oriented language, and that's OK. That it happens to have an extremely powerful object system is a nice bonus. If you want a ground up object system, use Smalltalk or Ruby and have fun.
The rant against macros was incoherent to me. Editor support for macros is imperfect so...macros suck...or something? Macros remain the distinguishing feature of Lisp, in that no other language allows you to transform your source code so seamlessly. I'm not sure there's a compelling reason to use any Lisp over other languages if macros are eliminated.
For that matter, mainstream popularity of anything has always had a good dose of randomness in it (I bet you can model it with some sort of free energy / entropy equation). For example, it's hard to break down exactly why the No.1 hit song is No.1, or that No.7 song is permanently No.7. Usually it has more to do with the politics of the record company than the quality of the song itself.
We are also being a bit pessimistic here. Lisp is not un-popular. It just hasn't reach the critical mass yet. And it seems to be going to that direction with unraveling of Clojure.
I have a hard time buying your explanation, since the scripting languages of today can be described as lisp subsets.
I am a fan of Perl and enjoy my life. The other usual scripting languages are quite similar, in most ways.
Still, I'd love to get a job using Common Lisp, which I haven't really touched since I studied. Why can't I do that?
Edit: I don't mean to whine, it is just that there is something wrong here. Lisp should be a, well, "contender".
Because, in the words of Drew Crampsie (paraphrased): Lispers do not look for Lisp jobs. They look for work to do and do it in Lisp.
Edit: Also, I believe well-established Lisp companies (such as ITA or Clozure) usually look for experienced Lispers. If you studied it in school, what makes you a good candidate for these companies?
Lots of the standard scripting jobs out there could be done at least as well with lisp, so why aren't many of them? (For instance, there has been good interpreting and compiling environments for Lisp since the 1980s? 1970s?)
(I didn't have any Common Lisp courses, I studied another lisp. I learned CL by myself.)
Edit: A bit of syntax.
(I'm trying to hunt down that talk, but not having much luck.)
If you think that he is a pretty smart guy, then I would say that there are many Lisp implementations that are way ahead in terms of implementation technology - Matz's Ruby implementation is in the Lisp world several decades behind the state of the art. Ruby is one of the slowest scripting languages and has a very much ad-hoc design. It does useful things for many people, and that counts. But from the technology it is Ruby that is a huge pain in the ass. Just see how people struggle to write a decent compiler for it. Instead it is just another simple interpreter with a C core for the interpreter implementation and parts of the library. Ruby is fast where you stay in with the library functions that are implemented in C - otherwise it is a pain.
The better Lisp systems are also written in Lisp and their performance is sometimes 10 to 100 times of what Ruby offers - while Lisp offers also lots of dynamic features and the code as data paradigm.
Is Lisp popular enough? Hard to say, but people certainly seem to complain about the lack of popularity.
I pay my bills writing Common Lisp code, full time. The fact that you're not an employed Lisper is your own fault, IMO, it takes guts to look someone in the eye and tell them their investment, in both time and money, is safe with you and your fringe programming language. It's allot of work, a lot of responsibility, and most certainly tons of fun.
Try it.
P.S. I am both lead developer and "CTO"; I have a team of web developers who consume my backend and architecture.
Not just fringe language, but fringe anything.
The only known amongst a see of unknowns will be you.
But Lisp was not designed to script applications. It was designed to be a language that can compute with symbols. This applied to Lisp itself lead to meta circular definitions, macros, meta level architectures like CLOS, and more. It led to the first self hosting compiler in the earlz 60s and ever since Lisp implementations have been written largely in itself.
It was designed to easily implement all kinds of notations and evaluation mechanism. Originally for example to implement symbolic mathematics and logic reasoners.
If the subset of Lisp that allows scripting is fine for you, that's great. Why complicate things?
One word: Guile.
Well, the point was that I don't see why subsets have taken over, it's as if PHP grew larger than the rest of the scripting languages for web progr... Oh, wait. :-)
But seriously, if you take the hit of a GC (which most everything do, today) then you might as well use the nicest system around. I am happy with my present tools, but a nice lisp variant might seriously tempt me.
Sigh, maybe I should just look for different work or do a startup with really hard problems.
The only thing unique to Lispy languages (and really not at all that hard to understand) is the language syntax and the way the compilation rules are late-bound. That is, the compiler is intended to be extended by the user. Roughly, you're intended to be able to say "unless (...)" will translate to "if (!...)".
The rest of the design decisions made aren't even that outlandish: you still have text which is parsed and either interpreted or compiled into machine code, which is run. More foreign (and interesting), I think, is the research being done at Alan Kay's lab now:
This is what Rich Hickey did with Clojure, more or less. So this was a pretty accurate prediction.
My impression is that you [haven't used] neither Common Lisp nor Scheme on a regular basis, and/or in a considerably sized software project. Most of the issues that you mention are "academic", in the sense that they are theoretical problems which tend not to bite you in practice
However, he is not indebted to us to keep writing so my opinion doesn't really count in that regard.
Thanks, guys!
Of course, if you feel that the post is obsolete due to progress made in Lisp since the post was written, I'm extremely interested in hearing how things have changed.
As other mentioned, maybe Clojure was a big thing that happened to the Lisp world, but still, Clojure is a very small part of the Lisp world.
I did append the (2006) just for the sake of information. I hope no one will decide to not read it based on that.
You have to distinguish between the real Lisp world, in which people work on Lisp programs and systems to solve real problems, and the Lisp hype-world, which is a parallel universe consisting of blog posts, arguments, and pronouncements generated by people who are (mostly) doing no such thing, including the OP. Clojure is now a big part of this parallel universe.