Swift CPU Heating Trick
Feeling a little cold? Just put these two lines into any Xcode project and your Mac will heat up your room in no time thanks to Swift maxing out the CPU. class A: B {} class B: A {}
A tweet shows two Swift class declarations that inherit from each other. The joke is that this circular inheritance causes Swift to max out the CPU, humorously turning a Mac into a room heater.
tweet screenshot / скриншот твитаcode block / блок кодаcomputer code / программный кодMac computer / компьютер MacXcode project / проект Xcodeclass declaration / объявление классаcurly braces / фигурные скобкиpink text / розовый текстgreen text / зелёный текстblack background / чёрный фонprofile avatar / аватар профиля
- @dev_meme / 285 2019-03-31
- @profunctor_io / 1836 2019-04-01
- @dev_meme / 3428 2021-07-17
- Type
- image
- Size
- 604×510 · 40.7 KiB
- Mood
- sarcastic
- Language
- en
- Added