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

ppmpreetham/BUI

github.com · 6 Nov

C · UI

BUI is Blender's GPU-accelerated UI decoupled into a standalone library with a small C core and bindings for Python, Rust, JavaScript/React, C, C++ and Dear ImGui.

It lets developers build native desktop apps with Blender's widgets, interactions, themes and expression-based number editing, without installing Blender or using a browser. It supports tkinter and Qt-style APIs, HTML/CSS, gpui syntax and native components, plus CPU or opt-in Direct3D 11/OpenGL 3.3 rendering with damage-based redraws and headless mode.

crustc: entirety of `rustc`, translated to C

github.com · 28 Jun

C · Programming Languages · Rust

Cilly is a new Rust compiler backend that translates Rust code into C, enabling Rust development on obscure hardware or platforms that lack native LLVM or GCC support.

By generating platform-specific C code through intelligent introspection, it bridges the gap for architectures like Plan9, offering a solution to the bootstrap paradox and expanding Rust's reach.

NetHack 5.0.0

nethack.org · 2 May

C · GitHub · Open Source

The NetHack DevTeam has released NetHack 5.0.0, introducing major architectural updates including C99 standard compliance, improved cross-compiling support, and a transition to Lua-based processing for compilers.

This release is incompatible with previous save files. Developers welcome bug reports and pull requests to further refine this new version.

How to Make a Nintendo 64 Game in 2026

phoboslab.org · 4 Aug

C · Performance · Software Architecture

Developing a game for the N64 in 2026 is possible by porting a C engine to use Libdragon.

By leveraging efficient raycasting, custom rendering pipelines, and hardware-specific optimizations for the N64's memory and coprocessors, it is possible to achieve stable performance. The process involves using modern toolchains and real hardware for development, culminating in physical distribution.

Flux 2 Klein pure C inference

github.com · 18 Jan

Artificial Intelligence · C · Open Source

Salvatore has released an ambitious open-source project that implements the FLUX.2-klein-4B diffusion model entirely in C.

The key innovation is the total removal of the Python stack, requiring no PyTorch, CUDA, or heavy runtime dependencies. Remarkably, the codebase was developed in a single weekend using Claude Code and Claude Max, marking the author's first project with zero human-written lines of code. The software supports text-to-image and image-to-image generation with optional MPS and BLAS acceleration for performance. It features an integrated Qwen3-4B text encoder and manages memory by releasing the encoder after use to maintain an 8GB footprint during diffusion. This project serves as a demonstration of how modern AI can assist in creating high-performance, accessible inference systems from scratch.

abedegno/borland-reborn

github.com · 29 Nov

CLI · C · C++ · Low-Level Programming · Programming Languages

borland-reborn recovers the source of Borland’s classic DOS compilers from their published executables and rebuilds them byte for byte with the original Borland toolchain.

Its first project, Borland C++ 2.0 (1991), covers 22 executables including BCC.EXE, protected-mode tools, utilities, runtime modules, and a native compiler port. Readable names, comments, documented behavior, and a modding build distinguish it while preserving binary equivalence and testing compiler outputs.

Wake up! 16b

hellmood.111mb.de · 24 May

C · Low-Level Programming · History

This 16-byte x86 DOS assembly program, created for the Outline Demoparty, generates a Sierpinski fractal on screen while simultaneously outputting it as audio via the PC speaker.

By manipulating VGA memory and using cellular automaton logic, the code produces complex mathematical patterns and gritty bytebeat sounds, demonstrating advanced sizecoding techniques and hardware-level interaction in real-mode DOS.

Zig: Build System Reworked

ziglang.org · 30 May

C · Performance · Programming Languages

The Zig development log for 2026 highlights significant updates, including a reworked build system for faster performance, LLVM backend incremental compilation, and a redesigned type resolution system.

Key additions include experimental evented I/O implementations, improved package management with local caching, and a strategic migration to native Windows APIs, alongside ongoing efforts to replace vendored libc with Zig-native implementations.

da-luce/astroterm

github.com · 28 Oct

CLI · C · Terminal · TUI · Space

astroterm is a C-based terminal planetarium that renders real-time positions of stars, planets, the Moon, and constellations as lightweight ASCII visuals.

Users can inspect past, present, or future skies by specifying date, UTC time, latitude, longitude, or city, while adjusting brightness thresholds, animation, colors, grids, Unicode or Braille rendering, labels, and metadata. It distinguishes itself through precise lunar phases, constellation figures, and fast, customizable command-line rendering without a telescope.

