MurphyA/hacker-news huggingface dataset:
by jeroenhd | 2025-04-11 06:02:55+00:00
AFAIK it's one of those W3C versus WHATWG/browser vendor things. The spec has an algorithm, no browser actually implements it faithfully, and when browsers were still competing with each other nobody was going to break half the web to be spec compliant. The problem started decades ago (https://html5accessibility.com/stuff/2022/04/05/12-years-bey...).
by jen_h | 2025-04-11 06:03:36+00:00
Well, not conpletely Emperor’s New Clothes: after I got my basic chess clock, I asked for skeuomorphic changes…I got a fantastic “next steps” summary in return…but when I said “Go on ahead, your choice,” it created an incompatible dependency nest trying to add clicky sounds.

Gemini actually dug me out of it, though, with additional prompting (this kind of surprised me; I assumed I’d have to eventually really step in). After all that distraction, though, I had to reset the convo to get it to focus on the files again.

Totally understand that you might be too annoyed at this point, but if you do have a few minutes, it’d be amazing to file a case @ https://firebase.google.com/support/troubleshooter/studio for the team to dig into.
by j13n | 2025-04-11 06:03:38+00:00
The linked post relies on the Datastar project, which requires use of `unsafe-eval` in one’s Content-Security-Policy [1]:

> When using a Content Security Policy (CSP), unsafe-eval must be allowed for scripts, since Datastar evaluates expressions using an IIFE (Immediately Invoked Function Expression).

The project itself links to Mozilla’s docs on CSP, which state:

> The unsafe-eval keyword can be used to override this behavior, and as with unsafe-inline, and for the same reasons: developers should avoid unsafe-eval.

Out of the box, htmx uses a similar approach, but one can disable this use of eval [2]:

htmx.config.allowEval - can be set to false to disable all features of htmx that rely on eval: - event filters - hx-on: attributes - hx-vals with the js: prefix - hx-headers with the js: prefix

[1]: https://github.com/starfederation/datastar/blob/develop/site...

[2]: https://htmx.org/docs/#configuration-options
by 827a | 2025-04-11 06:03:40+00:00
Remember: The people who would supposed to benefit from a rollout like this are the website operators, not Firefox. The change is happening; I doubt Mozilla is going to reverse course because a couple websites look a little wonky (totally reasonable).

How would they report it? "Hey, your website looks weird. Yeah I'm running Firefox 138 stable and I'm in the 5% experimental group who received the default h1 styling change"?

What is more likely to happen is: A website might get a report, the dev goes to reproduce it, and they're in the control group, so they can't; and because it was only one or two reports, it gets closed.
by eagleislandsong | 2025-04-11 06:05:08+00:00
> When Taiwan operated in one party rule under the Chiang family they did not make significant economic progress

This is objectively wrong.

Taiwan made tremendous economic progress during the period of one-party rule under Chiang Kai-shek and later his son Chiang Ching-kuo. During the KMT's authoritarian rule from the late 1940s through the 1980s, Taiwan experienced the "Taiwan Miracle". Land reforms in the 1950s boosted agricultural productivity and created a rural middle class. In the 1960s Taiwan shifted from an agriculture-based economy to an export-oriented industrial economy, and by the 1980s Taiwan had one of the fastest-growing economies in the world, with GDP growth rates often exceeding 8-10% annually. Chiang pursued an export-led growth model, encouraging foreign investment and industrial development, supporting industries like semiconductors, which is why you have TSMC today.

The KMT government also made major investments in education, particularly in science and engineering, hugely increasing literacy rates. All these strategic initiatives and policies meant that Taiwan became one of the Four Asian Tigers by the 1980s.

On a slightly related note, on Taiwanese social media today it is not uncommon to come across Taiwanese people lamenting that the KMT built the TSMC, and the DPP is selling it out. Whether this is a fair and accurate assessment of the DPP is another discussion, but this seems to be the sentiment among many Taiwanese these days.
by InkCanon | 2025-04-11 06:05:48+00:00
I think it is largely nature. Linus has great ability to

1) Identify and resonate deeply with developer issues (like Git, Linux)

