hirrolot/datatype99
View on GitHub ↗ ★ 1,515 C
Algebraic data types for C99
8 mentions on Hacker News by 6 people: 2 stories, 6 comments · first 2021-02-04 · latest 2025-05-09
20082026
-
…AST macros, you better be really comfortable with assembly analysis and debugger scripting. [1] - https://github.com/Hirrolot/datatype99
comment by johnnyjeans · 2025-05-09 · in Odin, a pragmatic C alternative with a Go flavour -
You can also get algebraic sum types in C with the C preprocessor: https://github.com/Hirrolot/datatype99 But of course defaults matter and the kernel’s rich history of not modernizing coding practices is going to work against improvements…
comment by vlovich123 · 2025-02-18 · in I helped fix sleep-wake hangs on Linux with AMD GPUs -
…We can represent ADTs using stack as well, that's what we usually do in C and Rust. Shameless plug: https://github.com/Hirrolot/datatype99 (a library of mine that generates type-safe ADTs for pure C99).
comment by Hirrolot · 2022-07-12 · in Memory Management Reference -
Compared to plain C, you have ADTs which help from day to day programming. You can bring them to C ( https://github.com/Hirrolot/datatype99 ) but I don't know if the Linux guys would allow it.
comment by Zababa · 2021-07-24 · in Rust for Linux redux -
…the old macros there. How third-party tools are different from native macros in this case? [1]: https://github.com/Hirrolot/datatype99#semantics [2]: https://github.com/Hirrolot/interface99#semantics [3]:…
comment by Hirrolot · 2021-07-22 · in Macros on Steroids: How pure C can benefit from metaprogramming -
Here's a link: https://github.com/Hirrolot/datatype99
comment by Zababa · 2021-07-10 · in Metaprogramming custom control structures in C (2012)