by nerdponx · 2y ago · 0 comments
My (least) favorite example:
(nth needle haystack)
(aref haystack needle)
Ugh! But then again, what other language provides both AREF and ROW-MAJOR-AREF?And of course CL tooling is just weird if you aren't used to it.
Quicklisp is amazing! But it has no CLI and doesn't use HTTPS for package downloads.
Swank and Slynk is amazing! But clients other than Slime and Sly are second-class citizens.
SBCL can generate a compiled binary, cool! But the routine is called "save-lisp-and-die".
ASDF expects you to either put all of your Common Lisp projects in a single directory, or hard-code project locations in a config file. Does Go still do that too?
Ancient alien technology for sure, but at least moderately damaged upon crash-landing. Ironically, the only piece of CL tooling that feels mostly not-weird is called Roswell.
Of course all of this stuff is completely free-as-in-beer and developed almost entirely by volunteers in their spare time. Hard to criticize: they built it, and I didn't. But there is definitely a cumulative oddball feeling to it.
https for QL: https://github.com/rudolfochrist/ql-https
another package manager: https://github.com/ocicl/ocicl ("built on the world of containers")
Can't really refute the weird feeling. But there's often a reason! (like, it makes totally more sense to install a library from within the Lisp REPL and not from the terminal, we can use it right away)
(let ((my-map `#M((foo ,foo) (bar ,bar) (baz ,baz))))
(gethash 'foo my-map))
EDIT: almost forgot, thank you for pointing out SBCL's support for Unicode, reading its documentation I found a couple of functions I was in need of.Constructor syntax is nice-to-have, but I don't think the lack of it is evidence of alien technology. Java has the same problem, for example, and Java is about as non-alien as you can get. Overall, hash maps are quite well done in CL, and good surface syntax is easily found in popular libraries, if that's a pain-point (serapeum, etc.).
I'm happy to help you find sb-unicode. :) I rarely use CL these days, but when I do, I'm so grateful to the SBCL team for their amazing and ongoing work.
C? :)
But for a language whose standard hasn’t been updated in roughly 30 years, it holds up impressively well!
...And?