From: Nit Khair Date: 2008-11-05T02:08:32+09:00 Subject: Re: FFI 0.1.1 (Foreign Function Interface) for Ruby 1.8.6/7 and 1.9 Sean O'halpin wrote: > On Tue, Nov 4, 2008 at 3:10 PM, Nit Khair wrote: >>> attach_function 'initscr', [], :int >>> attach_function 'printw', [ :string ], :int >>> attach_function 'refresh', [], :int >>> end >>> >> >> Sean, >> Going by the above, and the samples of structs on the blog, for a medium >> sized library such as ncurses, there can be some effort in getting this >> module ready. Will there be some kind of repository of such modules, so >> we are not duplicating each others effort ? > > It's a fairly tedious (and largely thankless) task to convert a lib > like ncurses. However, I'm in the mood right now so expect a github > repo in the near future :) Your point about avoiding duplication of > effort is a good one. The main problem in tackling something like this > is fatigue setting in when you've got enough for your immediate > requirement and so ending up with a half-baked conversion (I speak > from experience). I believe another pitfall is trying to rubyify the > interface. I suppose some of these conversions/wrappers would be "approved" and sort of become a standard, so we don't have a plethora of them. Then they could be placed in one repo (after some sort of review). Just a thought. Would hate to have find 5 different ncurses wrappers and have to study each to figure out which to use. -- Posted via http://www.ruby-forum.com/.