MurphyA/hacker-news huggingface dataset:
by tialaramex | 2025-09-01 16:54:12+00:00
What developers actually wanted, even years back when C++ didn't have anything named "move" was the destructive move semantic. It's an elegant, easy to understand feature for a language. I like it very much in Rust which has it.

C++ didn't get that. The proposal paper at the time says it's impossible (for C++). But what they did propose was the feature you've seen in C++ today, which they call "move", but it has slightly odd (though convenient to implement, Worse Is Better after all) behaviour.

Now you can make this C++ "move" behaviour out of destructive move, that behaviour is roughly what Rust calls std::mem::take and it's sometimes useful, which is why that function is provided. But, often it's not really what you wanted, and if you actually wanted destructive move but only have this C++ imposter then you need to perform the entire take, then throw away the newly created object. You will find lots of C++ code doing exactly that.

So, no, you can't "design your library" to deliver the desirable property in C++. It's just another of the dozens of nagging pains because of design mistakes C++ won't fix.
by nocoiner | 2025-09-01 16:54:29+00:00
“* The Nintendo Switch 2 dock will request 3 A at 20 V from the point of connection, whether it is planning to use that power or not. * This is in contrast to the Antank dock which will request additional power only when the Switch 2 is turned on and requires additional power. Arguably a better 'citizen' of the USB-C PD specification, potentially bringing your electricity bill down by a few cents”

Why would this bring your power bill down? Isn’t that always going to be calculated on the basis of kWh actually drawn?
by ska80 | 2025-09-01 16:54:32+00:00
SEEKING WORK

Location: Bishkek, Kyrgyzstan Remote: Yes (US or EU time zones if needed) Willing to relocate: Yes Technologies: Java, Common Lisp, C, PostgreSQL, Redis, Kafka, RabbitMQ, AWS Résumé/CV: upon request Email: ska80 [at] gmx [dot] com
by aredox | 2025-09-01 16:54:33+00:00
A) The lab leak hypothesis is still unproven. There is no hard scientific data to support it, and many supposed proofs ("Chinese scientists fell ill first") are circular references without proof.

B) Pseudoscientific grifters such as RFJ jr are far far less credible than the CDC, and yet here we are. He specifically said COVID-19 was a genetically engineered bioweapon that targets Black and white people but spared Ashkenazi Jews and Chinese people.

C) Do your own research and look at "The relativity of Wrong" recently submitted on this website.
by onlyrealcuzzo | 2025-09-01 16:54:54+00:00
It really shows you what a bubble HN is.

Every post about Google for years has been people saying it's terrible and dead.

Kagi gets talked about on here constantly, and it's not even on the list (though I suspect there's a reason?)

Even within Google, about a year ago, everyone was saying that Google was dead because of Perplexity, which is barely a blip.

It's kind of shocking to see DuckDuckGo is only about 1%, with everything you hear and how much you hear it within certain bubbles.
by latchkey | 2025-09-01 16:54:54+00:00
For something like this, I would instinctively reach for an external queue mechanism instead of trying to work through the complexity of golangs concurrency.

Create a bunch of sequentially numbered jobs that then update their output into postgres database. Then have N number of workers process the jobs. Something like GCP's CloudTasks is perfect for this because the "workers" are just GCP Cloud Functions, so you can have a near infinite number of them (limited by concurrent DB connections).

This approach also buys you durability of the queue for free (ie: what happens when you need to stop your golang process mid queue?).

Then it is just a query:

select * from finished_jobs order by job_num;
by fauigerzigerk | 2025-09-01 16:54:59+00:00
Yes, I think governments love centralisation of control in very few hands. It gives them far greater powers than they would otherwise have, both technically and legally.

"Harmful" content has significant overlap with freedom of speech, so governments find it hard to ban directly. But when there's a big corporation facilitating access to that content, then it becomes a clear case of "evil capitalist profiting from harmful content - corporations need to take responsibility!".

When a government doesn't like end-to-end encrypted photos and cloud drives, all they have to do is issue a secret order telling Apple to disable it.

And when people find workarounds for intrusive and insecure age verification methods, what's better than a total sideloading ban to regain control?
by jcranmer | 2025-09-01 16:55:09+00:00
No, that's not the thing I'm talking about. Those are the different ordering modes you can specify on atomic operations.

