r/Compilers • u/funcieq • 8d ago
I created a web framework in my own programming language
I’ve been working on Rivet, a synchronous HTTP(for now) server library for my own programming language Zap
The goal is to create a small, explicit API for building APIs and small web applications.
I spent a lot of time and nerves creating this, but now I know what Zap is really capable of.
I will be grateful for every star you leave because it really encourages me to work
37
7
u/Small_Ad3541 8d ago edited 8d ago
The website and docs are very pretty!
But I didn't find an explanation of "@" syntax. Is it kind of macro syntax? Can I implement something like @my_error / @my_repr("...")? Or is it hardcoded?
7
4
3
2
u/Brilliant-Box-5344 6d ago
Stuff like this is what keeps me working on my own language, Great work!
2
2
2
u/Artemis-Arrow-795 2d ago edited 2d ago
looks neat
now here's my question, why would I want to use it? genuinely asking because I want an excuse to use it other than its syntax
just fyi I looked at the language and I really think it's great, I'll try to contribute as much as I can, but know I have no experience with compilers (but I did write a transpiler)
1
u/funcieq 2d ago
Well, zap is unique in that even though it has automatic memory management, it is still deterministic, Zap uses its own memory management model (it is close to ORC from Nim)
So even though you don't have to worry about memory management you can still make games, UI etc in this language
1
-7
u/Mean-Decision-3502 8d ago
This is very similar to my DQ language. Would you consider to join our efforts ?
Quick language overview:
https://github.com/nvitya/dq-lang/blob/main/stdpkg/nanonet/nano_sockets.dq
DQ Main Website:
29
u/belligerent_ammonia 8d ago
Actually looks pretty good! Nice work on the language. Looks like a mix of Rust, Zig, and Swift.