Is there an OS and hardware combination you suggest for 18 hours of Firefox, TypeScript, and Docker?
I had to do a double take when I read the parent, but I suspect they were referring to running Linux to avoid the Virtual Machine overhead on MacOS. However I doubt the Linux driver support for the M1/M2 has anywhere near the level of power optimization as the MacOS drivers.
Linux, ThinkPad T470 with the big 95Wh battery.
Bonus: Charging your mobile phone takes less percents off your battery life than with a macbook.
There isn't any other OS that you'd want to run as a daily driver on that hardware platform atm. Linux support is still immature/incomplete, and IIRC Windows support is completely absent. (Some of the people working on the Linuc port are also porting to some of the free Unices, too, which I assume are in a similarly incomplete state.)
If you think that persons battery life woes are bad, you should see how horrible my Windows/Ubuntu Intel work laptop is when running the same software.
Having the same issue, patiently waiting for Asahi Linux to deliver.