What is F# written in?
The F# compiler is written in F# (documented). F# uses a bootstrap chain from OCaml (documented). F# is self-hosting.
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Compiler Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| F# | 92% | F# compiler became self-hosting | Source |
Bootstrap Chain
| Language | Confidence | Notes | Source |
|---|---|---|---|
| OCaml | 90% | F# initial compiler written in OCaml before self-hosting | Source |
Influenced By
- ML — F# is strongly derived from ML/OCaml
- OCaml — F# initially derived from OCaml
- Haskell — F# influenced by Haskell's functional patterns
Frequently Asked Questions
What language is F# written in?
F# is primarily implemented in OCaml and F#. See the implementation section above for details and source references.
What languages influenced F#?
F# was influenced by ML, OCaml, Haskell among others. See the influence section above for the full list.
Is F# self-hosting?
Yes, F# is self-hosting — its compiler can compile itself.