Tuomas Hietanen

Results 463 comments of Tuomas Hietanen

You have option to customize the serialization https://fsprojects.github.io/SwaggerProvider/#/Customization#serialization

The offset (with time-zone) is a bit weird guy with "date" as there is no time-zone conversions and SwaggerProvider is a server-side tool where you'd expect everything to be UTC....

oh right it goes straight to the problem where VS Code runs on netstandard2.1 and VS full runs on netstandard 2.0

Exception handling shouldn't be part of your typical program flow. Would this encourage writing manual exception handling more, when the business logic program flow should be handled without rising exceptions?...

https://github.com/fsprojects/FAKE/pull/2783 could help this one as well.

I decided to use Copilot Agent to update to Fable.Mocha, here is an example PR of that: https://github.com/flowa/amadae-hawk-dove-binary-model/pull/25/files

I would expect this to come from the external library (Microsoft.OpenApi) schema parsing. There is now PR to update that library, but if it won't work after that, then it's...

It seems schemas are "best effort" of creator and rarely without mistakes. On schema errors I recommend: 1) save the schema to your file system and fix the issue locally....

Looking into source code of e.g. [Array.Sum](https://github.com/dotnet/fsharp/blob/a136b33244aa64fe69b959d539477d194faa1ce7/src/FSharp.Core/array.fs#L1582), [List.Sum](https://github.com/dotnet/fsharp/blob/a136b33244aa64fe69b959d539477d194faa1ce7/src/FSharp.Core/list.fs#L715) and [Seq.Sum](https://github.com/dotnet/fsharp/blob/a136b33244aa64fe69b959d539477d194faa1ce7/src/FSharp.Core/seq.fs#L1467) they look pretty similar to C# version of LINQ Sum [here](https://github.com/dotnet/runtime/blob/199ae8820492f05169529da1f262e9736007448a/src/libraries/System.Linq/src/System/Linq/Sum.cs#L203). But then C# has also this ReadOnlySpan vectorization version...

Before I dive deeper into this, I'm wondering why initially `#time` shows Array.sum being faster than Enumerable.Sum? ```fsharp open System;; open System.Linq;; let myseq = [|-1000.0 .. 0.0001 .. 100000.0...