Pedrinho's Avatar

Pedrinho

@definitelydrinho

Domain Modelling, Software Design, F#

17
Followers
83
Following
11
Posts
13.11.2024
Joined
Posts Following

Latest posts by Pedrinho @definitelydrinho

yep, twitter is down

24.05.2025 13:46 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

voilΓ‘ πŸ€—

23.11.2024 21:37 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image Post image


Finally managed to recreate recreate something similar to TSoding's Haskell homemade parser combinator implementation using F#. I was stucked in the error of the first image, but after some research I learned that I could solve this using lazy evaluation!!

23.11.2024 21:35 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Dependency injection in F#. The missing manual. Dependency injection management has historically been a trump card in object oriented languages like C# or Java. A galore of DI containers…

medium.com/@lanayx/depe...

TIL about #fsharp flexible types.

15.11.2024 16:42 πŸ‘ 11 πŸ” 6 πŸ’¬ 0 πŸ“Œ 0
Post image Post image Post image

function to return a list of a single char instead of an arbirtrary length.
I'm also getting more used to working in the "elevated world" as I lift normal functions to the Parser world

17.11.2024 09:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

In order to be able to parse Floats, I created a parser that combines the following sequence.
Parse Int -> Parse Dot -> Parse Int
Combining a char sequence parser such as Parse Int and a single char parser such as Parse Dot wasn't feeling ergonomic, so I "Promoted" the initial Parse Dot [+]

17.11.2024 09:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

'a

15.11.2024 16:23 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
GitHub - Pekito/lispires Contribute to Pekito/lispires development by creating an account on GitHub.

Github repo
github.com/Pekito/lispi...

15.11.2024 00:29 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image Post image

The road so far [2/2]

15.11.2024 00:24 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image Post image Post image Post image

The road so far [1/2]

15.11.2024 00:24 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I have never had any kind of contact with interpreters/compilers before. Just me, Haskell Docs, F# in my Vscode and a Dream hahahah.

15.11.2024 00:24 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Just watched Tsoding's JSON Parser tutorial in Haskell and felt inspired to try and implement my own parser in F# from Scratch.
My goal is to resemble the same subset of lisp that Norvig was able to Parse with his Lispy :))

15.11.2024 00:20 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0