[#40961] [Bug #3137] complex.rb changes exceptions of Math — Yusuke Endoh <redmine@...>

Bug #3137: complex.rb changes exceptions of Math

15 messages 2010/04/12
[#40967] Re: [Bug #3137] complex.rb changes exceptions of Math — keiju@... (石塚圭樹) 2010/04/13

けいじゅ@いしつかです.

[#41038] Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...>

こんにちは!アーロンです。

17 messages 2010/04/22
[#41039] Re: Windows と DL が使用条件の libffi — "U.Nakamura" <usa@...> 2010/04/22

こんにちは、なかむら(う)です。

[#41040] Re: Windows と DL が使用条件の libffi — "NARUSE, Yui" <naruse@...> 2010/04/22

成瀬です。

[#41059] Re: Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...> 2010/04/26

2010/4/21 NARUSE, Yui <naruse@airemix.jp>:

[#41060] Re: Windows と DL が使用条件の libffi — Yugui <yugui@...> 2010/04/26

2010/4/26 Aaron Patterson <aaron.patterson@gmail.com>:

[#41067] [Feature #3203] LazySweepGC patch — Narihiro Nakamura <redmine@...>

Feature #3203: LazySweepGC patch

15 messages 2010/04/26
[#41069] Re: [Feature #3203] LazySweepGC patch — Yusuke ENDOH <mame@...> 2010/04/27

遠藤です。

[#41104] Rails3 M17N — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

29 messages 2010/04/30
[#41111] Re: Rails3 M17N — Urabe Shyouhei <shyouhei@...> 2010/04/30

Yukihiro Matsumoto =E3=81=95=E3=82=93=E3=81=AF=E6=9B=B8=E3=81=8D=E3=81=BE=

[#41113] Re: Rails3 M17N — Yukihiro Matsumoto <matz@...> 2010/04/30

まつもと ゆきひろです

[ruby-dev:41072] Re: Windows と DL が使用条件の libffi

From: Aaron Patterson <aaron.patterson@...>
Date: 2010-04-27 04:24:10 UTC
List: ruby-dev #41072
2010/4/26 Yugui <yugui@yugui.jp>:
> 2010/4/26 Aaron Patterson <aaron.patterson@gmail.com>:
>> 皆さんの立場他に何もご意見が無ければ、私はこのパッチをruby repository
>> にコミットします。それと、必要であれば私の方で、rubyとlibffiの解析方法をwikiに追加しますのでお知らせください。
>
> Great!
> But wait a moment before committing because unak, the maintainer for
> mswin32, opposes. I regard mswin32 platform important and maintenance
> by unak is necessary for Ruby's working on it.  I can not accept any
> solution on win32 which unak oppose.
>
> He said:
>> 例えばリリースされたことがなくてsvnで取ってくるしかないものに
>> 依存させます、とか言われたら猛反対しますね。
>
> So libffi-msvc is not acceptable as a solution for dl because
> libffi-msvc is not an official release of the libffi project. (Is this
> right?)

I believe that is correct, but the patches have been merged to FFI.

> I talked with unak and some committers about the problem, and
> recommend  the following solution.
> * Imports your work as ext/dl-ffi
> * Renames ext/dl as ext/dl2
> * Writes a wrapper library ext/dl. It loads ext/dl-ffi if available,
> or loads ext/dl2.
>
> Is this possible?  I want to help if I have something to do for it.

Yes, this is possible.  I think there might be an easier way though.
I created "ext/fiddle" (FFI + DL sounds like "fiddle").  Fiddle only
wraps libffi, and uses DL::CPtr for wrapping pointers.  Then I patched
DL to optionally use Fiddle if it's available.

You can see it here:

  http://github.com/tenderlove/ruby/tree/fiddle
  http://github.com/tenderlove/ruby/tree/fiddle/ext/fiddle/
  http://github.com/tenderlove/ruby/blob/fiddle/ext/dl/lib/dl.rb

For systems with libffi available, DL will use Fiddle as the back end.
 How is that?

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

In This Thread