News for hackers. Stuff that matters.
Re:On Stack Overflow's recent battles with the .NET Garbage ... by qw on Saturday October 29, 2011 @07:57AM (#3171690)
I noticed some differences in the code that I think are not equivalent

Perl: print $local_process_var, " ", &gen_pg_template(), "\n"

Python: print local_process_var, " ", gen_pg_template()

Java: System.out.println( timestamp + " " + genPgTemplate() );

I'm not sure, but I think the Perl/Python code sends the strings as arguments to print that will just output them directly. In Java you will concatenate 3 strings before sending it to "print". This adds some extra CPU usage that the other versions don't have

Re:On Stack Overflow's recent battles with the .NET Garbage ... by Roboprog on Thursday November 03, 2011 @01:46PM (#3192842)
One item of possible note: It wasn't possible to have list driven output syntax in Java before 1.5. I'm not sure if they added an output method with elipses in it then, or not. Even if so, I'm not sure it would be faster.

Still, I could modify the scripting output lines to bring them down to Java's level :-)

Re:On Stack Overflow's recent battles with the .NET Garbage ... by Roboprog on Monday October 31, 2011 @03:29PM (#3178632)
Thanks for the observation. Not sure when I will get to revisiting this, but that seems like an easy inconsistency to clean up, and I probably should.