Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: GMP integration
Scott wrote:
> On Mar 27, 8:48 pm, Brad Lucier <luc...@math.purdue.edu> wrote: 

> I'm not saying you can't get it right.  All I claim is that a naive
> implementation by someone using an FFT to get fast convolution while
> ignoring the details that FFTs have noise from floating point error
> can get you an algorithm that is wrong occasionally.

I have faith in Lucier. He is everything but naive when it
comes to floating points.

"You're an evil man."
Linus Thorvalds on Lucier

The comment followed
http://gcc.gnu.org/ml/gcc-patches/2001-03/msg00463.html
which indeed is evil.

--
Jens Axel Søgaard

Report this thread to moderator Post Follow-up to this message
Old Post
Jens Axel Soegaard
03-29-08 12:29 AM


Re: GMP integration
Brad Lucier skrev:
> On Mar 27, 5:26 pm, Scott <xsco...@gmail.com> wrote:
> 
>
> Error bounds that are good enough to multiply half-billion bit numbers
> using floating-point fft were given by Colin Percival around 2002.
> Gambit uses FFT multiplication with floating-point arithmetic, written
> in Scheme.  For multiplication, division, and square roots of numbers
> of about a million bits it's about half as fast as GMP, which is
> written in C and assembler.

Impressive!

--
Jens Axel Søgaard

Report this thread to moderator Post Follow-up to this message
Old Post
Jens Axel Soegaard
03-29-08 12:29 AM


Re: GMP integration
On Mar 28, 1:58 pm, Jens Axel Soegaard <inva...@soegaard.net> wrote:
>
> I have faith in Lucier. He is everything but naive when it
> comes to floating points.
>

Yup, looks like I was teaching Gramma how to suck eggs on that
one...  :-)


Report this thread to moderator Post Follow-up to this message
Old Post
Scott
03-29-08 12:29 AM


Re: GMP integration
Jens Axel Soegaard wrote:
> If the 1998 note still is correct, then Larceny has its own
> bignum implementation.
>
> http://www.ccs.neu.edu/home/lth/lar...arithmetic.html

Right.  Larceny does not use GMP.

Reliance on GMP would create portability problems, especially
for Common Larceny.  There wouldn't be anything wrong with
changing native or Petit Larceny so they could use GMP on
machines for which GMP has been installed, but I spent
a couple of days looking into that and found that Larceny's
bignums have other performance problems that would have to
be fixed first.  Once they're fixed, it looks like an
implementation of the Karatsuba algorithm in Scheme (which
I've already prototyped) would probably perform well enough
for most applications.  We'd like to continue to distribute
ready-to-run binaries that don't depend on GMP, even if we
develop a version that can use GMP.

Will

Report this thread to moderator Post Follow-up to this message
Old Post
William D Clinger
04-01-08 01:21 PM


Re: GMP integration
William D Clinger skrev:
> Jens Axel Soegaard wrote: 
>
> Right.  Larceny does not use GMP.
>
> Reliance on GMP would create portability problems, especially
> for Common Larceny.  There wouldn't be anything wrong with
> changing native or Petit Larceny so they could use GMP on
> machines for which GMP has been installed, but I spent
> a couple of days looking into that and found that Larceny's
> bignums have other performance problems that would have to
> be fixed first.  Once they're fixed, it looks like an
> implementation of the Karatsuba algorithm in Scheme (which
> I've already prototyped) would probably perform well enough
> for most applications.  We'd like to continue to distribute
> ready-to-run binaries that don't depend on GMP, even if we
> develop a version that can use GMP.

That makes a lot of sense. Thanks for the explanation.

--
Jens Axel Søgaard

Report this thread to moderator Post Follow-up to this message
Old Post
Jens Axel Soegaard
04-02-08 12:44 AM


Re: GMP integration
William D Clinger wrote:

> We'd like to continue to distribute
> ready-to-run binaries that don't depend on GMP, even if we
> develop a version that can use GMP.

Wasn't there like a -static something flag for gcc that kind of
intended to solve that problem?  (I haven't used it myself)

Report this thread to moderator Post Follow-up to this message
Old Post
Abdulaziz Ghuloum
04-02-08 12:44 AM


Re: GMP integration
Abdulaziz Ghuloum wrote:
> Wasn't there like a -static something flag for gcc that kind of
> intended to solve that problem?  (I haven't used it myself)

It's more of a licensing issue than a technical issue.
Some of Larceny's binary distributions are unencumbered
by LGPL, and that matters to some users.

Will

Report this thread to moderator Post Follow-up to this message
Old Post
William D Clinger
04-03-08 12:56 AM


Re: GMP integration
Hi,

William D Clinger <cesura17@yahoo.com> writes:

> It's more of a licensing issue than a technical issue.
> Some of Larceny's binary distributions are unencumbered
> by LGPL, and that matters to some users.

What do you mean by "unencumbered by LGPL"?  LGPL is *not* copyleft.

Thanks,
Ludovic.

Report this thread to moderator Post Follow-up to this message
Old Post
Ludovic Courtès
04-03-08 12:56 AM


Re: GMP integration
Ludovic Court=E8s wrote:
> What do you mean by "unencumbered by LGPL"?

Read http://www.gnu.org/licenses/lgpl.html

> LGPL is *not* copyleft.

Understood.  No part of Larceny is encumbered by GPL.
Only one part is even encumbered by LGPL.  Two of the
binary distributions are encumbered by LGPL.  The
others aren't.  If this matters to you, which seems
unlikely considering your unfamiliarity with LGPL,
then you should read the COPYRIGHT file.

Will

Report this thread to moderator Post Follow-up to this message
Old Post
William D Clinger
04-03-08 12:56 AM


Re: GMP integration
Ludovic Courtès wrote:

> William D Clinger <cesura17@yahoo.com> writes:
> 
>
> What do you mean by "unencumbered by LGPL"?  LGPL is *not* copyleft.

You don't have to be encumbered by copyleft.  My brain can be
enough encumbrance at times.  :-)

Anyways, in a previous message, Will Clinger stated that:

"Petit Larceny is not encumbered by GPL
or LGPL or BSD or apache licenses."

Given the number of licenses and people in the COPYRIGHT file
that comes with the larceny distribution (501 lines), it makes
me wonder what the implications of these licenses are.  But as
per Will's comments, I'm sure had thought it all out.

Aziz,,,

Report this thread to moderator Post Follow-up to this message
Old Post
Abdulaziz Ghuloum
04-03-08 12:56 AM


Sponsored Links




Last Thread Next Thread Next
Pages (3): « 1 [2] 3 »
Search this forum -> 
Post New Thread

Scheme archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:33 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.