Rather, there's a panoply of definitions like "inter-thread happens-before" and "synchronizes-with" and "happens-before", and those are the ones I don't follow closely. It gets even more confusing when you're reading academic papers on weak memory models.
by wbazant | 2025-09-01 16:55:14+00:00
Location: Glasgow, UK

Remote: Yes

Willing to relocate: within Scotland

Technologies: Python, Perl, Unix, Bash, Java, Nextflow, R, JavaScript, TypeScript, React, Redux, AWS Lambda, Serverless, Apache Spark, Databricks, MLFlow, MariaDB, SQLite, Postgres, and more

Résumé/CV: https://wbazant.github.io/wojciech_bazant_cv.pdf

Email: wojciech.bazant@gmail.com

Github: https://github.com/wbazant/

I am a broadly skilled generalist senior developer. Some specialised roles I had in the past included data engineering and MLOps for a healthcare AI start-up, development of bioinformatics software, and building open data resources. Currently contracting as a bioinformatics software developer for a seed genomics unit of an agritech company, but missing start-ups and again wanting to build something bigger. Let me know if you're hiring!
by destel | 2025-09-01 16:55:15+00:00
Wow, that’s some seriously sophisticated stuff - it’s not that often you see a heap used in typical production code (outside of libraries)!

Your first example definitely gives me merge-sort vibes - a really clean way to keep things ordered across multiple sources. The second and third scenarios are a bit beyond what I’ve tackled so far, but super interesting to read about.

This also reminded me of a WIP PR I drafted for rill (probably too niche, so I’m not sure I’ll ever merge it). It implements a channel buffer that behaves like a heap - basically a fixed-size priority queue where re-prioritization only happens for items that pile up due to backpressure. Maybe some of that code could be useful for your future use cases: https://github.com/destel/rill/pull/50
by dang | 2025-09-01 16:55:15+00:00
There's also the rule against generic tangents, which this subthread certainly is. The trouble with those is that they tend to get upvoted to the top of a thread (as https://news.ycombinator.com/item?id=45089350 was), where they choke out the rest of the discussion.

https://news.ycombinator.com/newsguidelines.html
by user982 | 2025-09-01 16:55:28+00:00
> (1) why has Israel dropped millions of leaflets to warn of impending attacks?; (2) why has israel sent millions of text messages warning of impending attacks?;

These are the kinds of leaflets dropped by Israel: https://www.middleeastmonitor.com/20250220-israel-drops-leaf... https://www.amnesty.org/en/latest/news/2023/10/israel-opt-is...

"The world map will not change if all the people of Gaza cease to exist. No one will feel for you, and no one will ask about you. You have been left alone to face your inevitable fate. Iran cannot even protect itself, let alone protect you, and you have seen with your own eyes what has happened. Neither America nor Europe care about Gaza in any way. Even your Arab countries, which are now our allies, provide us with money and weapons while sending you only shrouds.

"There is little time left — the game is almost over."

So, to your question, the primary purpose of these leaflets is to terrorize and threaten the population. The secondary purpose is to have hasbarists like yourself pretend that they are evidence of humanitarian magnanimity.

> (3) why has israel ordered evacuations of combat zones prior to attacking; (4) why has israel set up refugee camps/ safe zones;

"[Forensic Architecture] has documented a pattern in which civilians have been directed to move to certain areas by official evacuation orders, only for the Israeli military to attack those same areas shortly afterwards, either on the same day as the evacuation order, or the day after.

"The incidents documented here are representative, not exhaustive." - https://frames.forensic-architecture.org/gaza/updates/attack...

> (5) why has Israel supplied so much aid to a civilian population you claim it's trying to kill;

Even rhetorically this question makes no sense, considering that it is very well-documented that Israel has been and is actively preventing real humanitarian aid. The Israeli-sanctioned "aid" via the GHF is a "killing field" of desperate Palestinians: https://www.haaretz.com/israel-news/2025-06-27/ty-article-ma...

> (6) why has its genocide been so incompetent and long-lasting if it could accomplish its alleged genocidal goal in a week;

Because then there would be even fewer of those alongside you willing to defend the indefensible.

