{"id":263,"date":"2009-03-14T11:44:16","date_gmt":"2009-03-14T19:44:16","guid":{"rendered":"http:\/\/jaredrobinson.com\/blog\/?p=263"},"modified":"2009-03-14T11:44:16","modified_gmt":"2009-03-14T19:44:16","slug":"mwrc-ffi-by-jeremy-hinegardner","status":"publish","type":"post","link":"https:\/\/jaredrobinson.com\/blog\/mwrc-ffi-by-jeremy-hinegardner\/","title":{"rendered":"mwrc: FFI by Jeremy Hinegardner"},"content":{"rendered":"<p>FFI (Foreign Function Invocation): Making Cross Engine Extensions<br \/>\nby Jeremy Hinegardner<\/p>\n<p>He Loves Ruby and C.  This talk is about Ruby extension development.<\/p>\n<p>FFI is a way for something in one language to call functions in another<br \/>\nlanguage. It&#8217;s great because FFI works between JRuby and libsomething.so, or<br \/>\nbetween Matz Ruby and libsomething.so, etc. FFI reduces the amount of code you<br \/>\nhave to write to bridge between Ruby and C. I wonder how it compares with<br \/>\nJava&#8217;s Java Native Access. Are they complimentary (for JRuby)?<\/p>\n<p>There&#8217;s an FFI generator that takes C header files and generates FFI code for you.<\/p>\n<p>FFI saves developer time. It&#8217;s not as fast as a traditional C extension. When<br \/>\nyou need to support JRuby or Rubiniess, then it saves even more developer<br \/>\ntime.<\/p>\n<p>How many gems are there that use or depend on FFI? Four. ffi-ncurses,<br \/>\nffi-swig-generator, tidy_ffi, ffi-zlib. There&#8217;s another one for Open GL.<\/p>\n<p>How many gems are there with extensions? 346<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FFI (Foreign Function Invocation): Making Cross Engine Extensions by Jeremy Hinegardner He Loves Ruby and C. This talk is about Ruby extension development. FFI is a way for something in one language to call functions in another language. It&#8217;s great because FFI works between JRuby and libsomething.so, or between Matz Ruby and libsomething.so, etc. FFI &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jaredrobinson.com\/blog\/mwrc-ffi-by-jeremy-hinegardner\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;mwrc: FFI by Jeremy Hinegardner&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[20,21],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-programming","tag-mtnwestrubyconf","tag-mwrc"],"_links":{"self":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":1,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":264,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/263\/revisions\/264"}],"wp:attachment":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/tags?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}