[#28561] Ruby::DL vs Ruby::FFI — Aston <blackapache512-ticket@...>

Ruby.DL and FFI libraries are great for programmers like me who are not internet programmers, but are more interested in scientific and number processing etc.

11 messages 2010/03/08

[#28686] trunk (26947) build fail with msys/mingw/vista — Jon <jon.forums@...>

I get the following build failure when msysgit's "c:\git\cmd" dir is on PATH.

8 messages 2010/03/16

[#28687] [Bug #2973] rb_bug - Segmentation fault - error.c:213 — rudolf gavlas <redmine@...>

Bug #2973: rb_bug - Segmentation fault - error.c:213

10 messages 2010/03/16

[#28735] [Bug #2982] Ruby tries to link with both openssl and readline — Lucas Nussbaum <redmine@...>

Bug #2982: Ruby tries to link with both openssl and readline

16 messages 2010/03/18

[#28736] [Bug #2983] Ruby (GPLv2 only) tries to link to with readline (now GPLv3) — Lucas Nussbaum <redmine@...>

Bug #2983: Ruby (GPLv2 only) tries to link to with readline (now GPLv3)

10 messages 2010/03/18

[#28907] [Bug #3000] Open SSL Segfaults — Christian Höltje <redmine@...>

Bug #3000: Open SSL Segfaults

19 messages 2010/03/23

[#28924] [Bug #3005] Ruby core dump - [BUG] rb_sys_fail() - errno == 0 — Sebastian YEPES <redmine@...>

Bug #3005: Ruby core dump - [BUG] rb_sys_fail() - errno == 0

10 messages 2010/03/24

[#28954] [Feature #3010] slow require gems in ruby 1.9.1 — Miao Jiang <redmine@...>

Feature #3010: slow require gems in ruby 1.9.1

15 messages 2010/03/24

[#29179] [Bug #3071] Convert rubygems and rdoc to use psych — Aaron Patterson <redmine@...>

Bug #3071: Convert rubygems and rdoc to use psych

10 messages 2010/03/31

[ruby-core:28595] Re: Ruby::DL vs Ruby::FFI

From: Aaron Patterson <aaron@...>
Date: 2010-03-10 16:46:32 UTC
List: ruby-core #28595
On Wed, Mar 10, 2010 at 11:43:20PM +0900, Charles Oliver Nutter wrote:
> On Mon, Mar 8, 2010 at 9:56 AM, Aston <blackapache512-ticket@yahoo.com> wrote:
> > recently few days back I saw some svn msgs suggesting that DL's dependency
> > on libffi was removed, since libffi won't build on windoz (again!). so my
> > question is will DL in future be based on libffi ? why just not use FFI. Its
> > API and idea is very good and ruby like, against DL's idea of giving in C
> > snippets to be interpreted by DL ?
> 
> Why not build DL atop FFI, and get FFI into Ruby 1.9.2?

DL is not a subset of FFI.

> JRuby already has a partial start on a DL that just uses FFI:
> 
> http://github.com/jruby/jruby/blob/master/lib/ruby/1.8/dl.rb
> 
> and
> 
> http://github.com/jruby/jruby/blob/master/lib/ruby/1.8/dl
> 
> A DL that uses FFI would work without modification or build hassles on
> any impl+platform that supports FFI.

My fork of Ruby already contains DL built on top of FFI.  Unfortunately
my patch was rolled out because it doesn't work on Windows with MSVC.
We're working on that.  :-)

You can view my changes here:

  http://github.com/tenderlove/ruby/commits/ffi

-- 
Aaron Patterson
http://tenderlovemaking.com/

In This Thread