In preparation for my upcoming talk this week at Erlang Factory San Francisco, focused on Lua integration in Erlang, I’m reviewing Lua, Javascript, and Reia, and I came up with this very simple decision tree: download
Please send any thoughts, or additional languages I should cover. I left out languages that aren’t truly ‘embeddable’, though technically you can access anything via a Port, or BERT-RPC, Protocol Buffers, HTTP, sockets, etc. I wanted to capture the projects that are genuine alternatives to Lua, which is the focus of my talk.
For Lua, there are two projects – erl-lua and erlua. The first, erl-lua is a linked-in driver, originally by Ray Morgan, updated by Darrik Mazey, available on github. erlua is available on gitorious, and is an Erlang Port. erlang_js is written by Kevin Smith of basho. Reia is well known to Erlang Inside readers.
Looking forward to the conference this week!
Hello Chad,
python is fully embedable http://docs.python.org/release/2.5.2/ext/embedding.html.
You could embed it in a port, module or a cnode. http://www.erlang.org/doc/tutorial/erl_interface.html
Of course the easiest and most natural way would be the use of https://launchpad.net/twotp a erlang node written fully in python.
I can understand that you might prefer other languages over python or that you might argue that there are different footprints, but i really can’t see your point in python not beeing embedable.
Cheers,
Stephan