codr7/libcodr7
View on GitHub ↗ ★ 59 C
fundamental tools in the spirit of C
6 mentions on Hacker News by 3 people: 1 story, 5 comments · first 2019-12-30 · latest 2021-04-09
20082026
-
…set functionality that isn't in the stdlib. https://github.com/codr7/whirlog/blob/main/rb.lisp https://github.com/codr7/libcodr7/blob/master/source/codr7/t...
comment by codr7 · 2021-04-09 · in Tree.h in OpenBSD: dependency-free intrusive binary tree (2002) -
…my experience, the only kind of linked list that still sometimes makes sense is the embedded one. https://github.com/codr7/libcodr7/blob/master/source/codr7/l...
comment by codr7 · 2021-03-12 · in Drop millions of allocations by using a linked list (2015) -
…six: https://en.wikipedia.org/wiki/Red%E2%80%93black_tree But the code I see here is very small: https://github.com/codr7/libcodr7/blob/master/source/codr7/r... I guess it's not handling delete, which probably accounts for a lot of the…
comment by haberman · 2019-12-30 · in Show HN: libcodr7 – fundamental collections in the spirit of C -
…track of nodes [1] and slabs [2] for example. Note that the same structure is used as root. [0] https://github.com/codr7/libcodr7/blob/master/source/codr7/r... [1] https://github.com/codr7/libcodr7/blob/master/source/codr7/r... [2]…
comment by codr7 · 2019-12-30 · in Show HN: libcodr7 – fundamental collections in the spirit of C -
…thing as `container_of`). They have somewhat of an example usage of the list in the `deque.c` file: https://github.com/codr7/libcodr7/blob/2b598e3d89d878ef53e05... If you don't know about `container_of`, the idea is that it allows you to…
comment by DSMan195276 · 2019-12-30 · in Show HN: libcodr7 – fundamental collections in the spirit of C