Hacker News new | ask | show | jobs
by hardwaregeek 1039 days ago
I suppose that's ultimately in the eye of the beholder. I suspect that if this compiler were to be 10x, 100x bigger, you'd see a pretty big difference. Like rustc, as massive as it is, is pretty legible as compilers go.
1 comments

I will take any of the dozen of sometimes very large compilers written in Ocaml above rustc personally but to each their own.
I'd love links to them! I tried reading the OCaml compiler source but quickly got overwhelmed.
You can browse compiler source code here with type annotation and code navigation if you like https://htzh.github.io/browse-ocaml/ . The editor plugins typically don't work on the compiler itself. These annotations and links were generated fairly painlessly from Ocaml compiler features (most hard work done by the compiler already).
Thanks for the links! I'll try to give it a read sometime.

But also, the editor plugins don't work on the compiler itself? Why's that? So you can't use Merlin on the OCaml compiler? That doesn't seem great.

And what's with the syntax highlighting being funky? The highlighter appears to think that a lot of these files have unterminated comments or string literals.