Hey folks, I am interested in learning more about Ruby's internals and it's runtime, topics such as: garbage collection, concurrency, memory management ... etc. What would be a good place to read on these before jumping right into the C code? Thanks.
I had a look around last time I dived into Ruby internals, and there's really not a lot around. <i>But</i> the Ruby source is well structured and well commented, I'd recommend just piling in to it, when you get stuck search on the text of the comments or ask on SO etc.
In addition to the Ruby under a Microscope (linked elsewhere), a lot of talks from Aaron Patterson (Tenderlove) are enlightening in this regard. I've learned a lot from them, and they also provided the inspiration to keep digging. Some highlights:<p>Memory:<p>- <a href="https://www.youtube.com/watch?v=ZfgxvNUfQdU&t=3s&ab_channel=Confreaks">https://www.youtube.com/watch?v=ZfgxvNUfQdU&t=3s&ab_channel=...</a><p>- <a href="https://www.youtube.com/watch?v=1F3gXYhQsAY&ab_channel=Confreaks">https://www.youtube.com/watch?v=1F3gXYhQsAY&ab_channel=Confr...</a><p>JIT and the Ruby VM:<p>- <a href="https://www.youtube.com/watch?v=FCjwSOlHqbY&ab_channel=hexdevs">https://www.youtube.com/watch?v=FCjwSOlHqbY&ab_channel=hexde...</a><p>- <a href="https://www.youtube.com/watch?v=5QgQicKHmeU&ab_channel=RubyCentral">https://www.youtube.com/watch?v=5QgQicKHmeU&ab_channel=RubyC...</a><p>And loads of others.
Probably this book <a href="https://www.amazon.com/Ruby-Under-Microscope-Illustrated-Internals-ebook/dp/B00GK5P6L2" rel="nofollow">https://www.amazon.com/Ruby-Under-Microscope-Illustrated-Int...</a> will be sufficient for you.