I don't know anything about Ruby interfaces to native code, but you might try emulating the Python interfaces that Myers, Tschechow, Brian and I wrote -- the ones in the zfec package. Those ones are handwritten wrappers using the CPython API, not using SWIG or any of the dozen other interface-helper tools. Regards, Zooko