Skip to content

Releases

MiniLang Python Compiler 1.3.10

Choose a tag to compare

@n1k0m0 n1k0m0 released this 21 Nov 13:21

MiniLang 1.3.10

MiniLang adds fixed variable types through var name as Type = expression.
Fixed bindings check each write, including assignments from closures and
through module globals. Optional types accept void. A dynamic mismatch
returns error 1308 before the store. The compiler rejects incompatible
primitive literals and conflicting annotations.

function add(bonus as int) returns int
  var score as int = 10
  score += bonus
  return score
end function

Existing single-write annotations and function contracts keep their behavior.
Both compilers can remove checks for proven copies and supported integer
expressions. Small typed integer and float helpers can be inlined, and the
generated code can keep short float expressions in registers across operations.
This release also includes guarded float loop and array construction
optimizations.

Both compiler CLIs and MINILANG_VERSION report 1.3.10.
The Python release contains the reference compiler source. The self-hosted
release provides native Windows x64, Linux x64 and packed MinUX x64 packages.
The packages include the matching standard library, manifests and SHA-256
sidecars. See the MinUX guide for platform prerequisites.

MiniLang Python Compiler 1.3.9

Choose a tag to compare

@n1k0m0 n1k0m0 released this 15 Nov 11:58

MiniLang Python Compiler 1.3.9 adds native minux-x64 output, shared SysV FFI, executable packing and MinUX standard-library integration.

The tagged source archive includes the compiler, native adapter sources, tests and updated documentation. A SHA-256 sidecar is attached. Ready-to-run Windows, Linux and MinUX compilers are available in the native compiler release.

Validation: 230 Python regression tests; 146 native harness tests; 61 unit/contract checks with one optional NASM skip; eleven packed MinUX fixtures agree across Python/direct/MLO. The Windows and Linux release compilers reached byte-identical native selfhosting fixed points. The MinUX implementation reached a full MLO stage2/stage3 fixed point before the version-only release bump and documentation annotations; the exact 1.3.9 compiler package is separately checked in MinUX.

Release notes · Verification matrix · MinUX setup and limits

MiniLang Python Compiler 1.3.8

Choose a tag to compare

@n1k0m0 n1k0m0 released this 14 Nov 18:03

MiniLang Python Compiler 1.3.8 adds stateful methods to std.io.file.FileHandle and std.tls.Stream, plus optional owning TCP/UDP socket wrappers in the shared standard library. Existing functional APIs remain available.

The tagged source archive includes the compiler, standard library, tests and documentation. Its SHA-256 sidecar is attached.

Validation: Python suite 230/230; native suite 146/146; Python and self-hosted compilers produced byte-identical Windows and Linux compiler builds with identical build options. The extracted source archive compiled and ran a Hello example.

Release notes · Verification matrix

MiniLang 1.3.7

Choose a tag to compare

@n1k0m0 n1k0m0 released this 14 Nov 08:26

MiniLang 1.3.7 adds optional dependency-free executable packing for Windows x64 PE and Linux x64 ELF. --pack uses a built-in deterministic LZ4 encoder and an embedded loader that decompresses code in memory on startup. --unpack-exe restores the original file byte-for-byte. The legacy UPX mode remains available explicitly with --pack=upx --upx PATH.

This release provides the Python reference compiler as a complete source archive (Python 3.11+ required). Ready-to-run Windows and Linux native compiler packages are in the matching self-hosted release.

Validation: 229/229 Python tests, 145/145 native harness tests, 12 byte-identical packed images across Python/Windows/Linux compilers and both pipelines, exact restoration and corruption rejection, byte-identical Windows/Linux self-hosting fixed points, and zero MiniDoc warnings. The extracted source archive passed version and Hello-build smoke tests.

Packing a large compiler image reduces size by about 77.6%, with a measurable startup latency cost; it remains opt-in. See the packing guide, evaluation, and release hash matrix.

Download SHA-256
MiniLangCompilerPy-1.3.7-source.zip 2e4e608f58fc26fb3544903d0494321de29817b21083eb4cee06a8bf2aebf8c4

A matching .sha256 sidecar is attached.

MiniLang 1.3.6

Choose a tag to compare

@n1k0m0 n1k0m0 released this 14 Nov 06:46

MiniLang 1.3.6 improves OOP method dispatch in both compiler implementations. One- and two-candidate method sets use checked direct calls; exact class parameters can avoid virtual lookup. The Python backend also preserves outgoing stack arguments for dynamic method calls with more than eight total arguments.

The source compiler reports 1.3.6 through --version, -version, and MINILANG_VERSION.

  • Passed: 228 Python integration tests; 45 unit tests (one optional skip); 144 native harness tests; 382 additional native checks.
  • Windows/Linux OOP parity: 144 byte-identical images across Python, Windows-native, Linux-native, and object/monolithic pipelines.
  • Windows and Linux compiler builds reach byte-identical self-hosted fixed points. See the version/hash matrix.
  • The OOP report includes compiler time, executable size, runtime samples, and limitations.

