Re:Uninitialized memory: Unsafe Rust is too hard
by pjmlp on Sunday January 30, 2022 @12:39PM
(#30139192)
To be honest, I would even consider C for WASM despite my usual rants, after all with the security sales pitch for Webassembly it shouldn't matter after all.
[ Parent
| on HN ]
Re:Uninitialized memory: Unsafe Rust is too hard
by jeroenhd on Sunday January 30, 2022 @04:07PM
(#30141101)
Agreed, without the risk of memory corruption and the associated security risks, C can be used without too much hesitation (as long as your complicated pointer code doesn't break your own data structures and mess up your program, of course!).
I think it would be a challenge to compile all dependencies for a fully features C program into WASM, but if you pick your libraries well, C could be an excellent language for speeding up complex calculations in Javascript.