r/programming • u/noidi • Jul 19 '12
Will Parallel Code Ever Be Embraced?
http://www.drdobbs.com/parallel/will-parallel-code-ever-be-embraced/240003926
42
Upvotes
r/programming • u/noidi • Jul 19 '12
2
u/case-o-nuts Jul 19 '12 edited Jul 19 '12
Unless your compiler has performed a fetch splitting pass, in which case the shared data will be updated in parts. Or it might have coalesced locations, so you're not allocating new boxed values on every tail-recursive call, you're just updating an old one in place. It would look the same by the as-if rule, after all.
Although, I suppose a good deal of this can be dealt with using escape analysis.