Open Source
We publish an MIT-licensed open source stack for low-latency Go and Linux systems at code.hybscloud.com. The packages can be adopted individually or combined as a foundation for kernel-facing services, runtimes, and network software.
The design centers on explicit step boundaries and a shared outcome model: completed, would-block, and more. This model stays consistent from Linux kernel operations through user code, so retry, backoff, batching, and dispatch remain explicit at each layer.
What the Stack Provides
- Direct kernel-facing primitives for syscalls, atomics, locks, and descriptor lifecycle management
- Non-blocking, multishot, and zero-allocation I/O building blocks for Linux 6.18+
- Lock-free queues, protocol components, and dispatch layers for completion-driven systems
- MIT-licensed packages with source code and Go module documentation at code.hybscloud.com
Foundations
- zcall provides syscall primitives via per-platform assembly for direct kernel access.
- spin implements non-fair FAA+TTAS spinlocks and adaptive spin-wait for sub-microsecond critical sections.
- atomix exposes atomic operations with explicit C11 memory ordering, including 128-bit atomics and cache-line-padded variants.
- dwcas provides portable 128-bit compare-and-swap for ABA-safe lock-free algorithms with versioned state.
I/O Semantics
- iox extends Go’s
iopackage with non-blocking and multishot I/O semantics built aroundErrWouldBlockandErrMore. - iofd wraps file descriptors with atomic lifecycle management and iox-compatible read and write operations.
- iobuf provides lock-free bounded buffer pools with index-based pooling and page-aligned allocation for DMA and io_uring compatibility.
Concurrency
- lfq implements bounded lock-free FIFO queues for SPSC, MPSC, SPMC, and MPMC patterns with zero-allocation fast paths.
Computation
- kont brings delimited continuations and algebraic effects to Go with allocation-free representations for effect handling.
- cove carries ambient context across suspension boundaries without relying on hidden globals or thread-local storage.
Kernel I/O & Networking
- uring is a pure Go io_uring library for Linux 6.18+ covering 65 operations with zero-allocation submit and reap paths.
- sock provides zero-allocation socket primitives for TCP, UDP, SCTP, Unix domain, and raw sockets.
Protocols
- sess implements session-typed protocols via algebraic effects for lock-free, completion-driven communication.
- framer provides portable message framing over stream transports while preserving message boundaries.
Execution
- takt is the abstract proactor dispatch engine that maps algebraic effects to
completed,would-block, andmoreoutcomes across blocking, stepping, and event-loop execution modes.
Source & Documentation
Source code and Go module documentation are available at code.hybscloud.com.