Soleron said:
Well, I'm not an expert, so I'll agree with you. Could there be any sort of compiler-level software in the future that could do that restructuring?
|
That kind of restructuring would require human-level (or above) AI, generally speaking. At that point we will probably not be using compilers, since our AI friends will be writing programs for us (if they don't exterminate us of course).
There are languages more suited to automatic parallelization than C, I'd imagine that most C programs have loops which this compiler trick won't touch due to having potential side effects that the compiler can't reason about (so it will assume it's too dangerous to do parallelization). I can provide simple examples if anyone is interested.
Still this is useful in that it will make code more readable, and automate some of the work behind making loops parallel. This makes for faster programming and less bugs.
My Mario Kart Wii friend code: 2707-1866-0957







