Hi Everyone,
I started on a series to learn by reversing a simple native C Ruby gem. Part 6 is now published! It looks at how to benchmark the native gem.
Link to Part 6: Ruby Learning by Reversing: Native Gems, Part 6
The whole series is available at: Ruby Learning by Reversing: Series 1 - Native Gems
* Part 1 - This covers the background to the gem we explore
Link: Ruby Learning by Reversing: Native Gems, Part 1
* Part 2 - This goes into the details of how ruby loads the native gem and extension (and includes a nice sequence diagram of how all the bits happen together)
Link: Ruby Learning by Reversing: Native Gems, Part 2
* Part 3 - How do we ensure that we have everything and that it actually gets built at installation?
Link: Ruby Learning by Reversing: Native Gems, Part 3
* Part 4 - Understanding the development Makefil
Link: Ruby Learning by Reversing: Native Gems, Part 4
* Part 5 - The Ruby C/API
Link: Ruby Learning by Reversing: Native Gems, Part 5
There are more parts planned, including documenting the code, running the specs and enhancing the gem.
Comments on the posts or the plans welcome. I'm @onghu on Twitter or @onghu@ruby.social on Mastodon if you're on either.
Best regards,
Mohit.