> (7) what % of those killed are terrorists?; (8) why is the civilian:combatant death ratio so low;

The postulate required for this pair of questions to not be self-defeating is to expand the meaning of "terrorist" to encompass, at the least, every male in Gaza. In other words, "Gaza deserves death. The 2.6 million terrorists in Gaza deserve death! … Men, women, and children – in every way possible, we must simply carry out a Holocaust on them – yes, read that again – H-O-L-O-C-A-U-S-T! For me, gas chambers. Train cars. And other cruel forms of death for these Nazis. Without fear, without hesitation – simply crush, eradicate, slaughter, flatten, dismantle, smash, shatter …. Gaza deserves death. Let there be a Holocaust in Gaza." - https://www.theguardian.com/commentisfree/2025/jun/27/israel...
by const_cast | 2025-09-01 16:55:50+00:00
LLMs have no sovereignty, identity, or accountability - they are computer programs.

We do not blame computer programs when they have bugs or make mistakes - we blame the human being who made them.

This has always been the case since we have created anything, dating back even tens of thousands of years. You absolutely cannot just unilaterally decide to change that now based on a whim.
by kace91 | 2025-09-01 16:55:51+00:00
That’s why I said it should fall on the daw. They can serialise their own settings, including the plugins used and its versions, and have a common interface for plugins to expose and restore a serialisation of its internal setup.

I dont think it’s trivial at all, but exposed with a basic ui it could be a killer feature.

Hell, as a POC even simply saving everything internally on each “commit” could be a UX improvement, so you can move easily between “save points” of the project without going the “V2_final_forreal folder” route.
by radiator | 2025-09-01 16:56:00+00:00
> Doubling the storage on a base server, often increases the price of your server by 50 to 75%

For storage, Hetzner does offer Volumes, which you can attach to your VM and you can choose exactly how large you want them to be and are charged separately. But your argument about doubling resources and doubling prices still holds for RAM.
by bachmeier | 2025-09-01 16:56:17+00:00
> As far as I understand it, the stance of the 'Open Source' crowd is that if Amazon can't make it one of their AWS offerings then it isn't true open source, and they'll get very upset at you if you claim it is.

If you aren't interested in open source, that's your option, but open source has had a clear meaning for decades. You can use/write your software and people that believe in open source can use/write open source. What's the problem?
by iotku | 2025-09-01 16:56:28+00:00
Debian repo proper worked fine, but I hit a problem with an application that wasn't playing nice (Zed would just stop accepting text input...) with X11/Gnome and Wayland is a bad time on the 535/550 Nvidia drivers.

Realistically I can live on X11 outside of my dual monitor setup and that one application, but things get very choppy with mixed refresh rates. Still not the biggest fan of Gnome, but if I'm using deskflow only Gnome or KDE support the input sharing portal on Wayland.
by pizlonator | 2025-09-01 16:56:53+00:00
It doesn't matter if you or I see what makes it impossible.

It's a fact that:

- Super large software tends to be C or C++

- One of the unique features of C and C++ is the way software is organized (headers and separate compilation).

- Attempts to bring other languages' approach to modules to C++ have been a complete disaster.

Hence it's an empirical fact that C and C++ have a superior approach to software scaling, and that approach is headers and separate comp. And a preprocessor with macros.
by konmok | 2025-09-01 16:57:01+00:00
You keep insisting on that 6.6% figure, but you have yet to provide a single source that supports it. You made that calculation yourself, based on a statistic that you already admitted doesn't mean what you thought it meant, and doesn't correspond to the relevant statistic for India. Given how many times I've raised this issue to your attention, I would say you are now intentionally misleading people.
by msgodel | 2025-09-01 16:57:06+00:00
I used to say "oh yeah just run qemu-kvm" until my girlfriend moved in with me and I realized you do legitimately need some kind of infrastructure for managing your "internal cloud" if anyone involved isn't 100% on the same page and then that starts to be its own thing you really do have to manage.

