150 points · by titzer · 8y ago · 20 comments
I gave a talk about it back in June. Slides: https://docs.google.com/presentation/d/1n75Mo09HmyruV5S7q0cH... video: https://youtu.be/2eISBAbT3GM?t=1h22m3s
for (let i=0; i<a.length; i++) {
a[i] = a[i]*2
}
Without lifting, every time through the loop it has to check that a is an array and (i >= 0 && i < a.length). Lifting lets the compiler move all the checks before the loop and do them once. It's nontrivial to check that the truth value of the check can't possibly change during the loop.Does anyone know of projects that ship wasm files (preferably via npm)?
I would like to try out the streaming API but I don't want to compile C++ right now
const module = await WebAssembly.compileStreaming(fetch('foo.wasm'));It's from Mozilla iirc.
Our first aim is to implement a few trivial apps without framworks completely in WASM, benchmark and move on to building the real deal.
We're currently building https://reactjs.org/docs/thinking-in-react.html in C/WASM (no Framework). Demo: http://www.write.pub/wasm-demo/hello.html
Love to see liftoff making wasm immediately executable, secure and performant (albeit small delay)
Wasm is the Java applets and flash swf of our generation