• 0 Posts
  • 172 Comments
Joined 3 years ago
cake
Cake day: June 18th, 2023

help-circle





  • For reference, Oklahoma has quite a history with alcohol prohibition. The state retained full prohibition until 1959, some 20 years after the 21st amendment and repeal of the Volstead Act.

    Liquor by the drink, aka bars, were not legalized until 1984. Before then you had to pay a membership fee to join a “private club” where you could then have a bartender pour you shots out of “your” personal bottle that was kept behind the bar.

    Oklahoma had 3.2 beer until 2018 when it was repealed by state referendum.







  • mkwt@lemmy.worldtoProgrammer Humor@programming.devClosing programs
    link
    fedilink
    arrow-up
    98
    arrow-down
    2
    ·
    2 months ago

    Windows does, in fact, have signals. They’re just not all the same as Unix signals, and the behavior is different. Here’s a write-up.

    You’re correct there is no “please terminate but you don’t have to” signal in Windows. Windowless processes sometimes make up their own nonstandard events to implement the functionality. As you mentioned, windowed processes have WM_CLOSE.

    Memory access violations (akin to SIGSEGV), and other system exceptions can be handled through Structured Exception Handling.


  • It was also common to have a single step mode, where the CPU advances one cycle per switch press. Very useful for debugging.

    And you could frequently read out the contents of registers directly on rows of lights. This led to the trope of the blinky light computer in Star Trek (original series) and elsewhere. Because the lights would flash in various patterns when the computer was running, as the register contents changed. But in the single step mode you could interpret the values.