mzs 8 hours 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

parallax_error 19 hours ago

Very cool! I can’t imagine writing everything in C, I’m currently learning this in OCaml which seems nicer for a project like this.

  • MisterTea 7 hours 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.

  • nurettin 18 hours ago

    Wow 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.

pjmlp 14 hours ago

Having 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/

  • nils-m-holm 14 hours ago

    I wrote a book in its spirit in 2012 with a second edition in 2022: http://t3x.org/reload/

    It is called Practical Compiler Construction. The Compiler Writing Journey is based on it.

    • kreco 11 hours ago

      Thanks for your amazing work!

Muhammad523 8 hours ago

I feel like interpreters and compilers were trendy in 2015/2016, bu i'm too young to know. Am i right?

brcmthrowaway 19 hours ago

How much of Claude was used?

  • Muhammad523 8 hours ago

    Why must there always be a random guy on HN randomly mentioning Claude?

  • azhenley 19 hours ago

    It was started 7 years ago.