Hacker News new | ask | show | jobs
by raviqqe 533 days ago
Stak aims to add a scripting environment in Rust with minimal overhead (e.g. additional bin size) but a slight sacrifice of speed. For example, its VM is written in ~1500 lines in Rust including some tests (https://github.com/raviqqe/stak/tree/f799140377162f1c2f94cc4....) The philosophy is similar to SectorLisp (https://github.com/jart/sectorlisp) but for R7RS :)
1 comments

Interesting, thanks. Do you plan speed/performance comparisons as a scripting / pluign language? That would be relevant for games or graphics intense usecases—blackjack-rs considered scheme/lisp but opted for mlua due to performance)
Here are some benchmarks: https://github.com/raviqqe/stak/actions/runs/12654408322/job...

For pure computational work, Stak is 2 to 2.5 slower than CPython. These are E2E benchmarks for the interpreter commands. As you said, I should probably add benchmarks of scripting use cases with Lua.

That's very promising! It might be benefitial adding these to the front page. I will keep an eye on the project, thanks