Re:Integrating “safe” languages into OpenBSD?
by kccqzy on Monday December 04, 2017 @06:06PM
(#15848423)
GHC 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.
Re:Integrating “safe” languages into OpenBSD?
by progman on Monday December 04, 2017 @10:26AM
(#15844504)
> 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.
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_e...