> It "works" exactly like calorie restriction, there's no magic to IF.
"there's no magic to IF"? Well, literally speaking, I tend to agree. For example, I've never actually made out any mustachioed magical monkeys monkey-patching methods in Ruby on Rails.
Seriously though, I think I disagree with the intent behind your sentence, which I interpret as downplaying the difference between IF (intermittent fasting) and CR (calorie restriction). Based on reading the Obesity Code, my understanding is that IF leads to substantially different biological responses relative to CR.
This diagram below, or something similar to it, is a nice way of understanding the core principles in The Obesity Code by Fung which promotes IF. Sustained durations of fasting help lower insulin levels for long enough periods that insulin resistance itself can lower. (CR doesn't do this, to my knowledge.)
ASCII Diagram version of
https://thefastingmethod.com/wp-content/uploads/HOT-Fatty-Liver2.1.jpg
┌────────┐
┌───────────┐ │ high │ ┌───────────┐
│ glucose │────┬────▶│insulin │────┬────▶│ obesity │
└───────────┘ │ └────────┘ │ └───────────┘
│ │
│ ▼
┌────────────┐ ┌─────────────┐
│ insulin │ │ fatty │
│ resistance │◀─────│ liver │
└────────────┘ └─────────────┘
▲
│
│
┌────────────┐
│ fructose │
└────────────┘