News for hackers. Stuff that matters.
Re:Net 9.0 LINQ Performance Improvements by neonsunset on Friday October 18, 2024 @08:01AM (#41878591)
F# is even better. I only wish performance wasn't hit or miss around sequences/iterator expressions. Hopefully one day it will reach parity with C# through compiler improvements and/or detaching FSharp.Core from conservatively targeting NS2.0 and modernizing it.
Re:Net 9.0 LINQ Performance Improvements by emn13 on Friday October 18, 2024 @08:16AM (#41878682)
I never really got over the order-dependent and fairly slow compile times, but it's been like 10 years since I used it for anything even slightly complex. Is F# better in this regard now, or are there accessible patterns to help deal with that?
Re:Net 9.0 LINQ Performance Improvements by munchler on Friday October 18, 2024 @08:24AM (#41878756)
Order-dependency is a feature, not a bug, but it does take some getting used to. If you really want to avoid it, you can now declare all functions in a module to be mutually recursive, so you can put them in any order. Cyclic dependencies between files are still prohibited, for good reason. See https://fsharpforfunandprofit.com/posts/cyclic-dependencies/.

The F# compiler is slower than the C# compiler, but it's still more than fast enough for building large applications.