How to programmatically find out if computer is on
41–50 of 197 posts
Re: How to programmatically find out if computer is on
#42> If the computer isn't on, the value returned by this function is undefined. Shouldn't it just block until the computer turns back on? Probably interferes with pthreads.
Seems like a reasonable compiler would inline the most likely implementation as 1. So, while technically undefined, it's safe to assume that it will 'return' 1 regardless of the actual on/off state of the computer.
Re: How to programmatically find out if computer is on
#43Re: How to programmatically find out if computer is on
#44Asynchronous JavaScript browser DOM callback API:
Re: How to programmatically find out if computer is on
#45Functional programming with monads is the right way to implement this.
It's like lazy evaluation, only more lazy.
Re: How to programmatically find out if computer is on
#46I posit a much more interesting question. Given a lump of silicon, how does one programmatically tell if it is a computer?
Re: How to programmatically find out if computer is on
#47Where 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.
The question is worth asking (all are) but then soliciting "quantum computing" as an answer makes it a doubly worthy set up line, so thanks twice.
Re: How to programmatically find out if computer is on
#48Re: How to programmatically find out if computer is on
#49woah! i had no idea beos lived on in an oss project!
Re: How to programmatically find out if computer is on
#50Functional programming with monads is the right way to implement this.
There's an elegant FP solution that involves searching an infinite data structure using only a finite amount of computation -- actually, with precisely zero computation, because the machine isn't on. It's like lazy evaluation, only more lazy.
So our security systems are (useless | perfect)!
I think there might even be other implications...