MurphyA/hacker-news huggingface dataset:
by ben-schaaf | 2026-02-28 10:28:05+00:00
> Is there a difference between c++ and java/go/etc if you enforce at code review for C++ to use only auto memory management like smart ptrs, containers, etc?

Smart pointers and containers are nowhere near memory safe, just enforcing their use gets you nowhere. `std::vector::operator[](size_t)` doesn't check bounds, `std::unique_ptr::operator*()` doesn't check null.

> Imo the strong point of rust is compile error if you try to use an obj after move (unlike c++ with undef behavior

The state of a value after being moved is defined by the move constructor. It is unspecified by the spec, but it's generally not undefined behavior.
by tsimionescu | 2026-02-28 10:28:37+00:00
While Netanyahu definitely deserves that, don't expect anything to change for the better in Israeli foreign policy if he gets deposed and tried. Israeli politicians have become radicalized to a level that is hard to imagine from a European or US perspective.

Even the leader of the "left wing" opposition has recently explicitly stated that Israel was gifted the entire region from the Euphrates to the Nile by God, so they would have a right to own the entire region, but that this must be balanced by security concerns and tactical realities. This happened in response to the US ambassador's explicit public remarks in the Tucker Carlson interview that also asserted Israel's God-given right to the entire region. Note that this region, from the Euphrates to the Nile, includes about half of Irak, parts of Syria, most of Lebanon, parts of Saudi Arabia, and of Egypt.
by tdeck | 2026-02-28 10:28:55+00:00
I mean, some of the stuff actually wasn't legal. But accountability for wealthy elites is limited to a strongly worded letter

https://www.bbc.com/news/articles/c748l0zv4x8o

Just look at the fallout from the Epstein files where at best we can hope people will be embarrassed into resigning their current position.
by forgetfreeman | 2026-02-28 10:28:58+00:00
We have yet to invent ground breaking tech that transcends either human nature or the banal depravity that stems from the profit motive at scale. Prior history of major tech innovations therefore may have some insight to offer regarding expected outcomes of the current hype wave around AI. The notion that technology so cleanly breaks from underlying social paradigms as to be wholly unpredictable is one of the tech industries most persistently naive and destructive mythologies.
by throwaway637372 | 2026-02-28 10:28:59+00:00
US president can be democrat or republican, republicans can control the Senate or the House, or the democrats can control the Senate or the House - regardless of who is in power, Israel's interests by US are always met. US can wreck havoc on close relations and ties with Europe, Canada, etc. - but relation to Israel never changes. You can oblivious to all this, but the truth is: Israel de facto controls the US.
by simoncion | 2026-02-28 10:29:04+00:00
> You can't copy them out on at least the iOS, Android, and (to my knowledge) Windows default implementations.

Pardon? The official support docs disagree with you [0][1][2]. They absolutely leave the device.

Other passkey managers let them leave the device in a way that you control, but even the default ones copy them off the system they were created on.

[0] <https://support.google.com/accounts/answer/6197437?hl=en&co=...>

[1] <https://support.apple.com/guide/iphone/passwords-devices-iph...>

[2] Examine the "Can I use passkeys across multiple devices?" Q and its A here: <https://support.microsoft.com/en-us/windows/passkeys-frequen...>
by imwideawake | 2026-02-28 10:29:22+00:00
Google, OpenAI, and Anthropic should all have each other's backs when it comes to hard lines like this. Sam can say whatever he wants, but signing this deal on the same day Trump and Hegseth went scorched earth on Anthropic — for standing up for the very values OpenAI claims to hold — is sleazy.

Screw Sam, and screw OpenAI. I've been a customer of theirs since the first month their API opened to developers. Today I cancelled my subscription and deleted my account.

I'd already signed up for Claude Max and had been slow to cancel my OpenAI subscriptions. This finally made the decision easy.
by NoLinkToMe | 2026-02-28 10:29:30+00:00
Not only that but it should be noted what the stated aim is of these strikes and earlier Trump strikes on Iran: take out the nuclear threat.

That nuclear threat was contained under a plan backed by US, EU, Russia, China and Iran, in which Iran would not pursue nuclear expansion and let a team of international experts in to verify this on a continuous basis, in exchange for some sanction relief. A solution Trump threw in the trash, reinstating the sanctions, pressuring Iran to pursue nuclear again as one of its few levers of power it can pull on.

In other words he created the necessity for violence by throwing away a unique solution that the entire world got behind including US allies & enemies, throwing away goodwill and trust in future deals (why would Iran negotiate now if it's clear how Trump views deals, as things to be broken even irrationally?)

Those who claim this is an anti-war president have no clue, even in the context of a 'just war' argument it simply falls flat.
by kqr | 2026-02-28 10:29:32+00:00
Nothing at all could be worse!

One of the issues with Iraq was that Rumsfeld didn't want to acknowledge that it takes more personnel post-toppling (to rebuild infrastructure and institutions) than during invasion. It seems like the current government could be prone to make the same mistake.

I recommend anyone interested in this to read Cobra II. It's an excellent book.
by arunabha | 2026-02-28 10:30:04+00:00
Ben Franklin was asked what kind of govt would the newly formed United States have. He was sadly right when he replied 'A republic, if you can keep it'

One of the (many) pretexts for the war, at least from Trump seems to be that Iran 'interfered' in US elections. From the Washington post

'President Donald Trump shared an article about Iran seeking to interfere in U.S. elections on his Truth Social account a couple of hours after U.S. strikes began in Iran early Saturday.

“Iran tried to interfere in 2020, 2024 elections to stop Trump, and now faces renewed war with United States,” the post read, with a link to a piece from Just the News, a conservative website from which Trump frequently shares articles. Shortly after, the president posted another article from the site, albeit unrelated to Iran; it was about the Fulton County, Georgia, prosecutor Fani T. Willis.'

Does the US even have a functioning Congress left? Who will even believe such a preposterous lie? Even the most die hard MAGA supporter will find it hard to believe this fabrication.

It's like Trump doesn't feel the need to even maintain the fig leaf of a causus belli. He must truly feel that he is now the king of the United States to be so emboldened.
by tome | 2026-02-28 10:30:28+00:00
> the current American administration is of a kind that usually ascends following the rules, but then never voluntarily leaves power

Sounds like you might be making a very strong claim! Can you make it more precise? For example, "President Trump will not peaceably transfer power at the end of his current term". Is it something you'd be willing to put money on, for example on Polymarket?
by randomint64 | 2026-02-28 10:30:28+00:00
Sherlock Holmes liked to say "When you have eliminated the impossible whatever remains, however improbable, must be the truth".

The same is true for programming languages. When you have eliminated all the others for their fatal flaws, only Rust remains, so it's not "just a tool", it's the best tool (or less worse, depending on how you like the syntax).

You can read more about the technical reasons here: https://kerkour.com/rust-software-engineering-reliability
by greatgib | 2026-02-28 10:30:31+00:00
I'm not to fire people usually but this long report shows that there are probably too many persons too well paid with nothing to do at Cloud flare.

Because that is a lot of energy spent too have done advance research for an UI that is basic (just a checkbox), not particularly great and common before and after cloudflare...

And a personal rant, I don't understand how they can be proud of themselves when you see the wasted time and energy supported by users to browse the pages that are being Cloudflare.

Imagine this billions of "click-wait" uselessely done by users everyday worldwide
by lxgr | 2026-02-28 10:30:32+00:00
I consider myself pretty sophisticated with passkeys (I wrote a toy implementation of WebAuthN once to understand them better), and yet I still get tripped up by this sometimes: Not via intentional deletion, but accidental overwriting.

As far as I understand, there are several ways to enforce per-account passkey uniqueness via WebAuthN, but every once in a while, some site will somehow not realize that I have a passkey for them available already, they will offer to create a new one for me, and my password manager (Bitwarden) will do this by overwriting the old/existing passkey.

Now consider a synchronization hiccup (updating my password manager storage and the relying party's backend is not atomic), and I could totally see my passkey get lost.
by exDM69 | 2026-02-28 10:30:33+00:00
Good attempt, but it's simpler than that.

For each AABB, you take the morton code of the minimum and maximum and store them in the array.

But for sorting and searching, construct a sort key from the pair of morton codes so that the most significant bits are the common prefix of the two morton codes and the least significant bits are the "level" (length of common prefix in bits).

E.g. for a 3d octree with 64 bit keys, you'd have 1 unused bit, 57 = 19 * 3 bits of morton code prefix and 6 bits of level. A 2d quadtree with 32b keys would have 1 unused bit, 26 = 2 * 13 bits of prefix and 5 bits of level.

You could also store just the sort key, but I've stored both AABB morton codes so that I can reconstruct the quantized AABBs for culling.

When you sort by this key, you'll get a linear octree where the beginning of the array is all the AABBs that overlap the subdivision plane, then everything on the left side of the plane and the rest is right side of the plane. When traversing the tree, you need two searches per node to find the entries belonging to this node and to find the split point between the left and the right side.

Having the "level" in the least significant bits works as a tiebreaker in the sorting to ensure that entries closer to the root of the tree are in the beginning of the array.
by ryangibb | 2026-02-28 10:30:59+00:00
> Presumably you mean compatible rather than incompatible there?

I've edited for clarity, I mean "because packages with different major versions should have incompatible APIs anyway."

> While you can specify upper bounds for the depdnency ranges, that is extremely uncommon in practice.

In https://github.com/rust-lang/crates.io-index I count just under 7000 upper bounds on dependency ranges that aren't just semver in disguise (e.g. not ">=1.0.0, <2.0.0"):

$ rg --no-filename -o '"req":"[^"]*<[^"]*"' . | grep -Ev '< ?=? ?([0-9]+(\.0){0,2}|0\.[0-9]+(\.0)?)"' | wc -l
6727

So it's definitely used. One person's non-breaking change is another's breaking change https://xkcd.com/1172/
by bojan | 2026-02-28 10:30:59+00:00
> But russia-ukraine is also a much more contained war between 2 parties that will likely end in a stalemate.

The whole of Europe is affected, it might seem contained only if you live very far away. Every European country is affected in one way or another.

It's not a stalemate if Ukraine ends up losing 30% of its territory. That's Russian victory.
by lyu07282 | 2026-02-28 10:31:19+00:00
What do you even think the words diplomacy and negotiation even mean? Of course it included independent oversight to any extend the US wanted. There is nothing that Iran can do to satisfy the requirements for peace because the goal of the US is war, Iran has no interest in war that leads to their destruction. For fuck sake it didn't even include any sanction relief! Wake the fuck up!

The magnitude of human suffering this will bring, civil war, sectarian violence, it all leads to hundreds of millions of people dying, millions of people displaced. Nobody likes the Iranian regime, just like nobody liked Saddam, its not the point. These wars are barbaric, not in the interests of anybody but Israel and a select few American arms dealers and pedophiles that propagandize their way to barely conscious sheep in the west clapping along to the barbarism AGAIN.
by JasonADrury | 2026-02-28 10:31:26+00:00
> I don’t have any other passport

You don't need one, it is very easy to emigrate to many western countries as an Israeli passport holder. There's also a chance you qualify for one of the EU citizenship schemes for jewish descendants. You don't have to choose to live in an apartheid state.

At least if you only held a Russian passport you could plausibly claim that it's somewhat difficult to move anywhere nice.

> I live in a home that is younger than 80 years as most Israelis do

I guess that makes it better. Truly, a shining example of Israeli moral superiority.

I can easily find ownership records going back more than 500 years for the land I live on. Odds are it'd be trivial to go even further.

What about the land you live on? Who owned it 100 years ago and how'd it end up in your possession? How do you think those records would tend to look in Israel? What kind of stories do you think they would tell? Would it be a good look for Israeli people?
by slg | 2026-02-28 10:31:29+00:00
>Whether Anthropic’s clear mistreatment means that all other companies should refrain from doing business with the US government isn’t as clear to me.

That isn't what many of us are challenging here. We're not concerned about OpenAI's ethics because they agreed to work with the government after Anthropic was mistreated.

We're skeptical because it seems unlikely that those restrictions were such a third rail for the government that Anthropic got sanctioned for asking for them, but then the government immediately turned around and voluntarily gave those same restrictions to OpenAI. It's just tough to believe the government would concede so much ground on this deal so quickly. It's easier to believe that one company was willing to agree to a deal that the other company wasn't.
Show HN: Polpo – Control Claude Code (and other agents) from your phone
by marcopennelli | 2026-02-28 10:32:30+00:00
Polpo is an open-source mobile controller for AI coding agents. It runs a lightweight server on your machine and gives you a phone-friendly dashboard to manage sessions, send prompts, approve tool calls, and review plans.

We just released v1.1.0 with support for 5 agents (Claude Code, Codex, Gemini, OpenCode, Pi), skills management from the phone (browse/install/remove skills from skills.sh), and the ability to start new sessions without touching the terminal.

The idea started because we wanted to kick off coding tasks from the couch and check on them from the phone. It grew from there.

Built with Node.js, no framework on the frontend, WebSocket for real-time updates. Works on LAN or remotely via tunnel (cloudflared, localtunnel, ngrok, SSH).

Built by PugliaTechs, a non-profit association from Puglia, Italy.
by kimixa | 2026-02-28 10:32:40+00:00
All laws are vague and interpreted, and in common law (as in the UK and US) interpreted based on precedent rather than the specific text of the original law.

If people with power over you want to "selectively punish you" they don't need new laws.

And if you want perfectly proscriptive, defined laws in all situations with no "human interpretation" you're in the wrong universe, and may as well be shouting at clouds. The world, and especially human society and interactions, just doesn't follow strict definitions like that.
by NarimanN2 | 2026-02-28 10:32:54+00:00
In this video, I’ll show you how semantic caching works and how it can reduce your LLM API costs. We build a simple setup where we call an LLM using LangChain, use OpenAI’s ChatGPT as the model, and add Redis as a semantic cache layer. The goal is to avoid paying for the same prompts again and again while also making responses faster.

Source code available here: https://github.com/NarimanN2/openai-playground

#redis #chatgpt #langchain #caching #openai
by maloyan | 2026-02-28 10:33:25+00:00
Thanks for the feedback! I’ve created issues based on your description and will fix them soon

- https://github.com/maloyan/manim-web/issues/44
- https://github.com/maloyan/manim-web/issues/45
- https://github.com/maloyan/manim-web/issues/46
by jychang | 2026-02-28 10:33:58+00:00
I'm aware of that, but that's not the link of the post. The post is linking to their UD 2.0 quants from a few months back.

Also, the benchmarks are because they messed up the first version of their quants for Qwen 3.5 by quanting some tensors to mxfp4 that should have been in higher quality, and this is their bugfix. The post literally starts out with "We updated Qwen3.5-35B Unsloth Dynamic quants being SOTA on nearly all bits" without explaining WHY they needed to update from the original version.
by lxgr | 2026-02-28 10:34:09+00:00
Most password managers implementing passkeys only allow one passkey per account entry, and I've ended up with multiple passkeys per site, while the site only supports one (and deletes the others upon creating a new one), so I've been in the exact situation of not knowing which entries are safe to delete before.

This is usually due to relying party and possibly password manager bugs, but it does happen.
by danhau | 2026-02-28 10:34:15+00:00
Programmers have enjoyed an occupation with solid stability and growing opportunities. AI challenging this virtually over night is a tough pill to swallow. Naturally, many subscribe to the hope that it will fail.

How far AI will succeed in replacing programmers remains to be seen. Personally I think many jobs will disappear, especially in the largest domains (web). But I think this will only be a fraction and not a majority. For now, AI is simply most useful when paired with a programmer.
by lancashire | 2026-02-28 10:34:59+00:00
I can vouch for people still there. I’m a Brit who married an Iranian who still has a large family in Iran. With the exception of one religious aunt who is married to a military man, all the Iranian family and friends we know have been hoping for intervention. We've had emotional messages from my wife’s cousin (a new mum) describing looking out of her apartment every night for the past month praying for planes overhead. Take that anecdata for what it’s worth.
by lxgr | 2026-02-28 10:35:49+00:00
> I actually despair about when my family members are forced into passkeys and then lose access to their accounts because they get a new device.

Both iOS and Android sync passkeys to their respective cloud accounts by default. (Of course, losing access to that account, sharing one across family members and causing confusion etc. are still concerns.)

The real problem is lock-in, as this effectively often prevents entire families from switching from iOS to Android or vice versa. I'd encourage anyone managing their family's tech setup to pick a platform-agnostic passkey implementation such as 1Password or Bitwarden for that reason.
by BoingBoomTschak | 2026-02-28 10:36:10+00:00
"$LANG is just a tool" has never been right. The Sapir–Whorf hypothesis (or the blub lang analogy - and not the smug part - for programmers) is still true to this day.

tl;dr: Just a tool, but "we shape our tools and then our tools shape us".
by ACCount37 | 2026-02-28 10:36:12+00:00
The only reason NOT to cancel SLS outright is "we can't get anything better". "Sure, it's pretty dumb, but it can be built, and good luck getting anything better built."

Starship is important because the closer Starship gets to coming online the more obviously wrong that line of thought is.

As is, Starship, with its first stage being online and reusable already says "we could have done something like SLS much cheaper if we were smart about it". When the second stage comes fully online, the argument for SLS will diminish further.
by yhavr | 2026-02-28 10:37:02+00:00
> Doesn't defend what happened to Jewish people in Egypt and Lebanon, but certainly puts some context around it.

Which context? That zionism is right and it's great that Jews had a backup safe land to go?

> depopulation of Jews from Yemen and Iraq, that was Israeli policy and they managed it by themselves

> https://en.wikipedia.org/wiki/History_of_the_Jews_in_Iraq#Pe...

> https://en.wikipedia.org/wiki/1947_anti-Jewish_riots_in_Aden

Arabs started to bully Jews, and thus prove that the idea of a safe homeland for Jews is the right idea. For generations. What a smartasses.
by NoLinkToMe | 2026-02-28 10:37:23+00:00
> doesn't make what I stated above any less true.

Yes it does, it makes everything you said untrue. You stated Iran doesn't want to give up its nuclear programme, not true. Iran in fact already did agree to it, Trump then threw that in the trash.

Second, it shows the Nuclear threat wasn't the issue because he had a solution for it and threw it away. Then bombed Iran destroying it ostensibly, then continued bombing for regime change. So it's not obvious negotiations failed over nuclear which you stated, because it wasn't about nuclear.

Negotiations failed over dismantling Iranian power, mostly its ballistic weapons. i.e. give up weapons and make yourself defenseless to maintain peace. Like the Palestinians did with Israel, after which they're still being murdered daily, aid is still being blocked, and the west bank is increasingly being colonised. In other words an absurd ask from a sovereign country with multiple expansionist neighbours including one that bombed you and virtually all its neighbours last year.
by Maxious | 2026-02-28 10:38:09+00:00
Yep. These Mixture of Experts models are well suited for paging in only the relevant data for a certain task https://huggingface.co/blog/moe

There's some experiments of just removing or merging experts post training to shrink models even more https://bknyaz.github.io/blog/2026/moe/
by lxgr | 2026-02-28 10:38:19+00:00
> The standard includes a hardware attestation path.

Yes, and iOS and Android's Passkey implementation does not support it, since doing so would be lying about a given credential being hardware-backend when it's actually not (due to being cloud-synced and often recoverable via some process).

Attestation is only for hardware authenticators, either dedicated ones like Yubikeys or non-synchronized Android WebAuthN credentials. (iOS only supports them in MDM contexts anymore, I believe.)
by bartread | 2026-02-28 10:38:23+00:00
Yeah, same queries. Results are (mostly) much better with Google. It's honestly disappointing because I'd love to be able to ditch Google as a search engine but, whilst it's not without its flaws, it's still much better than the alternatives[0].

[0] I'm deliberately avoiding talking about LLMs here: I mean specifically in cases where what I want to do is execute a web search - often because I'm dissatisfied with, or suspicious of, something an LLM has told me.
by orwin | 2026-02-28 10:38:35+00:00
The US didn't start the Lybia thing, France (and particularly Sarkozy) did, and the US felt obligated to follow up. In Hillary leaked emails, you can read about it. The CIA basically saying 'the successor France want is X, let's try to put our choice as the leader of the next Lybia instead', and a week later, the french/DGSE candidate for Khadafi succession died.

Lybia was 100% a French war the US took over. Sarkozy's subordinates were extremely close to the Lybia regime that helped illegally finance his presidential election, at least according to French judges, so it was also also a very political war.