Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
feld (feld@friedcheese.us)'s status on Sunday, 27-Oct-2024 08:35:51 JSTfeld @p @j @mint NIFs use the External Term Format. Zigler and Rustler are nice implementations and glue for Rust and Zig to make it easy to call their functions directly.
With Rustler you basically just import the code into the project and add some decoration above the Rust functions you want to expose to specify what the types are, and then like magic it compiles and just works. It looks like native Elixir functions
https://www.erlang.org/doc/apps/erts/erl_ext_dist.html