~/talk

Road to Go gem

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby, go]
slides:none on file

Library called Go gem wrapper generates native Ruby extensions by auto-producing roughly 1,100 bindings from CRuby headers into Go, using RubyHeaderParser and RubyHeaderToGo to emit versioned Go sources per Ruby minor release (currently supports Ruby 3.3 and 3.4). It patches Bundler with a createGoMakefile, handles C/Go pointer and string safety by explicit free to avoid segv, benchmarks show goroutines ≈30x faster than Ruby threads, but needs glibc and Windows is untested.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:13What is Go gem wrapper
  3. 4:04Creating Go gem with patches
  4. 5:08Implementing Ruby methods in Go
  5. 6:09Go gem wrapper architecture
  6. 8:30Compatibility challenges C and Go
  7. 10:36Automating bindings with tools
  8. 13:17Parsing Ruby header files
  9. 14:37Handling C types in Go
  10. 17:17Pointer handling in bindings
  11. 18:57Managing Ruby version differences
  12. 19:37Go build constraints explained
  13. 20:57Package-go-dev support issues
  14. 21:57Solving build tag problems
  15. 22:37Transferring Ruby references to Go
  16. 23:37Testing Go native extensions
  17. 24:57Go linter integration
  18. 25:37Patching Bundler for Go gem
  19. 26:37Go gem advantages goroutines
  20. 27:57Disadvantages of Go gem
  21. 29:17Go gem limitations and issues
  22. 29:57Example gem HTTP parallel requests
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.