AST marshalling/unmarshalling bettween JS and Wasm will add so much cost, I don't think it's worth.
-
-
-
You don't need to marshal the whole AST, you could do the AST part only in Rust and emit a string
-
That's true but we want to keep using the Babel plugins written in JS.
-
Also, the AST in JS is very easy to use vs Rust in my experience. Cycles are often nice when working with the AST as a Graph rather than a tree to track contextual data in parent nodes. Rust does not deal with graphs/cycles in a pleasant way.
-
Yeah, you can use an Arc or ref cells but I agree, tree structures in Rust are deceptively difficult
End of conversation
New conversation -
-
-
Why would you compile it to WebAssembly?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
if babel is compiled to webassembly, this will be a big shift on the DX :) really excited about this!
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.