r/scheme • u/Abject_Enthusiasm390 • Jul 23 '24
Which lisp (lower case)
Hi,
I’m working on a blog post titled “which lisp” (lower case) and am soliciting responses to hopefully include in full within the post.
What do I mean by “a lisp”?
I means a lispy language.
- S-expressions on the surface (not as a substrate or implementation detail)
- Homoiconicity
- Fully specified across implementations at the level of day to day use
Decision points In no particular order, here are some questions I think are relevant.
- Practicality for everyday to day generic scripting
- Practicality for Web apps
- Practicality for data analysis / munging tasks
- Language ergonomics
- Special sauce
What about Schemes?
For these purposes, each Scheme is considered a different “lisp” since in common use so many non-trivial packages/libraries/projects target a specific Scheme. Ease of learning/using other Schemes can be considered part of the special sauce, though.
What about Common Lisp?
While different CL implementations have special features, CL is fully specified and few significant packages/libraries function only on a single implementation.
What about lisp-over-another-runtime?
As long as the surface language has S-expressions and is homoiconic … it’s “a lisp” for these purposes.
3
u/sdegabrielle Jul 23 '24
Lisps on other runtimes?
Does that include
10
u/raevnos Jul 23 '24 edited Jul 24 '24
Racket (Derived from Scheme, but different enough the developers consider it a different language):
I think so; I've been playing with using it instead of my usual perl/tcl/shell scripting for whatever and it works.
Tutorial: https://docs.racket-lang.org/continue/index.html
See above comment about scripting.
Immutable cons cells, hash table literals (Something not many lisp languages have), regular expression literals, etc. On the downside it doesn't have things like
read-able numeric vector literals that other Schemes do.Comes with a package manager with lots of third-party libraries available plus a batteries-included standard library. Support for many languages, not just the base Racket one.
Edit: I've never used it but I've heard good things about Gerbil as another next-generation Scheme descendant.
9
u/11fdriver Jul 23 '24 edited Jul 24 '24
Alrighty. Not saying these are necessarily going to be the agreed-upon standard, but I basically think about the wider Lisp family as 'The Big Five': Common Lisp, Scheme, Clojure, Racket, Emacs Lisp. And then I pick out SBCL as the Common Lisp implementation, and Guile Scheme for a Scheme choice.
Clojure is probably my favourite out of these, but then I'm a functional programmer at heart. I'll put them in order from personally most-used to personally least-used:
Clojure & ClojureScript
Nice:
first/restnotcar/cdr).Naughty:
#'confuses me sometimes.Emacs Lisp
Nice:
#!/usr/bin/emacs -x.(require 'cl-lib).Naughty:
Guile Scheme
Nice:
#!is the opening multiline comment delimiter. The 'meta switch' is also incredibly useful for passing arguments easily.funcalleverywhere.8synclibrary for asynchronous actor programming is damn good.statprof, for performance analysis.Naughty:
6
u/letsfuckinggobears Jul 23 '24
Clojure is nice. When you can't find a library to do what you want, you can just use a Java library
4
u/jmhimara Jul 23 '24
My vote's for Racket.
2
u/VyridianZ Jul 23 '24
Though my language is still in alpha, I would like to throw my language into the ring. https://vyridian.github.io/vxlisp/ It is strongly-typed with a very simple, expressive, homoiconic syntax. Because it tranpiles to JS, Java, C++, CSharp (almost), (Kotlin/Swift as I can get around to them). it has many use cases.