5 ms·
There's something really nice about these minimalistic C projects. You can quickly take a look at the source and immediatelly grasp what's happening. A simple a
by r4pha 11y ago
There's something really nice about these minimalistic C projects. You can quickly take a look at the source and immediatelly grasp what's happening. A simple and didactic introduction. Super cool.
- tptacek 11y agoYes. Obligatory and tedious re-up for my favorite minimalistic C program of the last 5 years: https://github.com/rswier/c4 https://github.com/rswier/c4 Take 2 hours to grok this and you can skip compiler books and move straight to compiler papers.
- Winterflow3r 11y agoChallenge accepted.
- tptacek 11y agoAn even better challenge: add structs to the compiler. :)
- Winterflow3r 11y agohaha okay! I don't have any formal CS training though (and the CPU between the ears isn't too great either) so it's going to take me more than 2 hours. I'm going through void next() right now. Are you open for questions on Github?
- tptacek 11y agoIt's not my code, so, Github is a bad place to ask me questions. But you can ask them here, and I'll respond.