Hacker GitHub

← All repos

hirrolot/metalang99

View on GitHub ↗ ★ 1,092 C

Full-blown preprocessor metaprogramming

17 mentions on Hacker News by 10 people: 7 stories, 10 comments · first 2021-02-04 · latest 2025-11-06

Mentions per year 17 mentions · busiest year 2021 (9)
20082026
  1. …so obtuse to use and requires insane hacks so almost nobody does. See one of my favorite projects https://github.com/hirrolot/metalang99
  2. …And there is always the Reflection TS [3], which may or may not be incorporated to C++26... [1] https://github.com/Hirrolot/metalang99 [2] https://hirrolot.github.io/posts/pretty-printable-enumeratio... [3]…
    comment by lifthrasiir · 2023-09-30 · in How to convert an enum to string in C++
  3. …recursion, etc. It's not Turing-complete though, as the C preprocessor is not Turing-complete. [1] https://github.com/Hirrolot/metalang99
    comment by Hirrolot · 2023-07-09 · in The Development of the C Language (1993)
  4. …potential solutions wouldn't work: 1. Remove templates entirely: Still would be possible using https://github.com/Hirrolot/metalang99 which solely uses the preprocessor. Given that the pre-processor is literally just term substitution(a…
    comment by jacoblambda · 2022-11-22 · in Inside boost::unordered_flat_map
  5. https://github.com/Hirrolot/metalang99
    comment by sargstuff · 2022-10-06 · in What does the ??!??! operator do in C?
  6. …code in separate files, IDE support is lacking, sophisticating a build procedure, etc etc. [1]: https://github.com/Hirrolot/metalang99#q-why-not-third-party...
  7. …/github.com/Hirrolot/datatype99#semantics [2]: https://github.com/Hirrolot/interface99#semantics [3]: https://github.com/Hirrolot/metalang99#q-why-not-third-party...
  8. …checked the generated assembly code, it was nearly of the same size as hand-written code [2]. [1]: https://github.com/Hirrolot/metalang99#q-why-not-third-party... [2]: https://godbolt.org/z/ns6Ma7csd
  9. Yes, as others have already noticed, it is implemented on top of https://github.com/Hirrolot/epilepsy , a metalanguage for preprocessor metaprogramming.
    comment by Hirrolot · 2021-02-04 · in Datatype99: C99 with Sum Types, v0.1.0
  10. https://github.com/Hirrolot/epilepsy According to the GitHub, which appears to be a metaprogramming library by the same author.
    comment by willxinc · 2021-02-04 · in Datatype99: C99 with Sum Types, v0.1.0