Live data from Hacker News

Rust and WebAssembly in 2019

fitzgeraldnick.com

1–10 of 97 posts

Re: Rust and WebAssembly in 2019

#4
I wish something similar was officially worked on by the python core dev. Ouputting wasm and being able to interpret it is going yo be necessary for the language to stay relevant in 10 years.

But it not a priority at all atm.

Re: Rust and WebAssembly in 2019

#6
post #4

I wish something similar was officially worked on by the python core dev. Ouputting wasm and being able to interpret it is going yo be necessary for the language to stay relevant in 10 years. But it not a priority at all atm.

Python is extremely dynamic and compiling it into wasm would likely be impossible or would generate extremely low-performing code.

Re: Rust and WebAssembly in 2019

#7

Is there any work done towards enabling Rust + WASM without any JS/npm?

Wasm requires JS to be loaded by your browser, so it can never fully go away. Outside the browser it’s a different story, of course.

We could add support for and not need JS to load it. Once the host bindings are implemented that would be a good fit.

Re: Rust and WebAssembly in 2019

#8

Earlier quoted context omitted.

Wasm requires JS to be loaded by your browser, so it can never fully go away. Outside the browser it’s a different story, of course.

We could add support for and not need JS to load it. Once the host bindings are implemented that would be a good fit.

Maybe! There’s not really much demand for such a thing. Web platform people don’t have the disdain for JS that many internet commenters do.

Re: Rust and WebAssembly in 2019

#9

Earlier quoted context omitted.

Wasm requires JS to be loaded by your browser, so it can never fully go away. Outside the browser it’s a different story, of course.

We could add support for and not need JS to load it. Once the host bindings are implemented that would be a good fit.

...but it couldn't interact with the DOM or do anything else without JavaScript.

Re: Rust and WebAssembly in 2019

#10
It didn't click until just now that rust is very naturally suited to WebAssembly due to its lack of garbage collection. As I understand it, there's no current plans for WebAssembly to include a garbage collector, so higher level languages that want to compile to it will need to bundle their own, increasing the size of the download quite a bit.
Post reply on HN