Programming · free software · the open webSubscribe via RSS

The notebook index

Post archive

5 posts in C and compilers.

  • Go’s new JSON packages separate syntax from meaningC and compilers · 08 Nov 2026

    Go 1.27’s stable JSON v2 API separates JSON text processing from mapping JSON values to Go types. Its stricter defaults can expose assumptions at an interface boundary, so migration is a data-contract change to test deliberately.

  • Go generic methods add abstraction inside a receiver’s namespaceC and compilers · 05 Nov 2026

    Go 1.27 adds generic methods, but keeps interface method sets non-generic. That boundary changes where reusable operations belong and what an interface can promise.

  • Cross compilation: build, host and target are different questionsC and compilers · 09 May 2026

    The build, host, and target labels describe a compiler’s own construction and output roles. Ordinary package cross compilation adds separate questions about headers, libraries, and where the result can run.

  • A closure in C is a function plus an environmentC and compilers · 05 May 2026

    A callback and an explicit context pointer form a portable way to represent closure-like behavior in C. Keeping the environment visible makes its lifetime and calling convention part of the design.

  • C is an abstract machine, even on familiar hardwareC and compilers · 01 May 2026

    C arithmetic follows language rules, not a promise about the processor’s usual instruction. That distinction matters when a compiler reasons about overflow and when code needs a checked result.