3 ms·
> I don't understand why Haskell and Rust don't provide bootstrapping from C. Did they write the first compilers with Assembler? I don't know about Haskell, bu
by cesarb 9y ago
> I don't understand why Haskell and Rust don't provide bootstrapping from C. Did they write the first compilers with Assembler?
I don't know about Haskell, but the first Rust compiler was written in OCaml. See for instance the comments at https://www.reddit.com/r/rust/comments/6nt2j1/is_there_any_existing_literature_on_the_old_ocaml/ https://www.reddit.com/r/rust/comments/6nt2j1/is_there_any_e...
- progman 9y ago> See for instance the comments ... Interesting! So, it should basically be possible to bootstrap from source using OCaml and the old source from the Git repository. It's interesting that OCaml was used to develop Rust since OCaml is also used for formal verification of SPARK (a dialect of Ada) which is another language for safety critical applications. OCaml seems to be a good choice to invent new big languages.
- kccqzy 9y agoGHC has a special mode (not available in released builds) that compiles Haskell to plain old C, which can then be compiled by any other C compiler. Of course when compiled in such manner, Haskell code runs very slowly but it works.