This all misses the bigger point: WASM isn't actually an assembly for the web; it's more of a math co-processor. Limited applications for forseeable future = \https://twitter.com/callahad/status/937728124451786752 …
-
-
Specifically, we can parse/compile JS off-thread as it's coming off the wire, whereas WASM requires entire binary to compile (currently). We preserved ability to stream compile WASM, but not the default behaviour.
-
API now has methods for streaming module compile:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming …
- 1 more reply
New conversation -
-
-
Just FYI, I compared a minified JS mandlebrot algorithm, 805 byte, with the same in WebAssembly (C compiled via a simple LLVM toolchain), which resulted in a 596 byte WASM file -https://github.com/ColinEberhardt/wasm-mandelbrot …
-
How much code are you adding to thunk in/out?
- 2 more replies
New conversation -
-
-
The large wasm binaries you see at the moment is mostly due to the ‘bloat’ added by tools like emscripten, which include quite a lot of additional runtime code. This will improve over time. It’s worth remembering that JS has a 22 year head start on wasm, which is still just MVP!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.