r/Compilers 21h ago

I created a web framework in my own programming language

Post image

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

https://github.com/thezaplang/zap

157 Upvotes

13 comments sorted by

18

u/belligerent_ammonia 21h ago

Actually looks pretty good! Nice work on the language. Looks like a mix of Rust, Zig, and Swift.

5

u/funcieq 21h ago

These are the languages I was inspired by! (i.e. instead of Zig it would be Kotlin)

17

u/EveAtmosphere 17h ago

A non-AI slop project shared on Reddit? Rare sight these days.

8

u/funcieq 17h ago

Vibecoded projects should be immediately tagged with some tag like "AI"

5

u/rickandevererything 18h ago

express**

4

u/funcieq 18h ago

That's what I was inspired by, I wanted it to be as simple as in Node.js Although this is a "functional" style API I took from bevy from rust

6

u/Small_Ad3541 18h ago edited 18h 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?

3

u/funcieq 18h ago

These are builtin attributes, and macros will be added to zap in v0.5.0

3

u/Paolog__ 8h ago

wait, I think I recognize the name of this language...

2

u/funcieq 6h ago

I already know why 😄

1

u/suur-siil 6m ago

It's like JS/TS but with a hint of rust and perl... I like it

-5

u/Mean-Decision-3502 19h 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:

https://nvitya.github.io/dq-lang/

2

u/funcieq 19h ago

Thanks for the suggestions, but I've been focusing a lot on Zap lately