Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #57558

Re: string-stack.4th

From "David N. Williams" <williams@umich.edu>
Newsgroups comp.lang.forth
Subject Re: string-stack.4th
Date 2017-04-18 11:27 -0500
Organization University of Michigan
Message-ID <od5eiv$tss$1@dont-email.me> (permalink)
References (6 earlier) <3db60aeb-6eb3-4445-bef2-7fd241c8b89c@googlegroups.com> <87tw5no388.fsf@nightsong.com> <od3our$6pv$1@dont-email.me> <a18b7ba6-81db-4a71-8800-7df09327e292@googlegroups.com> <87r30qfoai.fsf@nightsong.com>

Show all headers | View raw


On 4/17/17 9:21 PM, Paul Rubin wrote:
 > lehs <skydda.barnen@gmail.com> writes:
 >> I have loaded your gmpfr-0.9.0-file and will examine it. I knew there
 >> where that fast c-code,

Unfortunately I am no longer able to run it with the gforth installed on
my system.  Sometime in the next few weeks I'll try to update the GMP
and MPFR libraries and C-call interfaces.  Presumably the version that
Marcel built into iForth works fine.  I haven't been keeping up for
quite awhile now.

 > GMP is extremely complicated and impressive and includes a lot of
 > assembly code, not just C.  It would be a huge amount of work to
 > replicate all the stuff that it does.  For example, it uses FFT-based
 > multiplication when the numbers involved are large enough.  It also
 > has a highly optimized version of modexp for use in crypto.
 >
 >> but I didn't know there was a stack based big integer for ANS Forth.

Forth-gmpfr is an elaborate package, with garbage-collected stacks for
multiple precision integers, rationals, floats, and reliable floats.  My
attitude was that GMP and MPFR, as deep, deep implementations of
scientifically and mathematically significant problem domains, justify a
comprehensive treatment in interactive Forth.  Of course one doesn't
want to be more elaborate than necessary, and some simplification of the
package is surely possible.  But I did put quite a bit of effort into
keeping as much elaboration as possible under the hood, as far as the
user is concerned.

Interfacing with C libraries is itself a serious complication,
especially since we don't have an agreed upon, stable interface that
works with all the major Forths and is respected by updates to those
Forths (AFAIK).  Aside from the interface, one has to deal with updates
to the GMP and MPFR libraries.  Maybe mostly ignoring them is feasible.

 > That does sound helpful, that there's a wrapper ready to use.

It was at one point fairly ready to use, but it will take some work to
make that true now.

I certainly don't want to discourage the development of all-in-Forth
bignums.  Forth-gmpfr could be used for testing them.  I assume people
are aware of Len Zettel's version in the Forth Scientific Library:

   https://www.taygeta.com/fsl/library/big.fth

-- David W.

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-16 08:23 -0700
  Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-16 08:33 -0700
    Re: string-stack.4th "Rudy Velthuis" <newsgroups@rvelthuis.de> - 2017-04-16 22:34 +0000
      Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-16 17:11 -0700
        Re: string-stack.4th "Rudy Velthuis" <newsgroups@rvelthuis.de> - 2017-04-17 23:22 +0000
          Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-17 18:14 -0700
            Re: string-stack.4th hughaguilar96@gmail.com - 2017-04-17 18:44 -0700
            Re: string-stack.4th "Rudy Velthuis" <newsgroups@rvelthuis.de> - 2017-04-19 23:09 +0000
  Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-16 09:02 -0700
    Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-16 15:29 -0700
    Re: string-stack.4th hughaguilar96@gmail.com - 2017-04-16 19:43 -0700
      Re: string-stack.4th hughaguilar96@gmail.com - 2017-04-16 22:42 -0700
        Re: string-stack.4th hughaguilar96@gmail.com - 2017-04-16 23:09 -0700
          Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-16 23:34 -0700
            Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-17 00:15 -0700
            Re: string-stack.4th Paul Rubin <no.email@nospam.invalid> - 2017-04-17 01:19 -0700
              Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-17 02:06 -0700
                Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-17 02:50 -0700
                Re: string-stack.4th Paul Rubin <no.email@nospam.invalid> - 2017-04-17 13:14 -0700
                Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-17 15:58 -0700
                Re: string-stack.4th Paul Rubin <no.email@nospam.invalid> - 2017-04-17 16:57 -0700
                Re: string-stack.4th "Elizabeth D. Rather" <erather@forth.com> - 2017-04-17 15:07 -1000
                Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-05-17 05:32 -0700
                Re: string-stack.4th hughaguilar96@gmail.com - 2017-04-17 19:49 -0700
              Re: string-stack.4th "David N. Williams" <williams@umich.edu> - 2017-04-17 20:11 -0500
                Re: string-stack.4th Paul Rubin <no.email@nospam.invalid> - 2017-04-17 18:15 -0700
                Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-17 19:13 -0700
                Re: string-stack.4th Paul Rubin <no.email@nospam.invalid> - 2017-04-17 19:21 -0700
                Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-18 01:25 -0700
                Re: string-stack.4th Paul Rubin <no.email@nospam.invalid> - 2017-04-18 19:27 -0700
                Re: string-stack.4th "David N. Williams" <williams@umich.edu> - 2017-04-18 11:27 -0500
                Re: string-stack.4th mhx@iae.nl - 2017-04-18 11:53 -0700
                Re: string-stack.4th albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-04-20 20:48 +0200
                Re: string-stack.4th mhx@iae.nl - 2017-04-20 14:58 -0700
          Re: string-stack.4th lehs <skydda.barnen@gmail.com> - 2017-04-17 00:46 -0700
  Re: string-stack.4th hughaguilar96@gmail.com - 2017-04-16 19:31 -0700

csiph-web