by jpittis · 7y ago · 0 comments
I've had a number of great experiences working on toy projects using Clojure but nevertheless feel resistance to adopt it fully "because of the JVM".
I've pinned my own resistance down to three things:
- Slow startup times. (Most of my use cases are not long running servers.)
- Not "unixy". (I write programs to run on linux and OSX exclusively and am used to using non-portable APIs maybe?)
- I've been lead to believe Java is "gross" and "enterprisy".
Really, of those three reasons only the first one has merit.
It kind of sounds silly when I put it this way: When I'm hacking on fun projects, I enjoy using a "hacker" language and Clojure doesn't feel like one.
One implementation you didn't mention that's pretty neat is Chicken Scheme [1].
Obviously CMUCL was a mess in a lot of other ways though.
I’m not a optimization wizard, but I’ve been able to get some very impressive speed ups this way, in combination with some attention to how my code is written.
I use and like it quite a lot.
However, the 'general experience' is just like with other scripting langauges (like Ruby/Python/Shell), albeit it's a Lisp.
Re startup time, maybe you prefer to run on JS. See eg https://github.com/anmonteiro/lumo
(Though you can also use GraalVM to get fast startup time on prod builds of JVM Clojure projecs)