MurphyA/hacker-news huggingface dataset:
by layer8 | 2025-09-07 19:18:08+00:00
What I find confusing about the Smalltalk diagram of MVC is that the view can update itself from the model without help from the controller (and without the controller even necessarily being aware of it), but updates to the model based on view events apparently have to go through the controller. This raises the question of why if the view is capable of reading the model on its own, it is not likewise capable of modifying it, and/or conversely, if the controller is used to customize how the model is updated based on view events, why it can’t also be used to customize how the view updates itself from the model.

What would make more sense to me is to simply define the controller as an intermediary between model and view for updates in both directions. The controller would simply represent whatever needs to be specific to the particular combination of model and view in the particular application context. Depending on context, you might use a no-op controller when no customization is needed, as in the example of the article where a checkbox (view) is bound to a boolean property (model).
by Balgair | 2025-09-07 19:18:50+00:00
Probably not?

I can't find the link, but I think Bret also had an article on how nomadic cultures had generally worse lives than settled ones, from what little we can know. If I recall correctly, it's hard to tell, as nomadic cultures don't really record things. But from the burial sites and little other evidence we have, it seems (again via mostly their bones) that their lives were much harder, shorter, more disease ridden, and more violent than what we see in agricultural remains. But also, trying to say for certain that any one set of bones was from a nomad, a settler, or something of a mix, was very difficult. Like, such categories aren't really all that 'real' when you have to sit down and fit a particular femur into a category.

But, again, I want to stress that I'm trying to recall something here, and that the thing I'm recalling also stressed that the physical evidence is quite scant as is and very hard to discern when you have it.
by amluto | 2025-09-07 19:19:10+00:00
How about hiring more people? For that matter, why is the decision made in the local consulate or embassy anyway?

The whole worldwide visa system feels like a relic of the time before networks. Many tasks rely on physically moving pieces of paper around, leaving your passport with agents of a foreign government (!), and having documents that are stamped and supposedly authenticated. Shouldn’t everyone be able to separate the tasks of authenticating a person and authorizing that person to be somewhere?
Ask HN: Would you wear sunglasses with anime eyes that reflect your mood?
by amichail | 2025-09-07 19:20:35+00:00
What if your sunglasses didn’t just block the sun, but actually copied your mood in an over-the-top anime style?

Imagine sunglasses with tiny screens on the front that show exaggerated anime eyes, synced perfectly to your real facial expressions. If you smile, the anime eyes sparkle wide. If you frown, they shrink into a dramatic glare. If you’re shocked, they explode into giant circles with surprise lines.

Would you wear these?
by matthewdgreen | 2025-09-07 19:21:20+00:00
But that’s sort of the point of the business model. Getting safe fully-self driving vehicles appears to require a better platform, given today’s limitations. You can achieve that better platform financially in a fleet vehicle where the cost of the sensors can be amortized over many rides, and the “FSD” capability translates directly into revenue. You can’t put an adequate sensor platform into a consumer vehicle today, which is what Tesla tried to promise and failed to deliver. Maybe someday it will be possible, but the appropriate strategy is to wait until that’s possible before selling products to the consumer market.
by OneMorePerson | 2025-09-07 19:21:26+00:00
I can't remember where I first heard it but here's a few links.

https://www.ewg.org/sunscreen/report/whats-wrong-with-high-s...

https://www.mdacne.com/article/why-spf-30-is-better-than-spf...

