4 ms·
> In the Top 10 there are only two languages which are not self-hosted. I don't think that is true. Ruby is written in C, Elixir is built on Erlang and Clojure
by transfire 10y ago
> In the Top 10 there are only two languages which are not self-hosted.
I don't think that is true. Ruby is written in C, Elixir is built on Erlang and Clojure is built-on Java. In fact the only two I know for sure that are fully self-hosted are Crystal and Julia.
- iopq 10y agoRust is self-hosted in that the compiler front-end is written in Rust, but it uses LLVM in the back-end.
- Ajedi32 10y agoPretty sure that most interpreted languages aren't self-hosted, for obvious reasons.
- OvermindDL1 10y agoElixir has a little bit of Erlang in the compiler but at this point it would be fairly trivial to replace it with pure elixir, and most of the compiler is elixir already. However, Elixir does compile down to the EVM/BEAM (Erlang Virtual Machine) without using Erlang as a go-through. I'd argue that Elixir is 'mostly self-hosted'.
- rvirding 10y agoActually the Elixir compiler does NOT compile directly down to the BEAM, it generates Erlang AST which is then passed into the Erlang compiler which then generates the BEAM code. So most of the compiler is in Erlang. It also uses a significant amount of the Erlang libraries as a base for its own libraries. So calling it 'mostly self-hosted' is stretching a bit.