Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2021 (4)
20082026
  1. …AST macros, you better be really comfortable with assembly analysis and debugger scripting. [1] - https://github.com/Hirrolot/datatype99
  2. 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…
  3. ▲ 376
    Algebraic Data Types for C99
    story by bondant · 2024-05-09 · 225 comments
  4. …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
  5. 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
  6. …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]:…
  7. Here's a link: https://github.com/Hirrolot/datatype99
  8. ▲ 157
    Datatype99: C99 with Sum Types, v0.1.0
    story by hirrolot · 2021-02-04 · 64 comments