Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
1–10 of 18 posts
Re: Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
#2Re: Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
#3For use in makepad (our Rust IDE/UI framework) as our extension-system Eddy Bruël built a new experimental spec compliant wasm interpreter that relies on sibling call optimisation to get within 4x of a wasm JIT. It has no dependencies and compiles in 2 seconds. Can ship on iOS and is very useful for low weight app extension systems
Re: Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
#4For use in makepad (our Rust IDE/UI framework) as our extension-system Eddy Bruël built a new experimental spec compliant wasm interpreter that relies on sibling call optimisation to get within 4x of a wasm JIT. It has no dependencies and compiles in 2 seconds. Can ship on iOS and is very useful for low weight app extension systems
I'm the author of Stitch. Rik is somewhat overpromising: Stitch is only faster than Wasm3 on Windows (by about 15%). On Mac and Linux, it is about as fast. It does get within 4x of Wasmtime (which is the JIT I've compared it against), but only on Mac. On Linux and Windows, it gets within 8x.
Re: Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
#5Re: Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
#6Are the requirements for fast rust compilation written down somewhere? Is that something you'd consider sharing, possibly with all of the tricks you've learned about how to get around various situations that would otherwise lead to slow compilations?
Rust is usually only rivalled by npm in terms of number of dependencies that a typical project pulls. This project is a refreshing take!
Re: Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
#7Re: Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
#8How well does it perform when evaluating itself? Can it bootstrap?
Re: Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
#9Are the requirements for fast rust compilation written down somewhere? Is that something you'd consider sharing, possibly with all of the tricks you've learned about how to get around various situations that would otherwise lead to slow compilations?
Re: Makepad-stitch: WASM interpreter in Rust, 15kloc, 0 deps, faster than wasm3
#10Are the requirements for fast rust compilation written down somewhere? Is that something you'd consider sharing, possibly with all of the tricks you've learned about how to get around various situations that would otherwise lead to slow compilations?
In this specific case the fast compilation is down to having 0 dependencies. Rust is usually only rivalled by npm in terms of number of dependencies that a typical project pulls. This project is a refreshing take!