What is Crystal written in?
The Crystal compiler is written in Crystal, LLVM, and Ruby (documented). Crystal uses a bootstrap chain from Ruby (documented). Crystal is self-hosting.
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Compiler Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| Crystal | 95% | Crystal compiler is self-hosting | Source |
| LLVM | 92% | Crystal compiler uses LLVM backend | Source |
| Ruby | 90% | Crystal compiler bootstrapped from Ruby initially | Source |
Bootstrap Chain
| Language | Confidence | Notes | Source |
|---|---|---|---|
| Ruby | 92% | Crystal compiler bootstrapped from Ruby | Source |
Influenced By
Frequently Asked Questions
What language is Crystal written in?
Crystal is primarily implemented in Ruby and Crystal and LLVM. See the implementation section above for details and source references.
What languages influenced Crystal?
Crystal was influenced by Ruby, Go among others. See the influence section above for the full list.
Is Crystal self-hosting?
Yes, Crystal is self-hosting — its compiler can compile itself.
Evidence Sources
- https://crystal-lang.org/
- https://github.com/crystal-lang/crystal
- https://en.wikipedia.org/wiki/Crystal_(programming_language)