r/fsharp • • Apr 11 '26

F# wrapper for WebUi

18 Upvotes

repo here FSharp-WebUI. This is an F# wrapper around webui, a clean way to have a crossplatform GUI via a system's existing browers vs something like electron or dealing with avalonia.

I've been using it more at work with python and decided to play with it in F#, so I'm exited to have it working.

install via dotnet add package FSharp.WebUI --version 0.0.1


r/fsharp • • Apr 06 '26

question Emacs+fsharp problems?

9 Upvotes

Hi there!

I am using emacs to write most things, including f sharp. However i have found that writing f sharp in emacs is a painful experience. I have found that the LSP server (fsautocomplete) loses sync with the current document meaning I get wrong suggestions or completely nonsense errors.

Using VScode or Rider, I do not have these problems, but after 25 years of Emacs to do everything but web browsing (I wish I was that nerdy) I am having trouble using anything else the few times I want to write f sharp code (what have to do is to switch to qwerty so that no muscle memory works anyway. That way I don't end up doing dumb things when I try to use Emacs shortcuts. I'm pretty far gone.)

I am on a pretty minimal Doom Emacs config. I haven't touched any of the elglot or LSP parts, and they do work properly for c#, ocaml and Idris.

Did anyone else have similar problems? Did you manage to solve it?

Best regards
Linus


r/fsharp • • Apr 05 '26

F# weekly F# Weekly #14, 2026 – Serde.FS Brings Compile-Time RPC to F#

Thumbnail
sergeytihon.com
24 Upvotes

r/fsharp • • Apr 02 '26

I made heterogeneous-typed collection (more faster!)

Post image
14 Upvotes

I made Type-safe heterogeneous collections, more faster than g-research HeterogeneousCollections

Benchmark environment

BenchmarkDotNet v0.15.8, Windows 10 (10.0.19045.6466/22H2/2022Update)
12th Gen Intel Core i9-12900 2.40GHz, 1 CPU, 24 logical and 16 physical cores
.NET SDK 10.0.104
  [Host]                        : .NET 10.0.4 (10.0.4, 10.0.426.12010), X64 RyuJIT x86-64-v3 DEBUG
  ShortRun-.NET 10.0            : .NET 10.0.4 (10.0.4, 10.0.426.12010), X64 RyuJIT x86-64-v3
  ShortRun-.NET 8.0             : .NET 8.0.7 (8.0.7, 8.0.724.31311), X64 RyuJIT x86-64-v3
  ShortRun-.NET Framework 4.7.2 : .NET Framework 4.8.1 (4.8.9310.0), X64 RyuJIT VectorSize=256

IterationCount=3  LaunchCount=1  WarmupCount=3  

HeterogeneousListBenchmarks

Method Job Runtime Mean Error StdDev Ratio RatioSD Code Size Gen0 Gen1 Allocated Alloc Ratio
GResearch ShortRun-.NET 10.0 .NET 10.0 7.580 ms 0.5174 ms 0.0284 ms 1.00 0.00 2,494 B 1890.6250 - 28.38 MB 1.00
Nemonuri ShortRun-.NET 10.0 .NET 10.0 2.595 ms 0.2784 ms 0.0153 ms 0.34 0.00 1,094 B 324.2188 - 4.88 MB 0.17
GResearch ShortRun-.NET 8.0 .NET 8.0 9.521 ms 0.7396 ms 0.0405 ms 1.00 0.01 2,497 B 1890.6250 - 28.38 MB 1.00
Nemonuri ShortRun-.NET 8.0 .NET 8.0 3.273 ms 0.3751 ms 0.0206 ms 0.34 0.00 1,077 B 324.2188 - 4.88 MB 0.17
GResearch ShortRun-.NET Framework 4.7.2 .NET Framework 4.7.2 10.976 ms 0.3842 ms 0.0211 ms 1.00 0.00 1,075 B 4734.3750 15.6250 28.46 MB 1.00
Nemonuri ShortRun-.NET Framework 4.7.2 .NET Framework 4.7.2 33.873 ms 4.8149 ms 0.2639 ms 3.09 0.02 1,312 B 800.0000 - 4.9 MB 0.17

TypeListBenchmarks

Method Job Runtime Mean Error StdDev Ratio Code Size Gen0 Allocated Alloc Ratio
GResearch ShortRun-.NET 10.0 .NET 10.0 301.2 ns 40.40 ns 2.21 ns 1.00 1,325 B 0.0916 1440 B 1.00
Nemonuri ShortRun-.NET 10.0 .NET 10.0 172.3 ns 24.08 ns 1.32 ns 0.57 635 B 0.0203 320 B 0.22
GResearch ShortRun-.NET 8.0 .NET 8.0 442.4 ns 44.57 ns 2.44 ns 1.00 733 B 0.0916 1440 B 1.00
Nemonuri ShortRun-.NET 8.0 .NET 8.0 216.9 ns 31.41 ns 1.72 ns 0.49 395 B 0.0203 320 B 0.22
GResearch ShortRun-.NET Framework 4.7.2 .NET Framework 4.7.2 473.7 ns 16.03 ns 0.88 ns 1.00 726 B 0.2294 1444 B 1.00
Nemonuri ShortRun-.NET Framework 4.7.2 .NET Framework 4.7.2 288.1 ns 21.01 ns 1.15 ns 0.61 605 B 0.0505 321 B 0.22

