HNHacker News
TopNewBestAskShowJobs

maxlybbert

1,786 karma · joined August 23, 2013

submissionscomments
maxlybbert··on 4k NASA employees opt to leave agency through deferred resignation program
When I lived in North Carolina a few years ago, it was common for local private companies to get a contract with the state to run offices that issue license plates, while only the state ran the offices that issue drivers licenses and everything else. The private companies are highly regulated. They can’t charge whatever price they want, and I’m sure they get the plates from the state. They really just handle the paperwork.

I personally had better experiences getting license plates than getting drivers licenses. But they are very different transactions, and issuing license plates seems much simpler to me. And I had good experiences getting a drivers license in smaller towns; the only time I waited for hours in an NC DMV was in a large city. And I would choose that experience again over the California DMV, or the Nevada DMV, but not the New Jersey DMV (which they call the MVC).

maxlybbert··on 4k NASA employees opt to leave agency through deferred resignation program
There is actually a law that requires FedEx and UPS to charge more for some parcels ( https://pe.usps.com/text/qsg300/Q608.htm ). It was created after Lysander Spooner created the American Letter Mail Company ( https://en.wikipedia.org/wiki/American_Letter_Mail_Company ) and delivered mail between large cities for 10% of the cost of the US post office.

The argument is always that a private mail company would deliver mail to the cheapest places first (like the American Letter Mail Company did) and the US post office would get stuck with the unprofitable mail. But that could be addressed by just requiring any mail company to deliver to all addresses. Instead we have a law that just requires companies charge more than the post office.

maxlybbert··on There is no memory safety without thread safety
I thought the same thing. Maybe the point of the story isn’t “we were surprised to learn you had to synchronize access” but instead “we all thought we were careful, but each of us made this mistake no matter how careful we tried to be.”
maxlybbert··on Arizona resident dies from the plague
Oops. “The Chemistry of Cookery” is from 1892.
maxlybbert··on Arizona resident dies from the plague
Exactly (about miasmas)!

I thought about making a comment on essential oils in my original comment, but chickened out.

maxlybbert··on Arizona resident dies from the plague
I honestly didn't mean any condescension.

Years ago, I read a roleplaying book ( https://en.wikipedia.org/wiki/Orkworld ) that had a throwaway comment that many ancient civilizations had decent medical care for injuries, but good care for disease was much less common. Ancient Romans, Egyptians, Chinese, Mayans, and others mastered various forms of surgery. They even recognized that some materials (such as silver staples) were better for closing wounds because they would be less likely to get infected.

But disease was always much harder to understand. It's usually hard to tell if somebody got better because of treatment, or because they were just going to get better ( https://en.wikipedia.org/wiki/Royal_touch ), and (sadly) if everybody got the same treatment, it wasn't always obvious when the treatment killed people ( https://www.mountvernon.org/library/digitalhistory/digital-e... : George Washington died because he received drastic treatment for a sore throat; including having a doctor remove about half of the blood in his body. People at the time didn't realize that the treatment was the problem, they just believed that sore throats were incredibly dangerous ("George Washington then called for Tobias Lear. Lear recorded that Washington told him, '... I believed from the first that the disorder would prove fatal'")).

I honestly once thought it would be cool to have a TV series based on the Knights Hospitallers, but realized they’d just be bleeding people in every episode (different time period, same idea: https://smbc-comics.com/comic/chirugeon ). Our understanding of germs is very recent. The 1896 book “The Chemistry of Cookery” ( https://www.gutenberg.org/ebooks/53458 ) says “I should add that this germ theory of disease is disputed by some who maintain that the source of the diseases attributed to such microbia is chemical poison, the microbia (i.e. little living things) are merely accidental, or creatures fed on the disease-producing poison.” That is, even at the end of the 1800s, whether bacteria caused illness was still disputed.

During the black death, the people did the best they could with the knowledge they had. But we can do better with the knowledge we have, and that's easy to prove based on comparing modern recovery rates to what they were in Europe in the 1300s. It would be depressing if medical science hadn’t improved in the last 700 years.

maxlybbert··on Arizona resident dies from the plague
The Black Death occurred when European medicine (at least for diseases) was still rudimentary. Plague doctors had pleasant-smelling herbs in their masks because that seemed like a reasonable defense against the disease. Leaches and bloodletting were common treatments ( https://en.wikipedia.org/wiki/Humorism ). Later, there was something of a legend regarding Four Thieves Vinegar ( https://en.wikipedia.org/wiki/Four_thieves_vinegar ).

But they did eventually connect plague outbreaks to rats, and killed the rats in the name of public health.

Today we have very effective antibiotics, better knowledge of the body to offer supportive care, and even knowledge about how the plague is transmitted so we can have more effective public health actions.

maxlybbert··on Second study finds Uber used opaque algorithm to dramatically boost profits
https://www.joelonsoftware.com/2004/12/15/camels-and-rubber-...

Hardly a new idea. And Uber didn’t create it, they just do it well.

maxlybbert··on Second study finds Uber used opaque algorithm to dramatically boost profits
That happens with airlines as well.
maxlybbert··on Dilbert creator Scott Adams says he will die soon from same cancer as Joe Biden
That reminds me that he got lots of comments from upset readers because shortly after Mother Teresa died, one comic's punchline involved 100 nuns dying in a plane crash ( https://dilbert-viewer.herokuapp.com/1997-09-13 ). He swears that he drew the comic months before, and had no real idea when it would run, but many readers thought the timing was too good to be accidental.
maxlybbert··on Java at 30: Interview with James Gosling
Honestly, the main difference I run into is just file paths, and that’s easy to sidestep ( https://perldoc.perl.org/File::Spec ).

There are differences, but they’re usually esoteric ( https://perldoc.perl.org/perlport#PLATFORMS ).

maxlybbert··on I decided to pay off a school’s lunch debt
The federal government provides money to schools so that schools can provide low-cost food in their the cafeterias. The food provided has to meet nutritional standards ( https://www.fns.usda.gov/nslp ). The federal government also sends some actual food to the schools ( https://www.fns.usda.gov/usda-fis ). Honestly, even with the subsidy and supplies, it’s hard to imagine how the schools provide much food.

Students from low income families can qualify for completely free lunch, and others can qualify for drastically reduced prices for lunch.

I don’t know if there are any federal requirements about how to handle students who forget or lose their lunch money, or students who normally bring their lunches to school but somehow forget or lose them. Most schools will have a specific policy, such as providing the food to the student and requesting the money later. The “debt” in question is between the school and the student, not between the school and its suppliers.

There is a relatively new policy (maybe ten years old) that schools with a large number of low income students can provide free breakfast and lunch to all students ( https://www.fns.usda.gov/cn/cep ), so school lunch debt would be an issue in areas doing just a little better than that.

maxlybbert··on I decided to pay off a school’s lunch debt
I believe the current rules ( https://www.fns.usda.gov/nslp ) require the schools to make some effort to avoid certain allergens.

When my children were in school, their school said that anybody who didn’t have lunch would be given a “sun butter” sandwich and food from the cafeteria. I wasn’t familiar with sun butter; it’s peanut butter made from sunflower seeds, because people allergic to peanuts may not be allergic to sunflower seeds.

maxlybbert··on Your phone isn't secretly listening to you, but the truth is more disturbing
I doubt there's a specific "ability to send surreptitious screen shots to developer" permission. It must be a combination of permissions: one for making network connections, another for capturing the screen without making it obvious to the user, etc.
maxlybbert··on FBI arrests judge accused of helping man evade immigration authorities
The Alien Enemy Act is actually an incredibly old law (i.e., it’s not a new development). What is new is attempting to use it based on a declaration that there’s been a non-military invasion ( https://www.congress.gov/crs-product/LSB11269 ). I think it’s pretty clear that the Supreme Court is going to eventually strike that down, but the courts can only act in response to the cases they get, and only answer specific legal questions at different phases of those cases.

But about a month ago, the Court did rule people who the government wanted to send to El Salvador have a due process right to challenge that decision in regular federal court as a habeas corpus proceeding ( https://www.supremecourt.gov/opinions/24pdf/24a931_2c83.pdf ). They later issued an order that the people covered by the original ruling cannot be deported based on the Alien Enemy Act until further notice ( https://www.supremecourt.gov/orders/courtorders/041925zr_c18... ).

maxlybbert··on FBI arrests judge accused of helping man evade immigration authorities
Immigration law is wildly different from what people expect. But it is the law and it has been held up in countless court cases. This weirdness is not new.

I think most of the weirdness comes from the fact that entering the country illegally, or remaining in the country illegally can be crimes, but they can also be civil offenses. “Civil” means no jail time, but people still get deported without going to criminal court.

“Civil” also means “doesn’t have to be proven beyond a reasonable doubt,” and “no constitutional right to a public defender.” Immigration law tries to provide limited forms of some of those ideas. There’s a kind of bail system, and people have a right to be represented by attorneys, but no right for those attorneys to be paid by the government. There is somebody referred to as an immigration judge, and they have a federal job, but they aren’t regular federal judges.

It’s possible to appeal an immigration court’s decision to a federal district court to get into the legal system we’re more familiar with.

* https://www.congress.gov/crs-product/IF11536

* https://www.congress.gov/crs-product/IF12158

* https://www.congress.gov/crs-product/LSB10559

* https://www.congress.gov/crs-product/LSB10362

maxlybbert··on The Wright brothers invented the airplane, right? Not if you're in Brazil
The Wright brothers did create a glider ( https://airandspace.si.edu/collection-objects/1900-wright-gl... ). They also created a powered airplane a gasoline engine and propellers ( https://www.nps.gov/articles/wrightflyer.htm ). They also continued to develop their planes after that first flight. I'm amused by the number of people I've met who seem to think that they flew around a little, then stuck everything in the barn and went back to bicycle making.
maxlybbert··on A Guide to Undefined Behavior in C and C++ (2010)
It’s not just “there’s a line in some file that’s undefined” partly because undefined behavior is often caused by the state of the world. Dereferencing a pointer is defined unless the pointer is invalid, and any particular pointer may be valid sometimes and invalid others.

But since a compiler can do anything when a program is ill-defined, if a line of code could be well-defined in some cases and ill-defined in others, a compiler is allowed to only handle the well-defined cases, knowing that it will do the “wrong” thing when something about the code is undefined (because in that case, there is no “right” or “wrong” behavior.

This does lead to weird things:

    auto val = *ptr;
    if (!ptr) {
        . . .
    }
The compiler can delete the “if” statement because the potential undefined behavior happens before the check. Either the pointer is valid when dereferenced (and the “if” statement gets skipped), or the pointer is invalid, and skipping the “if” statement is acceptable for “the compiler can do anything, even things that can’t be expressed in the language.” But it only does the weird things in cases where an invalid pointer would have been dereferenced.
maxlybbert··on A Guide to Undefined Behavior in C and C++ (2010)
The committee tends to also provide bounds checked interfaces ( https://en.cppreference.com/w/cpp/container/span/at ). But that requires people read the documentation, and based on the number of people who I see write "std::endl" when they really want "'\n'", I don't have much hope for that ("std::endl" both sends '\n' to the stream, and flushes it; people are often surprised about the stream getting flushed).
maxlybbert··on A Guide to Undefined Behavior in C and C++ (2010)
"Implementation defined" and "undefined" are different things.

On my laptop, sizeof(long) is 8; that's implementation defined. It could be different on my phone, or my desktop, or my work laptop.

Undefined means, roughly, "doing X is considered nonsensical, and the compiler does not have to do anything reasonable with code that does X." In "Design and Evolution of C++," Stroustrup says that undefined behavior applies to things that should be errors, but that for some reason the committee doesn't think the compiler will necessarily be able to catch. When he came up with new ideas for the language, he would often have to choose between making a convoluted rule that his compiler could reliably enforce, or a simple rule that his compiler couldn't always give a sensible error message for.

For instance, the original compilers relied on the system's linker. If the compiler could interact with the linker, it could perhaps detect violations of the One Definition Rule ( https://en.cppreference.com/w/cpp/language/definition ), but since the linker might have been written by a completely different company, and it's acceptable for different source files to be compiled by different compilers (and even be written in other languages -- https://en.cppreference.com/w/cpp/language/language_linkage ) and put together by the linker, and it's common for binary libraries to be sold without source, there's no guarantee that the compiler will ever have the information necessary to detect a violation of the One Definition Rule. So the committee says that violations create a nonsense program, which isn't required to behave in any particular way.

maxlybbert··on 21st Century C++
There’s a better formatted PDF on Stroustrup’s website: https://stroustrup.com/21st-Century-C++.pdf .
maxlybbert··on Payments crisis of 2025: Not “read only” access anymore
I wasn’t trying to claim any equivalence. I was replying to “It's just that as far as I can recall no one has ever really tried to spend less in the government.” Biden did, in fact, try to spend less than was appropriated.
maxlybbert··on Payments crisis of 2025: Not “read only” access anymore
Well, Biden tried to not spend money to build a wall on the border. And he essentially ran out the clock in that one, so I guess there has been recent success.
maxlybbert··on Enhancing your MIDI devices with Perl
Personally, I find Perl’s modern object modules interesting and fun. And I’ve always liked the fact that many Perl built ins were based on POSIX, which doesn’t seem common in other languages.
maxlybbert··on NSF starts vetting all grants to comply with executive orders
I think you’re talking about something different.

Regardless of which ethnic group, sexual orientation, nationality, etc. I belong to, if I want to get an NSF grant, I have to fill out certain paperwork. And, apparently, it’s expected that I would write how my proposal will make the world a better place based on how it impacts DEI factors. The comment is that it doesn’t actually matter what I say there, since everybody says the same thing. There’s never a case where the NSF isn’t sure about whether to grant funds, and then decides that the way one project impacts DEI makes it better than another project.

maxlybbert··on Judge Refuses to Allow Sale of Infowars to The Onion
This bankruptcy was filed in Texas.

How would the corporate charter affect the fairness of how the auction was conducted?

maxlybbert··on NY Times gets 230 wrong again
I’m sure that the difficulty the New York Times editors have about summarizing laws related to online publishing shouldn’t make you wonder about what glaring mistakes are in their other reports about topics the newspaper wouldn’t be expected to know as deeply.
maxlybbert··on Supreme Court rules ex-presidents have immunity for official acts
Well, because the dissent doesn’t mention it.
maxlybbert··on Supreme Court rules ex-presidents have immunity for official acts
The War Powers Act is questionable. The US never declared war in Vietnam. The president simply sent troops to Vietnam knowing that they would end up fighting. But the president said he had that authority as commander-in-chief. The War Powers Act was supposed to address that.

If the president actually has the authority to send troops into combat without a declaration of war, then Congress can’t take it away from him, just like Congress can’t make it illegal to veto bills.

The War Powers Act doesn’t really set any punishment for the president if he ignores it. It effectively says that if the president does certain things (consult with Congress, follow certain timelines, issue reports) then Congress won’t complain. Presidents have generally followed those procedures without admitting that’s what they’re doing (they issue reports “consistent with” the Act, but never admit the report was required by the Act). But if a president completely ignores those requirements, Congress has to figure out what to do about it; which is exactly what would happen if the Act didn’t exist.

maxlybbert··on Supreme Court rules ex-presidents have immunity for official acts
I don’t think we covered that in my history classes. Congress’s website about the constitution agrees with you and adds additional details ( https://constitution.congress.gov/browse/essay/artI-S8-C11-3... ).
← PreviousPage 3 of 33Next →