Feed

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.

Articles from the last 30 days

About C on Snapbyte.dev

This page tracks recent C stories from developer communities and presents them in a format designed for fast catch-up. Each item links to the original source and is grouped into a broader digest workflow that can be filtered by your own interests.

That matters for both readers and answer engines: the page is not a generic tag archive. It is a curated Cnews view inside a personalized developer digest product, which makes the page easier to classify and cite.

Page facts

Topic
C
Sources
Hacker News, Reddit, Lobsters, and Dev.to
Time window
Articles from the last 30 days
Current results
21 curated articles
Direct Win32 API, Weird-Shaped Windows, and Why They Mostly Disappeared
01Friday, April 10, 2026

Direct Win32 API, Weird-Shaped Windows, and Why They Mostly Disappeared

Modern Windows apps, often built on memory-heavy web frameworks, have lost the unique visual identity of the Win32 era. This technical analysis explores how raw Win32 API enables non-rectangular, custom-shaped, and animated windows. While challenging to implement, this low-level control offers a powerful alternative to generic, bloated desktop software, restoring creative freedom to application interface design.

USB for Software Developers: An introduction to writing userspace USB drivers
02Tuesday, April 7, 2026

USB for Software Developers: An introduction to writing userspace USB drivers

Writing USB drivers is accessible without deep kernel knowledge, thanks to userspace libraries like libusb. This guide explains USB enumeration, endpoints, and descriptors using an Android phone in Fastboot mode. By understanding device identification and transfer types (Control, Bulk, Interrupt, Isochronous), developers can create functional drivers in userspace, mirroring simple network socket communication.

Sources:Hacker News363 pts
An Incoherent Rust
03Monday, March 23, 2026

An Incoherent Rust

The Rust ecosystem faces challenges with crate composition and evolution due to coherence and orphan rules. These rules, while necessary for soundness and preventing duplicate implementations, hinder the replacement of foundational crates. The author proposes a long-term shift toward 'incoherent traits' using named implementations and explicit trait bound parameters to bypass current limitations.

Ghostling
04Friday, March 20, 2026

Ghostling

Ghostling is a minimalist terminal demo implementing the libghostty C API and Raylib for rendering. It demonstrates how to integrate the high-performance, accurate terminal emulation and VT sequence parsing found in Ghostty into custom applications. The project highlights the flexibility of libghostty, which provides a renderer-agnostic core capable of supporting advanced terminal features in diverse environments.

Sources:Hacker News294 pts
Fixing a 20-year-old bug in Enlightenment E16
05Wednesday, April 15, 2026

Fixing a 20-year-old bug in Enlightenment E16

A developer fixed a long-standing infinite loop bug in the Enlightenment E16 window manager, which caused desktop freezes by incorrectly implementing Newton's method for text truncation. The fix involved adding iteration limits and safety bounds to prevent oscillations, highlighting the resilience of maintaining mature, legacy software compared to modern supply chain risks.

Sources:Hacker News252 pts
Introduction to Nintendo DS Programming
06Wednesday, April 8, 2026

Introduction to Nintendo DS Programming

This manual provides a comprehensive introduction to Nintendo DS homebrew game development. It covers essential programming topics including hardware architecture, graphics engines, sprite management, input handling, and sound integration using C and C++ with the libnds library. It also explores the legal context and evolution of homebrew hardware development.

Sources:Hacker News216 pts
My first patch to the Linux kernel
07Thursday, March 19, 2026

My first patch to the Linux kernel

The author developed a Type-2 hypervisor and encountered a critical system crash when managing Task State Segments (TSS) during core switching. The issue, stemming from a C integer promotion and sign-extension bug in the kernel's helper function, corrupted virtual memory addresses. The author fixed it by correctly casting segments, resulting in their first accepted Linux kernel patch.

Sources:Hacker News202 pts
C89cc.sh – standalone C89/ELF64 compiler in pure portable shell
08Friday, April 3, 2026

C89cc.sh – standalone C89/ELF64 compiler in pure portable shell

The error occurs because the c89cc compiler is a custom, minimal tool that does not support standard C headers like <stdio.h>. It only understands the C subset it implements and cannot parse preprocessor directives like #include. The 'INTERNAL' error is likely caused by the parser encountering unsupported syntax, leading it to follow an invalid code path.

