Tardy (def: delaying or delayed beyond the right or expected time; late.) is an asynchronous runtime for writing applications and services in Zig. Most of the code for this project originated in zzz, a performance oriented networking framework.
- Tardy utilizes the latest Asynchronous APIs while minimizing allocations.
- Tardy natively supports Linux, Mac, BSD, and Windows.
- Tardy is configurable, allowing you to optimize the runtime for your specific use-case.
Tardy is a thread-local asynchronous runtime for Zig, providing the core implementation for asynchronous libraries and services.
- Per-thread Runtime isolation for minimal contention
- Native async I/O (io_uring, epoll, kqueue, poll)
FileandDirfor Filesystem OperationsSocketfor Network Operatons
Latest Zig Stable: 0.13.0
Latest Tardy Release: 0.2.0
zig fetch --save git+https://github.com/mookums/tardy#v0.2.0 You can then add the dependency in your build.zig file:
const tardy = b.dependency("tardy", .{ .target = target, .optimize = optimize, }).module("tardy"); exe.root_module.addImport(tardy);Important
Tardy is currently alpha software. It's fast and it works but is still experimental!
- Modular Asynchronous Implementation
io_uringfor Linux (>= 5.1.0).epollfor Linux (>= 2.5.45).kqueuefor BSD & Mac.pollfor POSIX-compliant systems.
- Single and Multi-threaded Support
- Stackful Coroutines (Frames)
- Asynchronous Primitives (such as
File,DirandSocket). - Channels for Asynchronous Communcation across Tasks and Threads
- zzz: a framework for writing performant and reliable networked services.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tardy by you, shall be licensed as MPL2.0, without any additional terms or conditions.