Topic

C

C programming discussions covering systems programming, memory management, and embedded development. Our digest aggregates undefined behavior, compiler optimizations, and embedded systems from developer communities.

What this topic tracks

  • Language releases and proposals
  • Libraries, tooling, and ecosystem updates
  • Performance, idioms, and production lessons

C · 248 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

Solod – A subset of Go that translates to C

github.com · 7 Apr

C · Go · Programming Languages

Solod is a Go subset that transpiles Go code into readable C11.

It eliminates runtime features like garbage collection, favoring stack allocation and manual memory management. Designed for systems programming, it offers native C interoperability and supports standard Go tooling while remaining highly performant. It is built for simplicity, type safety, and efficient low-level execution.

Hardware hotplug events on Linux, the gory details

arcanenibble.github.io · 1 Mar

C · Linux · Low-Level Programming

This technical exploration examines how Linux handles hardware hotplug events using netlink and udev.

It details the transition from kernel-space notifications to userspace rebroadcasts, explaining the binary packet format, MurmurHash2 filtering, and security via SO_PASSCRED. The guide provides C code to listen for these events without relying on the libudev library.

C extensions, portability, and alternative compilers

lemon.rip · 24 May

C · Low-Level Programming · Programming Languages

Developing a C compiler reveals that standard ISO C code is rare.

Most real-world C codebases rely heavily on compiler-specific extensions and non-standard behaviors to manage bugs and library gaps. Achieving compatibility, especially with libc headers like glibc or bionic, often requires compilers to mimic GCC or Clang's internal behaviors to maintain ecosystem stability.

Why does C have the best file API

maurycyz.com · 28 Feb

C · Performance · Programming Languages

This article explores why C provides a superior file API through memory mapping (mmap), allowing files to be treated as memory.

The author argues that most modern languages neglect file manipulation, forcing unnecessary serialization and parsing, whereas C enables direct manipulation of binary formats on disk, which is essential for performance and handling large-scale data.

Microsoft Word for Windows 1.1a, Native X64 Port

github.com · 6 Aug

C · C++ · Windows

This project provides a native x64 Windows port of the historical Microsoft Word 1.1a (Opus).

It replaces legacy 16-bit components and memory management with a modern compatibility layer, allowing the original application to run on 64-bit Windows without emulation. The codebase maintains original logic while updating build tools, Win32 API adaptations, and unit testing infrastructure.

Show HN: Timber – Ollama for classical ML models, 336x faster than Python

github.com · 27 Feb

C · Machine Learning · Performance

Timber is an open-source tool that compiles classical machine learning models into optimized C for native inference.

By eliminating Python runtime overhead, it achieves microsecond latency. It supports XGBoost, LightGBM, and scikit-learn, offering an Ollama-style workflow via a local HTTP API, making it ideal for low-latency fraud detection and edge computing.

Making your own programming language is easier than you think (but also harder)

lisyarus.github.io · 6 May

C · Low-Level Programming · Programming Languages

The author is developing a custom, imperative, low-level programming language called pslang to address modding limitations in their game engine.

Designed for performance and C-interop, the language uses indentation-based scoping and static, nominal typing. Though an ambitious long-term project, it serves currently as a creative side pursuit focused on simplicity and build-level experimentation.

CoW — a stacking window manager for Wayland

cow-wm.codeberg.page · 29 Sept

C · Linux · Open Source

CoW 0.3, released in September 2026, is a C-based stacking window manager for Wayland inspired by the 90s look and feel of FVWM and MWM.

It supports scriptable IPC, customizable server-side decorations, window-placement commands, native menus, rule-driven automation, and an internal DSL, with development hosted on Codeberg and community support via IRC.

Tiny C Compiler

bellard.org · 7 Feb

C · Programming Languages · Open Source

The Tiny C Compiler (TCC), created by Fabrice Bellard, is a remarkably compact and high-performance C compiler designed for efficiency and speed.

Its primary strengths lie in its small footprint—approximately 100KB for the x86 version—and its ability to generate machine code significantly faster than traditional tools like GCC. TCC is notable for supporting C scripts, allowing developers to execute C source files directly from the command line without manual linking. Furthermore, it offers features such as an optional memory and bound checker for safe execution and can be used as a backend for dynamic code generation via libtcc. Despite its size, it aims for ISO C99 compliance and can successfully compile itself, demonstrating its robustness for system tasks and rapid development.

