Live data from Hacker News

Viewing profile — tim-peters

tim-peters

HN member
Joined
Tue, Jul 13, 2021, 8:57 PM UTC
HN karma
224
Public activity
11 items

About tim-peters

No profile information was provided.

Recent public activity

  1. comment
    Comment #43071598

    I want to elaborate on timing cautions: a sort that specializes to 4-byte machine ints is doing something that can't be expressed directly in CPython. Its lists are heterogeneous, …

  2. comment
    Comment #43065755

    Ya, I'm just too old for bottomless pits anymore ;-) Patience sorting is still worth study, for its elegance, simple code, and real-world practicality in the context of solving the…

  3. comment
    Comment #43064965

    You're much more up to date on the details of recent developments than I am. It's faded into a background interest (although a persistent one) for me. One thing that wasn't clear t…

  4. comment
    Comment #43062080

    I want to thank you for your analysis! I'm the "timsort" guy, and I'm asked to look at all sorts of things. The devil is in the details, and I've given up bothering to look unless …

  5. comment
    Comment #43061690

    Perhaps ;-) I'm the "Tim" in "timsort". The name was an inside joke. I'm not a self-promoter, and never have been. As the so-called "Zen of Python" author, I thought it would be fu…

  6. comment
    Comment #27828619

    Sorry, nope. There aren't n permutations you're searching through, but the factorial of n to search through. That's the heart of the information-theoretic proof that no comparison-…

  7. comment
    Comment #27828202

    Haha. AdamMerge works for me - I get enough abuse for naming a sort after myself ;-) If you pursue this, you can probably throw out piles of the CPython code. That's trying to keep…

  8. comment
    Comment #27827661

    See CPython's https://github.com/python/cpython/blob/main/Objects/listsort... for details about the sort. In fact, its "galloping" was inspired by a paper of which Demaine was a co…

  9. comment
    Comment #27827618

    You already got a win - quit while you're ahead ;-) Note that plain binary search here is probably not a good idea. See "listsort.txt", in the same directory as "listobject.c", for…

  10. comment
    Comment #27826630

    Right, `merge_at()`. But that in turn calls small mountains of other C code. It is, alas, a complicated approach. Folding it in would be substantially more work than you've already…

  11. comment
    Comment #27826221

    To get more gonzo, in CPython's list.sort(), the C code that actually merges two lists (which happen, in context, to be two contiguous array slices) is in listobject.c's `merge_at(…