Ah, I see what you mean. Looping in @binjimint who actually works on Wasm (as opposed to JS) in V8 
-
-
Wasm modules can share imports and exports currently; they’ll type check and can pass data without going to JS. This is just value types currently, which means sharing larger data through linear memory. The future GC proposal allows sharing more complex structures directly.
2 replies 0 retweets 11 likes -
Replying to @binjimint @mathias and
The reference types feature proposal is closer to landing, which allows wasm modules to pass opaque values (such as JavaScript objects) around, and between wasm modules without going to JS.
2 replies 0 retweets 4 likes -
Replying to @binjimint @mathias and
That sounds excellent. Is there any documentation showing this working in practice? I'm having trouble visualizing how modules would get this done and don't want to force you to write a tutorial in tweets.
1 reply 0 retweets 3 likes -
Not sure if there are any tutorials about this yet since afaik no wasm vm currently implements reference types. Though if there are tutorials, I bet that the
@rustwasm folks would have written them. :)1 reply 0 retweets 2 likes -
Replying to @binjimint @mathias and
As usual, I need to find
@ag_dubs and get her to tell me everything she knows :-)1 reply 0 retweets 2 likes -
-
also the point about predictable perf is one that i make all the time, it's def what i think people should focus on when talking about perf and wasm, a+
@mathias2 replies 0 retweets 4 likes -
i like to show this graph (source: https://hacks.mozilla.org/2018/01/oxidizing-source-maps-with-rust-and-webassembly/ …) and say, yeah the wasm is faster here but that's not what matters. look at the differences in relative std deviationpic.twitter.com/4CA9IIFXB8
3 replies 1 retweet 15 likes -
(also i realize this might be a slightly different interpretation of predictability than i think mathias meant, but, both are good, heh. tl;dr predictability is the good word, not perf)
2 replies 0 retweets 2 likes
No, we’re in agreement (as usual) 
-
-



0 replies 0 retweets 2 likesThanks. 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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.