Why not use Erlang and make it concurrent? :)
[spawn(fun() -> print("'I will not throw paper airplanes in class.'") end) || N <- lists:seq(1, 500)]
Um. Because writing to stdout will serialize the processes?
What makes you think it's written to stdout?
Re:Nice try, kid ...
by mynameishere on Wednesday January 30, 2008 @03:38PM
(#107046)
stdout can be redirected, as to a stream that round robins it to a matrix of printers.
Matrix printers?
Re:Nice try, kid ...
by mynameishere on Wednesday January 30, 2008 @04:04PM
(#107068)
of
Re:Nice try, kid ...
by Xichekolas on Wednesday January 30, 2008 @06:35PM
(#107153)
I'm pretty sure the people in the Matrix will be confused when every printer in the world starts printing out "I will not throw paper airplanes in class." ... Of course, then the agents will reset the system and everyone will just experience deja vu.
Sure, of. But a Matrix of Matrix printers would be nice.
(for i 1 500 (prn "I will not throw paper airplanes in class."))
Although, I assume the kid forgot the \n in his printf.
"prn"? Ick. Looks like 'porn'! Why not print, or put, or puts or out or just "p"?
pr = print
prn = print followed by newline
Re:Nice try, kid ...
by run4yourlives on Wednesday January 30, 2008 @03:21PM
(#107028)
Because i and t are such a waste of time! :-)
?"For the win."
Wouldn't it be easier to type:
(repeat 500 (prn ...))
?
You are correct. I need to go back and reread the tutorial.
Re:Nice try, kid ...
by jamiequint on Wednesday January 30, 2008 @04:37PM
(#107092)
or ruby
(0..500).each {|i| print "I will not throw paper airplanes in class\n"}500.times {print "I will not throw paper airplanes in class \n"}
500.times {puts "I will not throw paper airplanes in class"}
Re:Nice try, kid ...
by jamiequint on Wednesday January 30, 2008 @06:00PM
(#107137)
I figured there was something in ruby for that :P
for x in range(500): print 'I will not throw paper airplanes in class.'
Or perhaps Arc!