News for hackers. Stuff that matters.
Re:The Unreasonable Effectiveness of C by michaelochurch on Thursday January 10, 2013 @01:03PM (#5038547)
Fair point. At this point, it's a very leaky abstraction because not all levels of "random access" (e.g. L1 cache vs. main memory) are created equal.
Re:The Unreasonable Effectiveness of C by w3pm on Thursday January 10, 2013 @04:54PM (#5040033)
True, and this is my biggest problem with writing optimized code in C -- it takes a lot of guessing and inspecting the generated assembler and understanding your particular platform to make sure you're ACTUALLY utilizing registers and cache like you intend.

If there were some way of expressing this intent through the language and have the compiler enforce it, that'd be fantastic :)

That said, there's really not a better solution to the problem than C, just pointing out that even C is often far less than ideal in this arena.

Re:The Unreasonable Effectiveness of C by carterschonwald on Friday January 11, 2013 @01:45AM (#5041661)
i'm actually spending much of my time these days having a go writing HPC codes in haskell.

So far, the generated assembly looks pretty darn awesome, and the performance pretty competitive with alternatives i have access too :)