[HN Gopher] Cellular Automata in F#
___________________________________________________________________
Cellular Automata in F#
Author : de_keyboard
Score : 36 points
Date : 2021-11-06 19:25 UTC (3 hours ago)
(HTM) web link (isthisit.nz)
(TXT) w3m dump (isthisit.nz)
| peheje wrote:
| F# is a pretty cool language. What do you think about coding in
| it compared to other languages? (And what other?) Would love to
| hear some comparisons.
| lmc wrote:
| Since getting into F# as a hobbyist, it's put me off doing C#
| professionally. Makes doing C# for typical business dev seem
| like walking through treacle.
|
| There can be a lot to learn, which is a mix of functional
| programming stuff (recursion-first, immutability, and getting
| used to type definitions and function signatures), and
| F#-specifics like computation expressions, active patterns and
| quotations.
|
| There will be many better examples than mine, but here's some
| more F# cellular automata stuff from last year's Advent of Code
| (spoiler alert):
| https://github.com/lukesdm/aoc-2020/blob/main/FSharp/Day24.f...
___________________________________________________________________
(page generated 2021-11-06 23:00 UTC)