Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    F

    Florian

    florian.github.io · Personal blog · on HN since 2016

    Florian writes about algorithms, probabilistic data structures and machine learning, including the XOR trick, count-min sketch and federated learning.

    Visit blogRSSHN submissions
    ProgrammingMathAI & Machine Learning
    What HN says

    HN commenters link his XOR trick post for details and applications, and discuss it alongside other sketch data structures and reservoir sampling.

    Stats for nerds
    15HN people shared it
    15linked in comments
    1Kstory points
    Mar 2026last shared
    2022people per year2026

    Top posts on HN

    1. 1
      That XOR Trick (2020)
      1 person · 428 points · first shared 2021 · 231 comments on HN
    2. 2
      That XOR Trick (2020)
      7 people · 394 points · first shared 2021 · 130 comments on HN
    3. 3
      Federated Learning
      1 person · 89 points · first shared 2018 · 12 comments on HN
    4. 4
      Show HN: A HN desktop app for reading links and comments next to each other
      2 people · 55 points · first shared 2016 · 15 comments on HN
    5. 5
      Count-Min Sketch (2019)
      1 person · 44 points · first shared 2022 · 11 comments on HN
    6. 6
      Federated Learning for Firefox
      1 person · 4 points · first shared 2018 · Discussion on HN
    7. 7
      LLMs Understand Base64
      1 person · 3 points · first shared 2024 · Discussion on HN
    8. 8
      Count-Min Sketch: A probabilistic data structure for stream summaries
      2 people · 2 points · first shared 2019 · Discussion on HN
    9. 9
      Computing diffs using the longest common subsequence
      1 person · 1 points · first shared 2021 · Discussion on HN
    10. 10
      Base64
      1 person · first shared 2026

    What HN people wrote when they linked it

    • kelseyfrogJul 2022

      I am enamored by data structures in the sketch/summary/probabilistic family: t-digest[1], q-digest[2], count-min sketch[3], matrix-sketch[4], graph-sketch[5][6], Misra-Gries sketch[7], top-k/spacesaving sketch[8], &c.

      What I like about them is that they give me a set of engineering tradeoffs that I typically don't have access to: accuracy-speed[9] or accuracy-space. There have been too many times that I've had to say, "I wish I could do this, but it would take too much time/space to compute." Most of these problems still work even if the accuracy is not 100%. And furthermore, many (if not all of these) can tune accuracy to by parameter adjustment anyways. They tend to have favorable combinatorial properties ie: they form monoids or semigroups under merge operations. In short, a property of data structures that gave me the ability to solve problems I couldn't before.

      I hope they are as useful or intriguing to you as they are to me.

      1. https://github.com/tdunning/t-digest

      2. https://pdsa.readthedocs.io/en/latest/rank/qdigest.html

      3. https://florian.github.io/count-min-sketch/

      4. https://www.cs.yale.edu/homes/el327/papers/simpleMatrixSketching.pdf

      5. https://www.juanlopes.net/poly18/poly18-juan-lopes.pdf

      6. https://courses.engr.illinois.edu/cs498abd/fa2020/slides/20-lec.pdf

      7. https://people.csail.mit.edu/rrw/6.045-2017/encalgs-mg.pdf

      8. https://www.sciencedirect.com/science/article/abs/pii/S002002551000397X

      9. It may better be described as error-speed and…

    • croteMar 2026

      No, the real problem is that people keep giving LLMs the ability to take nontrivial actions without explicit human verification - despite bulletproof input sanitization not having been invented yet!

      Until we do so, every single form of input should be considered hostile. We've already seen LLMs run base64-encoded instructions[0], so even something as trivial as passing a list of commit shorthashes could be dangerous: someone could've encoded instructions in that, after all.

      And all of that is before considering the possibility of a LLM going "rogue" and hallucinating needing to take actions it wasn't explicitly instructed to. I genuinely can't understand how people even for a second think it is a good idea to give a LLM access to production systems...

      [0]: https://florian.github.io/base64/

    • krackersMay 2024

      Knuth's presentation of this [1] seems very very similar to the heap-version (top-k on a uniform deviate) of reservoir sampling as mentioned in [2]. The difference is in how duplicates are handled. I wouldn't be surprised if this algorithm was in fact already in use somewhere!

      [1] https://cs.stanford.edu/~knuth/papers/cvm-note.pdf [2] https://florian.github.io/reservoir-sampling/

      Edit: Another commenter [3] brought up the BJKST algorithm which seems to be similar procedure except using a suitably "uniform" hash function (pairwise independence) as the deviate instead of a random number.

      [3] https://news.ycombinator.com/item?id=40389178

    • kriorJul 2025

      https://florian.github.io//xor-trick/ if you want detailed information and a list of possible applications.

    Related

    Beren Millidgeberen.io18 people

    The Scale of the Brain vs. Machine Learning (2022)

    Beren Millidge
    Personal · last shared 2026
    Michael Mitzenmachereecs.harvard.edu/~michaelm39 people

    How to Read a Research Paper [pdf]

    Michael Mitzenmacher
    Personal · last shared 2026
    Stanford AI Lab Blogai.stanford.edu45 people

    An Introduction to Knowledge Graphs

    Stanford AI Lab Blog
    Company · last shared 2026
    Chris Rackauckasstochasticlifestyle.com39 people

    Some Insights from a Julia Developer

    Chris Rackauckas
    Personal · last shared 2026
    Xena Projectxenaproject.wordpress.com74 people

    Fermat's Last Theorem – how it’s going

    Xena Project
    Personal · last shared 2026
    Transformer Circuitstransformer-circuits.pub166 people

    Circuit Tracing: Revealing Computational Graphs in Language Models (Anthropic)

    Transformer Circuits
    Company · last shared 2026
    Extreme Learningextremelearning.com.au35 people

    The Unreasonable Effectiveness of Quasirandom Sequences

    Extreme Learning
    Personal · last shared 2026
    Mike Izbickiizbicki.me35 people

    Using loaded dice to cheat at Settlers of Catan, and p-values to avoid suspicion

    Mike Izbicki
    Personal · last shared 2025