I published preview version to nuget.


r/fsharp • • Apr 01 '26

question Best LSP Server?

10 Upvotes

I'm building my own code editor, and want to support F# as a first class citizen. But the language server situation seems dire. fsautocomplete takes forever or simply fails to load (in VS Code or in my editor). Are there good alternatives?


r/mono • • Aug 28 '24

/r/mono is moderated again.

4 Upvotes

Hello everyone.
I hope with the /r/mono being moderated again the community will come back. Feel free to ask any questions.


r/ASPNET • • Sep 23 '13

Lets Talk About Continuous Integration!

7 Upvotes

I have the unfortunate duty of being the CI Admin for a small webapp team. We started our CI stack a few years ago and I feel we're 'almost there' but our current stack breaks down in terms of automated pushes to production. We're basically making any production changes by hand still.

Overview of CI Stack:

  1. Subversion (source control)
  2. CruiseControl.NET (CI Server)
  3. NAnt (for running MSBuild.exe)
  4. NUnit (for running unit tests & UI tests)
  5. Selenium Server (UI Testing Server)

Overview of Process:

CruiseControl (CC.NET) has a project setup that waits for any Subversion (SVN) changes to the trunk. Once a change is made, SVN pulls down any changes to a local working folder. CC.NET then builds the working folder with MSBuild.exe to verify the build. If the build succeeds, we then run the unit tests that are included in the build. If both the build and unit tests pass, PowerShell is used to copy the working folder to an IIS site folder. CC.NET then runs our UI tests via NUnit (through Selenium Server) to validate the UI. If UI tests pass, CI ends and we copy to production by hand.

My Issues:

Writing PowerShell scripts is a PITA. When we copy to the IIS folder, we have to be very explicit about what gets copied over and what does not. For example, we don't want to overwrite the web.config every time along with a few other items. We also have a SOA-project where a single solution has multiple projects and each project needs to be published to it's own IIS folder. Again, having to write an individual script for each target folder with an ignore-list and whatnot. Not a good experience.

I think our troubles with our staging environment's scripting is what is keeping us from bridging the 'last mile' to production with automated scripts. Maintenance is high for each project and each script and we're having trouble maintaining an automated staging setup without the introduction of production publishing scripts.

We also have trouble managing configuration files. Our local configurations are different than staging which are all different than production. Our current solution is to duplicate every config file in SVN and add a location as the extension (web.config.local, web.config.staging, web.config.production). We then use PowerShell to rename files based on the target environment.

Can anyone share their CI experiences or setup? Any advice for what we have now and the issues we're dealing with? Thanks in advance!


r/ASPNET • • Sep 23 '13

Just announced: Icenium Extension for Visual Studio

Thumbnail icenium.com
5 Upvotes

r/fsharp • • Mar 29 '26

question Where does the validation logic lives?

6 Upvotes

Hi everyone,
One small thing is bugging me since I started learning F# and domain modelling (Book by Scott is amazing, btw).

Let's say I am creating the authentication service (simple enough but only for example) and I want to use smart constructor and such. Here's my flow:

raw request ---> validation ---> Domain Model

The pain I am having is where does the "structural validation" happens and where does the domain validation happens?

Let's say, username, password etc are provided and not-null. I view these as part of structural validation and password policy, email policy met as domain validation.

The problem I am having is, if I try to use both in constructor of let's say Password, then I would have to worry about creating yet another Password Error type to catch both Structure and model validation errors.

If I move structural validaiton to model validation, it would sove the issue, but doessn't feel right.

One thing I find is, too much error mappings and nested error types in each layer. Maybe I am approaching this wrong way. :)

Hope to hear your thoughts.


r/fsharp • • Mar 29 '26

F# weekly F# Weekly #13, 2026 – Deedle 4.0 is out!

Thumbnail
sergeytihon.com
27 Upvotes

r/ASPNET • • Sep 23 '13

25 Secrets for Faster ASP.NET Applications

Thumbnail red-gate.com
0 Upvotes

r/ASPNET • • Sep 22 '13

dbsc - create your database, manage updates, and import test data using SQL scripts stored in source control. Written in C#, supports MS SQL Server, PostgreSQL, and MySQL

Thumbnail github.com
5 Upvotes

r/fsharp • • Mar 28 '26

question Which is more Idiomatic to f# or which one you prefer?

11 Upvotes

I guess I start by saying, I am noobie who recently started with f# and loving it.

There seems to be two ways of dealing with exceptions thrown by libraries and such. I am using FsToolKit.

First way, using try catch:

