5 ms·
A Compiler Writing Journey
- parallax_error 7mo agoVery cool! I can’t imagine writing everything in C, I’m currently learning this in OCaml which seems nicer for a project like this.
- nurettin 7mo agoWow that's super nostalgic. You're on a great path! After doing something similar, I switched to Haskell. Give it a go if you have the time.
- anta40 7mo agoPerhaps using this: https://github.com/nlsandler/nqcc2 https://github.com/nlsandler/nqcc2 ?
- MisterTea 7mo ago> I can’t imagine writing everything in C I will say that C is a perfect low level language for bootstrapping more complex systems and languages. If I were building a bootstrap compiler I would write it in C and have it emit C. Specifically C89/99 ONLY with no POSIX/GNU deps. that will guarantee a large swath of compiler and system support out of the box.
- deleted 7mo ago[deleted]
- zar1048576 7mo ago+1
- brcmthrowaway 7mo agoHow much of Claude was used?
- azhenley 7mo agoIt was started 7 years ago.
- Muhammad523 7mo agoWhy must there always be a random guy on HN randomly mentioning Claude?
- maniacsudip 7mo ago[dead]
- pjmlp 7mo agoHaving it all in C brings back memories from "Compiler Design in C" a famous book for its time, printed in 1990. https://holub.com/compiler/ https://holub.com/compiler/
- nils-m-holm 7mo agoI wrote a book in its spirit in 2012 with a second edition in 2022: http://t3x.org/reload/ http://t3x.org/reload/ It is called Practical Compiler Construction. The Compiler Writing Journey is based on it.
- kreco 7mo agoThanks for your amazing work!
- zar1048576 7mo agoWhat a fantastic resource!
- zar1048576 7mo agoI remember reading that book (along with the Dragon book!)
- maltyxxx 7mo ago[flagged]
- cxr 7mo ago<https://news.ycombinator.com/item?id=47340079 https://news.ycombinator.com/item?id=47340079>
- skyfantom 7mo agoThis hopefully can be useful as well https://space4links.com/r/writing-a-compiler https://space4links.com/r/writing-a-compiler
- zar1048576 7mo agoWhat a fantastic resource! Thanks for sharing!
- Muhammad523 7mo agoI feel like interpreters and compilers were trendy in 2015/2016, bu i'm too young to know. Am i right?
- mzs 7mo ago"Part 64: Self-compilation on an 8-bit CPU" Unlike how a bunch of projects end right as they start to get good, this has a great ending. Thank you
- cxr 7mo ago(2020) Previously: 12 comments; 156 points. 2022 November 29. <https://news.ycombinator.com/item?id=33788013 https://news.ycombinator.com/item?id=33788013> 67 comments; 484 points. 2020 January 8. <https://news.ycombinator.com/item?id=21968420 https://news.ycombinator.com/item?id=21968420>