2) Focus on executing a usable product in a very short time

So combined it's a really potent ability. If he had the personality he'd probably be a really great founder, but he has chosen to open source all his stuff.
by pojzon | 2025-04-11 06:05:59+00:00
It would be a disastrous blow to oil indystry if everyone agreed we have to move away from both plastic and oil.

We produce more and more plastic each year, every new law reducing oil consumption is greated with doubling the amount of plastic we produce.

Microplaatic is in our brain now, causing damage that is irreversable.

Freezing grants is just one of many reasons why we need to put stop to that cancer which is oil industry.
by anon7725 | 2025-04-11 06:07:38+00:00
There’s probably no safe limit of driving a car or using a step ladder.

Alcohol has been with us since the beginning and will probably be with us until the end. The point of these studies should be to make people aware of the risks and motivate them to make appropriate choices.

But part of the understanding of risk should be that there is a floor below which something else will most assuredly kill you. Is that floor 10 drinks per week? 2? Who knows.
by jorangreef | 2025-04-11 06:10:05+00:00
Except, this didn’t take longer.

In fact, it would have taken longer had we had to “sculpt” the dependencies.

But—we also wouldn’t have had the same quality.

Again, I don’t mean to suggest that you should necessarily “paint” like we do at TigerBeetle, but we’re happy with the time and quality of the project, that it (more than) met our standard.

