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
20082026
-
…so obtuse to use and requires insane hacks so almost nobody does. See one of my favorite projects https://github.com/hirrolot/metalang99
comment by lpribis · 2025-11-06 · in Recursive macros in C, demystified (once the ugly crying stops) -
…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++ -
…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) -
…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 -
https://github.com/Hirrolot/metalang99
comment by sargstuff · 2022-10-06 · in What does the ??!??! operator do in C? -
…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...
comment by Hirrolot · 2021-07-22 · in Macros on Steroids: How pure C can benefit from metaprogramming -
…/github.com/Hirrolot/datatype99#semantics [2]: https://github.com/Hirrolot/interface99#semantics [3]: https://github.com/Hirrolot/metalang99#q-why-not-third-party...
comment by Hirrolot · 2021-07-22 · in Macros on Steroids: How pure C can benefit from metaprogramming -
…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
comment by Hirrolot · 2021-07-22 · in Macros on Steroids: How pure C can benefit from metaprogramming -
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 -
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