F# empowers everyone to write succinct, robust and performant code
open sourceMITfree
F# is a functional-first, statically typed language for .NET that is expression-based and immutable by default, with type inference, pattern matching, discriminated unions and async programming, plus full support for objects. It runs on .NET and works alongside C# in mixed-language solutions, and its compiler, FSharp.Core library and F# Interactive scripting tool ship with the .NET SDK; libraries come from NuGet. F# 11 shipped with .NET 11. Developed by Microsoft and the community under the MIT licence, with the F# Software Foundation supporting the community.
Libraries for C# and .NET
View 40 more
- iText Core
- MuPDF
- Selenium
- ironpress
- gRPC
- Umbraco CMS
- Cloudinary
- Aspire
- Radar
- BugSnag
- Adobe PDF Library
- Apache Casbin
- Entity Framework Core
- Superwall
- Unity
- TrailBase
- RevenueCat
- OpenTelemetry
- OpenFeature
- UltimateAuth
- GO Feature Flag
- Firebase Cloud Messaging
- WPF
- Apryse SDK (WebViewer)
- ONNX Runtime
- Semantic Kernel
- Wasmtime
- AWS CDK
- Cerbos
- Turso Database
- libvirt
- Testcontainers
- Microsoft Agent Framework
- Apache log4net
- ASP.NET Core
- .NET MAUI
- Apache Arrow
- chDB
- TinyMCE
- Bootstrap
Browse all of them: 51 libraries, 17 frameworks, 127 APIs.
Problems it solves
- model my business domain so invalid states can't even compile
- a functional language that still lets me use every .NET library and call C# code
- my C# code is full of null checks and mutable state bugs and I want something more concise
- which language should I use for data analysis scripts with type safety on .NET
- write concise code that reads like Python but catches errors at compile time
- explore data interactively in a notebook or script with a statically typed language
- pattern match on complex data instead of writing chains of if statements
Features
- immutable by default
- type inference and automatic generalization
- pattern matching
- discriminated unions and records
- async programming
- object-oriented members and interfaces
- F# Interactive scripting with #r nuget references
- units of measure
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what F# does.
- C# A modern, open-source programming language
- Scala Expressive, scalable, safe
- Haskell Enjoy long-term maintainable software you can rely on
- Clojure A robust, practical, and fast programming language
- Python A programming language that lets you work quickly and integrate systems more effectively
- OCaml An industrial-strength functional programming language with an emphasis on expressiveness and safety
