From: Eleanor McHugh Date: 2009-11-18T20:44:20+09:00 Subject: Re: How to using golang for write a xxx.so for ruby? On 18 Nov 2009, at 02:50, Haoqi Haoqi wrote: > you may see http://golang.org > I want to using golang create a shared object thant can call from > ruby,Is it possiable? First write your shared library in go, then load it into your ruby program using either ruby/dl (part of the MRI standard library) or ruby-ffi (available as a gem and supported under both MRI and JRuby). You will also have to figure out how go mangles function names to be able to call into the library and there may well be runtime aspects of the go language which are incompatible with current ruby implementations. Happy hacking :) Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason