3 ms·
I just wanted to say thanks for writing all of those "Write a compiler in Ruby" articles. They've been really interesting and informative. For a little while, I
by steveklabnik 17y ago
I just wanted to say thanks for writing all of those "Write a compiler in Ruby" articles. They've been really interesting and informative. For a little while, I was following along, but targeting x86_64 rather than x86 so that it didn't feel like I was just copy/pasting everything that you did...
- vidarh 17y agoThat's great... More parts will be coming - other parts of life has just been interfering :) If you ever feel like trying your hands at making any changes, it's on all on Github. At the moment I'm just focusing on getting attr_reader and friends working. Sounds simple, but since I wanted to write attr_reader and attr_writer mainly in Ruby it's a rabbit hole that required me to get basic parts of Symbol and String working, as well as define_method, fixing various method dispatch issues, fixing string interpolation and more; those changes will make up the bulk of the content of the next couple of parts I write. Once all those pieces are in place a lot of the rest of what's needed to compile a fairly decent subset of Ruby is pretty simple (though lots of gruntwork). With some luck (and enough spare time) I hope to get the compiler self-hosted by the end of the year.