upvote
I remembered your username, hello libriscv guy, cool to see you posting here! I suppose you are talking about https://github.com/libriscv/libriscv-rs ? Cool to see it!
reply
Yes, that's the one. Here's a benchmark I did on the performance: https://github.com/libriscv/libriscv/releases/download/v1.22...

The Rust version is currently middle of the pack. But it's in my view a success. The trick to getting good performance with tailcall dispatch in Rust is keeping the argument list low enough to fit in the calling convention, on stable. For nightly the "become" keyword is faster as I can put a few things in the stack frame to speed things up even more.

I'm not sure how to improve the Rust performance anymore than this, other than trying to go for cheap wins in the bytecodes themselves. The only big lever left is hand-written assembly, which I may have mentioned exists in the C++ version, hence the outrageous performance.

reply
bad mistake. would have been more productive to use that LLM to rectify your c++ instead.
reply
The emulator is fairly "complete" right now, I'm not aware of anything that needs rectifying in the sandboxed-supported paths. And the performance is already best in class. I don't think it needs constant changing unless there's a reason?
reply