What is Scala written in?
The Scala compiler is written in Scala (well-documented). Scala is self-hosting.
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Compiler Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| Scala | 95% | Scala 3 (Dotty) compiler bootstrapped itself | Source |
Influenced By
- Java — Scala runs on JVM and adopts Java interop
- Haskell — Scala's type system influenced by Haskell
- Lisp — Scala's S-expressions and macros influenced by Lisp
- Smalltalk — Scala influenced by Smalltalk's uniform object model
Languages Scala Influenced
- Kotlin — Kotlin influenced by Scala's features on JVM
Frequently Asked Questions
What language is Scala written in?
Scala is primarily implemented in Scala. See the implementation section above for details and source references.
What languages influenced Scala?
Scala was influenced by Smalltalk, Java, Haskell among others. See the influence section above for the full list.
Which languages did Scala influence?
Scala influenced Kotlin among others.
Is Scala self-hosting?
Yes, Scala is self-hosting — its compiler can compile itself.
Evidence Sources
- https://en.wikipedia.org/wiki/Scala_(programming_language)
- https://scala-lang.org/blog/2016/11/11/dotty-compiler-bootstraps.html
- https://en.wikipedia.org/wiki/Kotlin_(programming_language)