#Nifs
2 notas · última:
Elixir, NIFs, Xbox Kinect, and LiveView
The post traces how Kinext was built to connect an Xbox Kinect to Elixir through Erlang NIFs, then expose it in a simple Phoenix LiveView demo app.
Elixir Native Interoperability – Ports vs. NIFs
The page compares two Elixir/Erlang interoperability mechanisms for serial device access. NIFs are faster and simpler but can crash the VM; ports are safer and more flexible but use awkward STDIN/STDOUT messaging.
