Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Comment Re: Bugs prevented per line of C++ code (Score 1) 140

Bounds checks everywhere? If you go from begin to end through an array or a million elements? That's a a lot of wasted bound checking. Better use modern C++ "for each element in this array, do the following to it". No more bound checking needed, because you're dispensing with indices altogether.

Comment Re:Does anyone use it? (Score 5, Informative) 11

It's widely used in scientific applications. Distributing a loop with many many many iterations (statically or dynamically) over many cores is way easier in OpenMP than with threads. It's really an elegant way of expressing thread parallelism without having fork and join. The tasking mechanism brings it closer to traditional fork/join but it's still much more elegant.

Slashdot Top Deals

It is impossible to travel faster than light, and certainly not desirable, as one's hat keeps blowing off. -- Woody Allen

Working...