Hacker News new | ask | show | jobs
by ngrilly 1002 days ago
> As far as I know, today, Rust is the only programming language (other than C) able to create efficient WebAssembly (wasm) libraries

Zig is also a good option for that, but the language is still in development.

2 comments

Regarding Zig, note that the author writes "starting a new project in a memory unsafe language in 2023 is foolish as demonstrated by the endless flow of vulnerabilities."
Yes but that's a silly argument for most software, which will never see adversarial contact.
Maybe once Zig supports WASIX
No, let's actually have a standard with some thoughtful design instead of just bunging a bunch of ancient POSIXisms along into another platform. Also, as far as I can tell, it's being pushed exclusively by Wasmer which looks to be a bit shady as a company.
Wasmer attempted to do this in the Ziglang repo barely 4 days ago:

https://github.com/ziglang/zig/issues/17115

I’m pretty sure that’s what the parent is referring to :)
wasm is enough to do fancy things in the browser, games for example, with Rust or Zig. WASIX is not necessary for this.