HN Hall of Fame Weekly email

Why ML/OCaml are good for writing compilers (1998)

flint.cs.yale.edu Essays & writing Essays & articles Computer science Candidate
Screenshot of flint.cs.yale.edu captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 5 calendar years, with breakout response in 2 of them.

submissions
6
submitters
6
observed span
2011–2022
peak thread · 147 comments
241 pts
latest 20+ return · 2017-04-15
241 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

For web developers who are looking for an industrial strength functional language instead of JS, OCaml probably has the best story here. Actually it has two OCaml->JS compilers of very high quality The first one, js_of_ocaml, could bootstrap the whole compiler several years ago(probably the first one there). The recent one, https://github.com/bloomberg/bucklescript, push the JS compilation into next level, it generates fairly readable code, good FFI story, and its compilation is extremely fast, check out the…

Every time I see ML on HN I hope it's about ML the language and I'm sad when it turns out to be Machine Learning instead, haha. It's a shame ML-family of languages isn't very popular. 1ML for instance could be a fantastic modern language but I don't see that happening.

Because you can do stuff like: type tree = Empty | Leaf of int | Node of tree * tree

swah·64-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
450

reference only — not used in Hall rules or ranking

Total comments
256

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2011-09-16Why ML/OCaml are good for writing compilersgroovy2shoes6430
2015-10-20Why ML/OCaml are good for writing compilers (1998)eatonphil20
2015-12-10Why ML/OCaml are good for writing compilers (1998)First breakoutjasim14079
2017-04-15Why ML/OCaml are good for writing compilers (1998)Best thread · Latest 20+ point returnmonssoen241147
2019-12-14Why SML and OCaml are good for writing compilers (1998)chmaynard20
2022-01-08Why ML/OCaml are good for writing compilers (1998)keewee710