Live data from Hacker News

Zeroserve: A zero-config web server you can script with eBPF

su3.io

21–30 of 69 posts

Re: Zeroserve: A zero-config web server you can script with eBPF

#21
post #10

Cool idea, but I don't think you should focus on static files. People rarely spin up a server for that these days.

Depends on the domain. There's a bunch of sciences using large datasets served up efficiently using static file formats, e.g., https://zarr.dev/ and https://parquet.apache.org/

Re: Zeroserve: A zero-config web server you can script with eBPF

#22
post #6

I love seeing stuff like this that would probably not exist if not for LLMs making exploring these kinds of ideas relatively cheap and quick to do. My takeaway from this though is that nginx is pretty impressive on its own. Also this stuck out: It's meant to be an alternative to nginx and Caddy, and the design bet is about configuration. Those servers give you a declarative config language - location blocks, rewrite…

I'd wager that in the next 96 hours, with a LLM, someone could create a translator that would 'pack' a nginx or caddy configuration file into the relevant code that zeroserve could use. Or even more simply, just pickup all the Ingress manifests in a kubernetes cluster and rebuild the pack. The point being, the interface between the tool and the configuration is just another API, system operators are already describing the state of the system at higher level constructs, and the specific bytes that make up the configuration are an artifact of that.

Re: Zeroserve: A zero-config web server you can script with eBPF

#25

Earlier quoted context omitted.

Given the benchmarks: Small static file (174 B) - the bread and butter of static sites: server req/s p99 zeroserve 36,681 5.4 ms nginx 31,226 7.8 ms Caddy 12,830 22 ms zeroserve serves small files about 17% faster than nginx on a single core, with a tighter tail. HTML pages, small JSON, CSS - this is the case zeroserve is tuned for. Large static file (100 KB): server req/s throughput p99 zeroserve 8,000 782 MB/s 22 m…

The problem with pasting LLM output is that no human with sound mind and body would waste their finite time on this Earth informing you that small static files are "the bread and butter of static sites".

I'm convinced that LLMs somehow settled on the middle manager as the exemplar of human cognition that it tries its best to emulate.

I could totally see "Small static files are the bread and butter of static sites" appearing in some pointless deck on a Zoom call.

Re: Zeroserve: A zero-config web server you can script with eBPF

#26
post #14
post #10

Cool idea, but I don't think you should focus on static files. People rarely spin up a server for that these days.

I did last week (converted ghost to static) and was half wondering if some self contained binary wouldn't be faster so I feel like this was made for me, but I accept I'm not the typical user

You just helped to dredge up a memory, which brought me back to this fascinating project:

https://redbean.dev

If this piques your interest, make sure to check out the portable C library used to create it, which is also fascinating:

https://github.com/jart/cosmopolitan

Re: Zeroserve: A zero-config web server you can script with eBPF

#28
post #14
post #10

Cool idea, but I don't think you should focus on static files. People rarely spin up a server for that these days.

I did last week (converted ghost to static) and was half wondering if some self contained binary wouldn't be faster so I feel like this was made for me, but I accept I'm not the typical user

Why not let Clouflare/GitHub/etc do it for you? Free, and you don't have to worry about security and availability.

Re: Zeroserve: A zero-config web server you can script with eBPF

#29
post #21
post #10

Cool idea, but I don't think you should focus on static files. People rarely spin up a server for that these days.

Depends on the domain. There's a bunch of sciences using large datasets served up efficiently using static file formats, e.g., https://zarr.dev/ and https://parquet.apache.org/

Admit I'm not familiar with that domain. But don't people use managed services even there? In my job we host parquet files on S3.
Post reply on HN