~/talk

FFI: Creating Cross-Engine Gems

Talkat RubyConf 2009 · 2009-11-19..11-21· [ruby]
slides:none on file

A concrete claim: use libffi to write one binding usable across MRI and JRuby instead of separate C and Java reimplementations. Example: a small libsimplemetrics C library gets a compact FFI DSL mapping header to Ruby that takes ~40 minutes to write versus over an hour for a C extension, and a 1,000,000-call microbenchmark shows roughly ~0.4s extra overhead for FFI while the same Ruby code then runs unchanged on JRuby.

AI-written summary · about

  1. 0:00Start
  2. 2:29What Ffi Stands for
  3. 15:21Side by Side Comparison
  4. 17:28Benchmark Screen Repair
  5. 21:31Opencl
  6. 23:36Transitions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.