R interface via libffi (ruby-ffi, node-ffi)