We’re not trying to impose TigerStyle on you, but it works for us.
by poulsbohemian | 2025-04-11 06:10:54+00:00
This is such an underrated experience - a bottle of wine (doesn't even have to be particularly expensive, just pleasant), some cheeses, maybe a few slices of sausage or cold cuts, maybe a baguette or a salty cracker. Jazz or perhaps a some easy listening music in the background - pure bliss! The best things in life cost so little and yet are so perfect.
by OutOfHere | 2025-04-11 06:11:43+00:00
Broken glass on the street is an aesthetic issue, assuming one has good shoes. In contrast, with gradual plastic accumulation, life on Earth is headed for extinction.

Also, for poor people, they need the money that they money back when they return a glass bottle, so they have an incentive to not trash it, certainly not on the street.

Glass containers don't require any lining. As for aluminum without a lining, it is okay for certain dry foods only, nothing wet.
by fc417fc802 | 2025-04-11 06:11:46+00:00
Good point. Seems I also made a reasoning error by failing to consider that timezones, being arbitrary legal constructs, can be changed at the drop of a hat.

However it doesn't seem particularly difficult to fix. My error was suggesting using TAI for storage. I guess that works only for events in the past. So the timezone that the event belongs to is what should have been used for storage, you should forget leap seconds exist because this is a human centric calendar so who cares, and you should trust the datetime library to just do the right thing when converting timestamps.

Is there some other issue I'm missing? Because so long as all the timezone complexity is stuffed into the datetime library (and thus NotMyProblem™) it seems like the really difficult part is already solved for you.
by harshitaneja | 2025-04-11 06:14:32+00:00
Meow Meow Beans episode in Community predated the Black Mirror episode by a couple of years.

But yes, agreed about Black Mirror feeling hollow with its lack of nuance in its pessimism.

However I don't think Nosedive is the right episode to make this point as we see the protagonist getting assistance from the truck driver lady as well as the people protagonist ends up being held with are able to share a laughter in the freedom of losing it all.
by poulsbohemian | 2025-04-11 06:18:05+00:00
But it doesn't need to be! If you want to put out a nice charcuterie and cheese spread for a social occasion, you have so many options at multiple price points. You can make a great spread with even a generic cheddar, colby, "mozerella" etc. If you've got a restaurant supply store near you, bet you can find some basic sausages, salami, etc that won't break the ban on a charcuterie board. I've seen $20 spreads and $200+ spreads, and while they were different, each made the guests happy.
by successful23 | 2025-04-11 06:19:28+00:00
Honestly, this feels like a long-overdue cleanup. The outline algorithm always sounded good on paper, but in practice, it just created confusion - especially when different tools and screen readers treated headings differently.

Dropping the UA styles makes things more predictable: <h1> means <h1>, no matter where it lives. Yeah, the partial rollout across browsers is going to be rough - debugging across inconsistent browser behavior is going to be a nightmare. Still, if this pushes devs to rely less on implicit styling and more on their own structure, they can now take control of heading semantics more properly.
Show HN: Turn Any Selfie into a Barbie-Style Portrait with AI (Free)
by hiked | 2025-04-11 06:20:53+00:00
We just launched an AI-powered Barbie Doll portrait generator: https://ghiblify.im/ai-barbie-dolls

Upload a photo and instantly see yourself reimagined as a hyper-realistic Barbie-style character. No signup, no paywalls, unlimited free transformations.

Powered by a fine-tuned diffusion model with doll-like aesthetic conditioning (think glossy eyes, smooth skin, soft lighting).

Just a fun weekend project that grew into something a lot of people seemed to love. Would love your feedback or thoughts on how to improve it!
by noufalibrahim | 2025-04-11 06:21:02+00:00
I remember an article, I think by Neal Stephenson, that described the change in the attitude of SF over the years. Things like 20000 leagues under the sea, off on a comet etc. were optimistic, adventurous and generally upbeat. Even the Asimov books were more about world building than doomsaying. There's quite a bit of dystopian pessimistic stuff that's in the market now and perhaps it's just because it's what sells or maybe there's a deeper underlying reason. In any case, the shift was something he talked about in the article/talk.

I remember reading round the world in 80 days when I was a kid and while it's not really "science fiction" in the 90s, the overall premise really triggered my imagination. Can't really say that for many of the more doom and gloom type stories that I read later in my adult life. I liked the freshness of Black Mirror when it first came out (pre Netflix) but then it dawned on me that it was mostly doomscrolling repackaged and converted into slick entertainment. I tuned out after that.
by pkaye | 2025-04-11 06:21:30+00:00
Not the OP but I did something similar for a breakout style game. I just interactively provided details specifications like there is a ball, paddle, bricks, powerups, what they look like and behave, how collision is handled, etc. For example, if you get a multi-ball powerup, it will add additional two balls in flight. If you get a shooter power up, the paddle will be able to shoot bullets for 10s. I didn't even have to write any code to get exactly what I thought up.
by casey2 | 2025-04-11 06:22:55+00:00
Don't forget nuclear power in the Simpsons and many shlocky horror movies before that. America could have had thousands of nuclear power plants by the 2000s. Though oil politics and deep pockets directly funding anti nuclear advocacy groups plays more of a role here than fiction.

The direct cost is at least 100,000 lives in America alone, all the technological advancement that comes with cheap electricity, and who knows what affects it would have had on the climate.
by anon7725 | 2025-04-11 06:23:09+00:00
“Tonight's story on the Twilight Zone is somewhat unique and calls for a different kind of introduction. This, as you may recognize, is a map of the United States and there's a little town there called Peaksville. On a given morning not too long ago the rest of the world disappeared and Peaksville was left all alone. Its inhabitants were never sure whether the world was destroyed and only Peaksville left untouched, or whether the village had somehow been taken away. They were, on the other hand, sure of one thing. The cause. A monster had arrived in the village. Just by using his mind, he took away the automobiles, the electricity, the machines, because they displeased him. And he moved an entire community back into the dark ages, just by using his mind.”

It’s A Good Life (The Twilight Zone, 1961)

Seems rather on the nose for 2025.
by sdwolfz | 2025-04-11 06:24:07+00:00
Note: browsers also give you a Secure Context for .localhost domains.

https://developer.mozilla.org/en-US/docs/Web/Security/Secure...

So you don't need self signed certs for HTTPS on local if you want to, for example, have a backend API and a frontend SPA running at the same time talking to eachother on your machine (authentication for example requires a secure context if doing OAuth2).
by noufalibrahim | 2025-04-11 06:24:11+00:00
The problem is I feel is that the "value system" tied to tech. innovation is very simplistic and often doesn't really have any forcing functions other than short term profit for a small number of people.

Things like AI, surgical bots etc. can definitely be useful and can better our condition. They probably are doing that too but the amount of serious long term thinking from a traditionally ethical standpoint is limited compared the amount of research that goes into making the technology more powerful.

Feels like a car with an overpowered gas pedal but very rudimentary brakes and steering.
by profsummergig | 2025-04-11 06:26:48+00:00
Zeihan is a case of believing the message because the messenger is so articulate and charming. He's a tremendously interesting narrative builder (in the vein of Taleb's narrative fallacy). I've been tracking his predictions for a few years now. I want him to be right. Unfortunately, he's seldom right.

