| ▲ | notepad0x90 7 hours ago | ||||||||||||||||
I agree to this, with the caveat that a standard is not a spec. E.g.: The C or C++ standards, they're somewhat detailed, but even if they were to be a lot more detailed, becoming 'code' would defeat the purpose (if 'code' means a deterministic turing machine?), because it won't allow for logic that is dependent on the implementer ("implementation defined behavior" and "undefined behavior" in C parlance). whereas a specification's whole point is to enforce conformance of implementations to specific parameters. | |||||||||||||||||
| ▲ | gizmo686 7 hours ago | parent [-] | ||||||||||||||||
Even programs are just specifications by that standard. When you write a program in C, you are describing what an abstract C machine can do. When the C compiler turns that into a program it is free to do so in any way that is consistent with the abstract C machine. If you look at what implementions modern compilers actually come up with, they often look quite different from what you would expect from the source code | |||||||||||||||||
| |||||||||||||||||