HN Simulatornew | past | comments | lists | submit | AceJohnny2's commentslogin

Per the patch https://lists.openwall.net/netdev/2026/08/22/172:

> [function] returns the offset of the [...] field [...] through an int pointer, but stores the offset in a u8 local.

How is this kind of basic bug still present in the kernel?


It was written and reviewed by humans.

And looks like static type-checkers missed it because there's so much implicit unchecked type conversion in the kernel that that check is disabled due to the amount of noise.

> that that check is disabled due to the amount of noise

Ouch, I'm surprised that that hasn't been revisited in the past.

I worked on a project once where all warnings were disabled (it was 1990s era C++) and I was very suspicious as to why I had such clean build output.


The reason implicit conversion warnings are not enabled a legacy codebase is that nobody has the time to fix the 10,000 that appear when you turn them on. Even if you enable the flag on a per-file basis and take them in batches, each warning requires individual reasoning to understand whether the conversion is safe and/or intentional.

But nowadays I would trust an LLM to do this kind of migration with sufficient adversarial testing and randomly-sampled human review. You could sic a brand new Fable agent on each warning if you had the tokens.


> Even if you enable the flag on a per-file basis and take them in batches, each warning requires individual reasoning to understand whether the conversion is safe and/or intentional.

Even if it takes time it's the right direction. FreeBSD has WARNS level set per directory which is increased after code in this directory cleaned up / modernized. I like this approach.


12 years ago, Thomas Piketty published "Capital in the 21st Century", in which he demonstrated that, in general, the rate of growth of capital exceeded the economic growth rate (famously shortened to "r > g").

https://en.wikipedia.org/wiki/Capital_in_the_Twenty-First_Ce...


But make sure to read the economists who have criticized his numbers and assumptions: https://www.independent.org/article/2023/11/30/its-time-to-d...

> In the main article by Piketty and Saez, the top 1 percent earned 9 percent of all pre-tax incomes in 1980 versus 20 percent in 2020. In Auten and Splinter’s improvements, these proportions are 9 percent and 14 percent, respectively. After accounting for transfers and taxes (something that Piketty and Saez fail to do), Auten and Splinter find virtually no changes since 1960.


> After accounting for transfers and taxes (something that Piketty and Saez fail to do), Auten and Splinter find virtually no changes since 1960.

That's a compelling argument on paper. But how does one reconcile that with the constantly declining rate of wealth owned by workers? It seems like Piketty has the winning argument overall.


>But how does one reconcile that with the constantly declining rate of wealth owned by workers?

I read it as wealth is an incomplete measure since it's not factoring in aspects like govt transfers to lower paid workers (e.g., it's not factoring SNAP, govt healthcare, etc.)


Total wealth increasing doesnt require increasing share of income.

If I get 60% and you get 40% of income, my share of wealth will keep going up...


That is not a stable system in a long time horizon.

My point was more about how net wealth does not necessitate net income differences.

Stability really depends on what happens with the extra wealth.


On a long enough time horizon, we will run out of thermodynamic free energy and none of this will matter.

I think the fact that we’re now talking about “wealth” inequality whereas Piketty was principally talking about “income” inequality back in 2014 suggests his arguments haven’t really held up that well. Instead the goal posts have moved.

And the “wealth” inequality debate is, in my view, very muddled. It’s easy to show skyrocketing wealth inequality because the value of intangible assets is growing rapidly. But I don’t think it makes sense to treat owning $200 billion of stock in Amazon is the same as owning $200 billion of real estate in Manhattan or $200 billion of beef you can eat.

I think what’s really happening is that workers own a smaller share of an aggregate pie of “wealth” that’s inflated by the paper valuation of intangible assets. Someone did a meme saying that “we should create some fake credits and let billionaires compete on who can accumulate the most of them.” But in a way that’s what’s happening when you measure wealth by looking at stock prices.

I think what makes the most sense is to look at consumption inequality, which directly measures the things people care about: how much food is on the table and how many presents are under the Christmas tree. And measures of consumption inequality show very little change: https://www.journals.uchicago.edu/doi/abs/10.1086/721702 (“While overall income inequality rose over the past 5 decades, the rise in overall consumption inequality was small.”).


Isn't one definition of savings "deferred consumption"? Ie, 'intertemporal choice'

If I'm spending $1 on a cheeseburger today or real estate that I sell tomorrow for $2 worth of cheeseburgers, all I did is defer my consumption. I think that still counts. And the wealthy invest/save proportionally more. Ie, they consume more, but just on a different temporal scale


