I'll always keep randomly mentioning the isomorphism between cognition and compr...

@MaddieM4@raphus.social

I'll always keep randomly mentioning the isomorphism between cognition and compression and computation, because it keeps showing up if you're a little tuned to it. For example: preconditions!

Imagine your programming language like a machine that can 1. get arguments ready for a function (usually by calling other functions), and 2. run a function with arguments. And as the one customization point in the whole machine, all you get - and all you need - is to answer the question, "what does running a function do?"

The base case is some kind of error, regardless of the name of the function or the arguments passed in.

And then you say, "well, when the name is 'plus' and the first argument is a u32 and the second argument is a u32, it should do a binary addition of the two numbers, wrapping on overflow." Most ways you could attempt to call a function still produce errors, but this particular pattern does something useful.

1/n