3 ms·
conceivably this could be all put into the compiler.
by dnautics 8y ago
conceivably this could be all put into the compiler.
- pkaye 8y agoYou mean speculative execution? Do you know of an sample implementation?
- twtw 8y agoConceivable, yes. Practical? Not so much. This is an idea that I personally love, but that hasn't fared well so far. Compilers are not as good as assigning instruction schedules statically as hardware can do dynamically.
- dnautics 8y agocurious as to why hardware can do it dynamically while software can't. It's all logic in the end. I can understand "not being able to statically compile it because every architecture is different" but, presuming our compiler compiled to a specific platform - why wouldn't it be able to dynamically rearrange in, say, a JITted fashion using exactly whatever logic is available in the hardware.
- twtw 8y agoHopefully I'll put together a more technical answer in a while, but for now I'll just point out that when talking about performance, reducing things to "it's all logic in the end" makes little sense. We could emulate a modern CPU on an 8-bit micro controller, but the performance would be bad.