News for hackers. Stuff that matters.
Re:Hands-on WebAssembly by pansa2 on Wednesday August 26, 2020 @06:53AM (#24281231)
> C++ is in a decent state as well

I’d still choose Go or Rust over C++, though, because they’re memory-safe. This recent discussion shows that’s still important in the context of WebAssembly: https://news.ycombinator.com/item?id=24216764

Re:Hands-on WebAssembly by the_duke on Wednesday August 26, 2020 @08:36AM (#24281820)
Sure, for new projects I choose Rust over C++ whenever feasible.

But a huge amount of the worlds software is written in C++, and will remain so for decades.

Getting some of that code to run well in WASM can be a big win for certain domains.

Re:Hands-on WebAssembly by stjohnswarts on Wednesday August 26, 2020 @05:41PM (#24287614)
Modern C++ has a lot of memory safe operations if you use them (smart pointers, atomics, actually using RAII properly and universally), although I'm not sure how much overhead they might add to a wasm blob. Rust seems almost perfect for it though, but no reason to discourage C++ people; it can be a relatively modern language if you let it.
Re:Hands-on WebAssembly by pjmlp on Thursday August 27, 2020 @07:52AM (#24292728)
As someone that loves still having C++ on the toolbox, that is unfortunately only true if you have 100% control over the source code and have all team on modern C++ mindset.