Where is the function is_halting() ?
How to programmatically find out if computer is on
11–20 of 197 posts
Re: How to programmatically find out if computer is on
#12Although many people are laughing, I believe the function works ok. The only complicated part is to find a way to call it when the computer is not on.
Re: How to programmatically find out if computer is on
#13I know it's not as common anymore but if the computer is in a "hold and catch fire" incident it won't report temperature sensor readings. What happens? Is it considered off?
Re: How to programmatically find out if computer is on
#14Odd they have a TI 99/4a platform but no TMS990 CPU.
Re: How to programmatically find out if computer is on
#15Where is the function is_halting() ?
Right? Especially since the implementation is so simple, and even runs in O(1) time:) https://xkcd.com/1266/
Re: How to programmatically find out if computer is on
#16I was expecting this to be about using IPMI on a BMC to see if the motherboard is powered on.
Re: How to programmatically find out if computer is on
#17I’d like to see the unit tests for the non-true return state.
Re: How to programmatically find out if computer is on
#18I’d like to see the unit tests for the non-true return state.
I think that would have to be an integration test
Re: How to programmatically find out if computer is on
#19Where does the code run when the computer is off? Edit: I see the downvotes, yet i still don't know if it's a joke. I was genuinely asking the question.
It looks like you haven't heard of quantum computing
Re: How to programmatically find out if computer is on
#20Functional programming with monads is the right way to implement this.