only 3 benchmarks game tasks still have no Clojure programs

47 views
Skip to first unread message

Isaac Gouy

unread,
Jan 9, 2011, 6:31:34 PM1/9/11
to Clojure

Stuart Halloway

unread,
Jan 10, 2011, 9:27:27 AM1/10/11
to clo...@googlegroups.com
I notice that the fastest Java version of pidigits uses a native library named "jpargmp". Is there documentation somewhere that spells out how and when you are allowed to use native libraries and still claim to be written in language X?

Stu

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

Isaac Gouy

unread,
Jan 10, 2011, 1:37:21 PM1/10/11
to Clojure


On Jan 10, 6:27 am, Stuart Halloway <stuart.hallo...@gmail.com> wrote:
> I notice that the fastest Java version of pidigits uses a native library named "jpargmp". Is there documentation somewhere that spells out how and when you are allowed to use native libraries and still claim to be written in language X?


If the standard language X implementation wraps the native library,
are the programs you write in language X using the wrapped
functionality of the native library written in language X?

If the standard language implementation for language X wraps a native
library, providing that functionality to all language X programs, why
should language Y programs be prevented from using that same native
library?


"In addition to language specific multiprecision arithmetic, we will
accept programs that use GMP."

http://shootout.alioth.debian.org/u32/performance.php?test=pidigits#about
Message has been deleted

Isaac Gouy

unread,
Jan 10, 2011, 4:20:11 PM1/10/11
to Clojure


On Jan 10, 6:27 am, Stuart Halloway <stuart.hallo...@gmail.com> wrote:
> I notice that the fastest Java version of pidigits uses a native library named "jpargmp". Is there documentation somewhere that spells out how and when you are allowed to use native libraries and still claim to be written in language X?



As a practical matter, presumably the same wrapper could be used from
Clojure?

http://alioth.debian.org/scm/viewvc.php/shootout/bench/Include/java/GmpUtil.h?view=markup&revision=1.3&root=shootout

http://alioth.debian.org/scm/viewvc.php/shootout/bench/Include/java/GmpUtil.c?view=markup&revision=1.3&root=shootout

Stuart Halloway

unread,
Jan 10, 2011, 4:51:24 PM1/10/11
to clo...@googlegroups.com
> As a practical matter, presumably the same wrapper could be used from
> Clojure?

Yes, I should think so. Thanks for the pointer to the rules, I missed it when reading the first time.

Stu

> http://alioth.debian.org/scm/viewvc.php/shootout/bench/Include/java/GmpUtil.h?view=markup&revision=1.3&root=shootout
>
> http://alioth.debian.org/scm/viewvc.php/shootout/bench/Include/java/GmpUtil.c?view=markup&revision=1.3&root=shootout

Reply all
Reply to author
Forward
0 new messages