Better HN
topnewbestaskshowjobs
Log inSign up

wat10000

7,061 karma · joined Nov 18, 2024 (2y ago) · 4,562 submissions

Submissions

comment 8h ago · link · parent

Backups and contingency plans aren’t going to save you from having your users’ data taken.

comment 8h ago · link · parent

The only way to get software without that is to pay a lot of money for it. Seems like this would be a return to the good old days where OSes and programming languages are expensive proprietary products, and individuals and small companies are unable to obtain serious production software. And history tells us that these proprietary products will be less secure. This would be a much worse state of affairs overall.

comment 21h ago · link · parent

How does redundancy help with anything here?

If some dude on the internet chooses to be a maintainer of an important project in their spare time, they’re bringing that stress on themselves, I’m not doing it.

comment 21h ago · link · parent

Do “fit for purpose” systems exist in your view? Can they?

comment 1d ago · link · parent

That certainly would be very nice. It’s also extremely difficult to do reliably. One certainly could make the argument that it should be done in easy cases like this example. But I suspect that the cases where it’s easy to consistently fault and the cases where it’s a useful diagnostic in real programs don’t have much overlap.

comment 1d ago · link · parent

Because doing so doesn’t change the semantics of the program as defined by the language.

If you open the possibility of other notions of “the semantics” besides what the language spec lays out, then changing those semantics is an inherent part of an optimizer.

What people (IMO fairly reasonably) want is a different C language spec with less undefined behavior and compilers that follow that spec. But people don’t think about it clearly and skip major parts of that picture when complaining about it.

comment 1d ago · link · parent

I’ll freely admit they have no legal liability. There is a professional, ethical responsibility to fix exploitable vulnerabilities as they are found (and make reasonable efforts to prevent new ones) if your project actually gets real use and is presented as actively maintained.

I agree that dependencies are often taken far beyond what they should be. But I don’t see that as central to the issue. Some dependencies are inevitable. If those dependencies are open source then they’re going to have some variant of your quoted disclaimer and no explicit guarantee that they have any particular security posture. Even if they aren’t* open source, they probably have something like that in their license agreement. Is the expectation that either I give up on security, or I get custom agreements for (or directly maintain) every part of my software stack from the hypervisor on down?

It seems like your attitude is either incompatible with software existing on networks, or incompatible with collaboration and open source. I doubt that’s what you mean but I don’t see how you envision this working.

comment 1d ago · link · parent

It’s clear by the language spec. It’s not clear based on how people want it to work or think it should work. And the inevitable stream of comments complaining about C compiler optimizers every time this gets discussed tells us that people are not willing to just consider where the language spec draws the line.

comment 1d ago · link · parent

I’m not talking about whether a language has defined semantics. C’s semantics are plenty well defined, much better than the current crop of more modern languages that are mostly defined by their single implementation.

I’m talking about the question of what should be covered by the official semantics. That’s inherently subjective and a matter of opinion.

Gcc’s optimizer does not accept changing language-level semantics based on which optimizations are performed. That the above comment thinks it does means that the commenter has a different notion of what should count as “the semantics” from what the language spec says. Which is a perfectly legitimate opinion, but if you take that position then you have to accept that other people will have other ideas of what should count, and therefore any optimizer might change “the semantics” of code according to at least some of those ideas.

comment 1d ago · link · parent

  int *x = malloc(4);
  *x = 42;
  int *y = realloc(x, 4);
  *y = 43;
  printf(“%p %d %p %d\n”, x, *x, y, *y);
This may well print the same address for x and y while printing different values for x and y. Despite having the same bitwise value, x was invalidated by the call to realloc and it became illegal to access x. Thus the compiler is free to assume that x still holds the value previously assigned to it (or make demons fly out of your nose when you try to read from it), because a pointer isn’t just a memory address, it has meaning tied to where you got it and what you did with it.

comment 1d ago · link · parent

That depends entirely on how you define “the semantics.” Any optimizing compiler has to draw a line between what the program is meant to do and how the emitted code actually makes it happen. The proper location of that line is not obvious. Can it turn x++,x++ into x+=2? That’s normally fine, potentially disastrous if x is a memory mapped register on an external device.