New Nginx Exploit

github.com · 12 May

Backend · Cybersecurity · C

Researchers discovered a critical heap buffer overflow in NGINX's ngx_http_rewrite_module, enabling unauthenticated remote code execution.

The vulnerability stems from a mismatch in buffer size calculation versus data copying when handling the is_args flag. Exploitation leverages heap feng shui to redirect memory pointers and trigger system commands, requiring updates to patched versions.

When 'if' slows you down, avoid it

easylang.online · 4 May

C · Low-Level Programming · Performance

Branch mispredictions hinder CPU performance by forcing pipeline restarts.

By replacing conditional branches with branchless alternatives—such as using conditional increment instructions—developers can maintain linear control flow. Although branchless code may involve redundant memory writes, the performance gains on modern architectures are significant when dealing with unpredictable, large datasets.

OpenSSL: Buffer overflow in EVP_EncodeBlock() (CVE-2026-121481, CVSS 9.8)

github.com · 20 Nov

Cybersecurity · C · Low-Level Programming

OpenSSL fixes CVE-2026-121481, a CVSS 9.8 buffer overflow in `EVP_EncodeBlock()`, by returning `-1` for NULL buffers, negative lengths, and encoded sizes exceeding `int`.

Similar validation is proposed for `EVP_DecodeBlock()`, alongside correcting `base64encode()` length checking in `http_client.c`. Tests and documentation are added. The vulnerability can be triggered through `openssl s_client` with a large `-proxy_pass`, supplied via an environment variable to avoid command-line length limits.

llama.cpp v0.6.0 released with MTP speculative decoding for Qwen4Exp and lots more

github.com · 5 Oct

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

llama.cpp v0.6.0 adds the llama_batch_ext API and llama_process() for mixed token/embedding batches and MTP/deepstack state embeddings.

It supports GLM-5.3-Flash, Clef, Ling 3.0 VL, Nimble, and Qwen4Exp MTP speculative decoding, which delivers about 1.5× faster decoding on DGX Spark. The release introduces the /v1/systemone decision-model API, a Hugging Face Hub-powered Web UI and model downloads, new Metal and Vulkan attention kernels, and ggml v0.26.0.

Windows 9x Subsystem for Linux

codeberg.org · 13 May

C · Linux · Operating Systems

WSL9x is a Windows 9x Subsystem for Linux that enables running a modern Linux kernel cooperatively alongside the Windows 9x kernel.

It uses a custom VxD driver, a patched Linux kernel, and a DOS-based wsl.com client to allow simultaneous execution of applications from both operating systems without requiring a reboot.

What is malloc doing, anyway?

benmandrew.com · 8 Nov

C · Linux · Low-Level Programming · Operating Systems

In glibc, malloc avoids costly kernel calls by acquiring memory in larger chunks and serving subsequent small allocations from its internal pool.

A program making 1,000 malloc(16) calls triggers only two brk syscalls: one queries the program break and one expands the heap by 132 KiB. The process address space contains regions such as text, data, bss, heap, libc, and stack; huge gaps between them are typically unmapped and consume no physical memory.

timescale/pg_vectorsearch

github.com · 14 Oct

Artificial Intelligence · C · Database · Performance · PostgreSQL

pg_vectorsearch is an alpha PostgreSQL extension for high-performance approximate nearest neighbor (ANN) search.

Its PRISM index targets datasets exceeding 100 million vectors, using hierarchical routing, RaBitQ quantization with theoretical error bounds, SIMD-optimized distance computation, and PostgreSQL buffer caching. It supports inserts, updates, deletes, rebalancing through prism_rebalance, and existing pgvector vector or halfvec columns. Two-stage filtering reduces full-precision reranking while preserving recall and improving query and index-building speed.

prabanta-dev/janas

github.com · 12 Oct

Artificial Intelligence · C · Large Language Models · Performance · LLM Benchmarks

Janas is an experimental, dependency-free C toolkit whose Janas-LLM runs large mixture-of-experts language models on CPU or GPU even when model weights exceed RAM.

It streams needed experts from NVMe storage and caches frequent ones, enabling Qwen3-Next-80B (48.4 GB) on a 32 GB laptop. On the developer’s Intel laptop it outperformed llama.cpp on 13 Q4_K_M models, reaching 37 tok/s with drafts and 24 without.

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