Building a Shell

healeycodes.com · 16 Mar

C · Linux · Programming Languages

The author built a minimal Unix shell, 'andsh', using C to explore low-level process APIs like fork, execvp, and dup2.

The project implements a shell's essential features: a REPL, command execution, environment variable expansion, piping, and basic terminal interaction using the readline library, providing a practical look into how shells manage processes and stdin/stdout.

Show HN: I built a Cargo-like build tool for C/C++

github.com · 9 Apr

CLI · C · C++

Craft is a lightweight build tool for C and C++ projects that simplifies dependency management and project configuration.

By using a simple craft.toml file, it automatically generates CMake configuration and handles builds, eliminating the complexity of manual CMake management while offering a modern command-line interface.

Fixing a Buffer Overflow in Unix v4 Like It's 1973

sigma-star.at · 31 Dec

Cybersecurity · C · History

The discovery of the final missing UNIX v4 source code tape from 1973 reveals a historic shift: the rewriting of the operating system from assembly into C.

In analyzing the 'su' utility, a critical buffer overflow vulnerability was identified in the password input loop, which lacked bounds checking and could cause memory faults. This technical analysis demonstrates the restoration of the system on a PDP-11 simulator and the process of patching the vulnerability using the line-oriented editor 'ed'. This highlights the early UNIX philosophy of shipping systems with full source code and built-in compilers, allowing for self-hosting and direct modification of core binaries in a primitive yet familiar environment.

llama.cpp v1.0.0 : A stronger foundation for the local AI ecosystem

huggingface.co · 13 Nov

Artificial Intelligence · C · C++ · Large Language Models

llama.cpp and ggml have released version 1.0.0, establishing semantic versioning for their public C APIs and ABIs.

Major versions will mark incompatibilities, while minor and patch releases cover compatible features and bug fixes. The portable C/C++ stack supports multimodal LLM inference across consumer and enterprise hardware through quantization and dedicated backends, with more than 150 model architecture variants. Releases are distributed across major operating systems and packaging channels, supported by expanded CI infrastructure.

We can do better than line-buffered output

nullprogram.com · 5 Nov

CLI · C · Low-Level Programming · Performance

Line buffering needlessly slows terminal programs by flushing on every newline; a deadline-based buffer can preserve prompt output while batching writes.

Instead of detecting newlines, the buffer records activity and flushes after a short idle deadline, around 100 ms, checked between units of work. In tugz, this batches filenames while archive blocks are inflated, avoiding the severe output bottleneck seen in Info-ZIP unzip without changing its interface, and can eliminate extra writes and threads.

Teenage Engineering's PO-32 acoustic modem and synth implementation

github.com · 28 Mar

C · Programming Languages · Open Source

libpo32 is a freestanding C99 library for interacting with Teenage Engineering PO-32 Tonic devices.

It provides a packet transfer protocol, an acoustic modem for DPSK data communication, and a local drum synthesis engine. Designed for embedded and bare-metal environments, it enables building, sending, receiving, and previewing PO-32 patches and patterns via audio.

Fasttracker II clone in C using SDL 2

16-bits.org · 29 Jul

C · GitHub · Linux

A portable Fasttracker II clone developed in C using SDL 2 is now available.

This project provides a recreation of the classic tracker software for modern platforms, including Windows, macOS, and Linux. The release includes source code on GitHub with specific configuration instructions to resolve keyboard shortcut and system permission conflicts.

CJIT: C, Just in Time

dyne.org · 28 Apr

C · Linux · Programming Languages

Appearance is a compact, portable C compiler and interpreter inspired by HolyC and TinyCC.

Developed by the Dyne.org team, this sub-2MB tool allows users to execute C applications and leverage shared dynamic libraries across Windows, macOS, and Linux without complex installations or IDE requirements.

Better JIT for Postgres

github.com · 4 Mar

C · Database · Performance

pg_jitter is a lightweight JIT compilation provider for PostgreSQL 14–18.

It replaces slow LLVM compilation with three alternative backends—sljit, AsmJit, and MIR—reducing overhead from milliseconds to microseconds. This makes JIT beneficial for OLTP workloads and wide-row queries by significantly accelerating expression evaluation and tuple deforming without excessive compilation latency.

Where it came fromHacker NewsLobstersHugging Face BlogCreate a Snapbyte.dev digest and choose C as one of your topics.Build your digest