Better HN
topnewbestaskshowjobs
Log inSign up

Nya-kundi

3 karma · joined Jan 13, 2026 (10mo ago) · 8 submissions

Submissions

comment 6mo ago · link · parent

Location: Nairobi, Kenya Remote: Yes, remote only Willing to relocate: No Technologies: Go, C, Linux kernel internals, io_uring, systems programming, observability, concurrency primitives Résumé/CV: https://emmanuel326.github.io Email: nyariboemmanuel8@gmail.com

19 y/o systems programmer going deep on Linux I/O internals and kernel infrastructure.

Recent work: - 3 merged MRs in GitLab Runner (Go) — fixed context cancellation in retry/backoff infrastructure, eliminated timer leaks in network layer - CNCF Kubernetes Gateway API — ReDoS prevention with length validation, 100% test coverage across v1/v1beta1 - sheriffDB: Bitcask-inspired KV storage engine in Go, 488 LOC stdlib only, append-only log with CRC32 crash recovery and log compaction - procjail: minimal process jail implementing PID namespaces and PID 1 semantics without container tooling - Currently: learning io_uring internals from raw syscalls up, building toward virtio/vhost

Blog posts on pread() latency + page cache, false sharing, TCP RACK loss detection, container abstractions.

Looking for: junior/entry systems, infrastructure, or backend Go roles. Serious about the work.

2.

Show HN: SherifDB, a databe written in Golang under 500 LOC(emmanuel326.github.io ↗)

4 points · by Nya-kundi · 7mo ago · 2 comments

comment 10mo ago · link · parent

I wanted to prove that for a lightweight tool like Procjail, Go's overhead is negligible compared to the massive DX gains.

comment 10mo ago · link · parent

Thanks! Honestly, the ergonomics of Go for this are a double-edged sword. On one hand, using os/exec and syscall packages feels much more 'human-readable' than raw C. It definitely makes the kernel primitives feel less like black magic. The tricky part is the Go runtime—since it's multi-threaded by default, you have to be really careful about runtime.LockOSThread() when manipulating namespaces so you don't 'leak' a namespace change to the wrong thread. If you're looking to learn the basics, I think the Go codebase is way easier to digest than a massive C project!

comment 10mo ago · link · parent

I've been diving deep into the Linux kernel's isolation primitives, and I wanted to see if I could build a robust, lightweight jailer using Go instead of the traditional C/Rust approach.

Most people go for Docker or Firecracker, but those feel like overkill for simple process isolation. Procjail is my attempt at a 'middle ground'—leveraging Namespaces (PID, Mount, Net, UTS) and Cgroups to create a secure environment with minimal fuss.

I know the purists might question using a garbage-collected language for low-level isolation, but the developer experience and safety of Go made this an incredible project to build.

I wrote a deep dive into the kernel truths I learned here: https://emmanuel326.github.io/blogs/procjail-kernel-truth.ht...

I'm looking for 'crazy critics' tear into the syscall implementation, the security model, or the Go implementation. I'm here to learn.

6.

Show HN: Procjail – Building a process isolator in Go using Linux namespaces(emmanuel326.github.io ↗)

2 points · by Nya-kundi · 10mo ago · 5 comments

comment 10mo ago · link · parent

I built this small bounded work queue in C using pthread_mutex_t and pthread_cond_t.

I wrote this because I found many C queue examples online skip the "boring" parts of correctness—like memory visibility and invariant preservation—in favor of performance. I wanted a version where I could prove to myself why it works under heavy contention.

Key Design Choices:

Single-mutex design: Keeps the mental model simple and leverages the "Release-Acquire" semantics guaranteed by pthreads for memory visibility.

Two condition variables: Uses not_full and not_empty with while loops to robustly handle spurious wakeups.

Explicit Invariants: The project documents structural, behavioral, visibility, and liveness invariants.

Verification:

Tested under contention with multiple producers/consumers.

Verified with ASan, UBSan, and TSan (no races or UB detected).

It’s intended as a clear, correct baseline for when the bottleneck is the task processing rather than the lock itself.

Design notes and reasoning: https://emmanuel326.github.io/notes/bounded-queue.html

I'd love to hear feedback on the implementation or the way I've framed the invariants!

8.

Show HN:A bounded work queue in C with explicit invariants(github.com ↗)

2 points · by Nya-kundi · 10mo ago · 1 comment