Live data from Hacker News

Ruby Under a Microscope: Learning Ruby Internals through Experiment

patshaughnessy.net

11–20 of 40 posts

Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment

#11

Thanks for posting this :) ...I'm happy to answer any questions anyone has.

You should move the purchase button higher on the page or put multiple buttons. My immediate assumption was it was not ready yet until I scrooooled way down to find the purchase link.

Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment

#12
post #9

Earlier 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.

Yea I've thought about that. Let me see what I can do... :) thanks.

Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment

#14
post #5

It'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.

Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment

#15
post #14
post #5

It'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.

Just out of curiosity:

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

#17

why 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!

Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment

#18
post #3

Thanks 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 !

The code for MRI is.. idiomatic, but actually pretty easy to read. I last did C full time in the 90s and so am mostly just a 'reader' now but it's not hard to follow, although some of the reasoning behind doing things a certain way in MRI is unfathomable.. ;-)

Re: Ruby Under a Microscope: Learning Ruby Internals through Experiment

#20

why 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!

Since kindle fire, the books can be posted in colors :)
Post reply on HN