Menu

#1 Big patch for mpexpr modernization

open
None
5
2004-11-29
2004-10-07
No

I've been looking at getting unlimited-precision
into the Tcl core, and for that reason, I've been
investigating mpexpr once again. (It has a clear
advantage over things like gmp in that it's
BSD licensed and so can go in compatibly.)

The attached set of patches apply against the
released tarball of mpexpr-1.1. They bring the
extension into TEA compliance, fix a number of
bugs on 64-bit machines, and make mpexpr aware
of the Tcl_WideInt type so that it can use
the 64-bit multiplier on 32-bit machines more
effectively.

In doing so, I've also done the CONST-ification
of passed strings (except for a handful of places
where the parser casts away const-ness; that
will be a fast follow-on project).

The patches also greatly streamline the build
system. The 'win', 'unix' and 'mac' subdirectories
are all removed; the configure/make process
works on all three platforms. The code as
supplied attempts to track tclconfig so that TEA
changes will be reflected in the configuration.

Do you guys have an interest in reactivating
mpexpr? If so, and if you like what you see,
could you add me as a developer? Otherwise,
tell me, and I'll fork the code - I'm interested
in carrying this forward.

Discussion

  • Kevin B KENNY

    Kevin B KENNY - 2004-10-07

    Patch for TEA compliance and 64-bit fixes

     
  • Kevin B KENNY

    Kevin B KENNY - 2004-11-29
    • assigned_to: nobody --> vasiljevic
     
  • Aamer Akhter

    Aamer Akhter - 2004-12-21

    Logged In: YES
    user_id=736414

    looks like pkgIndex is not created:

    [20:22:13] nsite-l3vpn-1:packages/mpexpr> make install
    If you have documentation to create, place the commands to
    build the docs in the 'doc:' target. For example:
    xml2nroff sample.xml > sample.n
    xml2html sample.xml > sample.html
    /usr/bin/install -c libmpexpr1.2.so
    /local/ats/ats4.0.4/lib/mpexpr1.2/libmpexpr1.2.so
    : /local/ats/ats4.0.4/lib/mpexpr1.2/libmpexpr1.2.so
    Install pkgIndex.tcl /local/ats/ats4.0.4/lib/mpexpr1.2
    /usr/bin/install: cannot stat `pkgIndex.tcl': No such file
    or directory
    make: *** [install-lib-binaries] Error 1

     
  • Zoran Vasiljevic

    Logged In: YES
    user_id=95086

    You are in. I have unfortunately neglected the thing
    due to private reasons. I wanted to add the thread
    safety since I needed this piece of code to be ran
    inside AOLserver. Well up to now, I haven't manage
    to do that. You are welcome to join in.

     
  • Nobody/Anonymous

    In patched version of mpexpr ./configure would not succeed on debian etch amd64. It errors out with following message:
    ./configure: line 10328: syntax error near unexpected token `('
    ./configure: line 10328: ` case `(ac_space=' '; set | grep ac_space) 2>&1`

    To fix problem, make this change to ./configure line 7554. awk command is missing closing quote for the second parameter
    < system=MP-RAS-`awk '{print }' '/etc/.relid'`
    ---
    > system=MP-RAS-`awk '{print }' /etc/.relid'`

     
  • Zoran Vasiljevic

    Kevin, you are now added as project admin.
    Cheers
    Zoran

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.