Skip to content

MiniLang 1.3.20 — memory spaces, binary layouts and libraries

Latest

Choose a tag to compare

@n1k0m0 n1k0m0 released this 02 Dec 07:41

MiniLang 1.3.20 — named memory spaces, binary layouts and libraries

Released on 2026-12-02.

Both compilers now support named memory spaces for mostly static level and asset
data, fixed-layout binary structs and classes, and separately compiled native
shared libraries. The compiler CLI and MINILANG_VERSION report 1.3.20.

Named memory spaces

std.memory.Space groups named MiniLang values and bytes in growing native
blocks. add and load copy supported object graphs, preserving shared
references and cycles. loadBytes reads directly into a region-owned bytes
object. seal() makes completed blocks read-only on Windows and Linux;
close() releases the entire space. save() and Space.fromFile() stream a
versioned snapshot with reference relocations.

Values retained after close() are invalid. Snapshots require compatible
struct definitions and do not serialize native GPU or audio handles. Inserting
a managed reference from outside a space after copying its graph makes the
snapshot reject that external pointer. See Memory spaces.

Binary structs and classes

binary struct and binary class use declaration-order fields with natural
alignment up to 8 bytes. Integer and floating-point fields have fixed widths
and checked assignments. bytes, string, array and supported typed arrays
occupy 8-byte MiniLang references to separately stored data. The GC traces
those fields; memory-space copies and snapshots relocate them. Introspection
includes nativeBinarySize, nativeBinaryOffset, nativeBinaryPtr and
nativeBinaryRefOffset.

Reference fields are MiniLang object references, not C payload pointers.
Binary classes cannot use inheritance, and binary fields cannot be optional.
See Binary layout.

Native shared libraries

--emit library creates a Windows DLL or Linux/MinUX shared object from
exported MiniLang functions. The Python and self-hosted compilers produce
byte-identical library images for each target in the shared-library regression.
See the language reference for supported exported
signatures and the --emit command line.

Verification

  • The Python and self-hosted Windows compilers passed the binary-layout,
    memory-space, snapshot and cyclic-reference regressions.
  • The same binary-reference test ran on Linux under WSL with both compilers,
    and passed with Windows concurrent GC enabled.
  • Shared-library callers passed on Windows and Linux. Both compilers generated
    byte-identical MinUX libraries; MinUX guest execution was not performed.
  • Release image sizes and hashes are recorded in the
    verification matrix.

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