News for hackers. Stuff that matters.
Re:Rustler is a library for writing Erlang NIFs in safe Rust... by loeg on Tuesday September 17, 2019 @12:33AM (#20991575)
It's definitely the "achilles heel" in the sense that the only real compelling feature of a weirdo language and environment like Erlang and BEAM is its use / capability in creating both scalable and highly fault tolerant systems.

If in fact the fault-tolerant premise is broken as soon as you need something outside the capabilities of the managed language, why learn a weirdo language? You might as well just use C# or Java instead.

Re:Rustler is a library for writing Erlang NIFs in safe Rust... by dynamite-ready on Tuesday September 17, 2019 @02:26AM (#20992233)
The poster is writing about 'native' code, i.e. embedded code written in C/C++, Rust, etc. If you don't use 'FFI' or NIF code though, then error handling on the BEAM is still a remarkable thing.

It's definitely a more forgiving and powerful model than 'try/catch'.

Re:Rustler is a library for writing Erlang NIFs in safe Rust... by loeg on Tuesday September 17, 2019 @07:57PM (#21001264)
> The poster is writing about 'native' code, i.e. embedded code written in C/C++, Rust, etc.

Yes, I know — so was I:

> … as soon as you need something outside the capabilities of the managed language …