Re:Common Lisp as a Scripting Language, 2015 Edition
by e12e on Wednesday April 15, 2015 @10:20PM
(#9385549)
This appears to be true, eg:
vs:
Hello, World!
(Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, SSD drive)
[ Parent
| on HN ]
Re:Common Lisp as a Scripting Language, 2015 Edition
by e12e on Wednesday April 15, 2015 @10:55PM
(#9385663)
Kawa:
wget ftp://ftp.gnu.org/pub/gnu/kawa/kawa-2.0.jar
wget ftp://ftp.gnu.org/pub/gnu/kawa/kawa-2.0.jar.sig
gpg --recv-key D269E756
gpg --verify kawa-2.0.jar.sig
echo '(format #t "Hello, world!\n")' > hello.scm
# Not sure how to bundle up a scheme script with kawa
# to a stand-alone jar...
java -jar kawa-2.0.jar --main -C hello.scm
time java -cp kawa-2.0.jar:. hello
Hello, world!
real 0m0.284s
user 0m0.296s
sys 0m0.020s
Re:Common Lisp as a Scripting Language, 2015 Edition
by lispm on Thursday April 16, 2015 @04:59AM
(#9386693)
Lisp on my Raspberry Pi is faster:
pi@raspberrypi ~/lisp/ccl $ time ./armcl -n -Q -e '(progn (princ "hello") (quit))'
hello
real 0m0.112s
user 0m0.020s
sys 0m0.080s
And the expression is first compiled to native code...
Re:Common Lisp as a Scripting Language, 2015 Edition
by e12e on Thursday April 16, 2015 @05:48AM
(#9386813)
How does guile 2.0 do on that hardware?
Re:Common Lisp as a Scripting Language, 2015 Edition
by lispm on Thursday April 16, 2015 @06:51AM
(#9387015)
Don't know. I don't use it.
Re:Common Lisp as a Scripting Language, 2015 Edition
by e12e on Wednesday April 15, 2015 @11:02PM
(#9385678)
And, for the record, with the same hello.scm, and guile (2.0.5 as found in Debian stable):
# First run:
time guile hello.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
(...)
Hello, world!
real 0m0.066s
user 0m0.044s
sys 0m0.020s
#Ed: with precompiled code under $HOME/.cache/guile (?)
time guile hello.scm
Hello, world!
real 0m0.040s
user 0m0.036s
sys 0m0.004s