Skip to content

Instantly share code, notes, and snippets.

View Zorgatone's full-sized avatar

Tommaso Ricci Zorgatone

  • BrainQuark di Tommaso Ricci
  • Turin, Italy
  • 11:02 (UTC +02:00)
  • LinkedIn in/zorgatone
View GitHub Profile
@mlugg
mlugg / StacklessEventLoop.zig
Last active September 11, 2025 19:58
Theoretical implementation of parts of `std.Io` in Zig based on #23446
gpa: Allocator,
/// I don't know how io_uring works, so my usage here is going to be total bollocks.
/// I'm going to never init this, and I'll write:
/// ```
/// io_uring.pushSqe(.{
/// .op = .sleep,
/// .arg0 = clockid,
/// .arg1 = std.time.ns_per_s,
/// .user = ptr,
/// });