C and C++ happen to have a particularly restrictive view on what “the semantics” of a program really are, such that there are a lot of things you can write in syntactically-legal C that officially erase the semantic meaning of the code. Within that definition of the program’s semantics, gcc’s optimizer is not supposed to change them, and any such change would be a bug. You’re taking a more expansive view of program semantics than the actual language specifies. If you do that, then any optimizing compiler is going to consider it to be acceptable to violate your special bespoke definition of them.

comment 1d ago · link · parent

We’re not talking about random bits of code online. We’re talking about major open source projects with real users. This isn’t your half assed PNG reader that you tossed up on GitHub after a weekend and a grand total of five other people ever looked at it. This is serious projects with serious users. The post I replied to mentioned “maintainers.” “Random code you find lying around” does not have “maintainers.”

Can we talk about the actual issue at hand instead of whatever this is? You’re not helping the discussion by veering off like this and you’re not helping your own argument either. “A weekend project that got dropped on GitHub is use at your own risk, therefore PHP should ignore the flood of vulnerabilities and just go at their own pace” is not a serious statement.

comment 1d ago · link · parent

Right, because a knife being used as a knife is the same sort of thing as a file compression library being used to take over someone’s computer. Be serious.

comment 1d ago · link · parent

Hospitals and pipelines get hit with ransomware and critical services get slowed or stopped. Journalists get targeted with spyware and occasionally murdered. Industrial plants get wrecked by malware. I would not describe this as “mostly working.”

comment 1d ago · link · parent

There’s no inherent obligation to keep up with security issues, but if you aren’t, you should shut the project down. Otherwise you’re providing a hazard. It’s like if you have a playground you let local kids use for free. If people keep finding rusty nails sticking out of posts, you had damned well better fix them.

Security isn’t some abstract thing. You’re playing with people’s lives. It’s not something you have to worry about if your projects are unused or have no potential exposure to malicious data. But if your projects are used and do get exposed to malicious data, then you do have a responsibility to keep up with security issues as they’re reported.

comment 1d ago · link · parent

AI is not latency sensitive and doesn’t need much bandwidth so the data centers can go pretty much anywhere. Nobody wants them anywhere near? Build them in the middle of nowhere. You manage to get a nationwide ban? Find another nation. Is China going to put on the brakes just because we do? Doubt it. Is every single country on the planet going to say they all don’t want your money?

Just look at how the world has handled climate change. Even the most enthusiastic countries took absolutely minimal action, the best international framework we got was some nonbinding agreements, and now even that is falling apart. And that’s for something where there was broad consensus that a particular outcome was undesirable, albeit much less consensus about how bad it would be or what should be done about it. But with AI you don’t even have that. Lots of people think it’s fantastic and want to be balls to the wall pushing it forward.

How many successful international agreements limiting technology have here ever been? There’s the CFCs success story. Anything else? Governments couldn’t even stop the proliferation of nuclear weapons.

comment 1d ago · link · parent

Massive intervention from national governments. Which isn’t going to happen. So, best hope the technology stalls out, or the AIs that take over in a decade end up being benevolent.

comment 1d ago · link · parent

To quote a classic Tumblr post: “Everyone will not just. If your solution to some problem relies on ‘If everyone would just...’ then you do not have a solution. Everyone is not going to just. At not [sic] time in the history of the universe has everyone just, and they’re not going to start now.” https://www.tumblr.com/squareallworthy/163790039847/everyone...

comment 1d ago · link · parent

Getting a bunch of people to cooperate requires broad agreement on the goal and a sense that one’s individual efforts contribute to it.

Lots of people like using drugs. We might be better off as a society if everybody stopped using them, but that’s not a universal opinion. And one person quitting drugs doesn’t make a dent in the problem anyway, so why bother unless you want to quit for your own personal reasons?

Pushing a train carriage furthers a goal that everyone can agree on (very few people think it’s good to leave someone trapped under a train) and each person pushing can see that they’re helping.

