Live data from Hacker News

A Compiler Writing Journey

github.com

11–20 of 23 posts

Re: A Compiler Writing Journey

#17
(2020)

Previously:

12 comments; 156 points. 2022 November 29. https://news.ycombinator.com/item?id=33788013>

67 comments; 484 points. 2020 January 8. https://news.ycombinator.com/item?id=21968420>

Re: A Compiler Writing Journey

#18

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.

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

Re: A Compiler Writing Journey

#19

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.

> 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]

Re: A Compiler Writing Journey

#20

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.

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

+1
Post reply on HN