logoalt Hacker News

agildehaus06/16/20254 repliesview on HN

Reminds me of BeOS (and now Haiku), which have "is_computer_on()" and "is_computer_on_fire()" both with great descriptions.

https://www.haiku-os.org/legacy-docs/bebook/TheKernelKit_Sys...


Replies

vintagedave06/16/2025

Reminds me of Delphi -- it has an exception 'EProgrammerNotFound'.

https://docwiki.embarcadero.com/Libraries/Athens/en/System.S...

With a completely serious (though short) documentation page I read as very, very dry humour.

throw7484848406/16/2025

I know it is trying to be funny. But those states are quite normal in modern computer with advanced power management. OS should handle wakeups from deep sleep, or state where temperature of motherboard is 200 celsius.

show 2 replies
yomimiva06/16/2025

For the curious minds: https://github.com/haiku/haiku/blob/master/src/system/libroo...

show 2 replies
rkagerer06/16/2025

The latter missed a golden opportunity to be some kind of async event-based trigger.