this post was submitted on 01 Jan 2026
98 points (100.0% liked)

Programming

24153 readers
352 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] duckythescientist@sh.itjust.works 59 points 15 hours ago (2 children)

I'm also not sure if this is obscure, but Bloom Filters! It's a structure that you can add elements to then ask it if it has seen the element before with the answer being either "no" or "probably yes". There's a trade-off between confidence of a "probably yes", how many elements you expect to add, and how big the Bloom Filter is, but it's very space and time efficient. And it uses hash functions which always make for a fun time.

[–] sukhmel@programming.dev 15 points 11 hours ago

Relevant xkcd

in Randall's words

Sometimes, you can tell Bloom filters are the wrong tool for the job, but when they're the right one you can never be sure.

[–] FizzyOrange@programming.dev 8 points 13 hours ago

Obscure 10 years ago maybe. These days there have been so many articles about them I bet they're more widely known than more useful and standard things like prefix trees (aka tries).