6 ms·
Are there any plans about wasm version?
by terpimost 2mo ago
Are there any plans about wasm version?
- spankalee 2mo agoYes, but no official builds yet that I know. This is a really important issue for online playgrounds and IDEs.
- raddan 2mo agoI am a little surprised that they rewrote the compiler in Go instead of just compiling the existing compiler to WASM. The linked announcement does not talk about a WASM alternative at all (rewriting a compiler is a risky move!). Does anybody know what the rationale was to do a full rewrite? The article really emphasizes speed, but not much else. Was it Go's concurrency affordances that made the switch worthwhile?
- jakebailey 2mo agoThe compiler was written in TS; it wouldn't make much sense to compile TS to Wasm, only to have that same code run in the same interpreter as the JS code. And yes, threading was a big part of it. See also: https://devblogs.microsoft.com/typescript/typescript-native-port/ https://devblogs.microsoft.com/typescript/typescript-native-...
- jakebailey 2mo agoHoping to start getting Wasm builds out soon; it's a little unclear what people want when they say "Wasm", because it could mean - LSP monaco - the API in the browser - the CLI in Wasm for platforms we couldn't build which muddies the water a bit, but I'm sure we can get it working
- notnullorvoid 2mo agoI think all 3 are pretty important for using TS in online sandboxes and IDEs.