4 ms·
But compilers are not hard but simple state machines. If you don't believe me, look at cc_x86 https://github.com/oriansj/stage0/blob/master/stage2/High_level_
by z29LiTp5qUC30n 6y ago
But compilers are not hard but simple state machines.
If you don't believe me, look at cc_x86
https://github.com/oriansj/stage0/blob/master/stage2/High_level_prototypes/cc_x86/cc_core.c https://github.com/oriansj/stage0/blob/master/stage2/High_le...
- userbinator 6y ago...or in other words, "they're hard only because you make them hard". That said, I think C4 makes a better example of how simple it can be: https://github.com/rswier/c4/blob/master/c4.c https://github.com/rswier/c4/blob/master/c4.c (Previously on HN at https://news.ycombinator.com/item?id=8558822 https://news.ycombinator.com/item?id=8558822 and https://news.ycombinator.com/item?id=22353532 https://news.ycombinator.com/item?id=22353532)
- gregorygoc 6y agoYou can say that about everything. "But X is not hard. It's just number theory" - while X is Fermat's Last Theorem