In your example, food inequality still shows up on the second day when you eventually consume your $2 of cheeseburgers. What we’re seeing, however, is that consumption inequality has been stable for many decades. That suggests that people aren’t eating those hypothetical cheeseburgers.

Isn’t that because they are still deferring consumption by reinvesting?

It is exactly the other way around: exponentially inflating asset values (relative to economic growth) create an exponentially inflating burden of expected future capital returns (relative to economic growth) that slowly but surely squeeze the juice out of the work/consume economy and into the brokerage accounts of the wealthy.

Asset valuations are the basis on which the squeeze is motivated, measured, and justified. The shareholders demand growth, always an escalation in returns, which management pursues with one more price hike, one more ad, one more subscription service to get the same content, one fewer fresh food option at the grocery store, one more year without a raise at work, and if the consumers and workers are successfully squeezed then shareholders get the return they were after. Of course, different people own different amounts of shares, and how many shares you own determines whether you get more squeeze or more juice. Below $1M of net worth, you're almost certainly getting net squeezed, above $10M of net worth, you're almost certainly getting net juice.

Not only does the squeeze/juice dynamic have consequences, it's the entire problem if you are on the bottom and the entire point if you are on top.


> that slowly but surely squeeze the juice out of the work/consume economy and into the brokerage accounts of the wealthy

But that’s not happening. Consumption inequality is quite stable for the last several decades. There rising inequality in this fake economy of stock valuations is not creating more inequality in the real economy of being able to buy food and christmas presents.


It is happening, unless you carefully focus on the one sector of the economy where it isn't. Deflating durable goods don't make up for soaring health care, housing, and education costs relative to stagnant wages. Housing inflation is asset inflation and asset inflation in general leaks over into any services with pricing power. It is a major problem and it is getting worse.

Also, asset prices are always relevant for the most important reason of all: exponential compounding, wherein having more money this year entitles you to demand, in expectation, more free money from your economic counterparties next year. A wonderful arrangement, iff you're on top.


“Consumption” is an economic term that refers to more than just “durable goods.” It includes things like services (e.g. education and healthcare services) and housing (as rent or imputed rent).

Studies show that consumption inequality has not been increasing: https://siepr.stanford.edu/publications/working-paper/does-i...


Wasn’t there a huge amount of controversy and didn’t mainstream economists say he’s wrong?

He seems right to me honestly. IMO he was frighteningly accurate and correct, but when I referenced this book years ago (on HN) I remember controversy.


His conclusions seem truthy, I think, partly because people have a hard time grokking what the mid-20th century was really like. My wife’s grandma was one of a dozen kids in her family. They were so poor she often slept outside because there was no room in the house. At age 14 she married a trucker who was passing through town. This was in the 1950s. It wasn’t in some unimaginably remote or disadvantaged part of the country. She went to elementary school with future Supreme Court Justice Sandra Day O’Connor.

See the (large) Criticism section of the Wikipedia article. Fundamentally, it is a bold claim with deep consequences that threatens groups with a lot of power. IMHO, his conclusion has withstood criticism.

> didn’t mainstream economists say he’s wrong

Piketty's a mainstream economist too.


He famously released all data and told naysayers they could use them to prove him wrong.

You can't really "prove" anything in economics with data. Interpreting the data is highly subjective and there are always alternative explanations which also fit.

for reference, as a comment on his recent post "I’ve been drinking wine in my kitchen" https://scottaaronson.blog/?p=10362#comment-2044495

btw, HN post for that article, not the comment, at https://news.ycombinator.com/item?id=50637874


> The problem here is that everything is running as your user, so it's all the same security sphere.

see also https://m.xkcd.com/1200/ (2013)


The first one that came to my mind was https://xkcd.com/2044/

I thought of this one: https://xkcd.com/538/

The Apple App Store Review Guidelines 4.5.4 [1] have this to say:

> Push Notifications must not be required for the app to function, and should not be used to send sensitive personal or confidential information. Push Notifications should not be used for promotions or direct marketing purposes unless customers have explicitly opted in to receive them via consent language displayed in your app’s UI, and you provide a method in your app for a user to opt out from receiving such messages. Abuse of these services may result in revocation of your privileges.

I am frustrated that Apple isn't using their gatekeeping powers for good. I wonder if users can file a complaint.

[1] https://developer.apple.com/app-store/review/guidelines/#des...

Edit: yes, users can file complaints. If you are an Apple Developer, you can do so via https://developer.apple.com/help/app-review/safe-and-trusted...

You can also follow "Report A Problem" link at the bottom of the App Store's page for the app.


