42
LLAMS
6y

Functional Programming. Because Moores Law has moved from making processors faster to multiplying cores, and we may eventually have to code on machines that have 1024 cores or more. Mutable state will cause all kinds of hell in those scenarios. We already have problems with it when we have like 2-3 different threads.

Comments
  • 1
    I was just about to post something very similar to this!
    Nice.
  • 10
    Yo don't need functional programming to use functional concepts.

    Use message passing instead of locks and atomics. Actually just use the actor pattern everywhere it solves pretty much every thing

    Strive for functions without side effects. Param mutation is fine if it's limited.

    Two rules and you are 1000x better at distributed computation
  • 1
    @stevemk14ebr *this* though the actor model can be a little heavy, and certainly isn’t perfect.

    I think learning the fundamental concepts of a functional approach make things like actor / pure functions etc etc easier to work with in the long run. 👍
  • 0
    we'll get quantum computers before we get ones that have more than 32 cores.

    so now you know what to learn and fanboy about. go forth and be happy.
Add Comment