Erlang meets Lisp (again)
foldr.org
foldr.org
But to answer the question posed by the article, FFI binding to the C erl_interface quickly gets very nasty, with lots of manual memory management. (It was the first thing I tried, since PLT has such great FFI support.) It's actually much easier to just speak the wire protocol, esp. with the Distel source to build on.