5 ms·
Create Your Own Compiler: A step-by-step interactive tutorial
- toastal 4y agoWhat is the purpose of the macOS window action buttons in a UI like this? I can't close the window and it doesn't match my OS at all.
- chrisseaton 4y agoIt's an aesthetic - have you seen https://carbon.now.sh https://carbon.now.sh ? I think it's that website which popularised it recently.
- deleted 4y ago[deleted]
- lukeschwartz 4y agopropaganda.
- wiseowise 4y agoPropaganda of what? Good design?
- terminal_d 4y agoIt looks cool.
- terminal_d 4y agoAnyone know what application is being used to host the tutorial?
- yairhaimo 4y agoHi, I created the application from scratch for my own site. Thinking about improving and opensourcing it.
- pomatic 4y agoThis approach won't work if you live somewhere windy^ - the cables will chafe and even with the nylon spacer, will likely short and/or electrify the soffit with obvious associated risks. ^source: first hand experience, albeit with cuphooks rather than magnets.
- periheli0n 4y agoNice learning resource. Big caveat: Can’t seem to go back a step. Nice looks, but functionally still has some way to go.
- yairhaimo 4y agoHi, (It's my site). Thanks! That's a pretty big caveat, woops. I'll check it out. Would love to hear some ideas about improved functionality.
- periheli0n 4y agoMainly that it‘s impossible to go back a step! Sorry if my comment sounded negative — I learnt a lot just by clicking through the steps. Very easy to follow. The steps are just the right size of complexity, the code is very clear.
- yairhaimo 4y agoThanks! You cant go back a step at all? Going back a step might fail in certain cases that I dont have tests for but it should work in general. I'll keep digging.
- kramerger 4y agoThis was a pretty weird experience. I've would preferred a simpler and more traditional design.
- tzs 4y agoAlthough it is older than a fair number of HN readers, a great book from 1990 on compilers is Allen Holub's "Compiler Design in C". It's long out of print but there is a free PDF on Holub's website [1]. The book covers the usual theory and then puts it to use to develop tools for writing compilers (e.g., lexical analyzer generators similar to lex and parser generators similar to yacc) and then with those tools develops a C compiler. [1] https://holub.com/compiler/ https://holub.com/compiler/