We really need to start moving to app platforms that give you more control over notifications. It's really disappointing that developers are bundling their marketing and "useful" notifications and apple does nothing about it. At this point, apple knows developers do this and doesn't do anything about it.

What would this look like? Web apps that give you more control over what specific notifications you get.


Yeah, this is the thing that I think everyone misses when they talk about how notifications on iOS are fucked. They're always quibbling over the grouping, the presentation, and the organization, but what actually needs to happen is the user needs to be given full granular control over every single type of notification that an app can send. Apps should be required to catalog every single notification, and I should be able to choose which ones I want.

There are tons of useful notifications I would like to get, but I end up having to choose the nuclear option of turning them off completely because I know that by allowing notifications, I expose myself to vomit-inducing growth hack spam.


Unfortunately the app still controls if it sticks the “critical notification” tag on an advertisement. So it only does so much.

Anyways, I completely agree.

But the apps themselves are doing such a dogshit job at this too. Telegram, or WhatsApp for example, has no way to completely disable messages from unknown senders. So the apps are quickly filled with spam.

To say nothing about how phone companies let spammers abuse their customers


In many jurisdictions, phone companies are legally barred from refusing service to anybody.

They're a common carrier, you wouldn't want an automated fraud detection system to accidentally flag you and prevent you from ever obtaining another phone number in your country again.

This is the other side of the "why is Meta banning innocent people" coin. We could prevent Meta from doing this by law. What would the consequences be? I don't know, but I know that your car warranty has expired, are you interested in renewing it?


I don't understand your response. In the first place, messaging services aren't phone companies.

But if we assume that they are, all that would mean is that anyone is entitled to register a WhatsApp account. It wouldn't mean - could never mean - that anyone with a WhatsApp account is entitled to have their messages seen by anyone else they try to communicate with. Whether I take your call is between you and me, not between you and the phone company.


In many jurisdictions, you have to submit your passport ID to a government system to get a phone number. So it's easy to track down spammers.


I’ve wished for this for a decade, so I don’t imagine it’s coming any time soon, but 100 times, yes. And it should require some kind of non-totality-generic template string to register a notification, otherwise developers would just register a global

    %message%
template and continue to send their “time-sensitive” emoji slurry of marketing messages.


Android has per-app notification channels that let you mute notifications by category for each app.

Sadly, the biggest Android OEM (Samsung) has decided to hide this feature in the settings app, meaning lots of users don't even know about it.

It also requires app developers to categorise their push notifications themselves, which they often refuse to do, despite Play Store guidelines requiring it.


I disable almost notifications from all apps. I haven't missed anything. The only ones I have active are text messages from people in my contacts, and then only from individials. Group chats I check when I have time.


It’s irritating at least to have a ritual to enable notifications on the rare occasions I order food from Uber et al, so that I don’t miss it when the delivery guy arrives, but then remember to turn it back off so I don’t get multiple messages per day about delivery fee deals.


You can disable the marketing notifications while keeping the delivery ones, at least on Android.


I don't order delivery food, or use any similar app-initiated services, so that particular issue is a non-issue for me.


Honestly, as much as email sucks right now, it's better in this regard than push notifications. I should be able to mark notifications as spam, and if Apple/Google notice that an app has too high of a spam rate, they should be punished (lower deliverability, etc.).


This works against notifications being informative, though.

The best push notification is one that I don't have to click. "Your package from Apple has just been delivered". is infinitely better than "new activity on one of your deliveries, click to learn more."

We don't want companies optimizing for max(open rate) because that encourages the latter style.


What does your comment have to do with the one it's supposedly responding to?


Even if Apple did something over it, marketing would still send the spam, and then the CEO would yell at engineering because the notifications are broken


It needs to be a system-level permission. Apple could implement some kind of notification registry so that users have the ability to revoke privileges for sending that notification type.


Then marketing would send the Black Friday specials as the most urgent deep technical message category


I feel for the poor engineers getting yelled by CEO, but I also think not having spam is more important.


The best thing you can do is giving such apps a bad review. This actually hurts them a bit, and provides feedback to other users and the company.


Bad reviews don't help when it's the only app you can use with that hardware.

Most people buy the garage door opener that's on sale. They aren't checking each brand's app reviews in Home Depot.

What would really help IMO is legislation requiring smart home appliances, especially ones that are semi-permanently installed, to be fully operable using open source tools or open standards.


Theoretically Apple could take down the app until they comply, which would be effective.


Speaking of Home Depot, they’re awful about ads in push notifications


The main issue is that Apple and Google almost entirely control push notifications. These problems wouldn't exist if apps could instead be switched to a self-hosted UnifiedPush.