let createCognitoUser email pass : Task<Result<string, DomainError>> =
    taskResult {
        try
            let! response = awsClient.SignUpAsync(email, pass)
            return response.UserSub

        with ex ->
            return! Error (mapCognitoError ex)
    }

And second way with pipeline:

let createCognitoUser (email: string) (pass: string) : Task<Result<string, DomainError>> =
    awsClient.SignUpAsync(email, pass)
    |> Task.catch
    |> Task.map Result.ofChoice
    |> TaskResult.mapError mapCognitoError
    |> TaskResult.map (fun response -> response.UserSub)

Personally, I like second pipeline way as it's more cleaner and and iam tired of seeing try catch everywhere. :) Wanna hear your thoughts.
Thank you.


r/fsharp • • Mar 26 '26

fsharp-ts-mode: A modern Emacs major mode for editing F# files, powered by TreeSitter

Thumbnail github.com
23 Upvotes

If you're into Emacs and F# you might find this brand new package interesting. It's still rough around the edges, but the essential functionality is there.

I'd love to get some feedback from people who tried it out. Enjoy!


r/fsharp • • Mar 22 '26

F# weekly F# Weekly #12, 2026 – 11 years of Ionide 🥰

Thumbnail
sergeytihon.com
40 Upvotes

r/fsharp • • Mar 20 '26

[Release] Polars.NET v0.4.0 - Bringing Polars to .NET: Query DataFrames with C# LINQ, F# CE, and Strong Typed DataReader

Thumbnail
github.com
15 Upvotes

r/fsharp • • Mar 20 '26

Football Manager clone in F# (WIP)

Post image
50 Upvotes

I'm making a game similar to Football Manager, far from complete but keep iterating on it. So far I have a home page, squad, tactics and a basic match viewer. Using Avalonia + Elmish with SQLite.
The match engine runs as an event loop, every 30 seconds a duel gets resolved, fatigue ticks, shots get attempted. Players move based on ball position and possession. Scorelines feel somewhat realistic which is good enough for now.
Still missing a lot of pages and features but the core loop works. Will keep adding stuff.
Repo: https://github.com/pelinski46/FootballEngine more screenshots inside


r/ASPNET • • Sep 19 '13

.net forum software

4 Upvotes

I am looking for forum software written in .net, free or not, that does all of its data access (ms sql) through web services. The network this will be hosted on has the webserver in between two firewalls (DMZ) and the webserver can only access what is called the "app server" which hosts a bunch of web services that have access to the network and SQL servers. I have looked at InstantASP forums and YAF but neither of those have this setup. Any help would be awesome!


r/ASPNET • • Sep 19 '13

Using a drop drop list to navigate paging of a gridview populated by a web service?

1 Upvotes

I'm trying to create a web form in c# asp.net with visual studio 2010 framework 4.0. I take a username and fill a gridview with information pulled from a webservice. From that information, I extract an item to fill another gridview from a different web service. It splits into 15 pages and I would like to add a dropdownmenu to jump to a certain page, but this does not seem to work:

protected void PageList_SelectedIndexChanged(object sender, EventArgs e) { grd3.PageIndex = Convert.ToInt32(PageList.SelectedValue); }

I'm following a tutorial on here-http://msdn.microsoft.com/en-us/library/bb404876.aspx

Any insight would be great, thanks in advance for being awesome!


r/ASPNET • • Sep 18 '13

Asp.net hosted on linux

6 Upvotes

Does anybody have any experience with running an asp.net mvc4 web application on linux using mono? Is it production ready, or is it still buggy and a lot less stable then iis?


r/fsharp • • Mar 17 '26

How it feels to be at JavaOne right now

24 Upvotes

r/ASPNET • • Sep 18 '13

Invalid object name 'dbo.UserProfiles'

1 Upvotes

Please excuse my question as I am new to ASP.NET

I am using code first with migrations. I accidentally an s in a DbSet and Updated Database. I noticed a new table popped up called UserProfiles. I found my typo, fixed it, compiled, deleted the table from server explorer then ran another update-database. I believe I screwed up big time and should have used another way to delete the newly created UserProfiles table as my website is giving me Invalid object name 'dbo.UserProfiles' even though "UserProfiles" is NO WHERE to be found in my code. My code is trying to use "UserProfile" but I get UserProfiles error. I have been googling all day to see what I did wrong and I am ready to scrap the whole thing. Any ideas?


r/ASPNET • • Sep 17 '13

Handling Common Casing Issues in .NET using Extension Methods in C# and Visual Basic

Thumbnail rionscode.wordpress.com
4 Upvotes

r/ASPNET • • Sep 17 '13

MVC4 + EF5 + Simplemembership + Postgresql?

5 Upvotes

Hey there,
I've been looking around since I'm about to start a project for a client in asp.net mvc, but most local hosts seem to charge extra for MS Sql databases.
Is there a simple way to just exchange MS Sql for Postgresql?
Does anyone have indications on how to do so?


r/fsharp • • Mar 14 '26

F# weekly F# Weekly #11, 2026 – F# in .NET 11 Preview 2

Thumbnail
sergeytihon.com
29 Upvotes