Thanks for posting this :) ...I'm happy to answer any questions anyone has.
Ruby Under a Microscope: Learning Ruby Internals through Experiment
11–20 of 40 posts
Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment
#12Earlier quoted context omitted.
Hey thanks for asking - and yes, in the preface to the book I do explain how I figure this stuff out. But basically I: - study the C code for a long time - step through it in GDB a lot - add printf statements and recompile it to print out debug/trace info - actually change it to see what would happen if things were written differently. A lot of hard work! I do the hard work so you don't have to :)
Your process is something I'd like an ebook or screencast about. Perhaps others would find it interesting as well.
Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment
#13Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment
#14It's just raining amazing Ruby books lately. Last week there was Working With TCP Sockets and now this. I'm having trouble finding time for them all :).
I'm at a point in my Ruby career where I've begun peeking under all the abstractions I use after hitting performance bottlenecks. Performance has even led me to all sorts of new tools like using a SAX XML parser (using the Ox gem) instead of trying to walk the XML DOM in memory with Nokogiri.
Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment
#15It's just raining amazing Ruby books lately. Last week there was Working With TCP Sockets and now this. I'm having trouble finding time for them all :).
Cool, I just bought Ruby Under a Microscope and then looked up http://workingwithtcpsockets.com/ to buy that book, too. I'm at a point in my Ruby career where I've begun peeking under all the abstractions I use after hitting performance bottlenecks. Performance has even led me to all sorts of new tools like using a SAX XML parser (using the Ox gem) instead of trying to walk the XML DOM in memory with Nokogiri.
Nokogiri has SAX capabilities as well (http://nokogiri.org/Nokogiri/XML/SAX/Document.html). Any reason not to use them, especially as Nokogiri also has native JRuby support?
Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment
#16Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment
#17why not make available on Amazon as kindle version? I always think twice before share my card info on random websites.
Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment
#18Thanks for posting this :) ...I'm happy to answer any questions anyone has.
Hey pat, how do you understand the internal code so well ? I read your free chapter on Ruby's Hash table and I loved every bit of it. It would be great if you can share the process you go through when you read the source code, so maybe I can apply it in the future. By the way, congrats for the release !
Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment
#19"Ruby Under a Microscope" I was expecting some beautiful images ... nevermind, my bad
Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment
#20why not make available on Amazon as kindle version? I always think twice before share my card info on random websites.
I'd usually agree with a comment like this but in this case, it has so many (useful) color diagrams that while it wouldn't be impossible to put on the Kindle, I don't think you'd get an amazing experience. Could be wrong though!