frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Counting at Scale

https://priyavr.at/blog/hyperloglog/
3•prvt•6h ago

Comments

prvt•6h ago
Last weekend, I dove into CMU’s [15-445/645](https://15445.courses.cs.cmu.edu/) database course and got hit with a deceptively simple problem: count the number of unique users visiting a website per day. Easy, right? Just throw user IDs into an unordered_set and return its size—classic LeetCode.

But what happens when you’re at Facebook scale? Tracking a billion unique users means burning through GBs of memory just to count. And in the real world, users are streaming in constantly, not sitting in a neat, static list. Storing every ID? Not happening.

I explored practical workarounds (like “last seen” timestamps and full table scans), but they’re either inefficient or put massive strain on your DB. Then the assignment introduces HyperLogLog: a probabilistic algorithm that estimates cardinality with just 1.5KB of memory—accurate to within 2% for billions of users.

The magic? Pure mathematics. It’s distributable, and powers real-world systems like Redis and Google Analytics. I break down how it works (with illustrations!), check out my deep dive.

Curious to hear from HN: Who’s using HyperLogLog in production? And have you run into accuracy issues, and how did you handle them?

Cats Confuse Reasoning LLM: Query Agnostic Adversarial Triggers for Reasoning

https://arxiv.org/abs/2503.01781
1•ipnon•55s ago•0 comments

Nonce CSP bypass using Disk Cache

https://jorianwoltjer.com/blog/p/research/nonce-csp-bypass-using-disk-cache
2•Bogdanp•7m ago•0 comments

Air India Accident Discussion Organised by Subject

https://paulross.github.io/pprune-threads/gh-pages/AI171/index.html
2•parados•10m ago•1 comments

Parsing layout, or: Haskell's syntax is a mess

https://amelia.how/posts/parsing-layout.html
1•fanf2•11m ago•0 comments

Show HN: Board Foot Calculator

https://board-foot-calculator.org
1•hapJam•13m ago•0 comments

Slowly listing all games every made that I can

1•jamesandthewolf•13m ago•0 comments

New evidence that some supernovae may be a "double detonation"

https://arstechnica.com/science/2025/07/new-evidence-that-some-supernovae-may-be-a-double-detonation/
1•Archelaos•16m ago•0 comments

SZ Games:a platform offering over 1k free online games

https://sz-games.online//
1•jsonchao•18m ago•1 comments

'I'm being paid to fix issues caused by AI'

https://www.bbc.com/news/articles/cyvm1dyp9v2o
1•lmc•20m ago•0 comments

AI promises to free up time. Might it stop us learning, creating and exploring?

https://www.theguardian.com/commentisfree/2025/mar/30/ai-promises-to-free-up-time-but-what-if-it-spares-us-from-learning-writing-painting-and-exploring-the-world
1•thinkingemote•29m ago•0 comments

Steam has been flooded with games stolen from itch.io

https://www.gamepressure.com/newsroom/steam-is-dealing-with-spam-valves-platform-has-been-flooded-with/zb811a
1•todsacerdoti•29m ago•0 comments

Vector Database from a Beginners POV

https://mrinalxdev.github.io/mrinalxblogs/blogs/vector-db.html
1•sebg•34m ago•0 comments

Show HN: InvoiceFast – Generate clean invoices instantly, pay per use

1•skyzouw•34m ago•0 comments

Benchmark for Evaluating Text Embeddings

https://huggingface.co/spaces/embedding-benchmark/RTEB
1•fzliu•36m ago•0 comments

Show HN: Soham Agent – Write cold emails like Soham Parekh

https://buildthatidea.com/sohamagent/6c604d4f-caac-475f-b489-d568210f905a
1•miletus•36m ago•0 comments

Show HN: I built an AI that automates my entire freelancing business–now what?

1•cranberryturkey•44m ago•1 comments

Tell HN: Sweden has its first arrest against a man for "insult against official"

2•acadapter•48m ago•0 comments

Show HN: YouTube Thumbnail Downloader – HD Thumbnails for Shorts and Videos

https://www.aithumbnail.so/tools/youtube-thumbnail-downloader
1•sachou•50m ago•0 comments

Zig Roadmap 2026 [video]

https://www.youtube.com/watch?v=x3hOiOcbgeA
2•todsacerdoti•53m ago•0 comments

Estimating the number of J programmers in HN

2•betasilly•53m ago•0 comments

Talking Clock continues to tick online after Telstra's September shutdown (2019)

https://www.abc.net.au/news/2019-10-16/talking-clock-continues-to-tick-on-the-internet/11605112
1•Towaway69•1h ago•1 comments

DRM Panic QR code generator

https://rust-for-linux.com/drm-panic-qr-code-generator
1•weinzierl•1h ago•0 comments

Ask HN: How do companies like OpenAI, Perplexity fine tune rich output?

3•agaase19•1h ago•1 comments

Duck.ai Privacy Policy

https://old.reddit.com/r/duckduckgo/comments/1ln6mkd/duckais_privacy_policy_is_lying_to_us/
3•alexrustic•1h ago•0 comments

Show HN: Hands on tutorial for open source contribution

https://github.com/firstcontributions/first-contributions
1•yaxsh1102•1h ago•0 comments

As a Labrador swam by me out to sea his owner said I hope he doesn't meet a seal

https://www.irishtimes.com/opinion/an-irish-diary/2025/07/03/all-at-sea-with-a-lockdown-labrador/
19•austinallegro•1h ago•1 comments

Show HN: ClientPort – A simple share-link client portal for freelancers

https://www.clientport.app
1•simonsynnes•1h ago•0 comments

Hot-reloading for HTML, CSS, and JavaScript, running in the browser

https://livereload.net/
1•ivanche•1h ago•0 comments

Famed protein structure competition nears end as NIH grant money runs out

https://www.science.org/content/article/exclusive-famed-protein-structure-competition-nears-end-nih-grant-money-runs-out
1•EvgeniyZh•1h ago•0 comments

Senior Engineer tries Vibe Coding [video]

https://www.youtube.com/watch?v=_2C2CNmK7dQ
1•leontrolski•1h ago•0 comments