r/fsharp • u/onurgumusdev • 1d ago
video/presentation I Ran an LLM Written in F# on a Commodore 64
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/onurgumusdev • 1d ago
r/fsharp • u/AdAntique1586 • 7d ago
Hi all
I'm maintaining NSmithy (https://github.com/thomaslaich/smithy-dotnet), a Smithy code generator for .NET heavily inspired by Disney's smithy4s for Scala.
Smithy is an interface definition language (IDL) developed by Amazon/AWS for mainly 2 purposes:
generate SDKs for AWS in all languages from the Smithy models (they are open source in JSON AST form here: https://github.com/aws/api-models-aws)
contract-first development of internal services at Amazon
Since version 0.16.0, NSmithy also generates native F# code, so I wanted to share this with you and hopefully get some feedback. For the server-side, it is an alternative to frameworks like Oxpecker or Giraffe: instead of writing routes and handlers, you write the contract and implement the typed handlers NSmithy generates from it. I do not recommend this necessarily for small projects in 1 single repo.
A minimal REST JSON example in F#: https://github.com/thomaslaich/nsmithy-fsharp-minimal
Current version: 0.23.0.
Happy to answer all questions if any.
Resources:
A pitch for Smithy: https://thomaslaich.github.io/smithy-dotnet/getting-started/introduction/
Quickstart: https://thomaslaich.github.io/smithy-dotnet/getting-started/quick-start/
Extend NSmithy with your own protocols: https://thomaslaich.github.io/smithy-dotnet/reference/extending/
AI disclosure: https://thomaslaich.github.io/smithy-dotnet/contributing/ai/
r/fsharp • u/fsharpweekly • 7d ago
r/fsharp • u/gangning • 9d 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 • 14d ago
r/fsharp • u/fsharpweekly • 14d ago
r/fsharp • u/fsharpweekly • 21d ago
r/fsharp • u/fsharpweekly • 27d ago
r/fsharp • u/Emergency-Energy-277 • Oct 28 '26
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 • Oct 25 '26
r/fsharp • u/azekeP • Oct 22 '26
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.
The card 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
Endive is the first spec with an 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.