Re: [Ironruby-core] Ruby FFI port

2011-03-22 Thread Tomas Matousek
Another idea... what about starting from http://github.com/ffi and replacing the C extension with C# code? Not sure if it will work but it's at least worth looking at. Or perhaps you can also look at what JRuby is doing. Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-bou

Re: [Ironruby-core] Ruby FFI port

2011-03-22 Thread Tomas Matousek
It would be easier to write the core implementation as regular C# library (i.e. not IronRuby.Libraries.*) and write the public API in Ruby that would internally call to that library. The Ruby file could call load_assembly 'CoreFFI.dll' and then use the classes defined there. This way you don't

[Ironruby-core] Ruby FFI port

2011-03-22 Thread Charles Strahan
Alright, I have a hankering again to port Ruby FFI ;). One question: should the port be written in pure Ruby, or should this be a C# library in the same vein as YAML (IronRuby.Libraries.Yaml)? I was leaning towards the latter, where I would branch from IronLanguages/Main, adding a *Libraries.FFI*