Wrapping C libraries with Ruby using SWIG

At Gusto, most of our application is written in Ruby, but our tax calculations are done in a C library. Creating Ruby extensions using SWIG (Simplified Wrapper and Interface Generator) has saved us countless hours by automatically generating glue code between Ruby and C. SWIG can be used to generate…

Read this article