My Little C Extension: Lego Robots are Magic
summary
Shows how to create a Ruby C extension to control Lego Mindstorms robots, covering basic C-extension building and exposing robot functionality through a Ruby DSL for teaching kids to drive the robots. Demonstrates inspecting and modifying Ruby internals via C to enable the robot control features.
AI-written summary · about
chapters (16)
- 0:00Start
- 0:19Welcome to the Fringe Ruby track.
- 3:39Programming
- 6:24Distraction ROI
- 14:131. Create a gem
- 14:28Lay filesystem groundwork
- 15:21Specify Ruby API
- 16:04Write first wrapper
- 17:55Object-oriented C
- 18:114. Build gem & experiment
- 19:39Of course!
- 22:26NAMESPACE ALL THE THINGS!
- 22:49Prefix C method helpers for easy identification
- 23:07Putting it together
- 26:03C Ext Cheat Sheets
- 26:52Motors spin!








