The algebra of dependent types (2025) (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
> 0 × A ≅ A × 0 ≅ 0.
In practice, 0 × A ≅ A × 0 ≅ A for the temptation is too great to divide by zero and I don't know of a single programming language that doesn't succumb.
Replies (2)
In a strict language (or with a strict pair in a lazy language), you normally won’t be able to (integer) divide by zero while computing a value, then go on to ignore that, pack that erroneous value into a pair, and extract the other, valid value from it and go on with your life.
Similarly, if your program has hung while computing one half of a pair then (except in lazy languages) it will have hung while computing the pair as a whole as well.
(Haskell’s type algebra is indeed somewhat subtler.)