BEAM Wisdoms — Virtual Machine Knowledge Base Help

Interfacing Erlang with the Outer World

Native Libraries

There are plenty of different approaches on integrating NIFs written in other languages:

C Language

C++

Lua

Python

  • Pyrlang (Erlang node written in asyncio) (license Apache2)

  • ErlPort (see below in "Ports")

  • erlang_py (license MIT)

  • py_interface Website, GitHub (licence LGPL)

  • PyErl Github (license MPL)

Ruby

PHP

Rust

Nim

Javascript

Perl

Ports and Network

For the situations when you still need the speed and can tolerate some call latency over, but don't want to risk crashing your node: choose interaction over network or a port.

Last modified: 10 June 2024