How to Write a Ruby C Extension (Step-by-Step)
Writing a C extension allows you to interact with Ruby from C. You may want to this if there is a particular important method you would like to optimize with the speed of C, or if you would like to create an interface between a C library and Ruby. An alternative would be to use … Read more