Remix.run Logo
terpimost 4 hours ago

Are there any plans about wasm version?

spankalee 4 hours ago | parent [-]

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

jakebailey 4 hours ago | parent | next [-]

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

notnullorvoid 34 minutes ago | parent [-]

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

raddan 4 hours ago | parent | prev [-]

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?

jakebailey 4 hours ago | parent [-]

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