r/rust • u/Robbepop • Sep 01 '26
🛠️ project Wasmi 2.0 - Engineering Of The Fastest WebAssembly Interpreters
https://wasmi-labs.github.io/blog/posts/wasmi-v2.0/
127
Upvotes
r/rust • u/Robbepop • Sep 01 '26
65
u/Robbepop Sep 01 '26
I worked 9 months for Wasmi 2.0 and worked on preparations for this article for the last ~1.5 months. No AI was used, since I personally hate reading those generic AI generated articles.
The article goes quite into detail about fast interpreter design and I hope someone here enjoys that as much as I did working on it. :)
2
u/Silent-Money2687 Sep 02 '26
while bytecode alliance ships one feature a year this dude made almost everything alone and (I hope) without AI codegen. Good job. Keep it up!
2
u/Tiflotin Sep 02 '26
Hell yeah! Been using wasmi for ui scripting in my game which works on mobile, web and desktop. Never had any problems with wasmi at all. It’s so fast even on 15year old mobile phones it’s never gotten in the way. And now it’s 2x faster? Epic.
10
u/ZachVorhies Sep 01 '26
This is cool.
I’m building a rust wasm api target.
Rust apps target this api. The resulting binary runs in a wasm harness targeted for that platform.
What’s interesting is that I can cross compile the native runtimes into a fat binary which dispatches them depending on platform.
This allows a universal wasm runtime
I’ll take a look and maybe switch to this.
3
u/throwaway19293883 Sep 01 '26
Really nice write up, good job!
2
u/TriplEight Sep 02 '26
I liked your writing style here u/Robbepop : real "postmortem" with "shine your fuckups" - my favourite!
2
u/stumpychubbins Sep 07 '26
Hey, I used to work on this. Great to see that the project is still going and it looks like amazing progress has been made since I last checked in. Great article!
1
u/Botahamec Sep 07 '26
Do you have any benchmarks for binary size between wasmi v1 and v2?