News for hackers. Stuff that matters.
Re:We Rewrote Our Project with Rust and It’s Almost 40X Faster by fulafel on Thursday March 02, 2023 @12:44AM (#34992429)
> We used Python, Go, and Rust to implement a simple programming language stack virtual machine and compared their performance. In this scenario, Go and Rust have similar performance, while Python showed a significant performance gap. After careful consideration, we chose Rust.

Would have been interesting to hear why they didn't benchmark other languages suited to programming language implementation. Go is obviously rather weak in expressivity there, and other options which have both automatic memory management and high performance exist.

But the 66% bottom line performance improvement does sound like a nice improvement.

Re:We Rewrote Our Project with Rust and It’s Almost 40X Faster by peefy on Thursday March 02, 2023 @01:22AM (#34992657)
Supplement: Although we did not use Go and Python to write the core compiler part of KCL again, we provided KCLVM Go and Python SDK for peripheral ecological supplement: https://kcl-lang.io/docs/reference/xlang-api/overview