21 karma · joined May 4, 2024 (2y ago) · 7 submissions
comment 6mo ago · link · parent
comment 1y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
I searched through dtic.mil w/ Google and there's a great amount of reports that detail DoD-funded research and projects that involved Common Lisp. This one is the most unambiguous:
https://apps.dtic.mil/sti/tr/pdf/ADA303486.pdf "The Composite Warfare Model (CWM), a Navy simulation used successfully by the Space and Naval Warfare Systems Command (SPAWAR) and others, uses a fairly radical decomposition in which most attributes and methods are in their own class. Objects may have hundreds of super- classes. Written in Common Lisp, CWM is "linguistically advantaged" for this approach; ..."
An amount of those could've never been used (some are just proposals, and I'm not reading more or searching to see if they went anywhere) but some of them certainly were. It's mostly simulation and planning software, perhaps not mission-critical (I'd think garbage collection would be an obstacle there).
comment 2y ago · link · parent
The first link is ancient, because CL has fallen into relative disuse, but that doesn't mean Common Lisp was without a purpose until quantum computing became a possibility: https://franz.com/success/ https://common-lisp.net/lisp-companies
You'll notice that most of these aren't user-facing applications or they're extremely specific to a particular industry. Common Lisp itself was standardized largely due to the demand of the US Department of Defense so they would have a single, combined dialect of Lisp for DoD/DARPA projects. That's the sort of language this has always been (entirely out-of-sight, and also for most of its life it was prohibitively expensive). It's similar to Ada, in that sense.
Python obviously does run on those same computers, yes, but most Common Lisp implementations have the benefit of compiling to machine code, while Python is interpreted.
comment 2y ago · link · parent
There's a perception on websites like HN and Reddit that Common Lisp is super hard to understand and it's this exclusive thing, but I feel the exact opposite way. I think people think it's this exclusive thing because 1. they never used it 2. their only perception of a Lisp is a Scheme (which is not Lisp, because it's Scheme), which is a bit of an ivory-tower hacker language, to be honest, because it gives you so little to work with (and it's intentionally less flexible, less friendly to use, in the name of simplicity). I think Common Lisp is very much not.
Common Lisp tends to be written in this pretty verbose style (with long, descriptive names for everything, since a name can be anything up to 1024-characters) that utilizes the fact that functions, variables, etc are in different namespaces pretty heavily (so you can freely reuse names of existing things, in a scope, where appropriate), because the point is that the code will be read by humans first and machines last. Reliance on context is thought of as a bad thing by a lot of programmers, but humans are very good at resolving things by context, and Common Lisp's syntactical regularity makes it very trivial to know what things are what.
Macros are difficult to write for a beginner, but there are really only a few rules to keep in mind when writing basic ones (which are most of what many will write). Other people's macros end up being readable, even when you don't quite know what those rules are, because they're written in a descriptive way.
It's common to see people say something along the lines of "Lisp encourages programmers to write their own mutually unintelligible dialects of the language to solve their problems" but I find it pretty easy to read other people's (contemporary) code in Common Lisp. I do find it quite difficult to read Scheme code that comprises of a million nested lambdas all with vague, single-letter variable names, though.
I've no idea what Clojure is like, so maybe that's massively more complicated and that's coloring your perception, but I don't know. I think Common Lisp has pretty good ergonomics as-is (except all the legacy, leftover bloat in the standard, and awkwardness that arises with CLOS not being as well integrated with the rest of the language as it could).