JavaScript code is much more expensive, byte for byte, than an image, because of the time spent parsing and compiling it. It's possible to parse and compile wasm as fast as it comes over the network, which makes it much more like an image than JavaScript code. Game changer!
-
-
Replying to @wycats
This is indeed very cool, but in my experience so far WASM programs tend to be much bigger than equivalent JS programs, which undercuts the advantage, in some cases quite significantly.
4 replies 0 retweets 15 likes -
interesting! This doesn't align with my experience so I'm legit curious, is this asm.js vs wasm or handwritten JS vs wasm? What source language and compiler?
1 reply 0 retweets 9 likes -
Replying to @_jayphelps @wycats
handwritten JS vs Rust wasm with native Rust compiler. asm.js is always bigger than equivalent wasm in my (very limited) experience, and Emscripten programs are enormous. What have you seen?
#inquiringmindswanttoknow2 replies 0 retweets 7 likes -
Replying to @xander76 @_jayphelps
Are you running wasm-gc against the final program? Important to keep in mind: JS is not a little more expensive than an image, it's massively more expensive. So even a 3-5x larger wasm might pay off from reduced parse and compile times. This was my point.
3 replies 0 retweets 13 likes -
I think people expect that "if the wasm is 2x bigger than the JS, game over". That is not actually true on a good wasm implementation. (note: today's v8 is not a good wasm implementation, but it will be before too long, I hope)
1 reply 0 retweets 5 likes -
Replying to @wycats @_jayphelps
Interested: what’s bad about v8’s wasm? And do@you think there’s a good wasm engine?
1 reply 0 retweets 1 like -
Replying to @xander76 @_jayphelps
I think FF nightly is leading the pack atm. But competitive pressure is strong and things change all the time.
1 reply 0 retweets 9 likes
Firefox is focusing on compiling realtime, multi-tier and streamlining wasm->js chatty situation (very fast calls across the boundary). All of these are adding up fast for my use cases.
-
-
Replying to @wycats @_jayphelps
Interesting! I’ve been running tests on calls abroad the boundary and not seeing great results from FF, but I’m not trying nightly. Something more to play with! Yay!
0 replies 0 retweets 1 likeThanks. 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.