News for hackers. Stuff that matters.
Re:Why F#? by jonsagara on Tuesday April 01, 2025 @10:36AM (#43547296)
The killer feature for me is type providers. I need to read a lot of CSV files of varying formats, and the CSV Type Provider lets me make quick work of them in a type-safe manner.

https://fsprojects.github.io/FSharp.Data/library/CsvProvider...

Re:Why F#? by Hojojo on Tuesday April 01, 2025 @11:48AM (#43548210)
Wow, that sounds awesome. I'm jealous.
Re:Why F#? by owlstuffing on Wednesday April 02, 2025 @01:03PM (#43558829)
Agreed. Type providers bring metaprogramming to F# in a way that’s both powerful and innovative. The concept is amazing, enabling a new frontier for dynamically extending type safety. My only surprise is how little fanfare it has received since its introduction.

For a more pragmatic take on static metaprogramming, the manifold project[1] for Java is worth a look. Unlike F#, which leans toward expansive schemas, Manifold focuses on contained, compile-time integrations—handling JSON, XML, SQL, GraphQL, and even other languages in a seamless, type-safe way.

1. https://github.com/manifold-systems/manifold