Has anyone tried Python->Dylan conversion?
Markus Stenberg
mstenber at cc.Helsinki.FI
Wed Oct 13 05:55:00 EDT 1999
Just as food for thought ; apparently, even the free Dylan
(www.gwydiondylan.org) outperforms Python by order of magnitude, at least
in method calls and such.
To back my assertion: inefficient simple-prime-test code, checking 1000->1M:
C 0.26s user 0.00s system 82% cpu 0.314 total
Dylan 1.12s user 0.02s system 97% cpu 1.174 total
Perl 4.69s user 0.01s system 95% cpu 4.898 total
Python 8.33s user 0.04s system 96% cpu 8.677 total
Even by doing the classical recurse-monster lisp-like prime test, the Dylan
version was roughly 3 seconds.
At least simpler syntactic parts should compile fairly cleanly, I
think.. but I dislike Dylan's syntax itself, so main use would be just
producing Python->Dylan->C modules (which would, theoretically speaking, be
faster than original Python, or current Py2C modules).
-Markus
--
"The truth is out there." -X-files
"The truth may be out there, but lies are inside your head." -T.Pratchett
More information about the Python-list
mailing list