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
    E

    Extreme Learning

    extremelearning.com.au · Personal blog · on HN since 2018

    A statistician and data scientist writes about sampling methods, quasirandom sequences, and evenly distributing points on spheres and other shapes.

    Visit blogHN submissions
    MathData & Visualization
    What HN says

    HN commenters recommend his quasirandom sequences article as a great method for sampling and dithering, and prefer it over other approaches.

    Stats for nerds
    35HN people shared it
    20linked in comments
    775story points
    Jan 2026last shared
    2020people per year2026

    Top posts on HN

    1. 1
      The Unreasonable Effectiveness of Quasirandom Sequences
      19 people · 211 points · first shared 2018 · 49 comments on HN
    2. 2
      How to generate uniformly random points on n-spheres and in n-balls
      4 people · 171 points · first shared 2020 · 81 comments on HN
    3. 3
      Fibonacci Sphere
      6 people · 154 points · first shared 2020 · 34 comments on HN
    4. 4
      Going beyond the Golden Ratio
      3 people · 147 points · first shared 2019 · 32 comments on HN
    5. 5
      Evenly distributing points on a sphere
      3 people · 88 points · first shared 2018 · 20 comments on HN
    6. 6
      Evenly Distributing Points in a Triangle
      1 person · 2 points · first shared 2019 · Discussion on HN
    7. 7
      Multiple Pendulums
      1 person · 2 points · first shared 2019 · Discussion on HN
    8. 8
      Trigonometry visualised
      1 person · first shared 2020
    9. 9
      A simple method to construct isotropic quasirandom blue noise point sequences
      1 person · first shared 2023
    10. 10
      How to generate a sequence of evenly balanced combinations
      1 person · first shared 2018

    What HN people wrote when they linked it

    • pixelpoetMar 2022

      I would say very close to the top is the amazing depth of sampling methods, in particular Quasi-Monte Carlo (QMC) methods. I'll try to give a small sample of that.

      Basically what you're doing in MC is estimating expected values (and thereby integrals: average height times base width equals area under the graph) using random numbers, to be roughly thought of as a rnd() function which gives you back a float in [0,1).

      However, using actual proper random number generators has a very slow convergence rate, as the random numbers chosen will tend to clump; on the other hand, if you just use a perfectly uniform distribution, you'll suffer from correlation problems.

      Consider a 1-D numerical integration problem, and instead of using rnd() to pick points in your integrand range, you start with some seed value in [0,1), and each time you need a new random number, you add phi-1 to the existing number and mod with 1.0 to get the new number. If you plot this sequence on a [0,1) number line, you'll see that it divides up the interval into finer pieces really nicely, magically keeping a good distance from all the previous values, without even knowing them!

      Why does this work? Well, there's a lot of beautiful theory about phi (also relating to biology and nature, e.g. seashells and the distribution of sunflower seeds), in particular how it is in some sense (continued fraction) the "most irrational" number. Does it work well for other numbers, and can it be extended to higher dimensions?…

    • bazzarghDec 2023

      The fibonacci hashing mentioned here looks to be just Kronecker low-discrepancy sequences https://en.wikipedia.org/wiki/Low-discrepancy_sequence#Additive_recurrence which is used for dithering too (see eg https://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/). It's quite likely already what Spotify were obliquely referring to. But I think the author missed a trick: tracks by an artist occur close together if your collection is already arranged by artist/album. Picking tracks far apart from the globally sorted list is what this sequence will do, and do you don't need to do anything at all to split by artist/album/category etc:

      1. for the Kth track in a sorted collection of N with seed S in [0,1), pick track number floor(N((K(phi-1)+S)%1)).

      2. There is no step 2.

      Since Spotify suggest their algorithm is only a couple of lines, I'd guess this is what they did.

      edited to add: the above would get pretty boring because songs would always follow one another in sequence, no matter what the seed was. But since the chance of picking an irrational number at random in a real interval is a near certainty (because rationals are countable and reals are uncountable) you can just pick any new random number as the stepsize in the sequence when you start to shuffle play and it should be good enough; picking in [.25, .75) avoids steps that take you back too close to the same artist.

    • extremelearningApr 2020

      I am a statistician / data scientist who blogs about nifty sampling methods, which are frequently used in rendering computer graphics such as: ray-tracing (via Quasi-Monte Carlo methods), object placement, dithering, etc...

      http://www.extremelearning.com.au

      All these methods try to find the most efficient sampling techniques that minimize various undesirable effects such as aliasing.

      Techniques and topics include: blue noise distributions; low discrepancy quasirandom sequences; orthogonal grid-based sampling; and even-sampling on the surface of n-spheres.

      My most favourite articles (two of which have previously been featured on HN) include:

      * "The unreasonable effectiveness of quasirandom sequences" http://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/

      * "A new method to construct isotropic blue noise with uniform projections" http://extremelearning.com.au/isotropic-blue-noise-point-sets/

      * "Evenly distributing points on a sphere" http://extremelearning.com.au/evenly-distributing-points-on-a-sphere/

      I hope that someone finds some of these useful and interesting.
      ;)

    • KednicmaOct 2020

      Yes: http://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/

      Sibling comments are completely correct. Graphics simulations often require quasirandom sequences; the particular sequence is not important, but any correlations in the sequence will be visible in the output as artifacts, so we want a decorrelated sequence.

      If this is not enough of a real-world example for you, then Monte Carlo methods also show up in weather modeling, financial planning, and election forecasting. In those predictive systems, there is extreme uncertainty and dependence on initial conditions, which we model with quasirandom sequences and seed numbers respectively. By running many simulations with different random sequences and then examining all of the results statistically, we can get good estimates of future behavior.

      Edit: Oh, you're not in good faith. Okay, cool story. Best of luck with whatever imaginary idea of "unpredictability" you're trying to define, but you might want to return to actual maths at some point.

    • PaulHouleJan 2025

      See [1] [2] and there is a great treatment of the topic in this book [3]. I don't know exactly what's he doing, but if I was doing some kind of monte carlo integration (like the family of energy surfaces in 6-dimensional space that I plotted the volume of as a function of energy for my PhD thesis) I'd be really concerned about the "uniform" part.

      [1] https://en.wikipedia.org/wiki/Low-discrepancy_sequence

      [2] https://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/

      [3] https://numerical.recipes/

    • mordaeAug 2025

      https://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/

      (Unreasonable Effectiveness of Quasirandom Sequences)

      has a section dedicated to spheres.

      TL;DR: Generate two orthogonal sequences, map with sin/cos.

      I think this method is currently state of the art. It provably doesn't clump in higher dimensions.

      Also, it is blue enough for Monte Carlo.

    Related

    Probably Danceprobablydance.com74 people

    Fibonacci Hashing: The Optimization That the World Forgot

    Probably Dance
    Personal · last shared 2026
    The Orange Ducktheorangeduck.com74 people

    Machine Learning, Kolmogorov Complexity, and Squishy Bunnies (2019)

    The Orange Duck
    Personal · last shared 2026
    Red Blob Gamesredblobgames.com199 people

    Hexagonal grids for games

    Red Blob Games
    Personal · last shared 2026
    John D. Cookjohndcook.com648 people

    Organizing complexity is the most important skill in software development

    John D. Cook
    Personal · last shared 2026
    Statistical Modeling, Causal Inference, and Social Sciencestatmodeling.stat.columbia.edu350 people

    Suspicious data pattern in recent Venezuelan election

    Statistical Modeling, Causal Inference, and Social Science
    Publication · last shared 2026
    Alan Wolfeblog.demofox.org54 people

    Derivatives, Gradients, Jacobians and Hessians

    Alan Wolfe
    Personal · last shared 2026
    Towards Data Sciencemedium.com/towards-data-science90 people

    Audio processing in TensorFlow

    Towards Data Science
    Publication · last shared 2025
    Max Woolfminimaxir.com85 people

    Nano Banana can be prompt engineered for nuanced AI image generation

    Max Woolf
    Personal · last shared 2026