Re:Rust from 0 to 80% for JavaScript Developers
by sydthrowaway on Sunday May 01, 2022 @01:54AM
(#31222568)
What's an alternative?
[ Parent
| on HN ]
Re:Rust from 0 to 80% for JavaScript Developers
by olah_1 on Sunday May 01, 2022 @01:57AM
(#31222585)
Zig or Nim maybe
Re:Rust from 0 to 80% for JavaScript Developers
by winrid on Sunday May 01, 2022 @02:40AM
(#31222762)
Zig is way more low level. Nim is a great alternative though. 90% of the performance with 50% of the work.
Re:Rust from 0 to 80% for JavaScript Developers
by kaba0 on Sunday May 01, 2022 @09:40AM
(#31224936)
There is no more low-level. Rust and zig can express the exact same programs. Rust just catches a few more erroneous ones at compile time, but you have to manage memory explicitly in both.
Re:Rust from 0 to 80% for JavaScript Developers
by winrid on Sunday May 01, 2022 @12:30PM
(#31226342)
Zig doesn't even have a string type. It's not an alternative to Rust, which is meant as a safer C++.
Nim has a huge stdlib.
Re:Rust from 0 to 80% for JavaScript Developers
by sydthrowaway on Sunday May 01, 2022 @04:38PM
(#31228444)
Do any of them have a wasm target?
Re:Rust from 0 to 80% for JavaScript Developers
by antifa on Sunday May 01, 2022 @10:20PM
(#31230755)
Nim can target js directly, but if you really want wasm it's mostly probably possible https://forum.nim-lang.org/t/7365