Best way to learn Ruby internals

Hi all,

While I love Ruby, I must admit, I only have a small amount of knowledge of
how Ruby "pickles my onion". Being someone who likes to know how things
work, I'd love to dive into Ruby's source code but before I blindly go
where many people have gone before, I was wondering what you lovely
Rubyists would recommend doing. Is Ruby similar to Python (excuse my
language) in the sense it is compiled to bytecode and an interpreter runs
it implicitly? Any videos/articles you have on Ruby's internals would be
appreciated. I have a feeling the main documentation might be the best
choice to start but videos would be preferable.



Re: Best way to learn Ruby internals

By Yuri at 01/11/2018 - 19:12

On 01/11/18 16:07, Robert O'Shea wrote:

Why did you turn to Ruby, and not, say, C++?

(Asking because Ruby, just like Python or JavaScript, can easily be a
wrong choice, and you didn't tell the purpose at all.)


Unsubscribe: <>

Re: Best way to learn Ruby internals

By Robert O'Shea at 01/11/2018 - 19:27

Ah yes, I generally hack around with Ruby, simple scripts here and there to
automate things or simply to see if I can mimic simple cli commands, like
'ls', 'grep' (not as robust but semi functional) etc. I use it for quick
prototyping also, if I have an idea I'll break out Ruby and code it up
dynamically typed before I even think of doing it statically typed.

It's really just a topic of interest really, that I want to understand
Ruby's internals, give myself some inspiration, learn a thing or two in the
process. Although really I could shift my interest to something less robust
like Lua but I'm not a fan of that language. So really my answer is
curiosity, perhaps I could also end up contributing to a flavour of Ruby in
the future.

Also it increases my C knowledge, I need to work on my C++ but I seem to
prefer C.

Re: Best way to learn Ruby internals

By leam hall at 01/11/2018 - 19:32

On Thu, Jan 11, 2018 at 7:27 PM, Robert O'Shea < ... at gmail dot com>

I've done a little C, and given that the things I'm interested in (Ruby,
Python, MongoDB, Linux kernel) are written in it, I think it's more useful
than C++. I'd probably choose Go over C++.

Of course, I'm not a professional coder so there's that...