A blog post revisits a pattern from Ben Klemens' 2014 book 21st Century C that uses C's designated initializers, combined with a struct and macro, to let function calls take optional, named arguments with default values. The technique relies on two C-specific behaviors not adopted by C++20: initializers can appear in any order, and repeated designators simply overwrite earlier ones, with the last value taking effect.
quuxplusone.github.io
· 2026-11-18
A blog post lays out a curated list of programming books the author considers essential, split into 'introductory streetfighting' and 'brawling combat' tiers. Recommended titles include works by Stepanov, Stroustrup, Dijkstra, Knuth, Warren, and the official Rust Programming Language book, alongside pointed dismissals of mainstream guides like Clean Code and Code Complete. The author frames the selections as texts for serious practitioners rather than casual best-of lists.
nick-black.com
· 2026-11-15
A developer follow-up to an earlier 'Why Zig Over Rust' post examines Zig against C, noting both languages share goals of being small, garbage-collector-free, and close to the machine. The author highlights how C's common pattern of using goto for reverse-order resource cleanup on error paths is replaced in Zig by defer statements, illustrated with a user-allocation example compiled using Zig 0.17 and clang on macOS.
mtsoukalos.eu
· 2026-11-13
A vulnerability was found stemming from musl libc's crypt function returning the sentinel string "*" when a password is too long to hash, which collides with the Unix convention that "*" denotes a locked account. Because sshd hashes login attempts for locked accounts to prevent timing attacks, this collision allows an unauthenticated user to obtain a shell—potentially as root—on musl-based systems lacking PAM, such as the official Alpine AWS image.
sunshowers.io
· 2026-11-06
A technical blog post lists concrete cases where GCC and Clang do not conform to the ISO C standard by default, including treatment of the asm keyword as a reserved extension and GCC's hardcoded FLT_ROUNDS macro that ignores runtime rounding-mode changes via fesetround. The author also flags unfinished coverage of the standard's five floating-point pragmas as an area of ongoing non-conformance.
sebsite.pw
· 2026-10-13
A developer who learned Rust before C published a blog post listing surprising features of the C language, aimed at Rust programmers new to C. Topics include C's historically missing boolean type (added via stdbool.h in C99 and made a true primitive in C23) and its use of null-terminated strings instead of Rust's length-tracked string slices.
bd103.dev
· 2026-10-08
An educational retrospective on teaching C explains why types like int, short, and long have no fixed bit-width in the language specification. The author recounts how sizeof(int) returned 2 bytes on old 386 machines versus 4 bytes on most modern systems, and recommends students use the stdint.h header for fixed-width types like int8_t and uint16_t when consistent sizes are required.
pikuma.com
· 2026-09-25