This one (https://www.skincancer.org/blog/ask-the-expert-does-a-high-s...) doesn't directly say its better or worse, but alludes to the idea that when you combine the various factors there's definite cons to SPF 50.

Potentially I slightly overstated, what I intended to say was "there's clear reasons why SPF 30 would be preferable in many/most cases". If you are a pale white person who is hiking through the Sahara with no hat SPF 50 might be the way to go.
by instig007 | 2025-09-07 19:22:25+00:00
> Still wish someone would figure out a working version of dependent types for real-world use, mainly so we could prove array bounds-safety without runtime checks.

Hi Kenton, I'm not sure what kind of PL theory you studied in college, but "array bounds-safety without runtime checks" don't require dependent types. They are being proven with several available SMT solvers as of right now, just ask LLVM folks with their "LLVM_ENABLE_Z3_SOLVER" compiler flag, the one that people build their real-world solutions on.

By the way, you don't have to say "real-world" in every comment to appeal to your google years as a token of "real-world vs the rest of you". "But my team at google wouldn't use it", or something along that line, right?

https://ats-lang.sourceforge.net/DOCUMENT/INT2PROGINATS/HTML...
by hereme888 | 2025-09-07 19:22:28+00:00
I thought my hinted answers were clear: the climate is always changing, hence the terminology is imprecise compared to the previous, specific "Global Warming". It fuels conspiracies. The science itself is difficult, and at times has been admittedly imprecise or biased. The overzealous politicians are given an alarmist presentation, and in turn propose exaggerated solutions that threaten current livelihoods. Instead of addressing specific points during airtime, people fall back to some imprecise political comment on the matter, itself fueling distrust because the average person, while "less educated", is still sharp.
by mkleczek | 2025-09-07 19:22:29+00:00
> This is a cliche "think of the children" argument. Stripping away anonymity is a gargantuan problem, and enables authoritarian regimes to punish dissent.

So we agree: authoritarian regimes are a gargantuan problem, not stripping away anonymity.

> Trolls are a very minor problem comparatively.

Online predator almost killed my child - this is not a "very minor problem". At least not for me.

> This is essentially saying "freedom needs to come with punishments and restrictions when you do things I don't like". It's an oxymoron.

It is not bout things _I_ don't like but things that _we (society)_ don't like. In my country nazi symbols are forbidden in public space and I think it is a good thing. So yes - "freedom needs to come with punishments and restrictions".

> The responsibilities a free populace have are moral and civil, they aren't about giving away anonymity to governments.

Why not? There are countries which governments are elected by citizens and are _trusted_ by citizens. Why would I want to be anonymous if I _trust_ people I elected?
by gchadwick | 2025-09-07 19:22:35+00:00
If I'm reading this right, glitching the I2C bus prevents the Secure Enclave from booting. It seems the device recovers from this itself 'Although the device recovered and remained operable', maybe the Secure Enclave reboots itself after seeing a fault in the I2C?

No evidence of any security issue is presented. Though it's certainly wanted to drum it as something major 'This is a high-severity, unpatchable design flaw'.
by athrowaway3z | 2025-09-07 19:22:37+00:00
> thread 'main' (17953) panicked at ck-cli/src/main.rs:305:41: byte index 100 is not a char boundary

I seem to have gotten 'lucky' and it split an emoji just right.

---

For anyone curious: this is great for large, disjointed, and/or poorly documented code bases. If you kept yours tight and files smaller than ~600 lines, it is almost always better to nudge llm's into reading whole files.
by Nextgrid | 2025-09-07 19:22:58+00:00
> Essentially you do not have to deal with any of the hassle that comes with setting up and maintaining your own "server", all you have to do is write the code that is your business logic.

Also known as "shared hosting". It's been done since the 90's (your folder full of PHP files is an NFS mount on multiple Apache servers), just that the techbros managed to rebrand it and make it trendy.
by Leftium | 2025-09-07 19:24:12+00:00
Good point~

I use fish shell abbreviations, now.

`rm` expands into `trash` so I know it's been "aliased."

I don't ssh into servers often, but hopefully I'd notice `rm` didn't expand.

--

On a similar note, I used to alias `cd` to zoxide. But now I just use the default `j` to avoid confusion with `cd`
by comex | 2025-09-07 19:24:33+00:00
AI slop aside, just for the record,

- SPU is not a processor, it's a generic term that encompasses multiple coprocessors.

- The log lines don't even mention the Secure Enclave Processor (SEP).

- Each line of log output is its own thing and there is no reason to think they have anything to do with each other.

- Those are not specifically serial logs. It is possible to get the same logs over serial, but only with a development unit, Security Research Device, or jailbreak.
by Nextgrid | 2025-09-07 19:24:58+00:00
Or you could just write conventional software. But I get it, you don't get resume points nor invites to cloud-provider conferences for that.

> Basically free staging environment. [emphasis mine]

Not really. Sure, the cost would usually be peanuts... until you have an infinite loop that recursively calls more lambdas. Then you have a huge bill (but hey that pays for your invites to their conferences, so maybe it's a blessing in disguise?). And yes, you will pretty much always get it refunded, but it's still a hassle and something that is absolutely not necessary.

Snark aside, having an opaque dev environment always constrained by bandwidth and latency that can’t be trivially backed up/duplicated is a terrible idea and why I always recommend against “serverless”, even besides the cost concerns.

Serverless is OK for small, fully self contained pieces or code that are fire and forget. But for anything complex that’s likely to require maintenance, no thanks.
by A4ET8a8uTh0_v2 | 2025-09-07 19:25:20+00:00
Interesting way to sidestep the answer, because I did not ask you what the current rate is. I asked you why you think the existing population cannot breed.

If it is social services and social safety net, then why the same does not apply to the immigrant population ( legal or illegal )? Again, I know what I am thinking, but you have to give me a little more so that I model your world perspective a little more clearly.
by SQLite | 2025-09-07 19:26:00+00:00
> Why not just have the value be the base 2 logarithm of the page size, i.e. a value between 9 and 16?

Yes, that would have been a better choice. Originally, the file format only supported page sizes between 512 and 32768, though, and so it just seemed natural to stuff the actual number into a 2-byte integer. The 65536 page size capability was added years later (at the request of a client) and so I had to implement the 65536 page size in a backwards compatible way. The design is not ideal for human readability, but there are no performance issues nor unreasonable code complications.

The page size value is not the only oddity. There other details in the file format that could have been done better. But with trillions of databases in circulation, it seems best to leave these minor quirks as they are rather than to try to create a new, more perfect, but also incompatible format.
by sethev | 2025-09-07 19:26:22+00:00
This seems like an unnecessarily negative comment. I've been a user of SQLite for over 20 years now (time flies!), what you're calling lack of polish, I would chalk up to Dr. Hipp has been consciousness about maintaining compatibility over the long term. So much so, that the Library of Congress recommends it for long-term preservation of data.

Long term compatibility (i.e. prioritizing the needs of users vs chasing inevitably changing ideas about what feels polished or pristine), near fanatical dedication to testing and quality, and sustained improvement over decades - these are the actual signs of true craftsmanship in an engineering project.

(plus, I don't agree with you that the storage layer, column format, or SQL implementation are bad).
by huydotnet | 2025-09-07 19:26:36+00:00
Most of the apps to learn Japanese/Chinese seems to focus on the reading part, where it will present a word, and ask the user if they remember the meaning/pronounciation.

I find that I learn much faster (and remember a word for longer) when I focus on writing, instead of just... look. And writing is something most apps just skip. Some apps do show the animation of the stroke orders, but I think the user needs to be proactively write it down somewhere to remember it better.
by DarkSucker | 2025-09-07 19:27:26+00:00
Thanks. I wasn't thinking of enums. To the extent one designs a trait to use an enum type (or the enum to satisfy the trait), one wins. But it seems impossible to avoid code to handle all future {type, op} combinations. The nice thing I've seen with Rust is the ability to add to what's been done before without breaking what already works. I'm thinking of "orphan rules" here.
by milan_p | 2025-09-07 19:27:44+00:00
Showpass | https://www.showpass.com | Calgary, AB | ONSITE (hybrid 2-3 days/week)

Live events platform: ticketing, checkout, organizer tools, orders/settlements, analytics.

Backend (Intermediate to Senior): Python/Django; PostgreSQL; Redis/Celery; ClickHouse; GKE; Docker

Frontend (Senior to Principal): React/Next.js; TypeScript; Design Systems/Storybook; Jest/Playwright; perf/a11y

Solutions (Intermediate to Senior): TypeScript/Node or Python/Django; REST; OAuth2/OIDC/SAML; SDKs/CLIs

Apply: hn@showpass.com

Subject: HN Sep 2025 - <Role>

No recruiters, please.
by layer8 | 2025-09-07 19:28:12+00:00
There’s also a difference between the code needed to create and set up the combination, as opposed to the code that executes based on events after things have been set up. The way MVC is generally presented, it is only about the event-time code, but in practice the set-up code and the event-time code are not independent and are usually combined within a single class or module.
by em-bee | 2025-09-07 19:28:31+00:00
my general impression is that the greatest concern for china is people getting riled up about anything, and that leading to civil unrest. like what's happening in indonesia right now for example. therefore any kind of content that could get people upset is restricted. so effectively this means no doomscrolling. wechat has something that works like tiktok, and the content there is all positive, uplifting, educational or entertaining. probably just a addictive, mind you, but never once i have seen something that i would want to keep away from my kids.
by busymom0 | 2025-09-07 19:28:41+00:00
> On the other hand, social networks are a cancer that are used to spread misinformation, steal information, and invade privacy like nothing else before.

There're plenty of things far worse than social network which society has found to acceptable for many decades if not centuries. Things like alcohol, carbonated drinks, sugar etc are all consumed by people in whatever amount they want knowingly full well how much damage it might cause them. We don't need a few people baby-sitting our consumption of diet, be it food or information.
by npunt | 2025-09-07 19:28:43+00:00
(OP makes a good point, just going on a slight tangent here)

We really need a term that sits between correlation and causation in situations where data is difficult to come by. There's such a huge rift of meaning between these terms, and too often 'correlation is not causation' gets wheeled out in a room of people that already know that and are trying to figure out the nuances.

How about plausal? Aka it's rather plausible that there is a causal relationship between two things but causality is hard to prove.

"Air quality and dementia have a plausal relationship".

The bar for plausation is much lower, yet many correlates still won't meet it. "Bad air quality causes dementia" is a categorically different statement than "ice cream sales cause shark attacks", if we establish the category of plausal relationships.
by rsolva | 2025-09-07 19:29:02+00:00
The wattage matters a great deal to the grid! If a whole neighborhood charges at max speed, that can become a problem. Here in Norway, you can get a discount on your electric bill if you let the grid operator adjust the charging speed at peak hours to help them balance load, and I guess frequency. A sensible approach.

600W is not much, that is an average gaming computer running a somewhat demanding game. Nerds all over the world have this as a multi hour nightly ritual. I choose to charge my car now and then instead :P
by themafia | 2025-09-07 19:29:46+00:00
> It's about rate limiting, not access controls.

You just shouldn't be using S3 to serve files directly. You can run most public and many private uses through CloudFront. Which gives you additional protections and reduces things like per object fetch costs.

> you hit natural rate limits

Seen by your customers or the public as a "denial of service." Which may actually be fine for the people who truly do want to limit their spending to less than $100/month.
by mdaniel | 2025-09-07 19:30:08+00:00
relevant links:

https://en.wikipedia.org/wiki/Modified_condition/decision_co...

https://shemesh.larc.nasa.gov/fm/papers/Hayhurst-2001-tm2108... (This tutorial provides a practical approach to assessing modified condition/decision coverage (MC/DC) for aviation software products that must comply with regulatory guidance for DO-178B level A software)
by frontierkodiak | 2025-09-07 19:30:21+00:00
Rip2 is another useful alternative: https://github.com/MilesCranmer/rip2

I have a small wrapper around rip2, aliased to `recycle`; files go to a `graveyard` zfs dataset. I deny `rm` usage for agents, a simple (global) instruction pointing to recycle seems to do the trick for Claude.

Seems like a quick win to remove some downside risk and make me a bit more comfortable letting agents run wild in local workspaces.
Ask HN: What did you obtain from learning compilers?
by 1112222 | 2025-09-07 19:30:27+00:00
If you took a compiler course in undergrad or grad school, or did a lot of self learning, what are some ways it expanded your mind and gave you skills it would be hard to get elsewhere?

In 2025 and beyond, for people with lots of experience in software development but no compiler experience, what can taking a compiler course bring them?
by jgilias | 2025-09-07 19:30:32+00:00
The issue is that your criticism is misguided and not very helpful. In your parent comment you totally miss the forest for the trees. Or, the reason why this app has been made in the first place.

Further, your suggestions are inactionable, and again, miss the point. It’s a low effort - “Lol, why don’t you just…”. No, the point is not to find skin cancer. The point is to show a bunch of pictures to people who are interested, and let them see if they can identify worrying skin lesions.
by aeternum | 2025-09-07 19:30:36+00:00
My take is that overall he's right. The obesity epidemic should be our primary heath focus. Heart disease and obesity are the primary killers of americans.

You can in fact determine a huge percentage of americans including children are incredibly unhealthy just by looking. Increased focus on exercise and negative incentives on soft drinks and sugary beverages does seem like a major step in the right direction.
by perching_aix | 2025-09-07 19:31:04+00:00
> Turns out this free speech thing might be a pretty useful ability to have, huh?

> "Its free speech when I talk, but if you, someone who says things I disagree with talks, then you're merely an asshole being shown the door"

Did you mean to demonstrate this with that strawman of a quote? Not exactly a stellar display of free speech's utility and benefits I'd say. I'm sure you will also passionately go around telling everyone how you just got unfairly censored for it if you even manage to get it flagged. It's especially rich considering this started with the dude above pulling out the hivemind card, which is also notoriously useful and productive of course.
by owenversteeg | 2025-09-07 19:31:13+00:00
Oh, don't get me wrong, I'm not making any sort of judgments about recycling your family heirlooms to feed industrial demand. None of these schemes would have a terribly substantial effect in the long term. Just pointing out that while typically this sort of thing is hilariously ineffective and rounds to zero, this specific case is very unique and people do own a market-distorting amount of silver - yes, even if it's only one in ten households with a set.

>someone could use those diamonds to make high-precision cutting equipment

Funny enough, I actually do use monocrystalline diamond tooling (not for EVs or solar panels.) I would never tell someone to sell their family jewels, and they would almost certainly get pennies on the dollar if they tried.
by Lu2025 | 2025-09-07 19:31:26+00:00
People do quit when it's hard so instead of overriding the very human nature why not work with it?

We all saw the "draw the owl" picture. Step 1 is easy step 2 is easy but then the rest appears impossible. Why not make a series of small, doable steps that lead to the result? The "hardness" of many things is not exponential, it's linear or even less dramatic.
by themafia | 2025-09-07 19:32:13+00:00
Serverless is easier to say than "load controlled ephemeral server management." Which is the real point. As my load increases the number of allocated resources, like servers, increases, and as it decreases so do the allocations and costs.

This is great if you are willing to completely change your client-server code to work efficiently in this environment. It is a strain over a standard design and you should only be using it when you truly need what "serverless" provides.
by latexr | 2025-09-07 19:32:16+00:00
> Confused why it says that 'this API is not exposed'

What it says is (emphasis mine) “it’s not exposed as a public API”. In other words, Apple doesn’t provide official documentation and hooks for you to interact with the feature, like they do e.g. with Bluetooth. Even then, while they provide public APIs to interact with paired devices, interacting with the Bluetooth controller itself (e.g. turning it completely off or on) requires private APIs.
by FridayoLeary | 2025-09-07 19:32:55+00:00
Europes permissive immigration policies (basically anarchy from my perspective in the UK) are creating an entirely avoidable crisis. I expect a far more closed border policy in the future. International travel will become more complicated as western countries will increasingly try to control who is allowed in. Trumps administration is just 2 to 5 years ahead of everyone else.
by skrishnamurthi | 2025-09-07 19:33:37+00:00
Tails calls are especially useful in languages with macros. You don't know what context you are in, you just generate the call that makes sense. If the call happens to be in tail-position, you get the benefit of it.

Moreover, you can design cooperating macros that induce and take advantage of tail-position calls.

Here's a simple example that motivates tail-calls that are not tail-recursive:

https://cs.brown.edu/~sk/Publications/Papers/Published/sk-au...
by LegionMammal978 | 2025-09-07 19:34:24+00:00
At least for me, over 90% of unintentional file deletions (not counting ill-considered deletions) are due to mv and cp rather than rm. Being careless with them can easily end up overwriting a file's contents with another. For instance, once I was typing out a few commands of form "cp foo.txt bar.txt baz/", but I inadvertently hit Enter before writing "baz/", causing bar.txt to get overwritten with foo.txt. I don't know of any good solution for this issue, apart from my current rule of thumb never to use more than two arguments at a time.