in reply to Re^49: Why is EO undefined? (More details!)
in thread Why is the execution order of subexpressions undefined?
I like.
It says everything I have been saying about the determinism of defined EO, the insecurity of undefined EO, and requirement for complicated compilers if they are to detect conflicting side-effects.
Now, rewrite the rules of what "defined EO" means.
Follow the traditional definition right up to the point where you end up with func1() op func2(). Traditionally with defined EO, func1() must be evaluated before func2(), but change that final step and say, because we got this far with defined EO, we are sure that everything we did to this point was done as the programmers wished it.
So, because the programmer got exactly what he asked for to this point, and func1() and func2() are both marked as being parallelisable, we trust his judgement and we'll go ahead and run func1() and func2() in parallel. No analysis...just do it because the programmer, knowing these modified rules, gave us carte blanche to do so.
If he didn't want that to happen, he would not have placed them either side of a non-serialising operator.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^51: Hallelujah [was: Why is EO undefined?]
by Anonymous Monk on Apr 18, 2005 at 22:21 UTC | |
by BrowserUk (Patriarch) on Apr 18, 2005 at 23:08 UTC | |
by Anonymous Monk on Apr 18, 2005 at 22:30 UTC | |
by BrowserUk (Patriarch) on Apr 18, 2005 at 23:22 UTC | |
by jdporter (Paladin) on Jul 14, 2006 at 16:09 UTC | |
by BrowserUk (Patriarch) on Jul 15, 2006 at 00:15 UTC |