Jindřich Ivánekjindraivanek.hashnode.dev·Apr 25, 2024F# tips weekly #14: MemoizeThe memoize function is my favorite method for solving performance problems. Its significant advantage is that it requires only a slight change in code, which doesn't increase the complexity of the original code. Despite its short implementation, it ...Discuss·1 like·114 readsF# tips weeklyF#
Jindřich Ivánekjindraivanek.hashnode.dev·Apr 18, 2024F# tips weekly #13: OperatorsUsing operators like =, +, && or |> is daily bread of writing F#. Let's look at how they work under the hood. Operator is a function Every operator can be used as standard function by enclosing it in parentheses, for example (+) 1 2 is the same as 1...Discuss·1 like·190 readsF# tips weeklyF#
behrooz bozorgchamyblog.behroozbc.ir·Apr 12, 2024NumPy replacement in the .NET world( C# and F#)NumPy is a popular Python library that provides powerful tools for working with arrays, matrices, and numerical computations. In this blog post, I will introduce some of packages to use it in the .NET application and systems and write your program in...Discuss·166 readsnumpy
Jindřich Ivánekjindraivanek.hashnode.dev·Apr 4, 2024F# tips weekly #12: Recursive active patterns - parser exampleThis week, this article will be a little different. I want to show you that we can use recursive Active Pattern to create an expression parser. While I wouldn't recommend using this instead of a library such as FParsec for parsing, I think it's very ...Discuss·1 like·305 readsF# tips weeklyF#
Jindřich Ivánekjindraivanek.hashnode.dev·Mar 28, 2024F# tips weekly #11: Active patterns (2)Continuing from the previous week, let's delve into some active pattern implementation details and advanced use cases. Single-case active pattern As mentioned in Tip #2, we can use a single-case active pattern to directly transform a value: let (|Fro...Discuss·1 like·239 readsF# tips weekly#fsharp
Jindřich Ivánekjindraivanek.hashnode.dev·Mar 21, 2024F# tips weekly #10: Active patterns (1)Active patterns are a great and unique feature of F#, allowing us to extend pattern matching with custom cases. Partial Active Patterns The most basic usage is to use active patterns as switches based on input value: let (|PositiveInt|_|) x = if ...Discuss·2 likes·555 readsF# tips weeklyF#
Jindřich Ivánekjindraivanek.hashnode.dev·Mar 14, 2024Infinity ♾ forecast bugAt one of our customer project at Ciklum Western Europe, we encountered an interesting bug after migrating to .NET8 from .NET6. The project is a weather forecast service written in F# that provides weather forecast data from various weather forecast ...Discuss·1 like·218 readsdotnet
Jindřich Ivánekjindraivanek.hashnode.dev·Jul 31, 2023FeaturedCurious case of List.contains performanceSome time ago, colleagues stumbled upon a case where List.contains was significantly slower than identical use of List.exists. List.contains and List.exists are functions from F# standard library, where List.contains x xs check if the list xs contai...Discuss·14 likes·369 reads#fsharp
Brett Rowberrybrettrowberry.com·Jun 10, 2023AttributesI use a library called Pathom3. The Getting Started page opens with Pathom is a Clojure/script library to model attribute relationships. The README states Logic engine for attribute processing for Clojure and Clojurescript. There are a few big id...Discuss·10 likes·178 readsPathomClojure
Charles Farrisblog.sleepingbearsystems.com·Apr 14, 2023ArtShowTools: Part 3In the previous post, I used event sourcing to handle commands and recreate the current state of the Artwork entity. In this post, I'll be adding validation to the value objects used to implement the command and event objects. The ArtworkId Value Obj...Discuss·1 likeArtShowToolsF#