SVN Revision 73

I updated SVN to include Peter’s numeric and Terence’s socket patches.
Please let me know if I missed any of your changes.

Changes include:

  • Many improvements to numeric classes (Bignum, Fixnum, Float, Integer,
    Precision, Numeric)
  • More functionality in the socket library
  • Removed bool to int implicit conversion
  • Parser startup improvements, some tokenizer refactoring
  • Various DLR improvements (hosting work, AST improvements, and more)
  • Improved exception formatting (getting closer to MRI)
  • John

Great stuff. Things are starting to come together. I appreciate that
lots
of work is going on behind the scenes in the DLR but it is also good to
see
bits of Ruby specific stuff getting sorted.

Just a quick note. I appreciate that there is a TODO note in the
Ruby.Compiler.Token.SetBigInteger(int sign, uint[]/!/ data) method but
there is a bit of a problem here. The method does not take into account
the
base in which the number was written. E.g.

9999987654321.to_s

=>
“394020062147424681466075733027822041608996069303164925748546377975890558078
60137311331770134300566582203266107441161”

The method currently just maps whatever digits were passed to the parser
straight into the BigInteger’s internal data structure.

Pete

From: [email protected]
[mailto:[email protected]] On Behalf Of John M.
Sent: Tuesday,22 January 22, 2008 02:32
To: [email protected]
Subject: [Ironruby-core] SVN Revision 73

I updated SVN to include Peter’s numeric and Terence’s socket patches.
Please let me know if I missed any of your changes.

Changes include:

  • Many improvements to numeric classes (Bignum, Fixnum, Float, Integer,
    Precision, Numeric)

  • More functionality in the socket library

  • Removed bool to int implicit conversion

  • Parser startup improvements, some tokenizer refactoring

  • Various DLR improvements (hosting work, AST improvements, and more)

  • Improved exception formatting (getting closer to MRI)

  • John

Yes, working on it. The current big-int parsing is a temporary hack that
I needed for tokenization testing.

Tomas

From: [email protected]
[mailto:[email protected]] On Behalf Of Peter Bacon
Darwin
Sent: Tuesday, January 22, 2008 2:56 AM
To: [email protected]
Subject: Re: [Ironruby-core] SVN Revision 73

Great stuff. Things are starting to come together. I appreciate that
lots of work is going on behind the scenes in the DLR but it is also
good to see bits of Ruby specific stuff getting sorted.
Just a quick note. I appreciate that there is a TODO note in the
Ruby.Compiler.Token.SetBigInteger(int sign, uint[]/!/ data) method but
there is a bit of a problem here. The method does not take into account
the base in which the number was written. E.g.

9999987654321.to_s
=>
“39402006214742468146607573302782204160899606930316492574854637797589055807860137311331770134300566582203266107441161”

The method currently just maps whatever digits were passed to the parser
straight into the BigInteger’s internal data structure.
Pete

From: [email protected]
[mailto:[email protected]] On Behalf Of John M.
Sent: Tuesday,22 January 22, 2008 02:32
To: [email protected]
Subject: [Ironruby-core] SVN Revision 73

I updated SVN to include Peter’s numeric and Terence’s socket patches.
Please let me know if I missed any of your changes.

Changes include:

  • Many improvements to numeric classes (Bignum, Fixnum, Float, Integer,
    Precision, Numeric)
  • More functionality in the socket library
  • Removed bool to int implicit conversion
  • Parser startup improvements, some tokenizer refactoring
  • Various DLR improvements (hosting work, AST improvements, and more)
  • Improved exception formatting (getting closer to MRI)
  • John