4 ms·
Erlang has a well defined and clear layer for integrating with C code, including functionality to help you ensure the code you plug into will be thread-safe and
by josevalim 3y ago
Erlang has a well defined and clear layer for integrating with C code, including functionality to help you ensure the code you plug into will be thread-safe and work with the VM's underlying concurrency models: https://www.erlang.org/doc/man/erl_nif.html https://www.erlang.org/doc/man/erl_nif.html
Erlang does not have low-ceremony ways of calling C from Erlang, as I believe Python has. It could be done but that would be frowned upon anyway, because it would defeat the preemptive and fault-tolerant guarantees of the runtime.
So I guess it depends on what you mean by great. FWIW, Elixir has no problems integrating native code from XLA, LibTorch, Polars, that also powers equivalent libraries in Python.