Back to browse
GitHub Repository

Go-style CSP concurrency for plain C: fibers, channels, select, async I/O, HTTP, and GC in one runtime 🚀

33 starsC

Libgoc – Go-like CSP-style HTTP client/server library for C

by divs1210·Apr 4, 2026·1 point·0 comments

AI Analysis

●●SolidWizardryNiche Gem

Go style concurrency and GC in C, but Boehm GC limits performance sensitive systems.

Strengths
  • Bundles fibers, channels, and GC into a single coherent C runtime.
  • Prebuilt static binaries for Linux, Mac, and Windows reduce integration friction.
  • Uses libuv for async I/O, ensuring cross-platform event loop compatibility.
Weaknesses
  • Boehm GC introduces pause times often unacceptable for real-time systems.
  • Competes with Go, which offers native CSP without C interop overhead.
Target Audience

C systems programmers

Similar To

libgo · Go · libuv

Post Description

Hi! I'm the author of libgoc.

libgoc provides a Go - like runtime in portable C.

It is basically C + GC + threadpools + goroutines + channels + goroutine-aware-mutexes.

It's built on top of:

- Boehm GC

- libuv for async I/O and cross-platform threading primitives

- minicoro for cross-platform coroutines

- picohttp as the HTTP parser for goc_http

The API is stable at this point.

Prebuilt static binaries are available for Linux / Mac / Windows.

I plan to make typesafe C++ / Rust wrappers for this at some point.

Similar Projects

Sapphire – A portable language with native UI and 3D vectors

Yet another systems language competing with Zig, Odin, and V in an extremely crowded space.

CozyNiche Gem
foxz
302mo ago

Ngn – a new back end programming language

The landing page sells an ambitious combo: channels & threads with an 'await' syntax plus a builtin HTTP server (websockets, SSE), and promises safe, atomic shared state. Interesting as a playground for language design — but nothing on the page proves runtime safety, performance, or ecosystem maturity; the "AI helped build it" note is cute but leaves me wanting concrete examples, benchmarks, or a repo link before I'd take it seriously.

Bold BetRabbit Hole
j4w8n
413mo ago