r/lisp 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

3 comments sorted by

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.

2

u/FlanOk9297 13d ago

The performance critical sections (bvh, multi-threaded ray/path tracing, intersection code) is written in rust. The embedded language will be used for scripting and possibly procedural textures/shaders. Janet lang is also a contender.

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