4 ms·
> I sometimes wonder why Lisp has not been more popular in the technology industry. Larry Wall said that a language should make the easy things easy, and the h
by AnimalMuppet 9y ago
> I sometimes wonder why Lisp has not been more popular in the technology industry.
Larry Wall said that a language should make the easy things easy, and the hard things possible. I think the problem is that Lisp doesn't make the easy things easy.
Before you tar and feather me, hear me out. There are two different ways in which Lisp doesn't make the easy things easy.
First, syntax. "But it's easy! In fact, it's the easiest!" you reply. But for the vast majority of programmers, Lisp syntax is not easy. You could argue that they just need to be trained. But the syntax is different enough that they are reluctant to try.
Second, installation and package management. This is part of what is now expected to be easy. If Lisp doesn't have an install and package management that is as easy as, say, Perl, that's a problem that will turn people off to Lisp.
- deleted 9y ago[deleted]
- madmax96 9y ago>for the vast majority of programmers, Lisp syntax is not easy I suggest that learning Lisp's syntax is easier than learning C-like syntax. There is learning involved, however, and that undoubtedly keeps people from lisp. But s-expressions are the secret sauce; there is no modern lisp without them. >installation and package management This is basically a solved problem at this point. Clojure has both Lein and Boot to handle dependencies and building. CL has quicklisp (as easy as `(ql:quickload :my-system)` for installation) and asdf for "building" and system definition. When it comes down to solving problems, I feel that interactive development (with SLIME), Quicklisp, and ASDF make me extremely productive, and the easy things are easy.
- dwheeler 9y agoLisp's syntax is indeed easier to learn, but the vast majority of programmers have made it clear that they DO NOT want to READ code in S-expression format. And you typically have to read more code than you write. I created 3 layered notations to keep Lisp's capabilities (including macros and homoiconicity) while making it easier for normal programmers to read. Instead of "getting rid" of S-expressions, I think adding just a few standard abbreviations to the Lisp reader makes Lisp more acceptable to more developers. See: https://sourceforge.net/projects/readable/ https://sourceforge.net/projects/readable/
- lispm 9y agoLisp developers haven't adopted those syntax variants. There are some Lisp derived languages with non s-expression syntax (Logo, Dylan, RLISP, SKILL, ...) but the adoption is limited among Lisp programmers.
- madmax96 9y ago>the vast majority of programmers have made it clear that they DO NOT want to READ code in S-expression format I don't think this is true. I don't know of many people (who actually use Lisp -- meaning they took the time to read a book and build a smallish, mostly complete project) who are actually bothered by reading s-expressions. They do take some getting used to, but I really don't see the problem. s-expressions scare newcomers, but eventually it isn't an issue. It's just different.
- kazinator 9y agoThe vast majority of programmers make it clear that they don't want to use anything but the one of the several popular languages du jour, regardless of what that language looks like, and of what any other language looks like. There is hardly anything familiar to complete neophytes in any programming language. Beyond simple arithmetic expressions like a * b + c (where the use of asterisk for multiplication is already unfamiliar) and function notation f(x, y), everything else is new. Some languages with awful syntax have enjoyed popularity. If you clone the salient features of a popular language to make a new language, you will not automatically end up with a popular language. "Off brand" versions of popular languages largely languish in unpopularity.
- kazinator 9y ago> for the vast majority of programmers ... [me and a few of my friends] ...
- vram22 9y ago>First, syntax. "But it's easy! In fact, it's the easiest!" you reply. But for the vast majority of programmers, Lisp syntax is not easy. You could argue that they just need to be trained. But the syntax is different enough that they are reluctant to try. Could be more of NIH syndrome, since most of them would have learned another language first, which had an Algol-family or other-than-Lisp syntax (IMO). And regarding "You could argue that they just need to be trained", practice is also needed in order to feel comfortable with it.
- vram22 9y agoDon't have the link handy, but I think I read somewhere that someone calculated the number of characters or punctation (things like parens vs. braces, etc.) for some code using Lisp vs. C-style languages, and showed that (at least for some examples), Lisp code actually took less characters (or punctuation) in total.
- kamaal 9y agoAnother factor could be familiarity, by now people are so used to seeing C like syntax, any things else would feel automatically difficult attracting huge investments in time to learn. Also if most developers have to learn lisp, there have to be enough jobs.
- vram22 9y agoRight, good point. Sort of a chicken-or-egg situation. Also, this reminds me of Paul Graham's famous essay, Beating the Averages [1], about why and how he and his co-founders used Lisp at their startup Viaweb, which was later acquired by Yahoo! for ~40 million USD, IIRC. [1] http://paulgraham.com/avg.html http://paulgraham.com/avg.html I think it was this essay, along with his other one about the first summer school for founders (which later became Y Combinator), that attracted the attention of a lot of developers (some of whom later became successful YC applicants) and helped both YC and HN take off.