Skip to content

The road to zig std #21

Open
Open
@ikskuh

Description

@ikskuh

There are plans to upstream this library into the zig std library. This issue is here to create a concrete plan and track progress.

Some considerations:

  • Define a clear public API/error surface
    • Collapse unix/windows/… errors into well-defined zig-network errors
  • API must be event loop compatible
  • Changes in zig std to OS APIs (Eliminate the POSIX API layer ziglang/zig#6600)
  • Support unix sockets? If yes, how to solve it on windows
  • Should we keep the address/port separation? OS's don't do it, but I find it unintuitive
    • How does this play with unix sockets? Address is a file name, not an IP + Port
    • The separation is required to implement happy eyeballs nicely
  • Optimize the polling API (make it allocation-free if possible)

Roadmap:

  • Clear up remaining questions
  • Clean up the API and provide abtractions
  • Create dedicated fork and start integration
  • Create PR and hope for the best

ping @alexnask @Luukdegram @kristoff-it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions