3 ms·
I'll probably write it in Haskell or possibly ML. The Haskell compiler is written in Haskell, so there's nothing to C here. OTOH, I'm not sure if C needs repla
by Joof 10y ago
I'll probably write it in Haskell or possibly ML. The Haskell compiler is written in Haskell, so there's nothing to C here.
OTOH, I'm not sure if C needs replacing. It models state machines fairly well. Sure, we could use more systems languages like rust, but at best they replace C++ in some circumstances.
- spectral64 10y agoBut isn't Haskell's runtime (RTS) written in C?
- pjmlp 10y agoNothing prevents it to be rewritten in Haskell. It wasn't been done just because no one cared to do it.
- Joof 10y agoHmm you may be right. I'd say rust, but LLVM is written in C (and writing a compiler in Ocaml or Haskell is so much nicer.) That leaves assembly and god knows what else in my repertoire. Not that it matters once it's bootstrapped though.