Modifications

From $1

I'm going to collect some notes here on this page to talk about things that we need to change in the Ruby standard libraries and/or 3rd party libraries to make it compatible with IronRuby.

tmpdir.rb

This file contains references to the Win32API library. Since we don't support this library under IronRuby, we need to introduce a new code path. I'm changing it here, and will likely add the changed file to the IronRuby libs directory to put it ahead of where the existing tmpdir.rb shows up on the libraries search path.

resolv.rb

Requires Win32, we'll need to reimplement this library.

Readline

C-library. We'll need to reimplement or decide not to support.

RubyGems and REXML

Need to fix implementation of hash methods in REXML and RubyGems. The current implementation is incorrect since it sums hash codes of subcomponents potentially overflowing to Bignum. This issue is mainly exposed when calculating hash of an array. Array#hash calculates its hash code by calling hash on each item and converting the result of the hash method into Fixnum. So if the result if the hash method is a Bignum an error is reported. The patch to be submitted is at http://gist.github.com/160407. A Rubygems bug and a REXML bug have been opened to track the issue.

Tags:
 
Images (0)
 
Comments (1)
Viewing 1 of 1 comments: view all
I got a response to the RubyGems bug request: >Comment By: Eric Hodel (drbrain) Date: 2009-08-10 15:02 Message: It's not too large, see rb_hash(). IronRuby should be casting the value down to something it can accept.
Posted 01:22, 11 Aug 2009
Viewing 1 of 1 comments: view all
You must login to post a comment.

 
SourceForge.net