3 ms·
>Who'da thunk one language might eventually eat both a significant chunk of C and a significant chunk of Javascript someday? Erm... PSA: Rust isn't the only la
by flavio81 9y ago
>Who'da thunk one language might eventually eat both a significant chunk of C and a significant chunk of Javascript someday?
Erm... PSA: Rust isn't the only language that is compiling to WASM.
I'm glad for Rust developers (How exciting is for them to be able to target WASM), but what is really exciting is to have alternatives; even more exciting if they have nothing to do with javascript.
- jerf 9y ago"Erm... PSA: Rust isn't the only language that is compiling to WASM." No, but Rust will still be sitting in a sweet spot, having many of those characteristics I named. For instance, Python compiling to WASM may be useful, but it won't have any of those advantages. Python running on WASM isn't hardly a threat to JS at all, because it won't do anything JS can't. Rust will conceivably be able to in the near term, and as I said, if it takes off and the browsers start adapting to statically-typed functions running in WASM the gap could open even more.
- timClicks 9y agoIIRC wasm has no GC capabilities, so Python is an unlikely source language.
- steveklabnik 9y agoIn cases like that, you also compile the Python GC to wasm and use it. It ships with your app, adding bloat to your binary though. It does work!
- timClicks 9y agoAh gotcha, have also been pretty impressed by pypyjs http://pypyjs.org/ http://pypyjs.org/
- Can_Not 9y ago> Erm... PSA: Rust isn't the only language that is compiling to WASM. How many other languages are you expecting that most people really want to use but don't require a multi-megabyte VM?