Skip to content

Registry facades bundle 6: c.libjpeg-turbo, c.protobuf-c, c.libpng, c.libuv (D251-D255) - #3669

Merged
ehartford merged 9 commits into
mainfrom
bundle6-facades
Nov 28, 2026
Merged

ehartford merged 9 commits into
mainfrom
bundle6-facades

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Summary

Delivers Bundle 6 of Epic #3115 (4 C library registry facts files + zero-unsafe UATs + 5 delegated WCL extensions D251–D255), verified under one seed-driven battery:

  • D251 / D252 (8e4762783): Out-allocated owned byte buffers (buffer out param P len param L freed by F), implicit-length size-checked buffers (min <fn>(param A) and stride ... table <TBL>[param F]), and hyphen-safe contract names.
  • c.libjpeg-turbo (a52f6a5e5, closes Registry facade for c.libjpeg-turbo (images): complete, reviewed, with a zero-unsafe UAT #3154): Complete cited registry/c/libjpeg-turbo/facts.with + zero-unsafe uat/libjpeg_turbo.uat (TurboJPEG 2 & 3 compress/decompress/header round-trip).
  • D253 (e78b370c0): Borrow-only *const T resources from immutable C globals (<R>.<global>() -> Borrowed<R>[T]) and producer generics.
  • c.protobuf-c (ddcf103e0, closes Registry facade for c.protobuf-c (serialization): complete, reviewed, with a zero-unsafe UAT #3163): Complete cited registry/c/protobuf-c/facts.with (11/11 presented safely) + zero-unsafe uat/protobuf_c.uat (real protoc-c Person with nested Tag and repeated fields).
  • D254 (43bf85780): Dependent-resource parent drop, retained modeled resource parameters, const-widened callback handle accessors, and row-pointer image buffers (rows height ... rowbytes ...).
  • c.libpng (f01405e64, closes Registry facade for c.libpng (images): complete, reviewed, with a zero-unsafe UAT #3153): Complete cited registry/c/libpng/facts.with (60 presented safely, zero proof contradictions) + zero-unsafe uat/libpng.uat (4x4 RGBA PNG write + read + pixel verification + png_set_error_fn).
  • D255 (452af63a9): C struct-prefix subtyping (extends Base, reads|fills|updates param N as T [len param L]), fat-pointer/iovec buffers (buffer ... via <init_fn>), borrowed in-place resources (returns borrow Loop + init_on), and async event-loop handles/requests (async_close, read_pair, close_release, async_req).
  • c.libuv (d81809a98, closes Registry facade for c.libuv (event loop): complete, reviewed, with a zero-unsafe UAT #3160): Complete cited registry/c/libuv/facts.with (147 presented safely, zero proof contradictions) + zero-unsafe uat/libuv.uat (TCP echo server with uv_read_start alloc+read callbacks and uv_write, timer, uv_fs reads, and deterministic uv_close callback ordering).

Closes #3154
Closes #3163
Closes #3153
Closes #3160

Verification

  • Iterate tier: behav_d251–behav_d255 all PASS (including under --debug-alloc), uat libjpeg_turbo, uat protobuf_c, uat libpng, uat libuv all PASS.
  • Seed-driven battery running on d81809a98; verdict will be posted once green.

@ehartford

Copy link
Copy Markdown
Contributor Author

Seed-driven battery on 291a97e34 (macOS arm64, WITH=$PWD/src/main, WITH_CODEGEN_EMIT_WIDTH=2):

out/battery/battery.log: rc=0 green

@ehartford
ehartford marked this pull request as ready for review November 28, 2026 06:04
@ehartford
ehartford merged commit a33636c into main Nov 28, 2026
1 check passed
@ehartford
ehartford deleted the bundle6-facades branch November 28, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant