Skip to content

release 0.2.1 with automatic buffer cleanup - #6

Merged
hellerve merged 1 commit into
mainfrom
agent/stringbuf-delete-ownership
Jul 26, 2026
Merged

hellerve merged 1 commit into
mainfrom
agent/stringbuf-delete-ownership

Conversation

@hellerve

Copy link
Copy Markdown
Member

What changed

  • declare StringBuf.delete as the type's ownership deleter
  • add an allocation-balance regression test for automatic scope cleanup
  • run CI tests with --log-memory
  • bump installation documentation to 0.2.1

Why

StringBuf.delete was registered but not connected to the delete interface. Carp therefore treated buffers as unmanaged and did not emit scope cleanup. In a self-hosted compiler build this retained more than one million 256-byte buffers during specialization.

Validation

  • carp -x --log-memory test/strbuf.carp — 17/17 passed
  • compiler self-host fixed point remained byte-identical with the implementation enabled
  • compiler gen2 peak footprint fell from 1.332 GB to 1.119 GB

@hellerve
hellerve force-pushed the agent/stringbuf-delete-ownership branch from 37e90d2 to bfd4028 Compare July 26, 2026 19:08
@hellerve
hellerve merged commit ebce6db into main Jul 26, 2026
2 checks passed
@hellerve
hellerve deleted the agent/stringbuf-delete-ownership branch July 26, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant