frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Agentgames.co – my interactive story game creator

https://agentgames.co
1•imightbekyle•6s ago•0 comments

Java framework for reliable, contract and graph based LLM execution

https://github.com/11divyansh/OxyJen
1•PaulHoule•3m ago•0 comments

Neocaml – Rubocop Creator's New OCaml Mode for Emacs

https://github.com/bbatsov/neocaml
1•TheWiggles•5m ago•0 comments

Are seed oils bad for your health?

https://www.npr.org/2025/07/07/nx-s1-5453769/nutrition-canola-rfk-seed-oils-soybean
2•paulpauper•5m ago•0 comments

Show HN: Smart card eID driver written in Zig

https://github.com/ubavic/srb-id-pkcs11
1•ubavic•5m ago•0 comments

The hard problem of AI therapy

https://whitmanic.substack.com/p/the-hard-problem-of-ai-therapy
1•paulpauper•6m ago•0 comments

Trump Orders Government to Stop Using Anthropic After Pentagon Standoff

https://www.nytimes.com/2026/02/27/us/politics/anthropic-military-ai.html
8•jbegley•6m ago•3 comments

Does overwork make agents Marxist?

https://aleximas.substack.com/p/does-overwork-make-agents-marxist
1•paulpauper•6m ago•0 comments

Refactoring Is for Humans

https://refactoringin.net/blog/refactoring-is-for-humans
1•darsen•8m ago•0 comments

Federal Government to restrict use of Anthropic

https://www.cnn.com/2026/02/27/tech/anthropic-pentagon-deadline
3•twism•9m ago•0 comments

GLP-1 and Prior Major Adverse Limb Events in Patients with Diabetes

https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2844425
1•hnburnsy•9m ago•0 comments

Show HN: Agoragentic – Agent-to-Agent Marketplace for LangChain, CrewAI and MCP

https://github.com/rhein1/agoragentic-integrations
1•bourbeau•9m ago•0 comments

Show HN: WhenItHappens–family resource after traumatic death

https://whenithappenshelp.com/
1•Fratua•9m ago•0 comments

Trump directs federal agencies to cease use of Anthropic

https://www.reuters.com/world/us/trump-says-he-is-directing-federal-agencies-cease-use-anthropic-...
3•patrickmay•9m ago•1 comments

Trump Will End Government Use of Anthropic's AI Models

https://www.wsj.com/tech/ai/trump-will-end-government-use-of-anthropics-ai-models-ff3550d9
3•moloch•10m ago•0 comments

The Death of Spotify: Why Streaming Is Minutes Away from Being Obsolete

https://joelgouveia.substack.com/p/the-death-of-spotify-why-streaming
5•baal80spam•11m ago•0 comments

The Death of the Subconscious and the Birth of the Subconsciousness

https://3amto5amclub-wuaqr.wordpress.com/2026/02/25/the-death-of-the-subconscious-and-the-birth-o...
1•STANKAYE•11m ago•0 comments

Show HN: Gace AI – A zero-config platform to build and host AI plugins for free

https://gace.dev/?mode=developer
2•bstrama•12m ago•0 comments

USA to cut Anthropic from government contracts in six months

https://www.ft.com/content/1aeff07f-6221-4577-b19c-887bb654c585
4•intunderflow•13m ago•1 comments

Heart attack deaths rose between 2011 and 2022 among adults younger than age 55

https://newsroom.heart.org/news/releases-20260219
3•brandonb•16m ago•0 comments

Ask HN: What's the best engineering interview process?

1•ylhert•16m ago•0 comments

Relaxation trend: customers can meditate or snooze in open or closed casket

https://www.thetimes.com/world/asia/article/japan-coffin-meditation-relaxation-tokyo-wfsd0n2vz
1•woldemariam•17m ago•0 comments

Massachusetts State Police are on a drone surveillance shopping spree

https://binj.news/2026/02/26/massachusetts-state-police-are-on-a-drone-surveillance-shopping-spree/
1•ilamont•19m ago•0 comments

Trump Responds to Anthropic

https://twitter.com/PeteHegseth/status/2027487514395832410
5•Finbarr•19m ago•0 comments

LLM-Based Evolution as a Universal Optimizer

https://imbue.com/research/2026-02-27-darwinian-evolver/
3•miohtama•23m ago•0 comments

Trump Orders US Agencies to Drop Anthropic After Pentagon Feud

https://www.bloomberg.com/news/articles/2026-02-27/trump-orders-us-government-to-drop-anthropic-a...
18•ZeroCool2u•24m ago•4 comments

Netflix Declines to Raise Offer for Warner Bros

https://ir.netflix.net/investor-news-and-events/financial-releases/press-release-details/2026/Net...
1•7777777phil•28m ago•0 comments

Show HN: I Built a $1 Escalating Internet Billboard – Called Space

https://www.spacefilled.com/
2•clarkage•29m ago•1 comments

Show HN: I vibe coded a DAW for the terminal. how'd I do?

https://github.com/mohsenil85/imbolc
3•lmohseni•30m ago•0 comments

How to Run a One Trillion-Parameter LLM Locally: AMD Ryzen AI Max+ Cluster Guide

https://www.amd.com/en/developer/resources/technical-articles/2026/how-to-run-a-one-trillion-para...
1•guerby•31m ago•0 comments
Open in hackernews

Consistent hashing

https://eli.thegreenplace.net/2025/consistent-hashing/
98•zoidb•5mo ago

Comments

Groxx•4mo ago
seems worth fixing the spelling mistake here - this is a consistent hashing post (currently "constitent hashing")
wyldfire•4mo ago
s/Constitent/Consistent/

Unless it's a clever play on "consistent", that is. In which case: carry on.

anotherhue•4mo ago
Can't mention this without mentioning Akamai founder Lewin, who had a sad ending.

https://en.wikipedia.org/wiki/Daniel_Lewin

eatonphil•4mo ago
Wow I didn't know this history about Akamai, thanks for mentioning, interesting as a former Linode guy and a fan of consistent hashing.
alanfranz•4mo ago
A final mention of the “simplifying” Lamping-Veach algorithm would have been great: https://arxiv.org/ftp/arxiv/papers/1406/1406.2294.pdf?ref=fr...
sidcool•4mo ago
The typo is really really bothering me, because the future generations would not be able to search for it.
mkl•4mo ago
You can get things like this fixed with the Contact link at the bottom of the page (I just emailed them about it).

It's so much better to copy and paste the title of articles.

ndr•4mo ago
They seem to have fixed the title. It looks wrong only here on HN now.
sidcool•4mo ago
Nice, thanks Dang.
eru•4mo ago
Have a look at rendezvous hashing (https://en.wikipedia.org/wiki/Rendezvous_hashing). It's simpler, and more general than 'consistent hashing'. Eg you don't have to muck around with virtual nodes. Everything just works out, even for small numbers of targets.

It's also easier to come up with an exact weighted version of rendezvous hashing. See https://en.wikipedia.org/wiki/Rendezvous_hashing#Weighted_re... for the weighted variant.

Faintly related: if you are into load balancing, you might also want to look into the 'power of 2 choices'. See eg https://www.eecs.harvard.edu/~michaelm/postscripts/mythesis.... or this HN discussion at https://news.ycombinator.com/item?id=37143376

The basic idea is that you can vastly improve on random assignment for load balancing by instead picking two servers at random, and assigning to the less loaded one.

It's an interesting topic in itself, but there's also ways to combine it with consistent hashing / rendezvous hashing.

Snawoot•4mo ago
I also double that rendezvous hashing suggestion. Article mentions that it has O(n) time where n is number of nodes. I made a library[1] which makes rendezvous hashing more practical for a larger number of nodes (or weight shares), making it O(1) amortized running time with a bit of tradeoff: distributed elements are pre-aggregated into clusters (slots) before passing them through HRW.

[1]: https://pkg.go.dev/github.com/SenseUnit/ahrw

karakot•4mo ago
Does it really matter? Here, n is a very small number, which is almost a constant. I'd assume the iteration over the n space is negligible compared to the other parts of a request to a node.
eru•4mo ago
Yes, different applications have different trade-offs.
gopalv•4mo ago
> if you are into load balancing, you might also want to look into the 'power of 2 choices'.

You can do that better if you don't use a random number for the hash, instead flip a coin (well, check a bit of the hash of a hash), to make sure hash expansion works well.

This trick means that when you go from N -> N+1, all the keys move to the N+1 bucket instead of being rearranged across all of them.

I've seen this two decades ago and after seeing your comment, felt like getting Claude to recreate what I remembered from back then & write a fake paper [1] out of it.

See the MSB bit in the implementation.

That said, consistent hashes can split ranges by traffic not popularity, so back when I worked in this, the Membase protocol used capacity & traffic load to split the virtual buckets across real machines.

Hot partition rebalancing is hard with a fixed algorithm.

[1] - https://github.com/t3rmin4t0r/magic-partitioning/blob/main/M...

eru•4mo ago
> This trick means that when you go from N -> N+1, all the keys move to the N+1 bucket instead of being rearranged across all of them.

Isn't that how rendezvous hashing (and consistent hashing) already work?

ryuuseijin•4mo ago
Shameless plug for my super simple consistent-hashing implementation in clojure: https://github.com/ryuuseijin/consistent-hashing
dataflow•4mo ago
Is it just me or can you describe the whole scheme in one sentence?

tl;dr: subdivide your hash space (say, [0, 2^64)) by the number of slots, then utilize the index of the slot your hash falls in.

Or, in another sense: rely on / rather than % for distribution.

Is this accurate or am I missing something?

immibis•4mo ago
That's the naive method which tends to redistribute most objects when the number of slots changes.
zvr•4mo ago
You're missing that the hash space is not divided uniformly. Which means one can vary the number of slots without recomputing the hash space division -- and without reassigning all of the existing entries.
dataflow•4mo ago
I must've totally misunderstood what I read then. I'll give it another read, thanks!
catoc•4mo ago
Was the HN-post title also hashed? (It’s inconstitent with the actual title)
modderation•4mo ago
Ceph storage uses a hierarchical consistent hashing scheme called "CRUSH" to handle hierarchical data placement and replication across failure domains. Given an object ID, its location can be calculated, and the expected service queried.

As a side effect, it's possible to define a logical topology that reflects the physical layout, spreading data across hosts, racks, or by other arbitrary criteria. Things are exactly where you expect them to be, and there's very little searching involved. Combined with a consistent view of the cluster state, this avoids the need for centralized lookups.

The original paper is a surprisingly short read: https://ceph.com/assets/pdfs/weil-crush-sc06.pdf DOI: 10.1109/SC.2006.19

packetlost•4mo ago
I've implemented a cache-line aware (from a paper) version of a persistent, consistent hashing algorithm that gets pretty good performance on SSDs:

https://github.com/chiefnoah/mehdb

It's used as the index for a simple KV store I did as an interview problem awhile back, it pretty handily does 500k inserts/s and 5m reads/s and it's nothing special (basic write coalescing, append-only log):

https://git.sr.ht/~chiefnoah/keeeeyz/tree/meh

ignoreusernames•4mo ago
Another strategy to avoid redistribution is simply having a big enough number of partitions and assign ranges instead of single partitions. A bit more complex on the coordination side but works well in other domains (distributed processing for example)
sillypointer•4mo ago
https://www.metabrew.com/article/libketama-consistent-hashin...

Ketama implementation of consistent hashing algorithm is really intuitive and battle tested.