Hacker News new | ask | show | jobs
by VBprogrammer 5865 days ago
That's quite poetic considering your C is far from idiomatic.

Surely manipulating pointers would be the expected way of doing this, and probably easier to optimise for the compiler.

1 comments

Because array syntax is clearer (to me), does the exact same thing, and the speed of a computer doubles every 24 months but programmers don't.
I'm not picking on you, but this is a common sentiment among many programmers that really aggravates the hell out of me. Because of that kind of thinking, lots and lots of people are being forced to replace perfectly good hardware just to be able to run software "designed" for newer systems. The expected benefits from Moore's Law are nearly nonexistent, except for a few specific niches.
> Because of that kind of thinking, lots and lots of people are being forced to replace perfectly good hardware just to be able to run software "designed" for newer systems.

Feature, not a bug (for the providers, anyway).

It doesn't actually do the exact same thing:

http://c-faq.com/aryptr/aryptr2.html