This source package requires Python 3.11 or newer. Ready-to-run Windows and Linux native compilers are in the matching self-hosted release.

Asset Bytes SHA-256
MiniLangCompilerPy-1.3.6-source.zip 2,635,842 6de4879d93224c9378667c8dcfb8f6c1038fdaa76b56543624e42d06e3ef6216

The matching .sha256 sidecar is attached and verified.

MiniLang 1.3.5

Choose a tag to compare

@n1k0m0 n1k0m0 released this 13 Nov 22:12

MiniLang 1.3.5 integrates direct tag/header checks for typeof literal comparisons in both compilers. It repairs qualified type resolution, shadowed namespace/enum members and inline error propagation under try(...), and retains the 1.3.4 conditional-loop parity fix.

--version, -version and MINILANG_VERSION report 1.3.5.

  • Seven complete compiler builds reach a byte-identical fixed point per target, including Python bootstrap, native self-hosting, MLO/monolithic and Windows/Linux crossbuilds.
  • Passed: 227 Python integration checks, 45 unit tests (one optional NASM skip), 143 native harness tests, 257 outer steps, 288 focused/OOP parity images and 192 incremental checks.
  • All 53 std sources and 351 generated std documentation files match. MiniDoc reports zero warnings.
  • Same-source compiler medians: native MLO 76.10 → 43.54 s (-42.8%); Python 58.36 → 64.26 s (+10.1%). Native ML is faster in all three paired rounds. Python's paired changes reverse direction, so no consistent compile-time gain is established. The report records all samples, variability, targeted generated-program timings, memory and image sizes; other desktop builds were active.
  • Extracted packages pass version flags, media ABI checks and six cross-host/target hello builds with matching bytes.

Read the release notes, correctness and performance report and version/hash matrix.

The source package requires Python 3.11 or newer. Ready-to-run native compilers are in the matching ML release.

Asset Bytes SHA-256
MiniLangCompilerPy-1.3.5-source.zip 2,618,945 ead10ccec2ba978de77faa217d05c097a94b5435339cd9c56dc26231e298f3fe

Matching .sha256 sidecars are attached. Archive hashes were verified before publication.

MiniLang Python Compiler 1.3.4

Choose a tag to compare

@n1k0m0 n1k0m0 released this 13 Nov 10:55

MiniLang 1.3.4 restores Python/native byte parity for indexed reads in else-if conditions and switch case values/range bounds. It retains compact single-use loops and the native register-name dispatch optimization, and reduces temporary records in native loop analysis.

Both --version, -version and MINILANG_VERSION report 1.3.4.

  • Seven full compiler builds are byte-identical within each target, including Python bootstrap, native self-hosting, monolithic/MLO and Windows/Linux crossbuilds.
  • Passed: 222 Python integration tests, 45 unit tests (one optional NASM skip), 138 native harness tests, 249 outer checks, 216 focused/OOP parity images and 192 incremental-build checks.
  • All 53 std sources and 351 generated std documentation files match; MiniDoc completed without warnings.
  • The affected native-generated loop microbenchmarks use about 3–16% less runtime on Windows/Linux. Full compiler medians remain within overlapping ranges: native 51.83 s and Python 45.60 s; peak process-tree commitment is effectively unchanged.
  • The extracted release packages pass CLI, native-media ABI and six cross-host/target hello builds with matching bytes. The Python source archive's own standard library is exercised.

Read the release notes, performance evaluation and version/hash verification matrix.

The source package requires Python 3.11 or newer. Ready-to-run Windows/Linux compilers are available in the matching native release.

Asset Bytes SHA-256
MiniLangCompilerPy-1.3.4-source.zip 2,560,452 631c60c160b792d8252a7e134d99552915d5d7d77dd68abb556a3b00a76e1564

Matching .sha256 sidecars are attached. Archive hashes were verified before publication.

MiniLang Compiler 1.3.3

Choose a tag to compare

@n1k0m0 n1k0m0 released this 09 Nov 21:15

MiniLang Compiler 1.3.3

This release improves generated application code and reduces temporary work
inside both compiler implementations. Recompile applications to benefit;
previously compiled executables keep their existing behavior. No new language
syntax or optimization flag is required.

Generated application code

  • Fuse eligible string-concatenation chains of three to eight pure operands
    into one result allocation. Checked fallbacks preserve evaluation order,
    mixed-value behavior, error propagation and GC roots.
  • Keep the fields of proven nonescaping local structs in rooted stack slots,
    including structs whose fields have checked type annotations. Constructor
    type checks, optional fields and source error context are preserved.
    Aliases, escapes and unsupported uses retain ordinary object allocation.
  • Fuse direct decode(slice(bytes, offset, length)) calls into one string
    allocation, retaining strict bounds and argument order. This also avoids
    the temporary byte copy in partial StringBuilder buffers.

