Crãciun fericit!
You can use NAND to make NOT.
http://www.learningaboutelectronics.com/Articles/D-flip-flop...
I would add better integration with the C tool chain, more separation of concerns and less academic ego bullshit.
I've been working on something like that [0] lately.
Sounds like the opposite of what the post is advocating.
https://lodev.org/cgtutor/fire.html
which is part of:
https://lodev.org/cgtutor/