URL parser ruby C extension binding with C library re2c lexer
This is step-by-step description how to create Ruby C extension using static library. Creating Ruby extensions is not a complicated task. There are plenty of tutorials and articles. Also Ruby API is clean and well described. For me, an interesting task was to create a Ruby project using external library included in the project within git repository. Lets imaging we want to create Ruby library for parsing text. Lets say, URL. Of course, there is standard Ruby library (URI), and it is ruby code. But if we want something faster, it is good idea to use C extension.