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

Favourite programming language

Name: Anonymous 2006-04-05 19:10

Name your favourite programming language (not necessarily (but usually) the one you know the best - just the one you like best).

Tip: Java doesn't belong in this thread.

Mine is __Python__.

Name: Anonymous 2006-04-20 5:53

>>79
1000.times { |i| puts "#{ i }GET" }Ruby wins!

Name: Anonymous 2006-04-20 5:56

>>79
I forgot the fact that you add all those expensive strings in one array which is completely stupid.
Ruby wins twice!

Name: Anonymous 2006-04-20 6:56

>>82
Duh
for i in xrange(1000): print unicode(i) + u"GET\n"
No arrays. Faster than Ruby. And Python, for one, supports Unicode. Python wins twice.

Name: Anonymous 2006-04-20 8:37

>>83
python -c "for i in xrange(1000): print unicode(i) + u\"GET\""
0.12s user 0.03s system 26% cpu 0.601 total

ruby -e "1000.times { |i| puts \"#{i}GET\" }"
0.07s user 0.02s system 18% cpu 0.465 total

Name: Anonymous 2006-04-20 8:38

>>84
GASP

Name: Anonymous 2006-04-20 9:07

>>83
Who needs unicode? Really? 1+1=2, unicode or not, duh.

Name: Anonymous 2006-04-20 9:27

>>85
Got that right! I couldn't even get Python to run that fast again, while Ruby ran faster every time. And with the extra newline, Python was like .06s slower.

Name: Anonymous 2006-04-20 9:48

>>84
Addendum, startup times:
python -c "print \"Hello, world\""
0.03s user 0.01s system 32% cpu 0.100 total

ruby -e "puts \"Hello, world\""
0.01s user 0.00s system 15% cpu 0.066 total

Name: Anonymous 2006-04-20 9:57

>>88
Syscall count for this:
strace ruby -e "puts \"Hello, world\"" 2>&1 | wc -l
123
strace python -c "print \"Hello, world\"" 2>&1 | wc -l
540

Name: Anonymous 2006-04-20 10:07

@-moz-document url-prefix("http://www.world4ch.org/";) {
    div.code {
        font-family: monospace;
        white-space: pre;
    }
}

Yeah baby!

Name: Anonymous 2006-04-20 10:59

>>84
Oops. I thought it would be faster. Well, it happens to be so for larger applications and test algorithms.

Oh, wait. The Python code uses full Unicode support. Ruby doesn't even support that. You just cannot compare them.

Could you time
for i in xrange(1000): print str(i) + "GET"?

Perhaps it's still slower but it might be faster than using Unicode.


>>84
Lol American loser.

Name: Anonymous 2006-04-20 11:15

Wait? Who cares about speed in a scripting language? What is more productive, and more fun to maintain:

      1000.times { |i| puts \"#{i}GET\" }"

or

      for i in xrange(1000): print str(i) + "GET"

Name: Anonymous 2006-04-20 11:19

>>91
ruby -e "1000.times { |i| puts \"#{i}GET\" }" > /dev/null
0.01s user 0.00s system 47% cpu 0.034 total

python -c "for i in xrange(1000): print str(i) + \"GET\"" > /dev/null
0.02s user 0.01s system 58% cpu 0.061 total

Piping output to remove wait for TTY.

I guess Python is slower because it opens and reads from some "files" or files while Ruby does not.

Name: Anonymous 2006-04-20 11:42

>>92
Neither is as awesome assequence_ $ map (putStrLn . (++"GET") . show) [1..1000]

Name: Anonymous 2006-04-20 11:48

>>94
ew, fuck off

Name: Anonymous 2006-04-20 12:27

>>92
I sure as hell don't care much for speed as long as it's within the Python-Perl-PHP-Ruby range, I was just bored and tried to troll. But regarding maintenance, which I do care, I find the Python form much easier to read and maintain.

Name: Anonymous 2006-04-20 13:02 (sage)

>>96
In real code you'd write it like this using Ruby:
1000.times do |i|
  puts "#{i}GET"
end
Using {} where do end is possible is generally considered bad practise.

Name: Anonymous 2006-04-20 14:22

Likewise, you'd do
for i in xrange(1000):
    print str(i) + "GET"
in Python

Name: Anonymous 2006-04-20 16:14

>>97
Bad practice? WTF?

Name: Anonymous 2006-04-20 19:28

java lol

Name: Anonymous 2006-04-25 3:45

<@% LANGUAGE=VBSCRIPT %>
<%
response.write "Hallo za warudo!"
%>

Wait, does VB script count as a programming language...?

Name: Anonymous 2006-04-25 7:51

C/C++ (mostly C)
ASM
Perl
and FreeBASIC

Name: Visual Studio Team System 2006-04-25 12:15

>>53
This man speaks delicious truth!

MessageBox.Show("strcat " + "gtfo!"); //OWSHI

Name: Anonymous 2006-04-25 13:17

Name: Anonymous 2006-04-25 14:29

C++
MIPS64 assembly
Python
Squirrel
OCaml

In that order.

Name: Anonymous 2009-01-14 5:27

Mine is JavaScript

Name: Anonymous 2009-01-14 8:20

c

Name: Anonymous 2009-01-14 8:25

Applescript

____________
Sent from my iPhone.

Name: Anonymous 2009-01-14 9:17

Haskell
x86_64 fasm
[... those I forgot ...]
PHP
*

Name: Anonymous 2009-01-14 9:21

>>108
10/10

Name: Anonymous 2009-01-14 9:22

Ruby

Name: Anonymous 2009-01-14 9:24

Haskell
Forth
Prolog
Python
JavaScript
C

Name: Anonymous 2009-01-14 9:43

Python, second to the Lisp dialect which I authored that does everything perfectly and has no flaws.

Name: Anonymous 2009-01-14 9:54

c

Name: Anonymous 2009-01-14 10:40

C#

Name: Anonymous 2009-01-14 10:41

Mostly Python. But I also occasionally enjoy C. For programs no longer than 50 LOCs, that is.

Name: Anonymous 2009-01-14 11:06

My favourite languange is whatever Leah Culver dislikes.

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