order-pp
order-pp preprocessor library (standalone part of chaos-pp) (by rofl0r)
zig_comptime_lisp
By igmanthony
order-pp | zig_comptime_lisp | |
---|---|---|
5 | 3 | |
102 | 18 | |
- | - | |
0.0 | 3.2 | |
over 2 years ago | about 3 years ago | |
C | Zig | |
Boost Software License 1.0 | The Unlicense |
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
zig_comptime_lisp
Posts with mentions or reviews of zig_comptime_lisp.
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
If it's at compilation time, you have the full zig language so you certainly could implement your very own functional programming language https://github.com/igmanthony/zig_comptime_lisp in regular zig rather in an external preprocessor.
-
Bio: All your parentheses are belong to us
A comptime Lisp
-
Fully comptime lisp
I made a toy lisp in zig that 'interprets' embedded files entirely in comptime code (so it's a scripting compiler thing). Even for a toy... it's not fully working (no recursion, loops, comments), but there are user-defined functions, variables, conditionals, and arithmetic (and it's pretty easy to implement new functions in Zig and load them).
What are some alternatives?
When comparing order-pp and zig_comptime_lisp you can also consider the following projects:
awesome-c-preprocessor - A list of awesome C preprocessor stuff
http_server - Pony library for building HTTP server applications.
bio - A Lisp dialect written in Zig
datatype99 - Algebraic data types for C99
CSP - Compile-time LISP interpreter on C macro preprocessor
Vale - Compiler for the Vale programming language - http://vale.dev/
hare-color - Color package for Hare (harelang.org)