http.zig

An HTTP/1.1 server for zig (by karlseguin)

Http.zig Alternatives

Similar projects and alternatives to http.zig

  1. zig

    876 http.zig VS zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. FrameworkBenchmarks

    Source for the TechEmpower Framework Benchmarks project

  4. bun

    380 http.zig VS bun

    Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

  5. libuv

    Cross-platform asynchronous I/O

  6. mach

    38 http.zig VS mach

    zig game engine & graphics toolkit

  7. otp

    32 http.zig VS otp

    Erlang/OTP

  8. libxev

    libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. Tornado

    17 http.zig VS Tornado

    Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

  11. libevent

    Event notification library

  12. meduza

    Discontinued Zig codebase graph generator. (by tensorush)

  13. zig-gorillas

    A clone of the classic QBasic Gorillas written in the Zig programming language

  14. ctregex.zig

    Compile time regular expressions in zig

  15. zigself

    An implementation of the Self programming language in Zig

  16. hellepoll

    A blazingly-fast async HTTP server written in C++

  17. libvlc-zig

    Zig bindings for libVLC media framework.

  18. MiniPixel

    A tiny pixel art editor

  19. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better http.zig alternative or higher similarity.

http.zig discussion

Log in or Post with

http.zig reviews and mentions

Posts with mentions or reviews of http.zig. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-11.
  • Epoll: The API that powers the modern internet (2022)
    7 projects | news.ycombinator.com | 11 Jan 2024
    I have a somewhat popular HTTP server library for Zig [1]. It started off as a thread-per-connection (with an optional thread pool), but when it became apparent that async wasn't going to be added back into the language any time soon, I switched to using epoll/kqueue.

    Both APIs allow you to associate arbitrary data (void ) with the event that you're registering. So when you're notified of the event, you can access this data. In my case, it's a big Conn struct. It contains things like the # of requests on this connection (to enforce a configured max request per connection), a timestamp where it should timeout if there's no activity. The Conn is part of an intrusive linked list, so it has a next: Conn and prev: *Conn. But, what you're probably most curious about, is that it has a Request.State. This has a static buffer ([]u8) that can grow as needed to hold all the received data up until that point (or if we're writing the data, then the buffered data that we have to write). It's important to have a max # of connections and a max request size so you can enforce an upper limit on the maximum memory the library might use. It acts as a state machine to track up to what point it's parsed the request. (since you don't want to have to re-parse the entire request as more bytes trickle in).

    It's all half-baked. I can do receiving/sending asynchronously, but the application handler is called synchronously, and if that, for example, calls PG, that's probably also synchronous (since there's no async PG library in Zig). Makes me feel that any modern language needs a cohensive (as in standard library, or de facto standard) concurrency story.

    [1] https://github.com/karlseguin/http.zig

  • 0.11.0 Release Notes
    12 projects | news.ycombinator.com | 3 Aug 2023
    I took a year off, and one of the things I did was learn Zig. I've built a number of libraries, including one of the currently more popular HTTP server libraries (https://github.com/karlseguin/http.zig).

    A number of my libraries are used for https://www.aolium.com/ which I decided to write for myself.

    I try to write a bit every day with the benefit that I can "waste" time digging into things or exploring likely-to-fail paths.

Stats

Basic http.zig repo stats
2
977
9.2
11 days ago

karlseguin/http.zig is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of http.zig is Zig.


Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Zig is
the 22nd most popular programming language
based on number of references?