~/talk

Building C Extensions in Ruby

Talkat RubyConf AU 2014 · 2014-02-19..02-21· [ruby]
slides:none on file

Builds a working Spyglass (OpenCV binding) for Ruby and shows it runs real‑time image code with only the Ruby object wrapper as overhead, details using rake-compiler, ext/ layout and mkmf, and why mkmf often becomes a nuisance. Covers concrete gotchas: memory management (provide mark and free, 99.99% cases avoid complex schemes), testing and gdb attach for debugging, releasing the GVL for concurrency, and API choices like returning self and providing bang methods.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50Aviation
  3. 2:22Ruby is not slow
  4. 3:25C is not hard
  5. 3:45You dont need the whole thing
  6. 3:57Firstclass citizens
  7. 4:28Nokogiri
  8. 4:38Ruby
  9. 4:59Bundle Gem
  10. 5:27Ext Folder
  11. 6:36boilerplate
  12. 6:55init
  13. 7:30class
  14. 8:37see variables
  15. 9:05say hi
  16. 9:51checktype
  17. 10:12enforce classes
  18. 10:34method parameters
  19. 10:56function signature
  20. 11:44string
  21. 12:07array
  22. 12:23hashes
  23. 12:44blocks
  24. 13:20symbols
  25. 14:05Define your API
  26. 14:41Return self
  27. 15:21Bang methods
  28. 15:54Questions
  29. 19:11Garbage Collection
~/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.