26 ms·
All a compiler does is take a well defined data structure and transform it into another, sometimes by encoding or sometimes by decoding. Really it's bread and b
by duped 2y ago
All a compiler does is take a well defined data structure and transform it into another, sometimes by encoding or sometimes by decoding. Really it's bread and butter stuff that every engineer does everyday but with the benefit that you can say something is undefined/out of scope way easier than talking to APIs you don't control.
The fun part are the magic algorithms you sometimes get to use
- jcranmer 2y ago> All a compiler does is take a well defined data structure and transform it into another Sorry, having worked on language semantics topics, "well-defined" is not how I would describe either a programming language or the behavior of machine code.
- storoj 2y agoThere should be a well-defined list of undefined behaviors.