order-pp
poica
order-pp | poica | |
---|---|---|
5 | 2 | |
102 | 230 | |
- | - | |
0.0 | 9.4 | |
over 2 years ago | over 3 years ago | |
C | C | |
Boost Software License 1.0 | MIT License |
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
- 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
poica
-
datatype99: C99 with sum types, v0.1.0
I'll try it at work soon. Sounds so good because I've spent for about a year to make it look as now, see https://github.com/Hirrolot/poica (my previous experiment).
Can you provide examples of general recursion and partial application in Boost/PP? When I was working on poica, it was a real pain to catch macro blueprinting with Boost/PP as well as capture an environment for macros (higher-order Boost/PP functions always accept an additional argument that is passed to functions; it needs to be unpacked further and so on).
What are some alternatives?
awesome-c-preprocessor - A list of awesome C preprocessor stuff
data_desk - New version "Metadesk" at https://github.com/Dion-Systems/metadesk
http_server - Pony library for building HTTP server applications.
datatype99 - Algebraic data types for C99
moonlight-common-c - Core implementation of Nvidia's GameStream protocol
CSP - Compile-time LISP interpreter on C macro preprocessor
metalang99 - Full-blown preprocessor metaprogramming
derive4j - Java 8 annotation processor and framework for deriving algebraic data types constructors, pattern-matching, folds, optics and typeclasses.
adt - Algebraic data types for Python (experimental, not actively maintained)
cp437.h - Header only codepage 437 unicode lookup table.