Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3 proper numerical tower

None
wont-fix
nobody
None
3
2013-03-25
2008-12-30
Michael Drueing
No

Any plans to support the full R5RS numerical tower in TinyScheme? Or at least numbers with arbitrary length? Fractions could wait, but being able to do (* 123456789 123456789) would be a good thing :)

If there are no plans I might go ahead and try it myself. Things needed: a new "num" datatype (array/string based, probably), add, sub, mul, div, rem, mod, ... for this datatype, and the ggt function and another new datatype for fractions (consisting of 2 num's). Also: exact->inexact, inexact->exact, etc.
Not very difficult, only a lot of stuff to do.

Discussion

  • Kevin Cozens
    Kevin Cozens
    2011-09-05

    • priority: 5 --> 3
     
  • Kevin Cozens
    Kevin Cozens
    2011-09-05

    As it has been almost three years since this request was filed it would be safe to say that adding support for bignums and fractions is not planned. You can go ahead and work on adding support for either, or both, of these features if you are still interested in doing so. I would suggest you make each of these features optional (via #if def).

    As nice as it might be to have these features, it would be getting away from TinyScheme being "a lightweight Scheme interpreter that implements as large a subset of R5RS as was possible without getting very large and complicated".

     
  • Kevin Cozens
    Kevin Cozens
    2013-03-25

    • status: open --> wont-fix
    • milestone: -->
     
  • Kevin Cozens
    Kevin Cozens
    2013-03-25

    I don't see support for all the number systems referenced in the R5RS as something that is likely to happen, or even desired, for TinyScheme. Closing as wont-fix.