He also seems to be veering into fabulism. He's recently said in multiple interviews that there's a clothing factory in North Carolina that is so automated that only 2 "guys" are needed to run it. Raw cotton comes in at one end, and finished clothing comes out at the other (hence Chinese labor is not needed to stitch clothes, hence China is going to collapse any day now).

Why do I believe this is fabulism? He never names this company. And the story has evolved. In earlier interviews he used to say that cloth comes out at the other end. But in a couple of recent interviews he's said finished clothing comes out at the other end.
by dh1011 | 2025-04-11 06:27:02+00:00
Thanks for sharing!

This is cool, but it only seems to work on the host that has the /etc/hosts loopback redirect to *.localhost. I run my app on a home server and access it from multiple PCs on the LAN. I have several apps, each associated with a different port number. Right now, I rely on a start page (https://github.com/dh1011/start-ichi) to keep track of all those ports. I’m wondering if there’s an easy way to resolve custom domains to each of those apps?
by fc417fc802 | 2025-04-11 06:30:07+00:00
> the clients and the server don't all agree on timezone definitions

Isn't that scenario unsalvageable regardless? It presumably means one or more of the devices are displaying the wrong time to the user. Or at least will be upon arrival in the timezone of the event.

For example (intentionally extreme) suppose the library used by my calendar thinks EST is -4, the OS on my device thinks EST is -6, and everyone else thinks EST is -5. What possible program logic could prevent disaster in this scenario?

It's a really interesting edge case to point out, I'm just not clear what a sensible algorithm for handling it would look like. I strongly suspect that assuming that can never happen is the right answer. Everyone agrees the event is scheduled for 9 am EST. If outdated client software translates that to PST incorrectly or displays the incorrect time on the clock then the affected user is going to have issues and I don't see what the programmer can realistically do about it.

> ... DST window, the time may no longer exist, or may be ambiguous.

Assuming the timestamp disambiguates the daylight timezone from the standard timezone this should be handled gracefully by the datetime library since the stale timestamp is merely "out of bounds" for that timezone now that the laws changed. I'm failing to think of a scenario where it becomes ambiguous (although reasoning through this is once again reinforcing my view that we should have ditched DST long ago).

However this did cause me to realize that there's an additional edge case for far future events where the timezone is modified multiple times. If the event timestamp was never updated in the interim you land in an ambiguous situation and have no way to detect it.

I'm not sure that particular edge case is worth worrying about, but it seems like tracking a second timestamp indicating the last time that the event was processed by the datetime library would resolve it. The library should hopefully have all the necessary historical information on hand to update a long since stale timestamp (I haven't tested this though). Anyway if it doesn't I don't see that there's anything you can do about it.
by ein0p | 2025-04-11 06:30:41+00:00
There are plenty of EEs in the good ol' US of A, they're just working as software engineers at the moment out of necessity, since there aren't really any EE jobs here, outside the defense sector and a few large companies.

But that is beside the point since it's not "EE" that's being done in China. It's manufacturing and assembly of US designs. And that is where there's real shortage - skilled labor that can do that. The actual work is mostly done by robots, but before it _is_ done by robots, manufacturing capacity needs to be designed and built. Under the best circumstances (e.g. unlimited Apple resources in India) this takes years.
Show HN: A Fast, Ad-Free Paper.io Clone in the Browser – No Login, Just Play
by hiked | 2025-04-11 06:31:17+00:00
Hi HN,

I built a lightweight, ad-free version of Paper.io that runs directly in the browser: https://paperio.im/

