News for hackers. Stuff that matters.
Re:Inventing Monads by Izkata on Sunday August 30, 2020 @04:53AM (#24322236)
Y'know what, maybe looking at it like that is actually one of the problems: We don't learn our first imperative language(s) by way of Turing machines. That theory-level understanding comes much later, after we have a handle on the language itself.

When first learning, the most common abstractions are variations on "a list of steps" - like an instruction manual or To-do list - without touching on memory.

I wonder if there's some sort of similar abstraction here that could be used instead, for the just-getting-started stage...

Re:Inventing Monads by yomly on Sunday August 30, 2020 @05:32AM (#24322353)
Excel function pipelines which take inputs to outputs. People build wonderfully useful things in Excel using its standard library of spreadsheet functions. They are all referentially transparent.

In imperative steps of code, time flows down your code.

In functional code your flow of time is each function application.

Re:Inventing Monads by goto11 on Sunday August 30, 2020 @01:00PM (#24324101)
This is what I call haskellsplaining - explaining concept from first principles and mathematical definitions rather than from how they are used and what they are useful for.