Hacking F# in JS ecosystem
summary
F# code compiles to modern JavaScript by translating F# AST → Fable AST → Babel AST and letting Babel emit ES6 modules/iterables with no added runtime overhead, so most F# features (type inference, pattern matching, async computation expressions) work in browser and Node. Integration uses generated bindings from DefinitelyTyped, runtime libs in the Fable core, and the Elmish MVU library for React-based UIs; limitations include reflection, type providers and native .NET APIs. Safe Stack enables shared client/server code.
AI-written summary · about
chapters (10)
- 0:00Introduction and background
- 1:12F# language overview
- 4:03Core F# features
- 7:59Asynchronous coding
- 9:32Targeting JavaScript
- 12:54Introduction to Fable
- 19:24Fable architecture
- 21:53UI programming with Elvish
- 26:15Tooling and ecosystem
- 28:48Q&A and conclusion








