From: ptkwt@... (Phil Tomson) Date: 2004-11-16T08:18:19+09:00 Subject: Re: ruby extension best practices In article <270bd0c404111421035a5d83e0@mail.gmail.com>, leon breedt wrote: >hi, > >i am about to create an extension for a third party API (API is pretty >consistent), was wondering what the best practices are. > >are there tools for generating the glue for methods on classes i >create to wrap the various abstractions? > >is there something like Pyrex for Ruby? (google didn't really come up >with anything conclusive). > How about RubyInline? http://rubyforge.org/projects/rubyinline/ >what is the most "modern" way of creating extensions without making >too much work for myself such that it is difficult to maintain? > >when is it a good idea to use Ruby/DL and when not? If your 3rd party shared library is written in C and not C++, Ruby/DL might be the way to go since, as you say the library is well documented. Phil