What is Crystal written in?

Year 2014 Paradigm object-oriented, imperative Typing static Self-hosting yes
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

LanguageConfidenceNotesSource
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

LanguageConfidenceNotesSource
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

Related Languages

Explore Crystal in Graph →