Live data from Hacker News

Viewing profile — JacksonAllan

JacksonAllan

HN member
Joined
Sat, Jan 28, 2023, 2:44 AM UTC
HN karma
12
Public activity
9 items

About JacksonAllan

No profile information was provided.

Recent public activity

  1. comment
    Comment #44428831

    I think the idea of using a union to store the element type without any extra run-time memory cost might have some use, specifically in cases where the container struct wouldn't ty…

  2. story
    Show HN: Convenient Containers – ergonomic generics in C

    Hello Hacker News :) I'd like to share my C generic data-structure library Convenient Containers (CC). The library's main advantages are summarized in the Rationale section of its …

  3. comment
    Comment #43766607

    I use something similar in a container library to warn the user if he or she supplies an argument with potential side effects to a macro that evaluates it multiple times: https://g…

  4. comment
    Comment #43010873

    I think the 0.95 figure for Robin Hood hash tables is rather optimistic. Robin Hood helps in a few ways: it allows for early termination of failed lookups, and it reduces probe-len…

  5. comment
    Comment #38272354

    I'll try to download and play around with your benchmarks when I have a chance. After reading you explanation of how you create the tables at the desired load factor, some of those…

  6. comment
    Comment #38257882

    As I’m sure you know, benchmarking hash tables is pretty difficult because there’s many variables that affect their performance and it’s hard to cover all use cases. Let me start b…

  7. comment
    Comment #38240609

    In my example the table stores the hash codes themselves instead of the keys (because the hash function is invertible) Oh, I see, right. If determining the home bucket is trivial, …

  8. comment
    Comment #38228959

    findPreferredBucket rehashes. The problem with this deletion algorithm is that every element that is a candidate for back-shifting must be rehashed to ensure that we don't shift it…

  9. story