No login, no downloads, no interruptions — just click and play. It's built for performance and simplicity, with real-time smooth canvas rendering and basic AI logic to simulate other players. Fully responsive and works well on both desktop and mobile.

Tech Stack:

Pure JS + Canvas (no heavy frameworks)

Local game logic, no backend required

Lightweight grid-based collision detection + greedy pathfinding for bots

Why I built this: I’ve always enjoyed quick-play browser games, but most versions of Paper.io online are either filled with ads, laggy, or cluttered with unnecessary UI. So I decided to build my own streamlined version for fun.

What’s next:

Adding real-time multiplayer (WebSockets)

Leaderboard system

Custom color/skin options

Maybe open-source it if there’s enough interest

I’d love feedback from the community — on performance, game mechanics, or just general ideas. Let me know what you’d like to see next!
by parineum | 2025-04-11 06:31:34+00:00
> We have a society (in the US) where cops often shoot first and ask questions later, but many people still do crimes.

Often?

The reason they still commit crimes is there's fairly good chances they won't get caught and even better chances they won't get shot.

On the other hand, how often are people robbing places with hired security? Robot dog security is just security escalated.
by a_bonobo | 2025-04-11 06:32:08+00:00
>We always have moved forward technologically despite doomers

Have we? There's a de facto moratorium on gene editing in humans that all nations have so far adhered to (except for one person who promptly went to prison), there's a general moratorium on gene terminator seeds that so far all nations have adhered to, and we're in discussions for a deep sea-mining moratorium. Not all technologies move forward without impediment.
by aaron695 | 2025-04-11 06:33:26+00:00
> Can't really put it on Netflix or YouTube if it has to be nondeterministic.

Like Bandersnatch or the 20 other Netflix interactive titles (Most gone now - https://www.netflix.com/browse/genre/2869704)

They are shit. People want shared experiences and not thinking until you loop all the way to a computer game, the in-between is garbage.
by TOMDM | 2025-04-11 06:33:32+00:00
If the tarrifs stay high, then US consumption will plummet since all goods will now be that much more expensive and people won't be able to afford as much.

If tariffs go down then moving manufacturing to the US was the losing choice for any company that chooses to do so.

Either way betting on current US consumption levels with US manufactured goods is a losing bet.
by yalogin | 2025-04-11 06:33:42+00:00
I am getting extremely skeptical of AI “age”. I was hoping it will unlock a whole new generation of startups like the iPhone did. However genAI is too generic and too blunt a tool, as in it does everything. However it’s too expensive for a small company to do stuff with. Looks like these AI companies (google and OpenAI) realize that and so are even doing the vertical integration themselves. In such an event does genAI end up being the automation tool that you access/use through OpenAI or google and that’s it?

I am sure people here see it better than I do, so what new class of problems is this genAI going to solve?
by namaria | 2025-04-11 06:33:59+00:00
I understand your position. But I think you're underestimating just how much training data is used and how much information can be encoded in hundreds of billions of parameters.

But this is the crux of the disagreement. I think the models overfit to the training data hence the fluctuating behavior. And you think they show generalization and semantic understanding. Which yeah they apparently do. But the failure modes in my opinion show that they don't and would be explained by overfitting.
by rapnie | 2025-04-11 06:34:21+00:00
> We always have moved forward technologically despite doomers.

We nowadays always introduce technology no matter what. Focused on 'users' as a small subgroup for which we rationalize and validate the introduction. Success measured by profit and damn the externalities. It got reasonable outcomes in terms of (technological) progress for a long time. Today if the technology isn't outright owned by a billionaire class who get their hands on the innovations first, it is stock market driven development that not necessarily serves society. Today all the externalities are compounding into a real Black Mirror mess.
by hecanjog | 2025-04-11 06:34:32+00:00
I think that they're saying a little bit of playing around with replacing thinking and composing with automated tools is recoverable, but at an industrial or societal scale the damage is significant. Like the difference between shoveling away some sand with your hands to bury the small creatures temporarily and actually destroying their habitat by "lobbying city council members to put in a groin or seawall, and seriously move that beach sand."