MurphyA/hacker-news huggingface dataset:
by tczMUFlmoNk | 2025-04-11 02:21:04+00:00
Relevant: Uniqlo's self checkout, based on RFID tags with a great user experience:

- https://news.ycombinator.com/item?id=38715111

- https://www.wsj.com/business/retail/uniqlo-self-checkout-rfi...

- https://archive.is/ms1ke
by wredcoll | 2025-04-11 02:21:24+00:00
If we're doing reader bewares, this pile of unsupported, low effort allegations is ridiculous.

"Jews not being able to get into school buildings"

You mean jewish students might have been temporarily delayed by protesters, along with, you know, everyone else in the crowd?

Qatar donated billions... to who, exactly? And who was required to disclose these made up donations? Come on man, billions?
by simpaticoder | 2025-04-11 02:21:44+00:00
Thanks for the link - that was great. Yeah, with some exceptions (15 million merits being one, given that it's pure allegory) the show seems to ask, "given some new technology, what is the cruelest most horrifying situation in which it could be used?" This basic premise can indeed be applied to anything, past or present. Personally I'd take the automobile, call the episode "Meat Grinder," reference the ~30k deaths/year in the US from car accidents, noting the ambivalence of literally everyone to that fact.
by Groxx | 2025-04-11 02:24:00+00:00
Since you're in here, if I can recommend: sync.Pool with non-fixed-size objects is a source of many problems. https://wundergraph.com/blog/golang-sync-pool as a decent overview, and https://github.com/yarpc/yarpc-go/issues/2355 has been my recent plague.

If you browse around Go's stdlib use of sync.Pool, you'll see a variety of tiered pools with fixed sizes, and many drop anything over a large enough size (sometimes gigantic! as much as 16KB!): https://cs.opensource.google/go/go/+/refs/tags/go1.24.0:src/...

It's a pretty well-established gotcha, sadly, and https://github.com/teivah/100-go-mistakes/blob/master/src/12... falls right into it.
by wolfgang42 | 2025-04-11 02:24:41+00:00
The only difference between your “DOM cookie” technique and a browser cookie is that it sounds like you’ve (re)invented a session cookie that only works with single-page apps. Either way it boils down to an opaque session ID token which is stored on the client and sent to the server with every request. You could do the same expiry/crosschecking/validation on the server either way; it makes no difference for security how the client stored it.

Frankly, this entire codebase is full of code smells that are hallmarks of Dunning-Kruger security (I should know, I was like that myself once!) and the fact that you haven’t learned anything in the 3 years since it was written is alarming.
by unscaled | 2025-04-11 02:25:38+00:00
The proposal doesn't say anything about executing code in user-supplied strings. It only talks about a string literal that is processed by the compiler (at which point no user-supplied string can be available).

On the other hand, the current solution offered by Go (fmt.Sprintf) is the one who supports a user-supplied format String. Admittedly, there is a limited amount of damage that could be done this well, but you can at the very least cause a program to panic.

The reason for declining this feature[1] has nothing to do with what you stated. Ian Lance Taylor simply said: "This doesn't seem to have a big advantage over calling fmt.Sprintf" and "You can a similar effect using fmt.Sprint". He conceded that there are performance advantages to string interpolation, but he doesn't believe there are any gains in usability over fmt.Sprintf/fmt.Sprint and as is usual with Go (compared to other languages), they're loathe to add new features to the compiler[2].

[1] https://github.com/golang/go/issues/34174#issuecomment-14509...

[2] https://github.com/golang/go/issues/34174#issuecomment-53013...
by satvikpendem | 2025-04-11 02:25:50+00:00
> Note that a 568 ml pint of beer of 5% strength is by this definition 2 drinks.

Yes it is. I can always tell the difference between drinking a can of it versus a pint, it definitely does feel like twice the effects.

> if they are saying it causes ill health, I don't believe them

I mean you can believe whatever you want but the scientific consensus is that any amount of alcohol is bad for you [0]. Just because you and your friends didn't have ill effects does not mean that it was actually good or even neutral for you all, and statistically and biologically it's been shown to not be so either.

[0] https://www.who.int/europe/news/item/04-01-2023-no-level-of-...
by wat10000 | 2025-04-11 02:26:05+00:00
It is, but this is still far less severe than denaturalizing a citizen. The executive has pretty much total discretion over which non-citizens they allow into the country. That power isn't anything new, it just wasn't abused like this before. Denaturalization for anything besides fraudulently obtaining citizenship would be a serious change, not just applying existing power in ugly ways.
by TZubiri | 2025-04-11 02:26:09+00:00
This is one of those deep dives whereby you are either pivoting into building a calendar startup, or you are massively procrastinating actual work by overfocusing on scratching some tech itch.

Other variants of this malady include:

- Building a todo list app. - Building a web framework. - Editing Wikipedia articles. - Building your kernel.
by Rendello | 2025-04-11 02:26:11+00:00
A few days ago I mentioned my first parser [1], which used regex in the tokenization step, based on studying the parser video by Destroy All Software. I'm glad I learned it that way first, since it takes a lot of the pain out of lexing. I've now built many parsers, including accidentally re-inventing parser combinators when working in Erlang. Two days ago I built another parser that uses regex heavily for tokenization/some parsing steps. I never parse programming languages, so my programs' needs are quite different from the parsers talked about online!

https://news.ycombinator.com/item?id=43627698
by grayfaced | 2025-04-11 02:26:48+00:00
Cultural exports are how NYC became famous, has a city ever became famous without culture? I can't say anything about the quality of Sex and the City since like I said before I've never watched it. I have had it brought it up to me overseas, people like you that have watched it. I can think of a dozen countries that have made iconic scenes in media to spread their culture. I can't name a single scene of modern Chinese living. To the west, pre-revolution and post-revolution China are completely different. All your neighbors have managed to push their modern culture. US culture is on downtrend because they've stopped seeking common ground with their peers, they will deserve what's coming to them.
by settrans | 2025-04-11 02:27:14+00:00
Well, partial good news, then: we have a secular, pluralistic state that covers at least most of that territory, namely the State of Israel, and the Jews, Christians Muslims and Druze living there assent to peaceful coexistence.

And entirely different matter is the fate of the people who are not citizens of the state of Israel. Where do you hope for them to live (and why)? Surely not in the pluralistic state we just talked about, since peaceful coexistence is far from a mainstream viewpoint among that population, to put it mildly.

A relevant Ask Project video from recent memory: https://www.youtube.com/watch?v=Grq1Ro9vlyU - note that none of the Palestinians consent to living peacefully with the Jews in one state.
by Quarrel | 2025-04-11 02:27:35+00:00
Not necessarily, but yes on average.

Parmigiano Reggiano is more tightly controlled, and has larger total cheese produced (by a fair bit I think).

Very good Grana Padano can be just as good, but there are lots of bulk producers who turn out younger, cheaper cheese, that is yummy, but not as good as aged Parmigiano Reggiano.

FWIW, in the USA in particular, there is quite an industry in fake Parmigiano Reggiano.

https://english.elpais.com/economy-and-business/2023-08-25/c...
by johnea | 2025-04-11 02:27:38+00:00
I don't agree at all with the "wild west" and "buyer beware" stuff in the article.

But I do completely agree that it's annoying, when I surf to a website with cookies disabled, and am forced to click "Yes I accept cookies", even though my browser isn't going to accept them. and that after I click OK, the site displays anyway.

I did read an article that came through the HN feed about how many person/hours of productivity were lost each year to this process in general. It wasn't a small amount.
by hug | 2025-04-11 02:27:59+00:00
> a shot is supposed to be 1.5 oz

There is no standard definition of a shot. Serves in the US will vary wildly, as will serves across Europe.

In Australia, a shot is 30ml (close enough to 1 oz to make no difference) which is exactly one standard drink or 10g of alcohol, assuming straight spirit.
by AlotOfReading | 2025-04-11 02:29:33+00:00
There are some pretty major differences between what Waymo does and what a remote driving service (like the Vegas deployment by Vay mentioned upthread). Imagine that the car has a remote connection to a human while driving and the human misses that another vehicle is about to hit T-bone the taxi. Whose responsibility is it to stop?

With Waymo vehicles, it's the car's responsibility to sense the issue and brake, so we say that the car is driving and the human is a "remote assistant". With Vay, it's the human's responsibility because they are the driver.

This ends up having a lot of meaningful distinctions across the stack, even if it seems like a superficial distinction at first.
by dboreham | 2025-04-11 02:31:03+00:00
Edinburgh's new town (designed 1776) has some very wide streets. When cars were invented they became handy because two cars could be parked nose to nose across the middle of the street plus the usual curb parking on both sides, still leaving room for four lanes of traffic. Traffic calming and pavement|sidewalk widening measures in recent years have reduced this to one vehicle across the middle, curb parking and one lane each way.
by amiga386 | 2025-04-11 02:31:18+00:00
It's not quite as bad as central planning, but it's definitely a big dollop of state aid (https://en.wikipedia.org/wiki/State_aid), distorting competition.

You may think this is fair, while others disagree. As there's no "world government" arbiter for these kinds of actions, there are only the actions your country takes, and the actions other sovereign countries take in response - for example, all countries in the world could ban import of anything produced by your burgeoning state-aid factories, leaving you with only a domestic market to sell to; https://en.wikipedia.org/wiki/Dumping_(pricing_policy)#Anti-...
by zelon88 | 2025-04-11 02:31:34+00:00
So my original comment was accurate then?

> Cookies are entirely a design choice, and a lazy one at that. It is entirely possible to identify, authenticate, maintain session, and store data about a user on the server completely without cookies. *

By your logic, you're just to lazy to do this better than me and it's just easier to throw banners at everyone?
by ranger_danger | 2025-04-11 02:31:35+00:00
Well technically you can't, in the sense that chroot has no idea you're doing it... the magic of binfmt support in the kernel (setup for qemu by the post-install script for qemu-user-static I believe) basically lets you run any architecture's binary that qemu-user-* supports just by trying to execute it natively, it basically just translates the execution of "./other-arch-cmd" into "qemu-user-static ./other-arch-cmd".
by voidspark | 2025-04-11 02:31:41+00:00
Integrated circuits were invented in Silicon Valley, California.

Intel has factories in the US.

"Trump and TSMC announce $100 billion plan to build five new US factories"

https://www.reuters.com/technology/tsmc-ceo-meet-with-trump-...

Democrats and Republicans are united on this. They all want semiconductors manufactured domestically.
by protimewaster | 2025-04-11 02:32:05+00:00
I assumed this was a leak, due to the lack of license, and, indeed, a discussion on Reddit says it's a leak (and that the reported version is wrong). https://www.reddit.com/r/IRIX/comments/132hsko/irix_source_c...

Another interesting bit from that discussion:

"I have a copy of an unleaked source in a safe deposit box in an undisclosed credit union in my former home state of VA on an LTO-5 tape. I cannot leak it, as it's off an Origin 300 that was incorrectly wiped and came from a US DoD auction."

If that's true, that seems...very sloppy. I bought some lower end SGI hardware from a government contractor surplus auction years back, and they trashed all the hard drives before they went to auction. They didn't just wipe them. Nothing had drives installed, and they even trashed all the drive caddies, so you had to track down new caddies to get the damn things working.
by cebert | 2025-04-11 02:32:15+00:00
Streaming cable news is a significant time sink that adds to my anxiety rather than offering any substantial value. Regardless of your political beliefs or the cable news network you prefer, their primary objective is to maintain your engagement and fixation on the TV for ratings. Important topics are rarely covered with depth, presenting only limited perspectives and information.

I made the decision to eliminate cable news from my life, and I’ve found myself much happier in the process.
by gwern | 2025-04-11 02:33:18+00:00
One thing to note here is that the closure is a costly, credible, verifiable signal of commitment to their principles. Unusual or questionable principles, perhaps - few other Christians feel the need to close on Sunday - but principles nevertheless.

Suppose B&H or Chick-Fil-A suddenly changed their policy to be open, which is easy to verify (just see if you can buy something on that day). What do you think the reaction of their customers would be to this greater convenience and no loss of quality? Would they celebrate? I think the reaction would be highly negative - everyone would panic that they had sold out and the beancounters were now in charge and the quality was going to go downhill while the prices go up.

Precisely because the policy is so economically foolish and is not a marketing stunt (notice no one is clamoring to imitate them even though it's trivial: just close on some day) and would be one of the first things to go under new (ie. normal) management, it proves that they don't care that much about maximizing their profits but other things.
by ElectricalUnion | 2025-04-11 02:35:53+00:00
> You never move events around in TAI (the unambiguous storage format) just as you don't go manually flipping bits in an SQLite database.

You actually do. From the point of view of future scheduled events, a event scheduled for 13h00 in a specific timezone is still "13h00 in a specific timezone" even when crazy people on that timezone suddenly declare a new Daylight savings time to start before the event happens. All future "timestamps" are prone to move due to such shenanigans. And you need to keep your timezone DB as updated as possible to update thing as soon as possible, if you don't want users with wrong times on their future events.

If you're not doing something like full rfc9557 https://datatracker.ietf.org/doc/html/rfc9557 "Internet Extended Date/Time Format (IXDTF)" [iso 8601 local time + as-of-now known timezone offset + IANA timezone] as "timestamps" you're probably truncating important information that will bite you back later if you're doing a calendar/scheduler.
by lxm | 2025-04-11 02:36:54+00:00
There's a bunch of newsletters and blogs advertising those changes, as credit card affiliate programs tend to be generous, especially for driving new sign-ups.

Not endorsing, but these are the ones my "newsletters" email account subscribes to:

* https://yourbestcreditcards.com/ for credit card bonuses

* https://www.frequentflyerbonuses.com/ for hotel, airline and other travel programs
by jmholla | 2025-04-11 02:37:04+00:00
This article is fantastic.

And it pairs well with another article on the front page. [0]

Which I bring up because they disagree on a particular point. And that is how a script without a shebang gets run as a script.

> This is done by registering a set of callback functions, and these callbacks get invoked when the kernel is asked to execute a binary file. The kernel invokes the callbacks on this list, and the first one that claims to recognize the file takes responsibility for getting it properly loaded into memory. If nobody on the list accepts it, then as a last resort the kernel will attempt to treat it as a shell script without a shebang line. And if that doesn't fly, then you'll get that "Exec format error" message described above.

But the article I linked to says the shell actually handles it. And based off of its research (terribly reproduced below), I'm inclined to believe it.

echo echo Hello world > test.sh chmod +x test.sh strace ./test.sh strace sh -c ./test.sh

You'll see the first one errors with `ENOEXEC`, but the second one does not. Also, in my head, I don't know how the kernel would know what shell to choose, or that it should even expect to have access to a shell.

[0]: https://news.ycombinator.com/item?id=43646698
by boomboomsubban | 2025-04-11 02:37:16+00:00
The cohorts are fairly clearly separated into "doesn't drink," "drinks moderately," and "drinks heavily." They have to define them somehow, and "regularly drinks more than one drink a day" seems like a good way to do so.

I'm sure some people are misclassified in both groups. If you're improperly classified because once a week you have two glasses of wine rather than one, I doubt your risk is that much higher. That said, moderate and heavy drinkers saw the same rates.
by codedokode | 2025-04-11 02:37:58+00:00
> The plan is to roll out to 5% of users on the Firefox 138 stable release, ramp up to 50% of users

What an awful idea. How is a web developer supposed to test the website when he and user might have different browser behaviour? It looks like someone read about deployment at Facebook and wanted to implement the same thing without any valid reason. Firefox is not a server-side software and this style of deployment doesn't make much sense.
by seanmcdirmid | 2025-04-11 02:38:51+00:00
In the mild sort of way. Mostly Biden didn’t change much and kept things stable (the way businesses like it), but there was definitely room in that for the CHIPs act, which is a double edged sword (by pushing China to invest more in its local chip production). He didn’t bother getting rid of the DJT tariffs that survived after COVID hit either.
by ladelfa | 2025-04-11 02:39:14+00:00
This reminded me of the story about Charles Proteus Steinmetz diagnosing the problem inside a generator at Henry Ford's auto plant just by listening to it very carefully.

"Ford, whose electrical engineers couldn’t solve some problems they were having with a gigantic generator, called Steinmetz in to the plant. Upon arriving, Steinmetz rejected all assistance and asked only for a notebook, pencil and cot. According to Scott, Steinmetz listened to the generator and scribbled computations on the notepad for two straight days and nights. On the second night, he asked for a ladder, climbed up the generator and made a chalk mark on its side. Then he told Ford’s skeptical engineers to remove a plate at the mark and replace sixteen windings from the field coil. They did, and the generator performed to perfection.

Henry Ford was thrilled until he got an invoice from General Electric in the amount of $10,000. Ford acknowledged Steinmetz’s success but balked at the figure. He asked for an itemized bill.

Steinmetz ... responded personally to Ford’s request with the following:

Making chalk mark on generator $1.

Knowing where to make mark $9,999.

Ford paid the bill."

https://www.smithsonianmag.com/history/charles-proteus-stein...
by bearjaws | 2025-04-11 02:39:19+00:00
Tesla FSD.

The last few updates have introduced significant regressions in red light handling, resulting in the car attempting to run red lights about 5x in the last 2 months. Here is an example of how blatant it is: https://www.reddit.com/r/TeslaFSD/comments/1jvonrw/tesla_tri...

Also, the removal of minimal lane changes just sucks, I don't mind being behind a slow car when I am not driving, but I hate when it moves into the fast lane and then slowly passes other cars.
by unscaled | 2025-04-11 02:40:21+00:00
Looking at the various conversations involving string interpolation, this characterization is extremely unkind. They've clearly spent a lot more than 5 minutes thinking about this, including writing their own mini-proposals[1].

Are they wrong about this issue? I think they are. There is a big difference in ergonomics between String interpolation and something like fmt.Sprintf, and the performance cost of fmt.Sprintf is non-trivial as well. But I can't say they didn't put any thought into this.

As we've seen multiple times with Go generics and error handling before, their slow progress on correcting serious usability issues with the language stem from the same basic reasons we see with recent Java features: they are just being quite perfectionist about it. And unlike Java, the Go team would not even release an experimental feature unless they feel quite good about it.

[1] https://github.com/golang/go/issues/57616
by more_corn | 2025-04-11 02:40:24+00:00
I’ll have some faith when the people around me stop acting like irresponsible pricks: Climate change denial Refusal to address gun violence Blatant racism sexism and xenophobia Wildly unequal application of justice based on wealth and power PFAS all over in our food supply chain

I’d go on but if you need to be told you can’t hear it.
by mikeyouse | 2025-04-11 02:40:51+00:00
It turns out we in fact have tests to determine statistical significance - and the fact that this study was peer reviewed and published means the results were indeed statistically significant!

> We included 1,781 participants (mean age 74.9 ± 12.5 years, mean education 4.8 ± 4.0 years, 49.6% women, and 64.1% White). Compared with participants who never consumed alcohol, moderate (odds ratio [OR] 1.60, 95% CI 1.19–2.15, p = 0.001), heavy (OR 2.33, 95% CI 1.50–3.63, p < 0.001), and former heavy (OR 1.89, 95% CI 1.41–2.54, p < 0.001) alcohol consumptions were associated with hyaline arteriolosclerosis while only heavy (OR 1.41, 95% CI 1.10–2.30, p = 0.012) and former heavy (OR 1.31, 95% CI 1.02–1.68, p = 0.029) alcohol consumptions were associated with neurofibrillary tangles. Former heavy drinking was associated with a lower brain mass ratio (β −4.45, 95% CI −8.55 to −0.35, p = 0.033) and worse cognitive abilities (β 1.31, 95% CI 0.54–2.09, p < 0.001). The association between impaired cognitive abilities and alcohol consumption was fully mediated by hyaline arteriolosclerosis (β 0.13, 95% CI 0.02–0.22, p = 0.012).
by pilaf | 2025-04-11 02:41:14+00:00
There are several other colorized versions of that same photo online, all with very different color choices, so I wouldn't be too sure about the accuracy of TFA's version:

https://www.meijishowa.com/photography/6451/190102-0009-pp-b...

https://sekiei.nichibun.ac.jp/KSA/en/detail/?gid=G0203359

https://www.album-online.com/detail/en/NDAzZGUwMA/two-buddhi...

There's also more information about the exact version from the article here [1], although it doesn't clarify whether the photographer and the person who colorized it are separate people.

1: https://sova.si.edu/record/fsa.a1999.35/ref484