News for hackers. Stuff that matters.
Re:What's New in F# 9 by ducdetronquito on Sunday November 10, 2024 @02:50PM (#42102198)
I only toyed with F# recently, but coming from Python I really like that I can also use a REPL to experiment stuff: I wonder if experienced F# devs use it too.

I hope to have time to build a small web backend project this winter, to get to know the language and ecosystem better.

I heard good things about Oxpecker for the http part; do you have any recommendation for a good postgresql client/driver ? (I don't like ORMs)

Cf: https://lanayx.github.io/Oxpecker/

Re:What's New in F# 9 by yawgmoth on Sunday November 10, 2024 @03:18PM (#42102362)
Npgsql is the popular C# driver, and has an F# wrapper. I'd start there.
Re:What's New in F# 9 by ducdetronquito on Sunday November 10, 2024 @03:25PM (#42102390)
Thanks :)
Re:What's New in F# 9 by throwaway675867 on Sunday November 10, 2024 @06:05PM (#42103227)
As an polyglot dev who has the chance to use F# dev at times the REPL is how I POC most things - if I'm not sure of an API, even inlined into my actual codebase just hit the "Send to F# interactive" and it runs there and I can try things inside a module. Or when I want to try a new library, or when I want to do a quick benchmark, or as a substitute to a PS script, etc. You can even make F# scripts executable with the shebang `#!/usr/bin/env -S dotnet fsi` which we do a lot for scripts around our projects as an alternative to bash/python in our .NET projects where we already know a dotnet-sdk is installed. Usually runs faster too and typically just as concise. Just my anecdote opinion - the syntax and idioms of F# lean themselves more to REPL programming then C# which typically needs more OO structure rather than small code snippets strung together.
Re:What's New in F# 9 by raphinou on Monday November 11, 2024 @03:12AM (#42105332)
Here are 2 possibilities:

- https://monazita.gitlab.io/monazita/ (i developed it for a project of mine while learning fsharp. Basically works but could be more polished and is pgsql only)

- https://github.com/jacentino/DbFun (more polished than previous project, and multi db)