News for hackers. Stuff that matters.
Re:Rust needs a web framework for lazy developers by CharlieDigital on Sunday October 06, 2024 @09:06PM (#41761814)

    > I think a lot of what people actually like about Rust, to be honest, is that it's essentially an ML language masquerading as a C-like, with a stellar packaging and tooling story.
F# seems like a good option.
Re:Rust needs a web framework for lazy developers by cmrdporcupine on Sunday October 06, 2024 @10:20PM (#41762191)
Or just OCaml
Re:Rust needs a web framework for lazy developers by sunshowers on Sunday October 06, 2024 @10:30PM (#41762250)
OCaml is an excellent language, but doesn't it have a GIL?
Re:Rust needs a web framework for lazy developers by throwitaway1123 on Monday October 07, 2024 @12:38AM (#41762856)
Multicore OCaml finally landed a few years ago: https://news.ycombinator.com/item?id=34013767
Re:Rust needs a web framework for lazy developers by satvikpendem on Monday October 07, 2024 @01:16AM (#41762991)
How is F# on non-Microsoft platforms, is it fully cross platform? I don't use C#, .NET, or F# so I have no idea about the ecosystem.
Re:Rust needs a web framework for lazy developers by mathw on Monday October 07, 2024 @03:29AM (#41763609)
Yes F# has come along for the ride with modern .NET and it's as cross-platform as C# is. However, a lot of the really shiny .NET stuff is tooled up mostly for C# users, so it can be a challenge if you wanted to do something like a .NET MAUI (cross-platform GUI library) application in F# because the tooling and the content out there to teach you about it assumes C#.

F# can usually handle C# things - they put a lot of work into ensuring interop with new C# features - but the languages are from different paradigms so it is sometimes a bit awkward despite F#'s comprehensive OO support.

Personally I struggle a bit with F# because it doesn't have typeclasses, and a language that looks that much like Haskell but doesn't have typeclasses just feels weird to me.

Although it might get them... C# are looking at adding a traits-type feature (they don't seem to know what to call it yet, but the design's been kicking around the language team for ages now and keeps getting discussed), so F# could presumably piggyback on that if they wanted.

Re:Rust needs a web framework for lazy developers by scns on Monday October 07, 2024 @04:17AM (#41763839)
> C# are looking at adding a traits-type feature (they don't seem to know what to call it yet, but the design's been kicking around the language team for ages now and keeps getting discussed)

Why not name it Traits?

Re:Rust needs a web framework for lazy developers by CharlieDigital on Monday October 07, 2024 @09:39AM (#41765903)
Really good.

I'm in a startup using .NET. We deploy to a variety of targets including AWS t4g (Arm64) instances in AWS as well as x86/64 targets in GCP. All devs are on M1 Macs. Our build pipeline is GitHub Actions Linux runners. Our DB is either AWS RDS Postgres or GCP Cloud SQL Postgres with a mix of EF Core as ORM and Dapper (for more complex read queries).

C# has, over the years, converged with TypeScript so they are very similar[0] (though no Duck typing in C#). Good mix of OOP and FP paradigms borrowed from F#. F# interoperates with C# so it can tap into the larger C# ecosystem.

It's a good platform; very productive. CLI has a functional hot reload (much more limited than Node on JS as the granularity of module replacement isn't quite as good).

[0] https://github.com/CharlieDigital/js-ts-csharp

Re:Rust needs a web framework for lazy developers by akkad33 on Monday October 07, 2024 @01:21AM (#41763018)
F#is not C like and it's tooling and packaging is not as good as rust. Last time I checked it had multiple packaging solutions like paket and nuget. The tooling on vscode can be buggy
Re:Rust needs a web framework for lazy developers by pjmlp on Monday October 07, 2024 @03:41AM (#41763661)
Easy, stay with .NET standard tools, MSBuild.

There is also Visual Studio and Rider.

Re:Rust needs a web framework for lazy developers by antonvs on Monday October 07, 2024 @07:26AM (#41764926)
> stay with .NET standard tools

That’s a dealbreaker in many situations.

Re:Rust needs a web framework for lazy developers by pjmlp on Monday October 07, 2024 @07:43AM (#41765031)
Then probably .NET isn't an ecosystem for you, that is fine, there are other options.
Re:Rust needs a web framework for lazy developers by piaste on Monday October 07, 2024 @07:40AM (#41765016)
Such as? They're cross-platform and MIT licensed.
Re:Rust needs a web framework for lazy developers by CharlieDigital on Monday October 07, 2024 @09:24AM (#41765761)
If you haven't used .NET since the early 2000's, I'd recommend checking out current `dotnet` CLI and tool chain.