I have been building monitoring software for a municipal utility company. The software must connect to a proprietary database through a dll on windows XP, yuck. In order to avoid all the pain I reached for FFI and have been developing on the mac. I'll show you some basic FFI work and how I incorporated it in the system. I will also show you my attempts at avoiding the windows blues all while taking a C API and converting it to Ruby objects.