order-pp
order-pp preprocessor library (standalone part of chaos-pp) (by rofl0r)
awesome-c-preprocessor
A list of awesome C preprocessor stuff (by Hirrolot)
order-pp | awesome-c-preprocessor | |
---|---|---|
5 | 6 | |
102 | 221 | |
- | - | |
0.0 | 5.3 | |
over 2 years ago | 3 months ago | |
C | ||
Boost Software License 1.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
order-pp
Posts with mentions or reviews of order-pp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-25.
- Announcing the Hare programming language
-
No Us Without You: elifdef and elifndef
Looping is already totally doable, up to a finite maximum number of iterations. Local variables and the like can be simulated through suitably clever preprocessor definitions and logic, too. The syntax and trickery you need to take advantage of it is thoroughly, thoroughly unpleasant though.
For anyone curious about the practicality of that sort of thing, A CPS macro continuation machine like https://github.com/rofl0r/order-pp/blob/master/inc/order/cm.... would give you about 18 quintillion loop iterations if my math was right; double the length of that file and you’d have more loop iterations than atoms in the universe.
-
Have constexpr string mixins been proposed?
Macros can already accomplish this and more quite handily, using order-pp for example:
-
datatype99: C99 with sum types, v0.1.0
Here is an example of the power of order: https://github.com/rofl0r/order-pp/blob/master/example/fibonacci.c
awesome-c-preprocessor
Posts with mentions or reviews of awesome-c-preprocessor.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-01.
-
Few lesser known tricks, quirks and features of C
The metaprogramming section listed my library Metalang99, although there is much more stuff about tricking the preprocessor: https://github.com/Hirrolot/awesome-c-preprocessor.
-
Best C Marco Preprocessor Tutorial? (Book or Website)
Also, forgot to say that there's a collection of mad preprocessor stuff: awesome-c-preprocessor.
- A curated list of cool C preprocessor stuff
- Hirrolot/awesome-c-preprocessor: A list of awesome C preprocessor stuff
-
datatype99: C99 with sum types, v0.1.0
There are lots of interesting projects on preprocessor macros: https://github.com/Hirrolot/awesome-c-preprocessor.
What are some alternatives?
When comparing order-pp and awesome-c-preprocessor you can also consider the following projects:
http_server - Pony library for building HTTP server applications.
poica - 🧮 A research programming language on top of C macros
datatype99 - Algebraic data types for C99
metalang99 - Full-blown preprocessor metaprogramming
CSP - Compile-time LISP interpreter on C macro preprocessor