3 ms·
For CLIs, Common Lisp is excellent. I wrote a small program in CL and Rust, and (SB)CL can run faster than Rust EVEN FROM SOURCE! It's just completely mindblow
by brabel 4y ago
For CLIs, Common Lisp is excellent.
I wrote a small program in CL and Rust, and (SB)CL can run faster than Rust EVEN FROM SOURCE! It's just completely mindblowing how fast it starts.
If you don't believe me, write a program that does something like count how many times each letter appears in a text file in CL and Rust, then run them with `time`. I can pretty much guarantee CL runs as fast or faster.
EDIT: my comment is meant for anyone curious about OP's clamis, I am obviously just agreeing with their point about CL's startup speed.
- ArtixFox 4y agoOoooh nice!!! That is amazing but how viable is common lisp for low level programming. Instead of embedding CL, what about a DSL that creates binaries, does something like this exist?
- ducktective 4y agoFor embedded application (as in micro-controllers) there is http://www.ulisp.com/ http://www.ulisp.com/ SBCL still needs garbage collection. There are also https://github.com/carp-lang/Carp https://github.com/carp-lang/Carp and https://github.com/bakpakin/Fennel https://github.com/bakpakin/Fennel I haven't used these. Would be great if low-level and embedded engineers could chime in.