News for hackers. Stuff that matters.
Re:Ruby is too slow for programming competitions by gnuvince on Sunday April 21, 2013 @04:52PM (#5586366)
I'm still on Go 1.0.2. However, I strongly doubt that having 1.1 yields the correct result in the amount of time that the article boasts; I rewrote the program in C (direct translation), and with both clang and gcc, I get timings of around 2m05s. It's hard to believe that for a CPU-bound task, a Go program would be 200x faster than a C program.
Re:Ruby is too slow for programming competitions by darkgray on Sunday April 21, 2013 @04:58PM (#5586388)
I'd agree it's dubious, but I was mostly commenting on the "correctness" of the code. It'd work on Go 1.1, so it's technically "correct". Sometimes. :)
Re:Ruby is too slow for programming competitions by gnuvince on Sunday April 21, 2013 @05:38PM (#5586517)
Fair enough.