3 ms·
Erlang's main weakness is computationally intensive mathematics. You could always write a NIF in C if you needed pure speed for a specific function. If you're n
by pg_bot 8y ago
Erlang's main weakness is computationally intensive mathematics. You could always write a NIF in C if you needed pure speed for a specific function. If you're not interested in writing safe c code it looks like there is a bridge from rust to erlang.
https://github.com/hansihe/rustler https://github.com/hansihe/rustler
- digitalzombie 8y agoEven if you write NIF C or in Rust. They can take down Erlang's BEAM VM. > http://erlang.org/doc/tutorial/nif.html http://erlang.org/doc/tutorial/nif.html Erlang itself shield you from actually doing stupid thing and follow the assumptions that BEAM have while running programs. You're better off choosing a different language. Have Erlang deal with concurrency but don't have it do number crunching.
- xtagon 8y agoRustler in particular boasts safety and an inability to crash the Erlang VM. Whether that holds true in practice, I don't know, but it's the first thing they mention in their README.
- tov_objorkin 8y agoIf you need fast small function use NIF, for large logic blocks better use C node its safe and isolated.