Skip to content

MiniLang 1.3.15 — frame-paced concurrent GC

Choose a tag to compare

@n1k0m0 n1k0m0 released this 30 Nov 10:11
· 9 commits to main since this release

MiniLang 1.3.15 — optional frame-paced concurrent collection

Released on 2026-11-30.

This release adds gc_frame_step(budgetMicroseconds) to both compilers. It
helps real-time applications distribute background garbage-collector work over
frames. Existing programs require no source changes: pacing is only enabled
when the new builtin is called with a positive budget.

Behavior

On Windows x64, compile with --gc-concurrent and call
gc_frame_step(budgetMicroseconds) once per frame, typically after presenting
the frame. A positive integer grants the collector a soft work interval.
Marking and sweeping check the interval periodically, then wait for the next
grant. This is a soft budget, not a hard frame-time guarantee.

gc_frame_step(0) disables pacing and wakes a waiting worker. Negative or
noninteger arguments return false. The builtin also returns false when
concurrent collection is unavailable, including current Linux and MinUX
targets. Programs that never call it keep the collector's previous behavior.

Explicit gc_collect() and allocation-failure recovery bypass frame pacing
so synchronous callers cannot wait indefinitely for a game loop to grant
another frame. The feature is opt-in at compile time and at run time.

Verification

Both compiler implementations passed the shared Windows concurrent-GC matrix:
frame grant and zero-budget behavior, allocation pressure, emergency
collection, unsupported targets, and byte-for-byte equality between the
monolithic and object pipelines and the Python reference compiler. Repeated
frame-slicing runs passed for both compilers. See the language reference for
the API contract and the repository changelog for earlier changes.

Native compiler packages
and the Python reference source
are released from their corresponding version tags.