At Red Hat for a Raleigh.rb user's group meeting. Interesting talk by Sean Johnson on native C-extensions for Ruby.
Guus is at Red Hat for a Raleigh.rb user's group meeting. Interesting talk by Sean Johnson on native C-extensions for Ruby.
»
- Log in to post comments
Comments
Re: At Red Hat for a Raleigh.rb user's group meeting. ...
This was an interesting tutorial on how to write C extension for Ruby. Nicely done, with good code examples.
The message was pretty clear -- it is possible to do it, and it can work well, but premature optimization is the mother of all evil ;)
1. stop, isolate (require 'benchmark') & think
2. don't do it
3. keyboard -> whiteboard
4. do it "right" (Google, Knuth)
5. optimize: know how to profile