SCM

[#314325] Clojure, pidigits, Koji Yusa, 2013-07-04

View Trackers | Play the Benchmarks Game | Export CSV

Date:
2013-07-03 18:25
Priority:
3
State:
Closed
Submitted by:
Koji Yusa (kyusa-guest)
Assigned to:
Nobody (None)
Resolution:
Accepted
Task:
pidigits
Language Implementation:
Clojure
Summary:
Clojure, pidigits, Koji Yusa, 2013-07-04

Detailed description
This program is faster than current programs because initial clojure program to use native GMP library via jgmplib.

This program supports 2 way execution:
1. execute by REPL
java -cp .:clojure-1.5.1.jar -m clojure.main -m pidigits 1000
2. compile and execute
java -cp .:clojure-1.5.1.jar -m clojure.main -e "(compile 'pidigits)"
java -cp classes:clojure-1.5.1.jar pidigits 1000

Thank you.

Followups: Sort comments antichronologically

Message
Date: 2013-07-06 21:36
Sender: Isaac Gouy

PROGRAM OUTPUT:

/usr/local/src/jdk1.7.0_11/bin/java: symbol lookup error: /home/dunham/benchmarksgame/bench/Include/java/libjgmplib.so: undefined symbol: _Znwm


http://benchmarksgame.alioth.debian.org/u64q/program.php?test=pidigits&lang=clojure&id=4#log
Date: 2013-07-10 18:36
Sender: Koji Yusa

I resolved this error.
GmpInteger.cc compiled with g++ instead of gcc.

like this:
g++ -O3 GmpInteger.cc -I/opt/jdk1.7.0_11/include -I/opt/jdk1.7.0_11/include/linux -shared -o libjgmplib.so -fPIC -Wl,-soname,libjgmplib.so,-lgmp,-lc
Date: 2013-07-10 21:12
Sender: Isaac Gouy

http://benchmarksgame.alioth.debian.org/u64q/program.php?test=pidigits&lang=clojure&id=4

Attached Files:

Attachments:
Size Name Date By Download
11 KiBpidigits.clj2013-07-03 18:25kyusa-guestpidigits.clj

Changes:

Field Old Value Date By
ResolutionNone2013-07-10 21:12igouy-guest
status_idOpen2013-07-07 16:45igouy-guest
close_dateNone2013-07-07 16:45igouy-guest
File Added6092: pidigits.clj2013-07-03 18:25kyusa-guest
Powered By FusionForge