News for hackers. Stuff that matters.

thefunkychook

Just to be clear... Are you saying "amen" to not running out of fossil fuels, or to the possibility of a large number of people dying from heat stress, or both?
Re:Monad Tutorials Timeline on Friday May 01, 2026 @12:12PM (#47976460)
Ah yep - I missed that mention of "lawfulness" in the last section. I guess the minor gripe I have is that that really isn't anything to do with Haskell: it's that you only have a monadic interface when the laws are satisfied (and Haskell itself doesn't, and can't, enforce the laws: you have to check them / others using your interface have to trust that you've checked them.)

I don't quite follow why you're making a distinction for non-lazy languages?

If you want to actually use any generic monad combinators with your monad interface, and expect it to behave sensibly, then the laws had better be satisfied!

But yeah... Nice article, and I really liked your "Noun / Adjective" distinction.

Re:Monad Tutorials Timeline on Thursday April 30, 2026 @11:24PM (#47971015)
I enjoyed your article, thanks for sharing.

As I understand it, one thing the tutorial didn't go into, which I think is an important subtlety, is that it's not enough to have an implementation of "bind" to have a monad interface. You also need an implementation of "return : a -> m a" (i.e. a way of making sources of 'a's when given an 'a'), AND a proof that these implementations together satisfy the monad laws (i.e. that they "play nicely" together).

Without all three components, you can have something that "looks like" a monad, in that it has definitions for "bind" and "return", but isn't actually one, because those particular definitions don't also satisfy the monad laws.

Re:Ask HN: Has the Gaza war affected the HN crowd? on Wednesday September 10, 2025 @05:22PM (#45203958)
The events of October 7th were an atrocity. The illegal settlements and extrajudicial killing of Palestinians prior to October 7th was an atrocity. The launching of rockets into Israel were atrocities. Israeli citizens cheering and watching from deck chairs while white phosphorus was dropped onto Gaza was an atrocity. And this ongoing slaughter, starving of civilians, murder of people waiting for aid in designated humanitarian areas, targeting of doctors, journalists, aid workers, double tapping of hospitals, missile strikes on other sovereign states who are hosting negotiations... Those are atrocities. The whole history is riddled with atrocity on both sides.

The only way out of this, while retaining some shred of humanity is through diplomacy, upholding international law, and centring the role of civil society and the huge numbers on both sides who want a peaceful, just coexistence.

The whole thing is sickening. Also hard to see how this can possibly improve Israel's security in the long term.