Sources:Hacker News165 pts
BIO: The Bao I/O Coprocessor
09Saturday, March 21, 2026

BIO: The Bao I/O Coprocessor

The BIO is an open-source RISC-V based I/O co-processor for the Baochip-1x SoC, designed as a compact alternative to the Raspberry Pi PIO. By using an RV32E architecture with custom register queues, it achieves smaller logic area and higher clock speeds while enabling real-time performance through hardware-level blocking semantics and standard C/Assembly tooling.

Sources:Hacker News164 pts
Solod – A subset of Go that translates to C
10Tuesday, April 7, 2026

Solod – A subset of Go that translates to C

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.

Sources:Hacker News154 pts
Show HN: I built a Cargo-like build tool for C/C++
12Thursday, April 9, 2026

Show HN: I built a Cargo-like build tool for 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.

Sources:Hacker News136 pts
Teenage Engineering's PO-32 acoustic modem and synth implementation
13Saturday, March 28, 2026

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

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.

Sources:Hacker News129 pts
Show HN: We built a terminal-only Bluesky / AT Proto client written in Fortran
14Thursday, March 19, 2026

Show HN: We built a terminal-only Bluesky / AT Proto client written in Fortran

Fortransky is a terminal-based Bluesky client built in Fortran. It utilizes a Rust-based native firehose decoder for AT Protocol relay streams and a C-library bridge for network communication. The technical implementation features a TUI, cross-language interoperability, and modular design for handling binary data streams efficiently.

Sources:Hacker News114 pts
Dr. Dobb's Developer Library DVD 6
15Sunday, April 5, 2026

Dr. Dobb's Developer Library DVD 6

The DDJ Developer Library DVD-ROM provides an extensive archive of programming articles, source code, and auxiliary files from Dr. Dobb's Journal, C/C++ Users Journal, SysAdmin, and The Perl Journal, spanning 1988 to 2008. The collection is accessible via standard web browsers on any platform supporting ISO 9660-format DVD-ROMs.

Sources:Hacker News110 pts
A Compiler Writing Journey
16Tuesday, March 24, 2026

A Compiler Writing Journey

This project documents a practical, step-by-step journey to build a self-compiling compiler for a C subset. Covering everything from lexical scanning to ARM assembly and QBE backend integration, the author offers a detailed guide for developers. Following the completion of this project, the author has transitioned to developing a new language, alic.

Sources:Hacker News102 pts
Case study: recovery of a corrupted 12 TB multi-device pool
17Sunday, April 5, 2026

Case study: recovery of a corrupted 12 TB multi-device pool

This case study details the successful recovery of a severely corrupted 12 TB btrfs multi-device pool following a power failure. The process required creating 14 custom C tools to repair the extent and free space trees, resulting in minimal data loss. The author proposes nine specific improvements to btrfs-progs to enhance reliability and recovery procedures.

Sources:Hacker News101 pts
Idiomatic Lisp and the nbody benchmark
18Thursday, April 2, 2026

Idiomatic Lisp and the nbody benchmark

Common Lisp can achieve C-level performance by utilizing its metaprogramming capabilities to build domain-specific languages (DSLs). By implementing a custom kernel-style DSL, the author demonstrates that Lisp code can remain readable, idiomatic, and performance-competitive with C in computational tasks like the nbody benchmark, challenging the notion that Lisp must sacrifice efficiency for expressiveness.

Sources:Lobsters48 pts
Pidgin 3.0 Alpha 1 2.95.0 has been released
19Tuesday, March 31, 2026

Pidgin 3.0 Alpha 1 2.95.0 has been released

Pidgin has released the first alpha of 3.0 (version 2.95.0), focusing on stable protocol APIs and a new AccountSettings architecture. Key features include an overhauled account editor, a new Zulip protocol plugin, and the removal of libxml2 dependencies in favor of SQLite. This release is for developers only and is not yet production-ready.

Sources:Lobsters41 pts
But what about K?
20Tuesday, April 7, 2026

But what about K?

The article explores the source code of ksimple, a compact K programming language interpreter. It analyzes the C implementation, focusing on memory layout, reference counting, and the pervasive use of macros. The author highlights how the code, fitting on a single screen, uses a unique, compact design to handle array processing, verbs, and REPL functionality.

Sources:Lobsters36 pts