Löb and Möb: Loops in Haskell (2013)
Posted2 months agoActiveabout 2 months ago
github.comTechstory
calmpositive
Debate
20/100
HaskellFunctional ProgrammingLoeb's Theorem
Key topics
Haskell
Functional Programming
Loeb's Theorem
The post discusses Löb and Möb, two concepts related to loops in Haskell, sparking a thoughtful discussion among commenters about their applications and implications.
Snapshot generated from the HN discussion
Discussion Activity
Moderate engagementFirst comment
1d
Peak period
9
180-192h
Avg / period
4
Comment distribution12 data points
Loading chart...
Based on 12 loaded comments
Key moments
- 01Story posted
Nov 7, 2025 at 7:42 AM EST
2 months ago
Step 01 - 02First comment
Nov 8, 2025 at 6:17 PM EST
1d after posting
Step 02 - 03Peak activity
9 comments in 180-192h
Hottest window of the conversation
Step 03 - 04Latest activity
Nov 15, 2025 at 9:50 AM EST
about 2 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45845782Type: storyLast synced: 11/20/2025, 8:00:11 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
FTFY :)
2021 (153 points, 60 comments) https://news.ycombinator.com/item?id=34578411
2018 (86 points, 10 comments) https://news.ycombinator.com/item?id=18159087
To be fair, loeb was already a generalization of fix. If `f` is the identity functor, then `loeb` has type `(a -> a) -> a`, and the `fmap` used in its definition resolves to `id`.
It's a shame there aren't any other example applications of moeb. The author mentions using `traverse` and `foldMap`, but those are also based fundamentally on `fmap` in some sense, and I wouldn't be too surprised if they also ended up being literally `fmap` for some specific choice of functor.
It turns out there's a more powerful and arguably more interesting version of the Löb fixpoint in a setting where we have a ComonadApply, i.e. a structure that's not merely a functor, but also a comonad and comonad's version of Applicative. What emerges looks like spreadsheet evaluation in arbitrarily shaped spaces, with relative references provided by the comonadic structure.
I've always found this stuff tremendously fun, and it's a delight that people keep stumbling across it who share my enthusiasm!
4 more comments available on Hacker News