Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java vs. brainfuck vs. Python.

Name: Anonymous 2007-04-24 18:38 ID:oUkHXcjW

http://en.wikipedia.org/wiki/Brainfuck
http://en.wikipedia.org/wiki/Java
http://en.wikipedia.org/wiki/Python_%28programming_language%29

Now that we're all up to speed, discuss the pros and cons of each language, as well as which you believe to be the superior language.

Name: Anonymous 2007-05-01 6:07 ID:ZmWZXdsP

>>26
but Python is the fastest of the modern dynamic languages

------------------
$ time python <<EOD
i = 0
while i != 100000000:
    i = i + 1
print i
EOD
100000000

real    0m37.950s
user    0m37.230s
sys     0m0.050s

------------------
$ time perl <<EOD
for (\$i=0; \$i != 100000000; ++\$i ){}
print \$i;
EOD
100000000
real    0m20.060s
user    0m19.890s
sys     0m0.010s
------------------
$ time php <<EOD
<?php
for (\$i=0;\$i !== 100000000; ++\$i);
echo \$i;
?>
EOD
Content-type: text/html; charset=utf-8

100000000
real    0m11.167s
user    0m10.910s
sys     0m0.020s
------------------

Versions:
Python 2.4.3
PHP 5.2.1 (cgi-fcgi)
Perl v5.8.8

uname -a:
Linux Emilie 2.6.20-gentoo-r7 #1 Sun Apr 29 09:52:13 CEST 2007 x86_64 AMD Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List