News for hackers. Stuff that matters.
Re:The "C is Efficient" Language Fallacy (2006) by nitrogen on Monday January 09, 2012 @10:53AM (#3442936)
I think something may have been lost when you typed your code. y is a pointer to double, so can't accept two array subscripts (if it were "double * * y" it could, or you could keep it as a one-dimensional array and use something like y[(i - 2) * 20000 + j + 1]), and i and j don't appear to be incremented anywhere.
Re:The "C is Efficient" Language Fallacy (2006) by yummyfajitas on Monday January 09, 2012 @11:12AM (#3443018)
Thanks, fixed the "double * * y". The i and j not being incremented is actually an error in the original blog post - I'll leave it here for consistency.
Re:The "C is Efficient" Language Fallacy (2006) by nitrogen on Monday January 09, 2012 @12:18PM (#3443300)
The i and j not being incremented is actually an error in the original blog post - I'll leave it here for consistency.

Ah. In that case, I wonder how the author managed to get an infinite loop to complete in 0.8 seconds ;).