A portal between Ruby and Go (using FFI) | Dario Castañé
Thinking about migrating some huge REST APIs from Ruby to Go, I researched how to replace the Ruby code progressively with Go code.I ended up with a possible FFI-based prototype. The solution is to have the Ruby code load a Go library and wrap the Go functions in Ruby classes and methods.
A portal between Ruby and Go (using FFI) | Dario Castañé #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/a-portal-between-ruby-and-go-using-ffi-dario-castane