Ruby is a flexible language that allows us to write expressive and maintainable code. However, sometimes it could be necessary to work with a low-level language, looking for better performance. In this talk, I’m going to show you how to use Ruby to create an interface for compiled languages like C.
In this talk I’m going to talk about how ruby can work jointly with languages like C, creating a simple communication interface that allows us to use all the benefits of the low-level languages in our favorite high-level language.
Furthermore, I will present the alternatives that ruby provides to communicate our application with low-level libraries, and we will explore the pros and cons of these approaches.
Finally, we will analyze a practical case about how to create a ruby extension using ruby-ffi.
This talk is aimed at people interested in performance issues as well as interested in including libraries made in another language within their project without the need to migrate outside of Ruby.
The talk is designed for an intermediate-level audience, although the fundamental concepts are explained along with it, so a beginner could find it interesting