"This message has been on the screen for almost two hours now." (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (2)
Replies (1)
Replies (3)
“What do you want?” he asks.
And the program says, “Oh, ah, am I finished yet?”
“No!” he yells, then runs back down to Level 5 and says to himself, “Okay, fine. I can start again right down here. Oh, I’m finished. Oh! I have this little Level 7 interrupt that I guess I should look at. Oh oh! It says my terminal is free so I can print things on it. Okay, I’ll print such and such.”
There are certain higher levels of interrupt. If one interrupt hits the function as it’s running along, it says, “Oh my God! The line current has dropped to 109 volts! I bet somebody has just flicked the switch, and I’ve only got 329 nanoseconds before the whole system goes down. That’s okay. That gives me more than enough time to save all the registers, load them in the locations they should be in, this, that, and the other thing.”
So the function scurries around, does all this, says, “Ah! Whew, I’ve got a couple of nanoseconds, I guess I’ll wait here until, you know, I go to sleep.” So you flip off the switch and the thing is dead
When you flip the switch on the function jumps up and exclaims, “Oh my God! I’m over 109 volts. I must be on. Well, quick, load everything back up in the accumulators and start running again right where I was.”
— Karla Jennings, The Devouring Fungus: Tales of the Computer Age (1990), chapter 3, The Hacker’s Universe
Replies (2)
Replies (1)
Somewhat related: my lathe has a DC brushless motor driver board. Its "on-off" is entirely driven by enabling or cutting power. The board senses the disruption of incoming power and starts its shutdown procedure. It then begins driving the motor as a generator, using the power produced to power itself. If it has a braking resistor it also dumps the excess power to that resistor to help the spindle stop faster. If not then the draw of powering itself acts as a load to drag the "generator" down. The result being it doesn't rely on mechanical friction to spin down but stops much faster even though mains voltage was cut off long ago.