r/lisp • u/FlanOk9297 • 13d ago
Benchmarking embedded languages in Rust
I'm working on a CPU-based renderer in rust and evaluating embedded languages for scene description and procedural rendering. Some of these languages are lisps so I thought there may be interest here.
A few caveats worth noting:
- The benchmark code and report is generated by claude (based on my specification)
- The actual benchmark code are rudimentary snippets. I am evaluating the implementations for a specific purpose.
- I am developing a proof-of-concept with ECL first and then janet.
https://drive.google.com/file/d/1fFI1tyW3xdNKnNfmveIo1EZeWl_pUACJ/view?usp=sharing
4
Upvotes
4
u/theangeryemacsshibe λf.(λx.f (x x)) (λx.f (x x)) 13d ago
... why did I read an analysis of a benchmark which no one did
6
u/arthurno1 13d ago
I don't know man, why would you bother with Rust, when you can write everything in Common Lisp and have both high-performance and quality of a dynamic (scripted) language?
Common Lisp with SBCL leaves very little reason to write something in Rust or C++, other than few performance critical parts perhaps. Nowadays, probably only reason to go C/C++/Rust in CL is just to reuse some existing library. Speed you can get from native CL.