Hacker GitHub

← All repos

tezc/sc

View on GitHub ↗ ★ 2,577 C

Common libraries and data structures for C.

7 mentions on Hacker News by 4 people: 2 stories, 5 comments · first 2021-02-12 · latest 2023-06-13

Mentions per year 7 mentions · busiest year 2021 (3)
20082026
  1. …implementations for reference: - https://github.com/attractivechaos/klib/blob/master/khash.h - https://github.com/tezc/sc/tree/master/map - https://github.com/troydhanson/uthash
    comment by jmacjmac · 2023-06-13 · in A simple hash table in C
  2. …the others, makes it harder and more annoying to implement more complicated data structures. [1]: https://github.com/tezc/sc/blob/master/array/array_test.c#L3...
  3. https://github.com/tezc/sc/tree/master/map For those who are interested in faster hashmaps, I tried bunch of hashmaps and this one performs better than others. This is for C. Maybe C++ has better hashmaps.
  4. For a vector alternative, I find this one easy to read and use : https://github.com/tezc/sc/tree/master/array It is just an array of your type, e.g int *numbers, so you have type info in debugger as well.
    comment by tirrex · 2021-04-23 · in Beej’s Guide to C Programming [pdf]
  5. …it may be a simple addition to your map. Check out these repos for the example implementation: (C) https://github.com/tezc/sc/tree/master/map (C++) https://github.com/rigtorp/HashMap
    comment by tirrex · 2021-03-26 · in How to implement a hash table in C