Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ zuki Public

High-performance async runtime for Zig — fast, cross-platform, and zero-cost by design

License

Notifications You must be signed in to change notification settings

zuki-dev/zuki

Repository files navigation

Zuki Logo

zuki

The async runtime for Zig you've never heard of — until now.


Why Zuki?

Most async runtimes make compromises. Zuki doesn't:

  • Lock-free data structures — No mutexes, no blocking
  • Zero-cost abstractions — Pay only for what you use
  • Work stealing scheduler — Automatic load balancing
  • Rust-inspired futures — Familiar patterns, Zig performance
  • Scalable design — From embedded to servers

Reality Check

Zuki is in early development — APIs change, bugs exist, documentation is minimal.

The foundation is solid and performance is already impressive. Good for:

  • Learning async patterns in Zig
  • Contributing to runtime development
  • Exploring high-performance async

Not ready for production.

Quick Example

// Create an async task
var delay = DelayFuture.from_millis(&timer, 1000);
const task = Task.from_future(&delay, 1);
// Run it on the executor
var executor = try SingleThreadedExecutor.init(allocator);
try executor.spawn(task);
try executor.run();

Simple. No complexity, no overhead.

Architecture

What makes Zuki different:

  • Lock-free MPMC queues — Multiple producers, multiple consumers, zero locks
  • Intrusive linked lists — Zero-allocation data structures
  • Atomic operations — Compare-and-swap for maximum throughput
  • Work stealing — Tasks flow where needed
  • Priority scheduling — Important tasks get priority

Documentation

Contributing

Zuki needs contributors who understand performance:

  • Found a bug? Open an issue
  • Want to contribute? Check CONTRIBUTING.md
  • Have ideas? Start a discussion

Ready to try the async runtime you've never heard of?

Documentation | Discussions | GitHub

About

High-performance async runtime for Zig — fast, cross-platform, and zero-cost by design

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Languages

AltStyle によって変換されたページ (->オリジナル) /