Suddenly I learned why my employer was willing to spend so much on OpenStack and Active directory.
by mjklin | 2025-09-01 16:57:10+00:00
“Lord Coke gravely informs us that corporations cannot be excommunicated, because they have no souls, and they appear to be as destitute of every feeling as if they had also no bowels.... There is in truth but one point through which they are vulnerable, and that is the keyhole of the cash box.” - Hugo Grotius, Dutch (1583—1645)
by jstanley | 2025-09-01 16:57:11+00:00
> I suspect we (conscious selves) are just witnessing those functions like we are witnessing anything, "from the outside"

Do you imagine the self being split into an "actor" who makes all the decisions, and an "observer" who can see what's going on but can't influence the actor?

That can not be the case, because the "actor" can catch the "observer" in the "act" of "observing". You can introspect, and you can speak about your introspections, or write them down, which means there is a feedback loop between the acting part and the observing part.

We're not simply observing "from the outside".
by mindslight | 2025-09-01 16:57:22+00:00
Part of the problem is that sarcasm relies heavily on shared group values (common wisdom), to make it clear that a given statement is meant in the opposite sense. Our shared group values have been fragmented pretty hard (eg half the country has thrown away conservative American values in favor of open strong-man fascism). The icing on top is the tech-contrarianism that rejects common wisdom in favor of looking for an edge. It was innovative when done from the bottom up in a subculture, but it lands somewhere between tedious and horrific now that tech has taken over mainstream society.
by breppp | 2025-09-01 16:57:43+00:00
Your comment talks about occupation in Gaza and then switches to Palestine, if you reread what I said above, I agree the west bank is mostly occupied (Area A isn't). What I am talking about is Gaza.

Your appeal to authority does not matter as this is a matter that was not never resolved in courts, and the reasons Israel has withdrawn in the first place was due to international support, which also included the western countries you mention.

Generally, Anyone who can read the definition of occupation in both international law and English knows it will be very hard to prove what went in Gaza previous to the war was occupation.

The fact that this, similar to other axioms in the conflict are considered truism while no one stops to thinks on whether they even make sense, is a good example of prejudices at play.

Another recent example, the UN having to redefine famine in order to declare famine in Gaza. Do you see the pattern?
by mongol | 2025-09-01 16:58:17+00:00
The resolution is an outcome of a process descibed in this organization's bylaws. Quoting:

ARTICLE 6. Resolutions A. Resolutions committing the Association to a stand on a public issue require a two-thirds majority of those voting at the biennial business meeting or by e-mail ballot. For a proposed resolution to pass, voting must have been undertaken by a quorum of more than 20% (20% plus 1) of paid up IAGS members at the time of the vote.

B. Resolutions directly related to genocide or other mass atrocities, including early warning signs thereof, may be proposed by any member in good standing.

C. Proposed resolutions shall first be submitted to the Resolutions Committee appointed by the President and the Executive Board for review of their linguistic clarity and historical and factual accuracy. The standard of review shall be that of an article for the IAGS journal. The Resolutions Committee will recommend to the Executive Board and Advisory Boardwhether the Resolution should be forwarded to the IAGS membership for a vote.

D. After consulting with the Advisory Board, the Executive Board shall decide whether or not the proposed resolution will be submitted to the IAGS membership for a vote within two weeks of submission by the Resolutions Committee. Resolutions must be circulated by the Executive Board to the IAGS membership at least thirty days before the close of voting by IAGS members. E-mail voting shall begin as soon as the resolution is submitted to the membership by the Executive Board and close at the end of thirty days of voting. Votes will be submitted and counted by the Secretary/Treasurer of the IAGS, and after verification by the Executive Board, results of the voting will be announced to the members of the IAGS.
by inetknght | 2025-09-01 16:58:33+00:00
> I don't have enough time to watch these kinds of presentations.

Then let me pick and share some of my favorites that I found enlightening, and summarize with some information that I found useful.

By far, the most useful one is Khalil Estell's presentation last year [0]. It's a fairly face paced but relatively deep dive into exception mechanics. At the end, he advocates for a new tool that would audit a program to determine what exceptions could be thrown. I think that's a flipping fantastic idea for a tool. Unfortunately I haven't seen any progress toward it -- if someone here knows where his tool is, or a similar tool, please reply! I did send him an email a few months ago inquiring about it, but haven't received a reply. Nonetheless, the whole presentation was excellent in my opinion. I did see that he had another related presentation at ACCU this year [4] with a topic of "C++ Exceptions are Code Compression" (which I totally can believe -- I've seen it myself in binary sizes), but I haven't seen his presentation yet. I'll watch it later today.

