the-benchmarker / web-frameworks

Which is the fastest web framework?
MIT License
6.99k stars 672 forks source link

Add zig httpz server #7945

Closed Kayden1412 closed 1 week ago

Kayden1412 commented 1 week ago

https://github.com/karlseguin/http.zig.

It does not have a website.

waghanza commented 1 week ago

@karlseguin We are going to introduce httpz here. Is this something you are OK with.

We can ping you (not so often) to make sure the implementation is OK

waghanza commented 1 week ago

@Kayden1412 could you use https://github.com/ziglang/docker-zig if it is updated?

karlseguin commented 1 week ago

Sure.

Current master code is pretty far from 0.13 branch. Maybe when Zig 0.14 is released, we can do an update.

Kayden1412 commented 1 week ago

@Kayden1412 could you use https://github.com/ziglang/docker-zig if it is updated?

@waghanza I use this one instead https://hub.docker.com/r/chainguard/zig

waghanza commented 1 week ago

I have not enough worked with zig to know which image suits best.

The idea is to have an image that you are confident with to go in production, at list n image close to this goal

waghanza commented 1 week ago

I'll add this PR for next round, and monitor zig updates

waghanza commented 1 week ago

@karlseguin @Kayden1412 I have

thread 26 panic: reached unreachable code
Panicked during a panic. Aborting.
error: the following build command crashed:
/app/.zig-cache/o/3c97310c79e5fa4f1bb00d7c1d5b2ebe/build /usr/bin/zig /app /app/.zig-cache /root/.cache/zig --seed 0x4dd03a9d -Z48d7c4c12cea8f62 -Doptimize=ReleaseFast

when trying to compile inside a container with zig build -Doptimize=ReleaseFast

maybe something related to arch, we use aarch to produce results (mac m1)