I am also keeping an eye on gleam! I also regret that they left the ml syntax behind, but as you say it shouldn't be a blocking factor.
If they adopt computation expressions and make otp a priority it would probably come beside fsharp in my toolbox!
Re:Why F#?
by neonsunset on Tuesday April 01, 2025 @01:24PM
(#43549343)
Gleam, much like any language which primarily targets BEAM, is slower by an order of magnitude or two when compared to F#.
The appeal is the runtime model. I can’t readily verify if BEAM languages are meaningfully slower or really slower at all but let’s take the premise for the sake of argument.
Even if is slower, the runtime model is incredibly resilient and it’s cheap to scale up and down, easy to hot update, and generally does asynchronous work extremely well across a lot of different processes.
F# has really good async ergonomics but it doesn’t have the same task/processing flexibility and Websockets are kind of a pain compared to elixir or even erlang
Re:Why F#?
by CharlieDigital on Wednesday April 02, 2025 @06:57AM
(#43555434)
.NET's SignalR is actually quite good. Strongly typed message hubs on the server[0]. Wide client support. Azure SignalR[1] if you don't want to own the infrastructure to scale web sockets.
[0] https://learn.microsoft.com/en-us/aspnet/core/signalr/hubs?v...
[1] https://azure.microsoft.com/en-us/products/signalr-service
given this is about F#, the question is how ergonomic is it to use this in F#?
In the past, I found it wonky
Re:Why F#?
by davydog187 on Wednesday April 02, 2025 @08:57AM
(#43556148)
For most of the workloads you’re putting on the BEAM, they are IO bound and this is not of any consequence
[0]: https://gleam.run/