CSP
Compile-time LISP interpreter on C macro preprocessor (by kchanqvq)
zig_comptime_lisp
By igmanthony
CSP | zig_comptime_lisp | |
---|---|---|
5 | 3 | |
135 | 18 | |
- | - | |
0.0 | 3.2 | |
about 6 years ago | about 3 years ago | |
C++ | Zig | |
- | 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.
CSP
Posts with mentions or reviews of CSP.
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
-
What is Rust’s Hole Purpose?
So there's precedent to what you say. You are right, the program would not have the runtime, but then it wouldn't be a Swift program (it would be a valid one, but you can't break certain extra rules) but something else. The reason we call it "language runtime" is because the runtime cost is due to the language choice. Refusing to code in the language and doing something else is a different language. We could write LISP code that the c compiler can interpret and compile fully but most people would call that LISP, not C.
-
C Programmers are chad
#define LISP
-
Weird but legible C programs
One example might be a Lisp interpreter using C macros: https://github.com/BlueFlo0d/CSP/blob/master/csp.h
-
Sufficiently smart compiler
You mean this lisp embedded in c preprocessor?
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 CSP and zig_comptime_lisp you can also consider the following projects:
C-headers
http_server - Pony library for building HTTP server applications.
bio - A Lisp dialect written in Zig
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee - eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Vale - Compiler for the Vale programming language - http://vale.dev/
order-pp - order-pp preprocessor library (standalone part of chaos-pp)
hare-color - Color package for Hare (harelang.org)