4 ms·
Elixir is one of the most productive languages there is right now. Run into something slow? Replace that small bit with a Rust NIF and move on with your life.
by seventyone 2y ago
Elixir is one of the most productive languages there is right now.
Run into something slow? Replace that small bit with a Rust NIF and move on with your life.
- neonsunset 2y agoOr write it in a language where you don't even have to think about it. (you have to maintain separate toolchain and exports in Rust, to achieve this, and complex types cannot be easily exported/imported - it is subject to limitations of C ABI, and FFI is not free either, even when as cheap as it gets - .NET has that with P/Invoke yet still it is a deoptimization in data-intensive algorithms, which benefit from being rewritten in C#/F#)
- seventyone 2y agoComplex Rust types are absolutely supported with Rustler. And with one command I can have Elixir pull a Rust crate and do 80% of the work setting it up for me to be able to use it in a project. https://github.com/rusterlium/rustler https://github.com/rusterlium/rustler