Not even. ed is The Standard Editor.
- 0 Posts
- 57 Comments
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.
mkwt@lemmy.worldto
Programmer Humor@programming.dev•And then everyone stood up and clapped
76·2 months agoNvidia has entered the chat.
Rust has many container-like objects that may or may contain a value, like Box. Most of these have an unwrap() method that either obtains the inner value or panics the whole application.
mkwt@lemmy.worldto
Open Source@lemmy.ml•HDMI Forum is unwilling to disclose the 2.1 specification for open-source (Linux): according to AMD, they had submitted a functional, HDMI 2.1-compatible driver [for linux?], which the Forum rejected.
21·3 months agoThe license holder is attaching additional terms and conditions that are incompatible with publicly disclosing the driver source code.
You missed “CM,” which was common in copyright statements in the 20th century.
mkwt@lemmy.worldto
Explain Like I'm Five@lemmy.world•Please someone explain how there could be a gov shutdown when republicans control the senate and the house? But are blaming the Dems who are way in the minority???English
2·5 months agoThis is only true because the Senate’s floor time is valuable enough that leadership would rather move on to consider other bills than waste time on a real filibuster. The “silent filibuster” is not an official part of Senate rules.
People have been saying that Congress is gridlocked and ineffective, and that is true, by several subjective and objective measures. But even in the gridlocked state there are still a bunch of bills that are debated and passed. And it takes floor time to work on those.
mkwt@lemmy.worldto
Explain Like I'm Five@lemmy.world•Please someone explain how there could be a gov shutdown when republicans control the senate and the house? But are blaming the Dems who are way in the minority???English
16·5 months agoFrom The Wiki:
Congress can pass up to three reconciliation bills per year, with each bill addressing the major topics of reconciliation: revenue, spending, and the federal debt limit. However, if Congress passes a reconciliation bill affecting more than one of those topics, it cannot pass another reconciliation bill later in the year affecting one of the topics addressed by the previous reconciliation bill.[3] In practice, reconciliation bills have usually been passed once per year at most.[16]
Edit: Are you saying the Senate and House made two identical budget resolutions in this year? Or is it just that Senate Republicans don’t want to blow reconciliation for the next year on what is probably mostly continuing resolution?
mkwt@lemmy.worldto
Explain Like I'm Five@lemmy.world•Please someone explain how there could be a gov shutdown when republicans control the senate and the house? But are blaming the Dems who are way in the minority???English
51·5 months agoEverything that says 51 can be read as 50 plus VP,.
mkwt@lemmy.worldto
Explain Like I'm Five@lemmy.world•Please someone explain how there could be a gov shutdown when republicans control the senate and the house? But are blaming the Dems who are way in the minority???English
28·5 months agoThere is a rule that the reconciliation bill can pass on 51. But there are two main limits on reconciliation:
-
Reconciliation has to be at least nominally about the budget, as you said, and
-
Only one reconciliation bill per fiscal year.
The Republicans already shot their reconciliation shot with the BBB. They can’t do it again until the next fiscal year (which arrives tomorrow, so they can get started).
-
mkwt@lemmy.worldto
Explain Like I'm Five@lemmy.world•How does encryption work on OS Level?English
1·5 months agoA bunch of answers but nothing talking about modern consumer devices.
- The OS code on a computer is stored on a “drive”, usually flash memory, but it has to be loaded into RAM to actually run.
- the OS code is usually not encrypted when it’s in RAM. Processors don’t decrypt the code directly on the fly.
- it is relatively common nowadays for the stuff on the drives to be fully encrypted. This can include the OS, it the OS code can be on a separate partition that’s not encrypted.
- For all the major operating systems, there’s not a lot of value in keeping the binary code secret, because they all leak out eventually, anyway.
- If it’s encrypted, the OS code has to be decrypted when it is loaded off the drive into RAM. This is done by a separate “firmware” software during boot.
- the keys needed for boot up cryptography are usually stored in dedicated chips that ship with modern computers. These are called things like TPM or “secure enclave”.
- the chips are hardened against physical attacks that could reveal the keys.
- usually the passphrase is part of an encryption key that encrypts the real encryption key that encrypts the whole disk. Wrong passphrase means the computer is incapable of decrypting the real key.
mkwt@lemmy.worldto
Explain Like I'm Five@lemmy.world•Please someone explain how there could be a gov shutdown when republicans control the senate and the house? But are blaming the Dems who are way in the minority???English
77·5 months agoAdding this because I don’t see it explained anywhere else:
It takes 60/100 votes to pass the budget bills in the Senate, instead of 51, because the Senate still has a filibuster. The minority Democrats have the power to stop the vote from coming up by simply talking on the floor forever until the Republicans give up and go home.
The 53-47 vote was for a cloture motion, which is to put time limits on debate on a particular budget bill. The rules don’t let Dems filibuster the cloture motion for obvious reasons, so that vote happened. But it takes 60 votes to pass cloture, so it went down.
Now, there are some resolutions that don’t involve coming to a compromise:
- the Democrats could choose not to do the filibuster. Then the bill would come up, and they could all vote against it, but it could pass on 53 votes.
- the Senate could change the rules to get rid of filibuster. This is usually called the “nuclear option” because it removes the 60 vote barrier using a rules vote that only needs 51 to pass. The procedure is to make someone actually start a filibuster, then raise a point of order that filibustering member is taking too long. The Parliamentarian will deny the point of order based on the current rules, but that can be appealed to the whole Senate on a majority vote. And the point of order is not debatable.
The Federal gov in the US has a “road legal” standard for commercial motor vehicles like trucks and buses. The feds also have minimum rules for headlights, brake lights and turn signals on passenger cars.
Everything else in terms of road legality is a state law in each of the 50 states.
The reason is the Constitution gives the feds power to regulate interstate commerce (i.e. big commercial vehicles that frequently cross state lines). The feds do not have the general “police power” that states have to pass laws on whatever.
mkwt@lemmy.worldto
Programmer Humor@programming.dev•I created the weirdest political compass
6·7 months agoThis chart is easier to understand if you make the following substitutions:
- Toy Lang --> high level language (except brainfuck really is a low level toy language)
- System Lang --> low level language
- Obsolete Lang --> old programming language, regardless of obsolescence status
- Nu Lang --> newer programming language
After understanding this construction, I fail to find any humor in this.
Why is ECMAScript here and not JavaScript?
Among other things, “JavaScript” is a trademark of Oracle.
Optional type annotations started to enter Python around 3.8, and they have really improved the experience. Even if nothing enforces the annotations, the IDEs can pick them up and show them to you in all the usual places.
That number is at the high end of what I usually see for consulting work. The high hourly rate has to cover all of the HR and accounting overhead, invoicing, marketing, business development, and the opportunity cost of short term engagement vs. long term engagements.
But when you do shoot yourself in the foot, it blows your whole leg off.
One time I did this thing with an internal calibration program where the user had to type floats into a text box. I set it up so that every key stroke was validated so that the string in the box had to parse as a valid number within the assigned range at all intermediate steps.
Everyone hated that.

For me 1.0 only means that I’ve delivered the software to a paying customer.