Showing 2 videos tagged with ffi

FFI: Creating Cross-Engine Gems

FFI is a way to create cross engine rubygems. Wrap a library once, and use it from MRI, JRuby, Rubinious, and mingw32 Ruby. This talk will discuss FFI why you want to use it. We will build an FFI extension, and a traditional extension, comparing the implementations and cover the benefits and detriments of each.
Tags:

Jeremy Hinegardner: FFI

MRI, JRuby, Rubinius and other ruby implementations. What is an extension developer to do? One for each? Enter Foreign Function Invocation. Rubinius and JRuby ship with a version of libffi, and the ‘ffi’ rubygem for MRI. Now we, as extension developers, can write an extension once, and have it run on multiple ruby engines. We will look at differences between building a tradition MRI ruby extension, and building an extension targeting FFI. We will look at the development effort and performa... View More