3 ms·
In the case of BEAM NIFs, I find Rust's compiler guarantees especially compelling. That's because a crashing NIF can take down the whole Erlang VM. If fault-to
by AlchemistCamp 6y ago
In the case of BEAM NIFs, I find Rust's compiler guarantees especially compelling.
That's because a crashing NIF can take down the whole Erlang VM. If fault-tolerance is what brought you to Erlang/Elixir and OTP to begin with, as it is for many, having the server crash could be a major issue.
- elcritch 6y agoTrue, Rust has the strongest guarantees. Nim offers similar guarantees overall (checked arrays etc) and Nimler has exception checking enabled so the compilers checks if you have any possible checkable exceptions. Personally, I use Nim since it’s easier to use on embedded Linux devices by precompiling to C. Rust has some odd dependencies on the target’s C linker but doesn’t check the standard $CC or $LD variables. Zig is interesting but it offers the least memory protection.