Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are there any plans about wasm version?


Yes, but no official builds yet that I know. This is a really important issue for online playgrounds and IDEs.


Hoping 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


I think all 3 are pretty important for using TS in online sandboxes and IDEs.


I 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?


The 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-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: