News for hackers. Stuff that matters.
Re:Ask HN: What's the Deal with HN and Rust? by zozbot234 on Tuesday March 15, 2022 @10:27AM (#30685735)
Not just native code either, Rust also makes WASM development practical in a way few other languages can.
Re:Ask HN: What's the Deal with HN and Rust? by lumost on Tuesday March 15, 2022 @10:28AM (#30685757)
That is one of the appeals of rust for me. I want one language that I can flip from

- Native

- Web

- Distributed

- ML

- Service

programming without having to switch toolchains. Rust is surprisingly close to achieving this.

Re:Ask HN: What's the Deal with HN and Rust? by hcabral on Tuesday March 15, 2022 @11:32AM (#30686569)
This is indeed an interesting point. I've worked with C/C++ and every single project or experience had some peculiarity: the platform, the compiler, some version limitation, etc.
Re:Ask HN: What's the Deal with HN and Rust? by cyber_kinetist on Tuesday March 15, 2022 @10:33AM (#30685818)
For that I see it as a matter of tooling more than the language design: wasm is nicely integrated into cargo and is maintained far better than other choices. You can also compile C/C++ to WASM if you want (and the language semantics definitely allows for it, since it doesn't have a garbage collector), but you just really don't want to deal with CMake while doing so.
Re:Ask HN: What's the Deal with HN and Rust? by jatone on Tuesday March 15, 2022 @11:04AM (#30686228)
garbage collector isn't a limiting factor for wasm.

my main issue with wasm is no standard interopt for primitive types. thankfully some sort of FFI is in the works from my understanding.

Re:Ask HN: What's the Deal with HN and Rust? by cyber_kinetist on Tuesday March 15, 2022 @10:08PM (#30694456)
In theory yes, but in practice managed languages need native GC support because garbage collectors in WASM code are quite slow. There's a proposal in the works: https://github.com/WebAssembly/gc/blob/main/proposals/gc/Ove...