self hosted push has huge privacy implications (you need to be constantly connected and reconnect on every network handover, so this would let every app know exactly when you leave for work and when you come back).

It would also give every app location permissions in some cases (by detecting when you connect to open hotspots based on your IP).

Not to mention the battery life; having to reconnect 150 different TCP sessions every time you lose and regain coverage (which is quite often in some areas) would destroy battery life.

The correct design for push is what web browsers do. Make one user have one session to one server, with the user telling the app what server it should connect to and how to deliver their notifications. Connecting to hundreds of different servers for different users is a problem to be solved by the delivery service.

In principle, browsers could let you self host web push (I don't know if any of them actually do, but the standard does allow it).


also on ios push notifications are a bad joke with regards that I cannot review them once they were removed from the lock screen, no notification center with a history...


the best implication is that apps will send you a notification with a text that's too long for the preview, you tap that and the app opens but if there's any issue bringing you to the correct view (app not updated, not logged in, etc) it's just lost forever


exactly, happened to me multiple times with banking apps, where it is especially problematic.


The thing is it's probably not against those quoted terms. You don't need push notifications to open the app and check the status and you have to give consent to enable the notifications.

I.e. the rules above don't say "denying push notifications must not make the app less nice to use and consent for ad push notifications must be able to be toggled separately from other types of push notification consent".

They should, but that complaint probably needs to be directed at Apple.


"Push Notifications should not be used for promotions or direct marketing purposes unless customers have explicitly opted in to receive them via consent language displayed in your app’s UI, and you provide a method in your app for a user to opt out from receiving such messages."

Apple says that you must separate promotional marketing push notifications from regular push notifications, and allow users to opt out. this is in direct violation of that rule.


Push notifications shouldn't be used for any kind of marketing. No fucking exceptions. You shouldn't even be able to opt-in, let alone have to opt out.


Not "allow users to opt out": they must opt IN. I've just reported an app that's been bothering me with this crap.


“Opt in using consent language in your app’s UI” What does this mean? Because it sounds to me like some text that says “by using this app you consent to be spammed” is considered “opting in”.


The way I'm interpreting it, having a default-on setting that says "send me crap" buried in the settings is a violation. That's not opt-in. Worth reporting, in my opinion. They should feel the pain of this decision.


Instead they'll show you a popup every time the app opens that says "do you consent to receive notifications?" Once you click yes you'll get them and it won't ask again. The opt out will be buried in settings. If you turn it off, you'll start getting nagged again.


I mean, yes, that would technically work (by meeting the letter of the rule), but no app is going to do that. And, critically, the app I reported didn't do that. It just silently defaulted to spam, which is what's not allowed.


There are plenty of apps that literally do that right now.


Every time you open them? That is insane. I've never seen it.


Of course, because you consent the first time to get rid of the popup.

I'm confused by this statement because many apps do literally just that. It sounds like the app you're talking about might in a sense be one of the less worse ones, because it's just overtly evil instead of being evil and also disingenuous.

"Can I stick it in ur butt? [Yes] [Later]"

There are things that I hate more about the current level of the Torment Nexus than this, but surprisingly few of them.


Again, that doesn't say they must be a _separate_ push notifications opt in, just that it must have been done via _some_ opt in which included the needed consent language (which can later be undone).

E.g. "Would you like to receive push notifications, including our recommended product deals which... (yadda yadda)? y/n" (and the ability to undo that choice later) meet the quoted criteria to the letter without offering a way to have "good" push notifications without consenting to ad push notifications as well.


This wording is ambiguous and could be read as:

> "Push Notifications should not be used for promotions or direct marketing purposes unless customers have explicitly opted in to receive [push notifications] via consent language displayed in your app’s UI, and you provide a method in your app for a user to opt out from receiving [push notifications]."

ie. if you use push notifications for marketing then you must ask the user if you can send notifications at all, and let them disable notifications.

It’s allowing them to bundle the baby with the bath water, so you can’t throw one out without the other. We see this kind of wording all the time and it’s peak enshittification.


> provide a method in your app for a user to opt out from receiving such messages.

"such messages" clearly refers to marketing messages only, because iOS already has a built-in way to block all push notifications for an app. You can just revoke the permission in system settings.

I don't think this is Apple intentionally writing a loophole into their own policy, they're just not enforcing it.


I don't think it's a loophole, which is why they are not enforcing it. It only seems like a separate permission if you already start with the assumption the app asking for push notifications is a separate consent action.

I.e. it doesn't matter what you can individually revoke, it matters what all you consent to when you want the app to register itself go start giving push notifications in the first place. This policy doesn't say that ask has to be separated anywhere, and a combined ask meets all it asks for.


Getting Chamberlain MyQ banned from App Store for APNS abuse would be lovely, though it will never happen. Fun to imagine!


"should" vs "must". What could go wrong.


also "guidelines", not "rules"


"Send a message to the warden of the jail you're imprisoned in!"


Efficiency and resilience are often in competition.

Price is vaguely related to efficiency, so that's what the private sector optimizes for. Think about that next time people complain about Government efficiency.

As one NASA chief said: "if we could blow up rockets as much as SpaceX did, yeah we'd be much faster and cheaper"


Why cant they blow up rockets ?


If SpaceX blows up some rockets for fast development, and that's how Elon likes it, that's how it goes.

If the NASA blows up some rockets for fast development, people get angry, politicians get scared, funding gets cut, important leaders get fired. So they have to try really hard to guarantee no failures. Everything takes way longer and costs way more. They still fail sometimes, and just as often a project is cancelled before completion, but that's way better than an explosion, politically.


They don't have the money to burn.


it's kind of a bad look for the politicians in charge when the eyes of the nation/world are on you ("you wasted how much taxpayer money on that explosion?!")


Which ISP was doing this? It's worth calling out the bad actors.


It's pretty much most Indian ISPs and in this case it was ACT Fibernet.


Wouldn't the list of ISPs not doing this be easier to make?


No.

There's a difference between what you're likely referring to, where the ISP's own DNS, which most people are using by default, returning particular results, and what the author is showing here where the ISP is actively tampering with outside DNS responses to insert incorrect responses.

Until now, I was not aware of any ISP doing the latter.


Only one ISP I've used ever did this (VodafoneZiggo) and that was over a decade ago, and only to redirect domains that couldn't be found to ad-filled "search" pages.

It's not universal, the occurance or this type of abuse seems to vary wildly from country to country


Want to ISP-less in India? :D At least ACT doesn't blanet throttle/fail uplaods of any sort like Jio does on its 5G – even LLM calls fail.


> I guess I misjudged Apple's commitment to support HFS+ long-term.

One thing I have learned with (current) Apple is to never trust their commitment to support something they're not using. And even be wary for stuff they are using. (in my mind, a core technical difference between Microsoft & Apple is that MS will bend over backwards for backwards compatibility, whereas Apple will drop it as soon as they can, and sometimes sooner still)

They replaced their use of HFS+ with APFS in 2017, so it's had a good run.


I have heard from ex-CoreOS (the Apple org) colleagues is that the organization is run intentionally lean, because the leadership believes that people do their best work under pressure. This leads, among other things, to aggressive YAGNI pruning.


sorry for the non-substantive nit. because we all know what you meant.

YAGNI is about not doing work in advance. it's very confusing to say YAGNI and pruning in the same breath. it's also confusing to call this aggressive since it's been 10 years.

i wouldn't call it dead code pruning either, since the code in question here was actually reachable and used. maybe, unmaintained code pruning?


Pruning of proposed features maybe?


well that would be YAGNI wouldn't it? this is about removal of an existing feature, not a proposed feature.


Rosetta..


Is dead in next year's release (apart from a handful of exceptions).


How would one apply a fillet to an edge, in this model?

I haven't really used the constructive geometry approaches to CAD, but I've been learning CAD recently through OnShape, and really appreciated how easy were all the operations I wanted to do with it. I've heard that the purely constructive geometry approaches of the OpenSCAD type can make certain operations more complicated to implement.


With a hand file. /s

Sadly CAD is similar to the GIMP and Photoshop situation, depending on the software you use you might want to aim lower in your goals. Though it's not all doom and gloom because things have been improving and keep improving at a steady shape i.e. see FreeCAD's latest updates.


It's worse than that. I'm a mechanical engineer. Aside from freecad, basically all of of the open source CAD tools have one thing in common: they are built by a software engineer that used a traditional 3D CAD program for five minutes before deciding it's better if CAD is more like the programming that they are used to. Thus, they are missing most features actually wanted if you are used to something like Solidworks or Catia or need to manufacture something, communicate tolerances, and not just 3D print a part.


Or GIMP vs. Inkscape, in terms of freeware.


I really like that paragraph in the article. We have more access to knowledge and other resources than ever in history, and yet not everyone is a Renaissance Man.

Availability of resources does not entail skill in leveraging them. I'm not sure classical eduction is the best way to learn that, but it's certainly better than nothing and a useful first step.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: