I've not followed the benchmarking game much at all, but it surprises
me that implementations are allowed to use native libraries at all.

I figure that there must have been some discussion/debate around this
somewhere at some point, but a few minutes of googling yielding
nothing interesting.  Does someone have a pointer to the rationale?

Cheers,

- Chas

On Sep 18, 11:20 am, Andy Fingerhut <[email protected]> wrote:
> One more detail.  The Scala program, and I think all of the fastest programs
> for that problem, use the GNU GMP library for big integer arithmetic.
>
> If the Clojure program also used that library, it should be as fast, or
> nearly so, as any other program that uses the same algorithm and the GNU GMP
> library.
>
> I've got some code somewhere that uses the GNU GMP library from Clojure, but
> it required a new Java JNI wrapper C code layer vs. what is used by some of
> the other programs.  The maintainer of the web site preferred not to make
> such changes about 6 months back when I asked if such a submission would be
> acceptable.
>
> Andy
>
> On Sun, Sep 18, 2011 at 8:16 AM, Andy Fingerhut 
> <[email protected]>wrote:
>
>
>
>
>
>
>
> > Everyone is welcome to make faster versions if they can figure out how.
>
> > I suspect that most of the time is spent in BigInteger math in that
> > particular program.  If so, type annotation won't speed that up.
>
> > Glad to be proved wrong, though!
>
> > Andy
>
> > On Sun, Sep 18, 2011 at 12:02 AM, Vagif Verdi <[email protected]>wrote:
>
> >> Check for example this code:
>
> >>http://shootout.alioth.debian.org/u64q/program.php?test=pidigits&lang...
>
> >> It is slower than scala 8 (!!!) times.
> >> But peppering it with types can easily bring it on par with java/
> >> scala.
>
> >> Any takers ?
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Clojure" group.
> >> To post to this group, send email to [email protected]
> >> Note that posts from new members are moderated - please be patient with
> >> your first post.
> >> To unsubscribe from this group, send email to
> >> [email protected]
> >> For more options, visit this group at
> >>http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to