home.social

#fractionalindexing — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #fractionalindexing, aggregated by home.social.

fetched live
  1. Continuing on my series on fractional indexing, I come to the conclusion that it is a bit of a scam. You have to be very careful with the usage patterns of the indexed list to be sure the index key length does not get out of hand. While a nice concept, it somewhat reminds me of "two digits for the year are enough" or "a 32bit signed integer" is enough to store a time stamp.

    More rant details in my blog: blog.miamao.de/blog/2026-08/15

    #fractionalIndexing #dataStructures #algorithm #cs

  2. Meanwhile found the technical term: fractional indexing.

    Discussed here: observablehq.com/@dgreensp/imp

    My (luxury) problem: it is not elegant. It wriggles through a maze of (special) cases.

    With arbitrary precision numbers it would be nearly trivial:
    1. append to list: last key + 1
    2. prepend to list: first key -1
    3. insert between a and b: (aKey+bKey)/2

    Only problem: 3. generates more significant bits than needed.

    Hints and boosts appreciated.

    #fractionalIndexing #algorithm #dataStructures