Ask HN: Any one use Haskell to paractise their algorithm skill 3 pointsJasonHEIN4 months ago5 commentsSaveHideCopy link On HNComments−verdverm4moI spent a few weeks rewriting my PhD algorithm in Haskell as an exercise, but it also provided some insights.I later wrote it in Python and list compression paid the most dividends for readability.Originally in C, then Go (then Haskell, finally python, meaning to write parts of it in JAX)Prioritized Grammar Enumeration for the curious−turtleyacht4moOne approach is Haskell with physics, which would seem very procedural, demonstrating its utility as in Learn Physics with Functional Programming (2022).−JasonHEINOP4moJust always want to use pure FP to do leetcode or codeforce stuff loll−juschill14moRust go zig and Haskell TRY IT−JasonHEINOP4morust go zig are not FP hahha
Comments
I spent a few weeks rewriting my PhD algorithm in Haskell as an exercise, but it also provided some insights.
I later wrote it in Python and list compression paid the most dividends for readability.
Originally in C, then Go (then Haskell, finally python, meaning to write parts of it in JAX)
Prioritized Grammar Enumeration for the curious
One approach is Haskell with physics, which would seem very procedural, demonstrating its utility as in Learn Physics with Functional Programming (2022).
Just always want to use pure FP to do leetcode or codeforce stuff loll
Rust go zig and Haskell TRY IT
rust go zig are not FP hahha