What is Nim written in?
The Nim compiler is written in Nim (well-documented). Nim is self-hosting.
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Compiler Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| Nim | 95% | Nim compiler self-hosting from first release year | Source |
Transpilation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| C | 95% | Nim primarily transpiles to C | Source |
| JavaScript | 85% | Nim also supports JS backend | Source |
Influenced By
- Python — Nim syntax inspired by Python
- Pascal — Nim influenced by Pascal's syntax
- Ada — Nim influenced by Ada's systems programming features
Frequently Asked Questions
What language is Nim written in?
Nim is primarily implemented in Nim. See the implementation section above for details and source references.
What languages influenced Nim?
Nim was influenced by Python, Pascal, Ada among others. See the influence section above for the full list.
Is Nim self-hosting?
Yes, Nim is self-hosting — its compiler can compile itself.
Evidence Sources
- https://nim-lang.org/documentation.html
- https://github.com/nim-lang/Nim
- https://nim-lang.org/docs/backends.html
- https://en.wikipedia.org/wiki/Nim_(programming_language)