ingted
ingted
Create your own sum function with: ``` Definition.funDict.TryRemove "mySum" Definition.funDict.TryAdd ("mySum", (DTProc ([ [symX], (DBFun ((fun parentScopeIdOpt procEnv symbolValues exprs -> let stx = procEnv.stx let _, (nx) = stx.Value.TryGetValue...
You need to provide the generic type parameter: ``` open System.IO open System.Collections.Immutable open MBrace.FsPickler let mkPickler () let intPickler = resolver.Resolve () let writer (w : WriteState) (ns :...

``` /// Registers a user-specified pickler factory member __.RegisterFactory) : unit = registerPickler (fun () -> picklerFactories.[typeof
Hi @marklam , I implemented a version supporting type with generic parameter. And I push it here (I compiled FsPickler with .net 9) [FsPickler9](https://github.com/ingted/FsPickler9) And the picklerFactory register code should...
By the way, FsPickler9 doesn't need customized pickler to support ImmutableList...
I fixed some issues [commit](https://github.com/ingted/FsPickler9/commit/7e9f29cd5360ced67198ae2f8c8034e57015048e) And all these styles are supported now: ``` registry.RegisterFactory (resolver : IPicklerResolver) = let tt = typeof () let intPickler = resolver.Resolve () let writer...
PS. to run the unit tests of fspickler, please build fspickler9 with release profile... Not sure why these codes work ``` binarySerializer.Pickle (new HashSet([|1;2;3;|])) |> binarySerializer.UnPickle binarySerializer.Pickle (new HashSet([|5, "gg";2,...
Hi @omnilogix , You can try my fork: https://github.com/ingted/symbolic.net I supported several function customization ways. (Check the following pages) 1. https://github.com/ingted/symbolic.net/blob/main/SymbolicNet6/scripts/test.20250618.fsx Add your function into ```Definition.funDict``` ``` Definition.funDict.TryRemove "iif" Definition.funDict.TryAdd...
By the way, it also supports Tensor/Deedle data frame/ConcurrentPersistedDictionary, if you don't need them, you could just comment them out in fsproj. ``` true net9.0 ```