From the mono-devel list:

On Thu, 2010-08-19 at 10:35 -0700, Ryan Riley wrote:
> Has anyone created or investigated Mono support for libffi?

Once upon a time, Mono used libffi directly.  It was removed in r724
(git SHA1 ID d0cd6059c1b2edad12eb67cb8e64b3cd187be1b1) on 2001-09-05
(and earlier).  Unfortunately, the commit message is useless, but iirc
the reason for removing it was because it was significantly slower than
what Mono could do itself.

> I'd like to contribute this to help support Ruby-FFI for IronRuby.

I imagine IronRuby doesn't require it's own FFI, it would just use the
usual .NET FFI of DllImport, no?

As for supporting Ruby-FFI, perhaps you can extend the existing Mono FFI
support to support Ruby?  I don't know what would be involved...

- Jon


Sent from my iPhone

On Aug 20, 2010, at 1:49 PM, Charles Strahan <charles.c.stra...@gmail.com> 
wrote:

> Ryan, 
> 
> I'm right there with you, only I looked at JFFI for inspiration (didn't know 
> mono had anything - could you share more about that?). In fact, In my 
> infinite laziness, I posted a job for a couple hundred bucks on Rent-A-Coder, 
> hoping someone could essentially port JFFI to C#, so I could focus on writing 
> the actually IronRuby library... but nothing came of that.
> 
> I'm tempted to suck it up and start coding this myself. Would you be 
> interested in working together?  I figured I'd take the approach of 
> essentially writing "NFFI", and then write an IronRuby lib around that.
> 
> -Charles
> 
> 
> On Fri, Aug 20, 2010 at 2:33 PM, Ryan Riley <ryan.ri...@panesofglass.org> 
> wrote:
> I know that we've discussed this in the past, but I'm interested in doing it 
> for two reasons:
> 1. We use mono with a bridge to ObjectiveC and Cocoa, and we'd like to 
> investigate libffi via mono as a potential replacement for our current bridge.
> 2. I'm interested just for the sake of learning more about FFI.
> 
> Mono appears to have had a libffi implementation that was later removed, so I 
> think I have a place to start. However, I'm not sure that's the right 
> starting point. Does anyone have a suggestion for how to get started? I've 
> been taking a look at libffi and DllImport, but I'm not sure if those are the 
> right directions, something else, or what.
> 
> Thanks,
> 
> Ryan Riley
> 
> Email: ryan.ri...@panesofglass.org
> LinkedIn: http://www.linkedin.com/in/ryanriley
> Twitter: @panesofglass
> Blog: http://wizardsofsmart.net/
> Website: http://panesofglass.org/
> 
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
> 
> 
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to