Follow Slashdot stories on Twitter

 



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

"Well, if you can't believe what you read in a comic book, what *can* you believe?!" -- Bullwinkle J. Moose

Working...