Hacker GitHub

← All repos

uecker/noplate

View on GitHub ↗ ★ 54 C archived

generic data structures

9 mentions on Hacker News by 2 people: 0 stories, 9 comments · first 2022-12-23 · latest 2025-07-26

Mentions per year 9 mentions · busiest year 2023 (3)
20082026
  1. Yes! I try do this here (this code is not tested and may not be up-to-date): https://github.com/uecker/noplate/blob/main/src/vec.h#L30 The issue with the boundary is what I meant with hysteresis in the article.
    comment by uecker · 2025-07-26 · in Generic Containers in C: Vec
  2. It is cool trick. I already use in my experimental library though ;-) https://github.com/uecker/noplate/blob/main/src/list.h
  3. Here is my experimental library for generic types with some godbolt links to try: https://github.com/uecker/noplate
  4. Here is my attempt at strings in C (and other stuff). https://github.com/uecker/noplate (attention: this is experimental and incomplete for trying ideas and is subject to change.)
    comment by uecker · 2024-07-15 · in I'm not a fan of strlcpy(3)
  5. …CONCAT(struct Foo *) would produce struct_Foo_Ptr? The result is guaranteed token paste-able. [1] https://github.com/uecker/noplate
    comment by hgs3 · 2024-01-18 · in Polymorphic Types in C [pdf]
  6. You may be interested in this: https://github.com/uecker/noplate.git
  7. See also here for my experiments, but it relies on UBSan for bounds checking: https://github.com/uecker/noplate.git
  8. I am exploring way on how to implement this in C (with some extensions) as a library: https://github.com/uecker/noplate Certainly not production ready.
    comment by uecker · 2023-05-04 · in New C features in GCC 13
  9. …adding a fat pointer next round. So long, you can look at my experiments using a struct type here: https://github.com/uecker/noplate/ The typedef thing will go away with C2X where you do this in place.
    comment by uecker · 2022-12-23 · in Checked C