AI is firmly in the former category. There’s nothing close to consensus on what the desired outcome would be, and among those who do agree, there’s no sense that individual action actually makes a difference.

comment 2d ago · link · parent

“We managed without for decades” usually comes with one or more of: but it was more expensive, but it took longer, but it occasionally messed up and got people killed.

comment 2d ago · link · parent

If I did all of those things, it wouldn’t make a damn bit of difference.

comment 2d ago · link · parent

BYD sold 2M+ EVs last year. You have to wonder how long no EVs will continue to be the winning bet. Legacy automakers had better start skating to where the puck is going.

comment 2d ago · link · parent

I have a Tesla that will soon be 12 years old and it hasn’t needed anything besides tires in years. Same with my other Tesla that just turned 8.

EVs have been proven tech for a while now. You’re not taking a leap into the unknown with them anymore.

comment 2d ago · link · parent

The Leaf had several serious problems.

The most obvious is that it was ugly as hell. Before Tesla showed that a normal looking EV could sell well, manufacturers seemed to think they needed an EV to look like an EV, which somehow meant looking weird. This was wrong but it took Nissan a very long time to figure that out.

They had terrible range. This was understandable, maybe unavoidable, in the early days, but they didn’t keep up. Their longer range trim had barely 200 miles of range in 2024!

And then they had terrible technology around the battery. They were still using air cooling until 2025. This severely limited charging speeds (if charging efficiency is 95%, then 100kW charging has to reject 5kW of heat which does not come easily!) and, worse, made the battery degrade much faster. This actually damaged not just the Leaf but the entire industry. It was the most common EV for years and a whole lot of people learned that an EV battery is only good for a few years before the range tanks and you need an expensive replacement. This is not generally true, but it was often true of the Leaf.

comment 2d ago · link · parent

Solid state components tend to last. It seems quite common to rescue a 40 year old consumer PC from a junk pile and find that it still works. An iPhone can also visit Nevada, Florida, and North Dakota and continue working just fine too.

comment 2d ago · link · parent

That happens for any widespread standard. It’s why we’re still running x86-64 all over the place and why most of the internet is still IPv4. It’s just how things work.

comment 4d ago · link · parent

It feels increasingly hard to plan for the future. There's little choice but to assume the future will be enough like the past to be predictable from my experience and knowledge, but that seems less and less likely.

For now, same old stuff. Go to work, keep up with the latest changes, get the kids to school, plan to send them to college. Hard to say if that's the right move at the moment, but what else is there?

comment 4d ago · link · parent

I think you could explain it as the fastest possible computer program for doing the task. Not the fastest made, but the fastest that ever could be made.

Then you can talk about how this optimal program behaves. If you double the size of the input (people can understand this in terms of file size), does the time double, or quadruple, or...? I wouldn't mind trying to explain NP to a lay audience. I think you could get it across pretty well.

You can probably do Monty Hall by enumerating all of the possibilities. There are only nine possible combinations of where the car is and which door you choose. The difficulty, I think, comes from overanalyzing the problem, and a simpler explanation actually makes the job easier.

Relativity is a goo example though. I don't understand relativity beyond the most superficial level. As far as I can tell, the teenager-level explanations of relativity are not right. They convey some aspects of relativity on a conceptual level, and even some basic things on a mathematical level, but they're omitting important aspects of it. You might read A Brief History of Time (or whatever your favorite explainer is) and come away with an understanding of relativity, but your understanding will be some combination of wrong and extremely incomplete.

comment 4d ago · link · parent

Do you just not contemplate anything that isn't directly related to your physical needs? What a sad existence. I wonder what you're doing here, in that case.

comment 4d ago · link · parent

A moon landing is something that pretty obviously can't be accomplished without advanced technology. This is something that was at least believed to be achievable without the equivalent of a gigantic rocket. Imagine if the conquest of Everest had taken longer, and the first person to reach the peak got there by helicopter. We could appreciate the technological prowess represented by that landing, but a mountaineering enthusiast might still be reasonably disappointed that a climber didn't get there first.
12345
153