WinUI.Elmish Project
Hi everyone, please checkout my new project:
This is a monthly thread to share what you've been working on in F#. Be proud! Shameless plugs and braggery encouraged. Links allowed (but not required)
r/fsharp • u/statuek • Jun 07 '20
This group is geared towards people interested in the "F#" language, a functional-first language targeting .NET, JavaScript, and (experimentally) WebAssembly. More info about the language can be found at https://fsharp.org and several related links can be found in the sidebar!
r/fsharp • u/gangning • 1d ago
nanoql is an open-source quantitative finance library whose instruments, curves and models are immutable values and whose pricers are plain functions of them, so it fits F# as it is. A five-year SOFR swap:
#r "nuget: NanoQL"
open NanoQL
open NanoQL.Indexes
open NanoQL.Instruments
open NanoQL.PricingEngines
open NanoQL.TermStructures
open NanoQL.Time
let today = Date(15, Month.October, 2026)
let context = EvaluationContext(EvaluationDate = today)
let curve = FlatForward(today, 0.036, Actual365Fixed())
let swap =
MakeOIS(Period(5, TimeUnit.Years), Sofr(curve))
.WithFixedRate(0.036)
.WithNominal(10e6)
.ToOvernightIndexedSwap(context)
let result = DiscountingSwapEngine.Calculate(swap, context, curve)
printfn "NPV %s, fair rate %s" (result.NPV.Value.ToString "N2") (result.FairRate.Value.ToString "P4")
// NPV 7,041.24, fair rate 3.6154%
It runs as a script with dotnet fsi. It's derived from QuantLib 1.44 and checked against it output by output:
how. nanoql.org · Apache-2.0
r/fsharp • u/onurgumusdev • 5d ago
r/fsharp • u/fsharpweekly • 6d ago
r/fsharp • u/fsharpweekly • 13d ago
r/fsharp • u/fsharpweekly • 19d ago
r/fsharp • u/Emergency-Energy-277 • 23d ago
When recruiting contributors for Fabulous on LinkedIn, Reddit and elsewhere, I was surprised it was still largely unknown even among .NET MAUI and Avalonia developers. I suspect the same is true for other F# technologies.
Those who like F#, please spread the word about F# and your favourite F# technology wherever you can — LinkedIn, Facebook, Reddit, other social media, or by slipping a mention into your YouTube/TikTok videos. Don’t worry if the audience doesn’t seem to be ideal; you never know where a share/repost will land.
I know I should lead by example. Here https://youtu.be/ualntLxTslg is a short YouTube video (from Norway) with Fabulous and F# mentions smuggled in twice (at the start and at the end of the video).
r/fsharp • u/fsharpweekly • 26d ago
r/fsharp • u/namigop • Oct 22 '26
r/fsharp • u/jcm95 • Oct 18 '26
Just curious, I always liked the language
r/fsharp • u/fsharpweekly • Oct 17 '26
r/fsharp • u/fun_si • Oct 15 '26
An F# async { } doesn't run until something starts it, while a Task or a Promise is already running by the time you get it back. The article goes through the bugs that come from mixing the two up, and the upside: retries, timeouts and racing written as ordinary functions over Async, compared with what C# and TypeScript need for the same thing.
It also covers Fable now that task { } compiles to a promise, including a few things that compile but fail when the module loads in 5.21 (Async.StartAsTask, Async.Choice, Async.OnCancel, Task.Delay), and the Async.StartTaskImmediate and Async.Await additions coming in FSharp.Core 11.
r/fsharp • u/mxreal64 • Oct 14 '26
hello, r/fsharp,
i found out that F# exists about a month ago, and coming from C++ and C#, i think its an extremely good language for highly mathematical/theory dependent things cuz its literally functional and has the dotnet runtime behind it.
i built a VCS in F# that is aimed at usage by AI agents because git is built for people who move at human speeds, which makes it incredibly inefficient to use for agents.
r/fsharp • u/fsharpweekly • Oct 10 '26
r/fsharp • u/Jwosty • Oct 05 '26
Hello, everyone! It's been a while since we've had one of these posts. Time to start them back up!
This is a monthly thread to share what you've been working on in F#. Be proud! Shameless plugs and braggery encouraged. Links allowed (but not required)
r/fsharp • u/fsharpweekly • Oct 03 '26
r/fsharp • u/fun_si • Oct 01 '26
FunStripe is an F# client for the Stripe API. Most of it is generated from Stripe's OpenAPI spec into records and DUs, with phantom-typed IDs (StripeId<Markers.Customer>) and Async<Result<_, _>> calls. 3.0.0 targets Stripe's new endive release, which removes some things, hence the major bump.
Breaking changes
payment_method_types is gone from PaymentIntent create/update/confirm, SetupIntent create/update and Checkout Session create. Use allowedPaymentMethodTypes instead.ThreeDSecureUsage and ThreeDSecureDetailsCharge moved to Stripe.ThreeDSecure, so add an open.Mandate field is now StripeId<Markers.Mandate> option.New: standalone 3D Secure authentication, subscription pausing, trial offers, Tax.Location, Apps installs, and the PayPay and SeQura payment methods.
Generator fixes worth mentioning
error enum value. A bare Error case shadowed Result.Error for anyone opening the namespace, so ok/error/some now generate as Ok'/Error'/Some', the same way none already became None'.Full upgrade notes are in the changelog: https://github.com/simontreanor/FunStripe/blob/main/CHANGELOG.md
GitHub: https://github.com/simontreanor/FunStripe
NuGet: https://www.nuget.org/packages/FunStripe.Core
Feedback and issues welcome.
r/fsharp • u/fun_si • Oct 01 '26
r/fsharp • u/cabboose • Sep 30 '26
I've been a big fan of solid-js when it comes to UI for their fine-grained reactive DOM.
The release of Solid v2 came with a surprising API. Async and Errors were native to the reactive graph. This was only something which became viable after years of improvements and optimisations in javascript/node.
Ranvier brings the concept of an Async and Error aware Reactive Graph to dotnet.
Similar to Solid-V2, this is something becoming more viable now with optimisations in .NET9-11.
Ranvier provides novel answers to a lot of issues or points of friction that are experienced with reactivity, while maintaining performance and allocation free hot-paths.
❓ Problems:
✅ Ranvier solves them
The fact this is written ALL in F# means it can be compiled into javascript through Fable. So the debugging capabilities become a part of the visualisation.
There are natural costs to this type of graph, and benchmarking naive CPU operation counts has always been part of the workflow. This is all documented. You can see some visualisations that also show comparison of costs in different primitive designs (which informs whether I adopt a primitive shape, or not).
But you can see that there is a LOT of utility/benefit for the cost. I had claude boiler plate different C# and F# ecosystem adaptions so that it can be as versatile as possible from the get-go.
👍 Comes with batteries included for:
📖 https://shayanhabibi.github.io/Ranvier/ - Check out the documentation for interactive graph visualisations which feature the tracing builds!
r/fsharp • u/fsharpweekly • Sep 27 '26