Ruby Extensions in Crystal

Because the Ruby API is written in C, you can create Crystal bindings for the Ruby API and then write a Ruby gem in Crystal. Making this work reliably is not that easy, especially given that you will have to deal with garbage collection in both Crystal and Ruby. Paul Hoffer’s crystalized_ruby[147] is a work in progress toward that end. This article[148] from Fabio Akita and this example[149] may help you get started.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.60.249