#c
Wiki 6
- A Simplified Model of Fil-C Walks through how Fil-C makes C/C++ memory-safe โ shadow AllocationRecord pointers, parallel "invisible bytes" for heap pointers, and a GC
- Compiler codegen luck โ a cosmetic edit that ran 6x faster A one-line C rewrite (*p++ = x vs *p = x; p++;) flips Clang between a branch and a branchless csel/cmov, changing quicksort speed 6x
- Data races and the limits of ThreadSanitizer Phil Eaton rebuilds a FastTrack-style race detector, then shows TSan missing obvious races in C and Golang once its fixed budgets run out
- Error-stack discard anti-pattern Suppressing one inconvenient error by clearing a library's entire shared error channel, silently discarding unrelated errors that belong to other code
- Pointer Provenance The idea that a pointer carries not just an address but an identity tied to the allocation it was derived from, which compilers must respect
- The pandemic of incomplete OpenSSL error handling Julian Andres Klode on the widespread anti-pattern of calling ERR_clear_error() to make OpenSSL errors go away โ discarding unrelated errors off the error stack
Toolbox 6
- allyourcodebase GitHub org packaging C/C++ projects for the Zig build system so zig build cross-compiles them
- Fil-C Memory-safe C/C++ compiler giving every pointer a bounds-checked capability and a GC, no rewrites
- forgezero Makefile-free build tool wrapping NASM/GAS/FASM/GCC behind one strict-by-default command
- skiplist Header-only C macros for a lock-free skip list with optional splay rebalancing of hot keys
- tc-lang (Tig) Minimalist systems language transpiling to readable C11, with fat pointers, defer and errors
- yk Meta-tracing system that adds a JIT to an existing C interpreter for about 400 lines of changes