On an AMD Ryzen 9 9900X, the eight-string benchmark used 73% less execution
time on Windows and 72% less under Linux/WSL, with 76% less managed heap growth.
The typed-local-struct case used 32% and 41% less execution time respectively
and eliminated 16 MB of heap objects in its bounded workload. These are
specific microbenchmarks, not predictions of whole-game or server speedups.
Fusion can increase generated instruction size slightly.

Compiler internals

  • Emit ordinary/indexed memory operands directly instead of constructing
    temporary encoding records and short byte arrays.
  • Avoid optional assembly-listing interception on normal Python builds and
    use fixed-schema Python token records.
  • Start native AST arenas smaller and serialize MLO code/data sections without
    duplicating them into paged buffers.
  • Write normalized MLO patch fields through known offsets and use one x64
    store for four-byte metadata values contained within a page. Boundary
    fallbacks and the MLO version 2 layout are preserved.

Compact-relocation prototypes were measured and rejected because their build
time or memory tradeoff was unfavorable. Full native self-build timing varies
too much to claim a reproducible overall speedup from the follow-up changes.

Validation and compatibility

Both CLI flags, -version and --version, and the compile-time MINILANG_VERSION
constant report 1.3.3. Release qualification rebuilds the compiler through
Python bootstrap, native self-hosting and cross-target compilation, checking
byte equality separately for Windows x64 and Linux x64. The 53 standard
library sources are byte-identical between repositories.

See the release verification matrix
for version-stamped compiler hashes and release checks. Detailed baseline,
performance, regression and parity evidence is recorded in the
4 November evaluation and
6 November evaluation.
Their development artifact hashes remain historical; use the release matrix
and package manifests for 1.3.3 downloads.

Distribution

This Python reference release provides source and requires Python 3.11 or
newer. A source ZIP with a SHA-256 sidecar is attached to the release.
Ready-to-run Windows x64 ZIP and Linux x64 tar.gz packages are in the
self-hosted release.

Download verification

All three archives were extracted and checked. Native package manifests match
the tagged source revision; both media bridges report ABI 1. The extracted
Python, Windows and Linux compilers built and ran byte-identical hello programs
for both targets. Verify downloads using the attached SHA-256 sidecars.

Archive SHA-256
MiniLangCompilerPy-1.3.3-source.zip 52655bb173d6f0553de3dd1b04b88640ae1878ea09b28892ca5be9e0f8638284

MiniLang Compiler 1.3.2

Choose a tag to compare

@n1k0m0 n1k0m0 released this 31 Oct 12:13

MiniLang Compiler 1.3.2

This patch release restores byte-identical output for OOP programs compiled by
the Python reference compiler and the self-hosted compiler. It supersedes the
cross-compiler binary-parity limitation documented for 1.3.1.

The compilers now agree on direct class factory calls, generated constructor
source positions and parameter checks, and inferred return types of static
class methods, including qualified private methods. Constructor calls with
more than four arguments use the same x64 calling convention in both hosts.

The new binary-parity regression compiles eleven class and interface programs for
Windows x64 and Linux x64 through both monolithic and object pipelines,
compares SHA-256 hashes, and runs each program. The compiler source also
reaches byte-identical Python and self-hosted builds and a self-hosted fixed
point on each target. The companion
self-hosted compiler release
contains Windows and Linux binary packages. This Python release contains source.

MiniLang Compiler 1.3.1

Choose a tag to compare

@n1k0m0 n1k0m0 released this 31 Oct 11:36

MiniLang Compiler 1.3.1

Both compiler implementations report 1.3.1 through --version and the
compile-time MINILANG_VERSION constant.

Object-oriented language support

The classes and interfaces guide documents the complete syntax
and constructor and access rules.

  • class adds single inheritance with extends, virtual instance methods,
    mandatory override, and super.method(...). Overrides must preserve the
    inherited parameter and return types and visibility. final methods and
    classes cannot be overridden or extended. Abstract classes may declare
    abstract methods, which concrete descendants must implement.
  • Fields and methods support public, protected, and private. Access checks
    cover this, stable aliases, typed parameters, and qualified static calls.
  • An init(...) method defines constructor parameters and may use defaults.
    Constructors initialize fields before calling the most-derived initializer.
    Without init, only public fields are constructor parameters. Calls through
    class values use the same accepted positional arities as direct calls.
  • Interfaces may extend one or more interfaces. Implementations must satisfy
    inherited methods, and runtime is recognizes inherited interface identities.
  • Dynamic method calls use a precomputed candidate index and a balanced
    fallback search after their two-entry inline cache misses. No whole-program
    speedup is claimed from this dispatch change.

Validation and distribution

The new positive and rejection fixtures cover constructors, visibility,
overrides, abstract/final rules, dynamic dispatch, and interface inheritance.
The self-hosted compiler reaches a byte-identical fixed point on both targets.
Python and self-hosted compilation produce behaviorally matching OOP fixtures,
but their generated image bytes differ for those fixtures. The Python compiler
release is source-only; Windows x64 and Linux x64 binary
packages are published in the
self-hosted compiler release.