~/talk

Ruby meets Go

Talkat RubyKaigi 2015 · 2015-12-11..12-13· [ruby, go]
links:none on file
slides:none on file

Shows that Go 1.5 buildmode c-shared/c-archive produces C-compatible .so libraries callable from Ruby using Ruby FFI and fiddle, demonstrates a working demo gem wrapping a memberlist (used by Consul/Serf) and a build flow using Rake/mkmf hacks. Explains concrete techniques: wrapping missing C macros, avoiding the usual two-copy penalty by using a zero-copy string pointer, and using a reference-count map so Ruby-referenced objects aren’t GC’d while used from Go.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49CRD in Ruby 1.5
  3. 5:00Calling Go from Ruby
  4. 9:35Writing Go extensions
  5. 12:29C macros in Go
  6. 16:01String conversion pitfalls
  7. 21:25Ruby object references
  8. 23:37Building a Go gem
  9. 26:04Summary and demo
~/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.