Just about anything from Herb Sutter is good. I don't like that he works for Microsoft, but he does great stuff for C++, including the old Guru of the Week series [1]. In particular, his 2019 presentation [2] describes different error handling techniques, some difficulties and pitfalls in combining libraries with different error handling techniques, and leads up to explaining why std::expected came about. He does pontificate a lot though, so the presentation is fairly high level and slow paced.

Dave Watson's 2017 presentation [3] dives into a few different implementations of stack unwinding. It's good to understand how different compilers implement exceptions with low- or zero-cost overhead and what that "overhead" is really measuring.

So, there's about a half of a day of presentations to watch here. I hope that's not too much for you.

[0]: https://www.youtube.com/watch?v=bY2FlayomlE

[1]: https://herbsutter.com/gotw/

[2]: https://www.youtube.com/watch?v=ARYP83yNAWk

[3]: https://www.youtube.com/watch?v=_Ivd3qzgT7U

[4]: https://www.youtube.com/watch?v=LorcxyJ9zr4
by simianwords | 2025-09-01 16:58:33+00:00
https://herman.bearblog.dev/manifesto/

> This is a morbid topic for me to write about: what happens to Bear if something happens to me? I've got that covered too. There's a detailed succession plan in place, including:

Full documentation of all systems and processes Multiple trusted developers with access to the codebase Clear instructions for maintaining the platform So if I were to be incapacitated in any way, the platform will live on.
by aendruk | 2025-09-01 16:59:17+00:00
Progressive enhancement: https://en.wikipedia.org/wiki/Progressive_enhancement

And empirically, failure of a site to follow this principle tends to correlate with being unhealthy or unbearable in other ways.

There are of course countless exceptions, which I allowlist with a couple of clicks. But overall I find browsing this way to be a breath of fresh air.
by felixgallo | 2025-09-01 16:59:59+00:00
'coronavirus gain of function laboratory in Wuhan that's funded by the CDC' is misleading.

The particular lab (Wuhan Institute of Virology) is not a 'coronavirus gain of function laboratory', but an institute studying viruses, including the coronavirus, and including gain of function research. And, critically, "the viruses used in these experiments were not physically present but rather consisted of synthesized genetic sequences, meaning they were not complete, nor infectious viral particles capable of replication, and the pseudo-virus experiments conducted to test human cell entry lacked the ability to replicate." (https://pmc.ncbi.nlm.nih.gov/articles/PMC12040609/).

It's possible that WIV did screw up and create, intentionally or otherwise, the virus responsible for the pandemic. And, WIV has been linked with military research programs. But, it's not a slam dunk, and the best/widest scientific consensus is still, in 2025, that the origin was natural/biological and came as a result of human/wild-animal contact.
by SpicyLemonZest | 2025-09-01 17:00:05+00:00
I don't know how you could read this story as anything other than complete vindication of the people who turn off their brains and refuse to listen to anything "MAGA" has to say. I wasn't in their camp, I thought Kennedy was going to be fine, and now he's working full time to make sure Americans get more diseases and fewer treatments.
by xdfgh1112 | 2025-09-01 17:00:05+00:00
HN has plenty of neurodivergent people and not picking up on sarcasm (especially without any voice data) is an autistic trait.

There is also a cultural element. Countries like the UK are used to deadpan where sarcasm is delivered in the same tone as normal, so thinking is required. In Japan the majority of things are taken literally.
by ethin | 2025-09-01 17:00:30+00:00
My (personal) problem with Nim is that it assumes a Unix universe for everything. Which is good until (1) you want to do something on Windows and (2) you want to use other Nim libraries from Nimble. Nim will happily allow you to use the MSVC compiler, but a lot of good libraries don't and force GCC via pragmas which directly pass compiler options to "just make it work" or something. Last time I tried discussing this in the Nim matrix chat, I got some... Quite hostile responses. Not in the insulting me way, but in the "bro, just use Linux" way. Maybe things have changed; when I did use Nim I found it to be quite the pleasant language to work with excepting the nimble library problem.