93 points · by AndrewDucker · 5y ago · 178 comments
So what are the downsides? It isn't open source and you have to pay for it. At some point developers decided that they wouldn't pay for development tools. This has mostly been positive, but languages on the edges have suffered because of it. Yes, you can cobble something together using VSCode and various plugins, or use an Emacs environment. To me, the ergonomics of these solutions are inferior to an integrated solution like LispWorks and perhaps some of the other commercial Lisps I haven't used.
Some of the examples the author mentions were also tightly integrated environments. If you ever used Dylan, or Self, of any of the other commercial Lisps that have come and gone over the years you can see the allure of an integrated IDE.
LispWorks has been almost magical for me. It was expensive, $3100 for the 64-bit IDE and another $1000 for the mobile runtime, but the ability to develop/debug the core engine code in Lisp with the benefits of an integrated IDE, live code editing, REPL, etc. is more than worth it. The mobile products have native UI for the platform, but everything else is Lisp. You can most certainly develop and ship modern applications for desktop and mobile using LispWorks.
The IDE is proprietary, but the code is all Common Lisp. If one had to leave the platform, or the platform went away, you might have a problem with the native UI layer, but not with any other code.
The price does reflect the difficulties a company has when there has been a race to the bottom in pricing, or in the case of Apple and Microsoft, the floor was removed for development tools.
Recently, LispWorks stopped running when I updated my M1 MacBook so I had to just use other implementations for a short while until LispWorks gave me a custom built beta. They really do provide good service.
If this seems expensive, in 1982 I got a Xerox 1108 Lisp Machine that cost $25K, which is about $72K in 2021 dollars. Sometimes good tools cost money.
By comparison, IntelliJ IDEA Ultimate is something like $3000 for an individual license over the course of nine years. If you're not strapped in for a decade or more of Lisp, then the $3100 IDE probably isn't for you.
0: https://www.jetbrains.com/store/#commercial?billing=yearly
Not to say it can't be or won't be, but most people won't pay for it for non-commercial projects, and it won't be used for commercial projects until there are many developers who consider it a good choice for commercial projects. Chicken and egg.
this is the crux of "modern" software development. The implicit assumption by the stakeholder is that their engineers must be replaceable, and so will only choose a tech-stack which has existing engineers as a commodity.
Whatever happened to specialized engineers - aka, craftsman - which you (as the stakeholder) hold on to for dear life, and pay _any_ price to keep? That is how you produce great products - talents that aren't bound by an ordinary, commodity language.
https://en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp for example, are used to produced some excellent games. But today, most AAA games are made via a commodity tech stack, and lacks the soul that would come from such a craftsman, using non-commodity stacks.
I'm not entirely certain about this, but I would say that management decided they didn't want to be "held hostage" by such craftsmen.
Why pay ten times the price for a single developer, and be locked in to their presence and whims, while you can pay three times the price for three developers, and be able to manipulate them as desired?
Of course, I'm not saying that's the ideal approach. It has rendered software a buggy and disposable commodity, one that both the creator and the user expect to be of limited life, aesthetic quality, and use.
In software engineering, "survival of the fittest" rarely means what we would like it to mean, some beautifully crafted digital artifact that attains both immanence and permanence by the sheer force of pure virtue or something. It rather means "move fast and break things" on the back of a full stack of breakable and non-breakable things: from UX to, well, democracy, and including the well-being of the plug and play devs.
Therefore Java is better than Lisp in this regard, design patterns are preferred over macros and DSLs, and a replaceable pool of fresh-out-of-school programmer are favored over an irreplaceable tenured craftsman.
I (and you, and everyone of a similar bent) can certainly try and do "my bit", pour soul and art and craft into it to the limit of my abilities, and push these abilities to their next limits, by my deadlines are still going to be set by factors that don't consider craftsmanship a top driver, and I'll have to scrum alongside the other cogs to deliver and get paid on what is usually an internal proof of concept alpha christened a release on the basis of an arbitrarily chosen date.
Occasionally, however, I get to brush up against the ideal for a few fleeting moments; either in code, or in thought and conversation. A glimpse of the sublime through the keyhole.
But then it's time for a meeting, and a bunch of new tickets are -- ding-ding -- in my inbox. And, wouldn't you know it, that button now needs to be pink. Top priority, grab some coffee and get cracking, we need it yesterday.
I also have to add that that's incredibly expensive even among the paid dev tools I'm familiar with.
But advocates always seem to emphasize how fun and effortless lisp is, how that's one of its biggest strengths. And frankly, that has not been my experience. Mainly because of the tooling.
I don't have the dedication to dive into learning emacs for something I'm merely curious about. Clojure's experience was less esoteric in some ways, but the tooling was more complicated in other, more Java-flavored ways.
If somebody made an all-in-one Lisp toolkit tomorrow, complete with a modern editor experience that just worked, I would revisit Lisp in a heartbeat. Who knows, I might become a convert. I doubt I'm the only one.
This is probably attempt five and the first time I haven't bounced off without even getting through the tutorial, but damn if it isn't fun.
So I think "we need to find a way to get people to the 'damn if it isn't fun' part faster and more reliably" is a worthy goal.
Lispers love to say "Lisp is a family of related languages" which is great but daunting to a beginner, and I think also deters people from contributing to the ecosystem, which is where I feel Lisp really falls down. There's just no ecosystem of reliable, standard-ish packages.
There's Ironclad for crypto, but in the readme it explicitly says not to consider it secure because there are trivial side-channel attacks against arithmetic depending on your implementation (again, fractured ecosystem)
There's lquery, CLSS, and plump for web scraping, but you can't scrape anything modern with them and the author seems to have abandoned the libraries
There's a GPIO library that simply doesn't work
Et cetera, et cetera, et cetera.
Compare that to something like Go or Python, where there are rich, polished, full-featured libraries for nearly every application you can think of.
I thought about writing a bot to scrape finance data in Common Lisp, but I didn't want to have to write the scraping and DOM traversal logic from scratch. I thought about using Lisp to have my raspberry pi monitor my hobby garden, but the GPIO library doesn't work at all and I didn't want to write my own.
I picked different languages and was immediately productive thanks to wonderful community libraries.
In diving into libraries for Common Lisp, I'm finding more in the realm of "basically works as I would expect" than I would have expected based on how much this weakness comes up.
What is still jarring for me, is that image based development is just not taught or cultured. The iterative based approach that can be used in such an environment is just... so foreign to everything I have ever seen/done before.
Oddly, jupyter notebook style build ups are getting there. With the scary realization that a linear realization of the cells in your notebook is something that simply takes effort. Not something that is required for results.
I'm not sure what you mean by "no canonical implementation" -- there's the ANSI Common Lisp standard, of which there are multiple implementations. Is this somehow a bad thing to you?
> Lispers love to say "Lisp is a family of related languages"
Not really. I think it's slightly more common for Scheme or Clojure programmers to claim Lisp relations, but it's just advertising. If having s-expression-ish syntax (with nothing being compatible to CL like a real Lisp dialect would be, and was given how much code in pre-CL Lisps could be run in CL unmodified) makes it part of the "Lisp family", then why not speak of the ALGOL family? It's tiresome semantics and from what I've read Common Lispers at least don't tend to do it.
> There's just no ecosystem of reliable, standard-ish packages.
Here's everything on Quicklisp: https://sabracrolleton.github.io/short-descriptions and a curated list: https://github.com/CodyReichert/awesome-cl
Yes, it's not as impressive as Maven. Yes, not everything is as well-documented as, say, PyGame (http://www.pygame.org/docs/ -- though not every Python library you'll find with pip is, either) or even the Common Lisp Hyperspec (http://www.lispworks.com/documentation/HyperSpec/Front/Conte...). Yes, some things are broken, or even abandoned, though in the latter case it may just be that they're "done" pending anyone coming up with a new issue or feature request. I've happily used web scraping libs to save my HN comments with their context, there's a good Twitter API lib I moved to when something broke the Python one I was previously using, I've orchestrated Selenium, I generated some FFI bindings to FMOD and had it working within a few minutes... My point here is just that there is an ecosystem for CL, and many things are reliable, when something works it's rare to stop working. Sorry about your GPIO experience, it happens, I had a bad experience trying to quickload a library that depended on iolib which opaquely depends on a custom C library the author also made and is not in my distro's package manager.
I'm not sure what you mean by "standard-ish" -- is Python's urllib3 "standard-ish"? What about urllib and urllib2? Do they qualify merely by being part of the standard library, or is it something else? My other guess is you mean something like "X is a common area of development in the current year, are there any packages dedicated to that area, what are they, and are they any good?" But this is a shaky categorization and in other languages changes all the time, not worthy of the attribute "standard" or even "standard-ish".
You're right though that what does exist is small and limited, and that's a natural limiting factor to growth, far more I think that what editors are available or easy to use. Quicklisp came about way too late. Yet the ecosystem continues to grow, so maybe you'll be willing to give it another chance in another 10 years.
What do you think went wrong, then? (Assuming of course that you do think something went wrong!)
One observation I’d make is that both Scheme and Clojure seem to be much more widely used than Common Lisp. My perception is that Scheme is still somewhat popular as a teaching language, and Clojure is somewhat popular as a real programming language for large-scale projects, but I barely hear about anyone using Common Lisp these days.
If I’m right, I think that adds to the feeling of fragmentation, as the official standard isn’t the most widely used variant.
I think ML is in a similar situation. I hardly hear of anyone using Standard ML, but Ocaml is alive and kicking.
Maybe my perception is wrong, though? Are there industries I’m overlooking where CL is bigger than Clojure?
Le Lisp/ISLisp are interesting European competition that didn't fall in line, but I don't ever hear about them, I only know they exist/existed, they might nowadays be effectively dead for all I know. Emacs Lisp is probably the biggest success in not caving to CL. Not big enough to constitute anything "going wrong" though.
I think your perception is wrong in two ways. First is the idea that Scheme and Clojure are somehow "variants" or "dialects" of Lisp. Scheme was never a Lisp dialect, it was instead described as "a LISP-like language, SCHEME, based on the lambda calculus, but extended for side effects, multiprocessing, and process synchronization." Also notice neither Scheme nor Clojure even have "Lisp" in their name, unlike all those other languages that got eaten by CL. "Lisp" meant something, and "Common Lisp" unified that meaning and I think deserves to be synonymous with "Lisp"; many writers have treated it that way. But Common Lispers are giving up that fight, because it's tiresome but also an understandable confusion not helped by Scheme or Clojure's attempts at capitalizing on some primordial idea about the good name of Lisp or whatever drives them to associate with the term. (#lisp in Freenode used to be only for Common Lisp, now in Libera #lisp is for all Lisp-likes and CL has its own channel.) Anyway, Scheme and Clojure have happily had their own evolution and separate largely incompatible s-expressions. I don't think their continued existence is a flaw against CL any more than another random programming language would be. One aspect of Clojure that might sting a little is that its entire reason for existing was because the author couldn't win political fights about having CL in production instead of the JVM.
The second way I disagree with your perspective is on prevalence. Scheme has had some success in teaching (mostly thanks to SICP) though Common Lisp was/is also used similarly at various places, however I think that's hurt [Common] Lisp more than anything. (Basically CL gets taught like Scheme, and so whether CL or Scheme is used students come away thinking they "know Lisp" without ever really having seen its OOP power, its handling of types, its condition system, its easy-to-define macros, let alone the trivial things like LOOP or SETF that make imperative programming possible and easy. It's like C++ classes that teach it as C-with-classes, but worse.) Scheme has also had success as GNU's official extension language (with Guile, which goes a ways beyond standard Scheme to be useful) and you see Scheme pop up in places like GIMP plugins. Racket seems like the most popular modern Scheme, aimed at being suitable for real work, but it has gone waaaay beyond standard Scheme and slowly seems to be becoming as large as CL. Real stuff is presumably made with it, not just education stuff or scripts or extensions, but I'm less familiar with what's going on. It may yet eat CL's lunch.
Clojure of course has been a rising star and has enjoyed a lot of success in real stuff. It's popular, it's fashionable, and in terms of projects-per-second your perception is probably right that it's more widely used than CL right now. Where I would draw disagreement is in total pound-for-pound code that's Out There. CL has the benefit of decades of existence, so for example https://www.ptc.com/en/products/creo/elements-direct has been developed for a long time and is made of several million lines of CL code, and that's just one project. If you only used "active" (i.e. someone executed it over last month) code perhaps there's enough Clojure out there now to be an interesting race though there's no way to really tell; if you allow for all the CL that has been written and is no longer run, I don't think there's any contest, CL has such a rich history. (A random application being Mirai https://en.wikipedia.org/wiki/Mirai_(software) with demo https://www.youtube.com/watch?v=-IRsYGfr4jo -- has there ever been a 3D modeling program written in Clojure? Will there ever be?)
https://github.com/azzamsa/awesome-lisp-companies is an ongoing collection of companies known to be using CL. In terms of "industries", right now quantum computing companies seem particularly drawn to CL. Symbolic math historically also, with Maxima and Axiom being still-working/developed code bases. (The latter is a million lines of literate CL.)
But drawing on legacy again rather than last-few-years stuff, an old quote by Kent Pitman seems relevant: "Please don't assume Lisp is only useful for Animation and Graphics, AI, Bioinformatics, B2B and E-Commerce, Data Mining, EDA/Semiconductor applications, Expert Systems, Finance, Intelligent Agents, Knowledge Management, Mechanical CAD, Modeling and Simulation, Natural Language, Optimization, Research, Risk Analysis, Scheduling, Telecom, and Web Authoring just because these are the only things they happened to list." We can of course add more things to the list if that would help, like Mars Rovers or video games, https://news.ycombinator.com/item?id=9510945 has a few more, in recent news I learned about https://www.reddit.com/r/Common_Lisp/comments/osnsgz/intels_... and https://github.com/shop-planner/shop3 was open-sourced in 2019. Is it dominant in any area (besides maybe quantum)? I don't think so. Against Clojure though I'm sure it dominates some areas while not at all winning at others, it'd be a case-by-case thing. Common Lisp is in a lot of places all over the world (it's had quite a legacy in Japan even), but not the most fashionable stuff, so it's also understandable that many people haven't heard about it, realized they're using it, or heard people talking about it. (Edit: one final example that's not too esoteric, if people have ever used pgloader for Postgres, it may surprise them to learn it's written in CL, and even more than that, used to be written in TCL and later Python before moving to CL...)
I think perhaps what Lisp lacks (or appears to lack) is tentpole developers such as - from the Python world - Mike Bayer (SQLAlchemy) or David Lord (Flask/Pallets), or the Django community, or Kenneth Reitz (Requests) who keep high quality 3rd party libraries going for a long period of time.
I frankly don't understand why the programmers of the world aren't demanding Lisp.
[1] https://electronics.stackexchange.com/questions/462215/repre...
That's almost the last line of the article, but it hasn't established any credible argument about why "they really are not in 2021" other than a much longer form of the same assertion.
> Summary: You have to get in there and compete with mainstream, play their game by their rules, if you want to compete.
1. Why does someone want to "compete" ?
2. What would you be competing with?
Convincing people that they could & should use Lisp instead of Python or Swift is facing stumbling blocks far, far larger than the user-experience in an editor/IDE.
Common Lisp seems great - I'm so curious about CLOS - but I cannot get along with emacs, and I have tried.
If you don't use either Vim or Emacs... that's harder. You can use the Lispworks IDE, although that's limited if you're not paying for it.
I don't think the lack of tooling in Common Lisp is for lack of trying, but for lack of person-hours dedicated to open-source.
That said, there are a lot of gaps in the overall Lisp experience:
- Quicklisp is very unusual, and while it's quite an impressive effort (and definitely a good thing to have in the world), it's a bit odd coming from other programming languages.
- Roswell is great, but under-documented in some areas, and appears to be outright missing features that are actually specified in the docs.
- Qlot, like Roswell, is under-documented in some areas. In particular, using it in conjunction with Roswell can be unintuitive, and there's no guide out there (that I know of) to help with this.
- ASDF itself has the weird restriction that all of your source code has to be in one single directory. A lot of Lisp users I've spoken to don't see this as a problem, but that in and of itself I think is a problem and a reflection of the problems with the Lisp world when seen from the outside. Of course, Qlot alleviates this issue, but see above.
- There is a huge documentation discoverability gap in general. Docs tend to have very trivial examples, and hardcore reference material, with nothing in between. Figuring out how to use even popular libraries like Hunchentoot is not a trivial task.
- There's no actual spec for the SWANK protocol (that I know of), which makes it difficult to build new tooling around it.
- Editing s-expressions efficiently requires special tooling. Paredit is table stakes, but Parinfer is really what you need once you learn the basics and you understand how indentation works in Lisp code style.
Experienced programmers don't need a GUI IDE to get started. But they do need a base of sensible tooling. There will always be a push and pull between "harnessing the full power of Lisp" and "making the power of Lisp accessible outside of some very specific text editors".
Honestly, it's full on "hacker heresy", but who would, at this point?
That's part of the disconnect. The current generation (hell, the last 3-4 generations of programmers) has earnestly given vim/emacs a fair shake and found the whole paradigm of CLI editors wanting. And that's old news; that shoe dropped a couple decades ago. To them it's not a serious tool; it's a "toy" you dabble in for historical re-enactment like you would with film photography versus digital. Or like writing traditional console games in assembly. A curio.
There were real advantages to oldschool CLI editors, and it's not like they've gone away, but the world moved on. GUI editors have grown so many of their own advantages that you'd have to live without that it stopped being worth it a long time ago. Hacker heresy, like I said, but it's exactly that sense of "things you're not allowed to say" that breeds the disconnect of "why isn't anyone using this?"
I wouldn't be surprised if someone has a solid VSCode language server for LISP out there, and it'd be damned ironic — but not surprising — if something like that grew legs with the traditional community being completely oblivious to its existence.
> Editing s-expressions efficiently requires special tooling.
In the interest of clarity to non-lispers: without Paredit/Parinfer, editing S-expression is an experience equivalent to writing C++/Java - you roughly have that many delimiters to deal with when structuring code. Paredit/Parinfer make this process much more efficient than you can reasonably do for Algol-like languages, because of the inherent simplicity of S-expression structure.
Somehow the assisted indentation in Emacs is enough that I've never been confused about parentheses or felt the need to have them typed for me. I find them visually clear, so long as the indentation is not misleading.
I do find the close-paren matching which lets me know when a mismatching parenthesis is typed quite useful though. I use that in all programming languages, sometimes to tell me where a long block begins.
So I wouldn't agree that paredit or parinfer are essential.
For me, the fastest available cursor key repeat rate is more essential. I code like it's a video game: Hold down cursor key, let go when it lands in the right place. Write what I need, newlines and all, use <tab> or C-M-q a few times to trigger automatic indentation as needed. But this applies to all languages, not just Lisp.
Result: learned emacs. I have to say I don't regret a second of the weeks it took me to fully grasp it :D highly recommend going down the rabbit hole.
I would recommend perhaps to start with Spacemacs though: everything is ready to do the job: just install the "layer" you want, in this case, Lisp, and you're set... if you don't like Vim just make sure to not choose "evil-mode" (Vim bindings on emacs) as I think that's what you get by default.
https://franz.com/products/allegro-common-lisp/acl_ide.lhtml
http://www.lispworks.com/products/lispworks.html
Emacs is a subset of the whole experience.
>>Emacs is a subset of the whole experience.
Can you please elaborate on this? How is emacs a subset of this IDE?
It is a perennial complaint among those learning lisp that they didn't want to have to learn a new editor too. It's certainly possible that lots of other hurdles keep people from ever getting far enough to complain, but given that growth begets growth, fixing any hurdle would potentially have outsized gains.
It's a solved problem to be honest. Those that care about building multi-platform GUIs simply pay for a LispWorks license.
Lisp is the system to create systems. It's not the endgame. It's not a finished product. That is the point.
What is better tooling? What improvements can be made? How can it be done?
These questions are wonderful questions to consider and experiment with. Every lisper does - it's the entire point of using lisp. Everybody has answers.
There are, however, some lispers who, never thinking they could provide all the answers, spent countless days to create tools to make it easier for other people to express their answers. Macro systems... ELisp... MOP...
We shouldn't expect all the answers to be given to us. It's not wrong, but it's so limiting.
(P.S. JavaScript is what happened when Brendan Eich was tasked with adding Lisp to the browser, but was asked by the suits to make it look like Java. The entire area of thought comparing JavaScript tooling to Lisp tooling runs really deep. Are they even different?)
If your primary use case is developing websites, then VSCode and Typescript are perfectly good solutions.
https://twitter.com/ndehouche/status/1240218141742878720
Personally, I like to imagine PG scoffing at the idea of spending only 1000 hours (6 months, 40 hours per week) learning Lisp, then sarcastically recommending Clojure aka macro-less, continuation-less, Java-lisp.
You want to spend 10 minutes? Use Typescript! ;)
(I love Typescript too btw.)
Unless something changed in the last ~2 years since I worked with it, Clojure has macros.
But if I were running a business using Lisp, I'd cough up licenses for employees if they wanted to use one (and encourage them to try the free demos if they're new and aren't sold on emacs or vim or one of the other newer plugins for VS Code/Atom/Sublime). It's similar to how many Java shops cough up licenses for IntelliJ, except JetBrains has a sane business model that's not straight out of the 90s, you can trust they'll continue to make improvements to it and not drop a Big Update at some point that you have to debate whether to pay for, and for both an organization or an individual it's very affordable.
https://i.imgur.com/ml4jlYB.png https://i.imgur.com/qkgIXhE.png
BRICK WALLS OF ALL-CAPS SHOUTING.
Making emacs like other ui would be wholly counter productive, it's just not the paradigm the whole system is designed for.
The tooling for other editors should be created or updated to allow developers to use their editor of choice.
And I know the come back will be that all the developers are in emacs and won't develop for the other editors and unfortunately that chicken and egg scenario needs to be solved.
Sticking an ipad on a horse and cart will not make it a Tesla just like updating emacs to have some buttons and CUA won't make it appealing or useful to a sublime user.
Doesn't LSP enable this, to a certain extent?
I don't mean this in any sort of derrogatory way at all but I honestly think Lisp programmers might have a higher rate of autism. Also, seemingly higher IQs, cause it seems like anyone who actually builds software in Lisp extensively is some kind of savant.
I will check it out.
I disagree with the notion that in order for a programming language (or any other software product, for that matter) to thrive, it must conform to the "standards" of the most popular platforms and tools. In fact, I argue that providing a compelling difference that is substantially better than the competition is what makes a programming language or software product thrive. Why are Lispers so attached to Emacs? Why are Smalltalkers so attached to their environments? For them, they feel that these things are compelling enough to provide an advantage over "standard" tools. I love vi, but I have great respect for Emacs' extensibility through its own Lisp.
I also disagree with the notion that a tool needs to be "modern" to be popular. Now, if modernity means running on current operating systems and adhering to current protocols, then I agree. However, if modernity means conforming to mainstream expectations at the expense of a tool's identity, then I disagree. Here on this forum we have a sizable, vocal segment who speaks out against "modern" trends such as the flat UI aesthetic, desktop environments that are designed for mobile computers instead of workstations, Electron apps, Web framework churn, and large siloed applications. Many people find Lisp, Smalltalk, Plan 9, and the suckless (https://suckless.org/philosophy/) community of traditional Unix users refuges from this type of "modernity," and they want to keep things the way that they are.
Now, this does not preclude Lispers (and Smalltalkers) from embracing mainstream platforms and tools and building solutions that will make Lisp a more attractive solution within these worlds. After all, I love these "other world" environments, but my livelihood relies on coding for mainstream platforms. However, I wish the author had a better appreciation regarding why Lisp programmers evangelize the Lisp world instead of making efforts to have Lisp conform more to mainstream platforms.
https://franz.com/products/allegro-common-lisp/acl_ide.lhtml
Perhaps one of the big keys toward broader adoption of Lisp is for a large corporation to embrace Lisp and to participate in the FOSS development of the Lisp ecosystem. Unfortunately it is hard for companies to solely focus on developer tools since they have to compete against FOSS offerings.
The cheapest Allegro license is $599 USD [1].
If you're already a highly productive professional, this is probably totally worth it. For everyone else, there's no way you're going to get newbies to pay even close to that much, while DrRacket and Thonny are both free-as-beer and free-as-in-freedom.
If I'm a solo developer, then sure, but right now I cannot think of a single non-trivial pro or hobby project that is run completely solo.
Asking contributors to shell out a sizable amount of money before they are able to submit PRs is a deal-breaker. It's just no going to happen no matter how productive those products make me, because next to none of my work and/or hobby code is done with the expectation that other people are not allowed to contribute.
Despite pretty sure being among better paid people in Poland, I'd need to save non trivial amount of my salary each month for a chance to buy necessary set of LW licenses for it to make sense :-(
Tooling. The CIDER devs are doing a great job, but Clojure gets to suffer by being tightly coupled to the JVM. Meanwhile CL thought deeply about having a truly dynamic developer experience, for example look at the CL condition system.
Multiparadigm. Sometimes I want an object, sometimes I want goto, sometimes I want to mutate a thing. CL is probably the least opinionated language every made, Clojure is highly opinionated. For a long-term investment, I want to have options.
There's a spec. CL is done. I have faith my code will continue to run as-is well into the future. Hickey very much values long-term backward compatibility and maintenance today, but who knows what he'll value in the future? For that matter what does Clojure look like if he gets hit by a bus? I don't want to have to worry about things like that.
CL has more parens. People love to complain about CL let's excessive parens, but I find them much easier to read, but more importantly they are much easier to work with when using structural editing tools, and easier to work with in macros. I find Clojure's extra syntax for literals to be a net negative.
No JVM. The JVM is a mixed bag, if you need it for operational reasons then its a huge win, but if you're not constrained by somebody else organizational policies, then I think the JVM is a net loss. Instead of dealing with the JVM, CL gives you a variety of tools to tune performance to make your programs scream.
Reader macros. Clojure rejects them as a giant footgun, CL gives them to you since CL is all about maximal power and flexibility for an uncertain future.
I'm curious why you think the JVM is a net loss if you don't need it, if you want to elaborate on that.
The JVM also does not support optimization of tail function calls into jumps. Thus the language either has to implement it in a slower way, provide limited hacks around it or omit that feature. Various Lisps provide full TCO as an optimization feature in the compiler.
The JVM is also not optimized to represent Lisp data. For example the numerics of Common Lisp are relatively powerful and thoughtful designed with bignums/fixnums, ratios, complex numbers, etc.. The JVM has its own idea of numeric types and its operations.
Common Lisp has CLOS as a very dynamic object system with an optional meta-object system. That maps also not directly to JVM classes/objects (no full multiple inheritance, no multi-methods, no method combinations, ...). One can implement that on top of the JVM, but it will always be slightly slower than a native Lisp implementation.
Looking at compiled code / backtraces / ... on the JVM will always look slightly alien to a Lisp programmer - some Lisp implementations have simpler stack traces, tailored for Lisp.
The positive side of the JVM is the better integration into the IT landscape, modern garbage collectors, a mature runtime with lots of users and the direct integration into Java/... software on the JVM.
If we look at Common Lisp, there is a full implementation of Common Lisp on the JVM called ABCL. That's a great achieve, but native implementations like SBCL are much faster and thus more widely used amongst CL users.
SBCL comes with the added bonus of an excellent native code compiler written in Lisp itself. I would recommend the SBCL compiler also for beginners, because it gives a lot of warnings and other information at compile-time.
For context, I've been thinking about learning Clojure.
I'm pretty new to the Lisp world--I went through most of SICP in Scheme years ago, but that's about it.
In 2012 Clojure was HN's second favorite programming language: https://i.imgur.com/toGKy21.jpg
What's the best argument for me learning a Lisp besides Clojure?
Serious question, I'm not particularly attached to Clojure, and I want to know what I will miss out on by going with it instead of some other Lisp.
I think you should try both. Lisp as a language gives you a lot more freedom than Clojure, but Clojure has a more consistent and elegant language design. Clojure focuses on mostly-pure functional programming with immutable data structures, while Lisp lets you do pretty much anything anywhere, including hacking deep into the runtime itself (Clojure lets you do this to some extent too, but not as much as Lisp).
Some videos that are worth viewing, which together I think provide a good sense of how the languages differ:
- "Common Lisp for the Curious Clojurian" by Alan Diepert. A very lucid side-by-side comparison of Clojure and Common Lisp; assumes some but doesn't really require much knowledge of Clojure. https://www.youtube.com/watch?v=44Q9ew9JH_U
- "Maybe Not" by Rich Hickey. An unusual but thoughtful take on "types" in programming, which I think cuts to the heart of what Clojure is all about. https://www.youtube.com/watch?v=YR5WdGrpoug
- "Immutable Conversations - Common Lisp" interview with Alejandro Serrano and Michał "phoe" Herda. Demonstrates the deep programmability and flexibility of the Common Lisp runtime, including its unique "condition system". https://www.youtube.com/watch?v=pkqQq2Hwt5o
You'll miss out on some of the details of cons cells, symbols and macros and such, but you'll get the meat of learning to work with a REPL, macros and all that.
Lisp has had six decades to take the world by storm. It is at full saturation already. There is absolutely no need to raise its profile, or room to raise it in.
I’d say a lot of people (including professional software engineers) have no idea about lisp
I think you're in a bit of an HN bubble if you honestly believe this to be true.
[edit]
And the source of the question of Lisp's popularity was here: https://www.reddit.com/r/lisp/comments/pdpl5w/hell_is_other_...
[edit2]
And the fact that the author was reading comments in /r/lisp is a pretty strong indication that they have positive thoughts about lisp...
1) The Standard Library. I should say this while biting my lower lip with a "That ass!" look on my face, nevermind the usual xkcd. I do not have to hunt down twelve packages on CPAN, wondering if any of them will work on Windows, or require an enormous set of dependencies, or if the eighty percent of the topic it actually accomplishes overlaps with my needs. Nope. The Standard Library just has all of that, in a fairly conventional syntax. I do not want to re-implement a spec from scratch, either.
2) My first IDE was Notepad. Now I use Notepad++, largely because it auto-saves. I do not want an IDE that looks like the cockpit of an F-15, I just want to write a few lines, see if they work, and continue.
3) One of the PEP 20 bits, goes something like "there should be one obvious way to do it." And if there isn't, there's some strong cultural idiom that pushes it.
4) I could make it work on Windows. I didn't have to defend my choices to a bunch of people who will relentlessly shill their own distro. I work in a Windows shop, I am not going to jump ship just to use your language, for fuck's sake. I curse here because you would not believe the number of times I have had to have that incredibly irritating conversation.
5) There's just Python, no need to pick. (Okay, now I have to deal with Python 2 and Python 3, for what are Very Good Reasons that, no, I'm not going to explain to you, but in the beginning, that's all there was).
According to The Lisp Curse, Lisp falls afoul of #3 and #1. Nothing really stops it from correcting these. We have enough Lisps that #5 is a problem. All of the odd-numbered ones are really a variation on a theme, the Paradox of Choice. #1 is a lot of hard work, on top of it.
Wonder why more people don't point out the much larger scale of the problem in C++ (yes, they do point it out, but where are the capitalics about "The C++ Curse"?)
As for #5 - that's mostly a problem with Scheme, where implementation specific issues abound, but most other languages in the family don't have multiple differing quality implementations.
In fact, a common argument for Common Lisp instead of Python, is that unlike Python Common Lisp has a standard and implementations adhere to it - and the rest is handled by common portable libraries. One doesn't have to deal with spec that amounts to "what's the actual emergent behaviour of PyEval_FrameEx".
Racket continues to improve. I would love to see more energy put into making it viable as a commercial application development system.
From what I learn from reading about Racket from people in this forum. It's supposed to be a language to develop other languages. The other uses are to teach introductory programming classes. It's not designed to be a full fledged production grade programming language.
They also seem to be working on discarding the Lisp syntax entirely and making a new language out of Racket with a new syntax called 'Honu'. The project name is Rhombus/Racket2.
[0] https://blog.racket-lang.org/2009/03/the-drscheme-repl-isnt-...
At some level, to build a market, you have to invest in marketing.
It's just a great text editor for programmer's to get productive fast, both beginners and experts.
Have you ever compared the system resource demands of emacs and vim or neovim when you add enough plugins or extensions to reach feature parity with VS Code? They get to be just about as demanding on your disk space, ram and idle cpu.
Microsoft doesn't exactly have a fantastic rap with developers, especially OSS developers - do you really think it would have become this widely used if it wasn't good?
I suspect the learning curve is probably a big part of Emacs lack of mainstream success (same with Vim/Neovim).
Java promised three things, and delivered two and a half. It promised - and delivered - an end to manual memory management. It promised and delivered a huge, thorough, useful library. And it promised and kind of half-delivered "write once, run anywhere". That worked well enough to be at least somewhat useful, and failed enough to be really annoying.
Marketing can get you in the door. To stay there, though, you need something that is actually useful.
Am I claiming that intrinsic quality is fabricated? Not intentionally. I am claiming that it only goes so far.
Yet our distributed computing department decided to move right away into Java from C to teach distributed systems, thanks RMI and a coherent toolchain across the platforms we had on the labs. Similarly by 1998 the compiler development classes had moved from C into Java, thanks tooling like SableCC.
By 2000, IBM that used to be a big Smalltalk vendor, and used Smalltalk as foundation for their Visual Age IDEs, moved into Java, and from Visual Age ashes Eclipse was born.
Borland added a Java IDE to their collection, while Symantec not only did the same, they also created their own Java implementation.
Ah, and then there was this fellow called Anders Hejlsberg that left Borland to Microsoft, and joined Visual J++ team.
That is real work, and people paying real money for products.
We didn't need someone shoving it down our throats to appreciate what it brought into the 1996 - 2000 computing landscape.
When I see a new movie advertised incessantly, I conclude it must be bad-to-terrible. A good movie, product, language needs little to no marketing.
Similar, if a few of the trusted artists and such I have on Twitter recommend something, in willing to buy it near instantly.
Otherwise, the marketing budget is merely correlated with the product budget. And, to a large extent, big budget productions are predictable. In that you can usually easily predict if you will like it.
In fact its more like non existent.
I'd like to think that's a non starter for some one new starting a project in Java.
The Java tutorials are seriously out of date (they even mention explicitly that they were written for Java 8, and that they may refer features that are no longer available).
However the Javadoc is well maintained and quite useful, discoverable and thorough in my experience. Certainly one of the best native library docs that I've seen.
[0] https://docs.oracle.com/en/java/javase/12/docs/api/index.htm...
Software trends develop for many reasons, not all of them logical. The time for Lisp being used as a general programming language may have passed, or the right set of circumstances have not yet come together. It is very difficult to predict programming language winners. What seems obvious in retrospect was not clear at all at the moment.
I would like Lisp/Scheme/Racket to blow people away with awesome software. Questions raised about price are quite valid. Forcing people to use Emacs is not a path to greater Lisp adoption. There are those of us who have found career niches using Lisp, but there needs to a better effort both in education and tools.
Resurrecting old Lisp environments and dragging them into the present day probably isn't the best solution. Perhaps the best solution is a VSCode environment coupled with real-world examples. More Todo lists and CRUD editors as examples haven't done a lot of good in driving adoption.
Your questions might make some uncomfortable, but I like that you are asking them!