Skip to content

Releases

0.1.5

Choose a tag to compare

@github-actions github-actions released this 01 Nov 19:29
Immutable release. Only release title and notes can be modified.
3d2af58

Release Notes

Released on 2026-11-01.

  • Speed up Luhn checksums by computing both alternating sums in one pass over
    the input. The 16-, 256-, and 4,096-digit checksum benchmarks ran 4.0× to
    5.1× faster. (#3088)
  • Load Python plugins created after the application was compiled with
    importlib.machinery.SourceFileLoader. On Unix, os.fsdecode() and
    os.fsencode() now round-trip filenames containing invalid UTF-8 bytes.
    (#3051,
    #3057)
  • Use itertools.product(), permutations(), combinations(), and
    combinations_with_replacement() without materializing the result set.
    collections.UserDict, UserList, and UserString are also available.
    (#3048,
    #3084)
  • Read and write CSV in runtime-loaded modules, including through
    csv.DictReader, csv.DictWriter, and registered dialects. Create private
    temporary files and directories, including binary NamedTemporaryFile objects.
    (#3096,
    #3065,
    #3076)
  • Collect unreachable cycles with gc.collect() in the boxed runtime. If a
    Python finalizer makes an object reachable again, its descendants survive.
    (#3092)
  • Run all 68 textwrap and 24 fnmatch tests from CPython 3.14.5 natively on
    Linux at both -O0 and -O3.
    (#3047,
    #3075)

Full history for 0.1.5

Install imre 0.1.5

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://labs.astral.sh/imre/releases/0.1.5/imre-installer.sh | sh

Download imre 0.1.5

File Platform Checksum
imre-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
imre-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
imre-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.1.4

Choose a tag to compare

@github-actions github-actions released this 29 Oct 13:37
Immutable release. Only release title and notes can be modified.
3629f55

Release Notes

Released on 2026-10-29.

  • Prevent out-of-bounds reads on truncated datagrams and exposure of uninitialized
    bytes on Linux TCP sockets when receiving with MSG_TRUNC.
    (#2875,
    #3005)
  • Raise a catchable MemoryError when Imre cannot allocate path components or
    bind function arguments. If recording a traceback runs out of memory, the
    original exception remains available through MemoryError.__context__.
    (#2975,
    #3038,
    #2467)
  • Avoid native stack overflows when ast.parse() converts nested statements,
    when hashing deeply nested collection keys, and when runtime-loaded generators
    resume one another.
    (#2936,
    #2963,
    #3033)
  • Import difflib and textwrap in runtime-loaded Python modules. On POSIX,
    those modules can also wait for file descriptors with select.select() or
    select.poll().
    (#2488,
    #2797,
    #2776)
  • Use mapping patterns, keyword class patterns such as case Point(x=value),
    and generator expressions with multiple for clauses in runtime-loaded
    Python modules.
    (#2442,
    #2446,
    #2431)
  • Stream JSON to Python text writers with json.dump() in runtime-loaded
    modules, and enforce the configured integer digit limit when decoding JSON.
    (#2794,
    #2805)
  • Speed up native container access and decimal integer parsing. Across two
    pinned Linux benchmark runs, median runtime fell 12% for telemetry and 16%
    for Base45.
    (#2694)

Full history for 0.1.4

Install imre 0.1.4

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://labs.astral.sh/imre/releases/0.1.4/imre-installer.sh | sh

Download imre 0.1.4

File Platform Checksum
imre-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
imre-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
imre-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.1.3

Choose a tag to compare

@github-actions github-actions released this 27 Oct 18:55
Immutable release. Only release title and notes can be modified.
4ea0a27

Release Notes

Released on 2026-10-27.

  • Relar is now Imre. The compiler executable is imre, and compiled programs
    report imre as their Python implementation.
    (#397)
  • Run a script with imre hello.py or select Imre from uv with
    uv run --python imre hello.py. Both compile the script to native code.
    (#302)
  • Export the native extension SDK with imre build-target --output-dir sdk.
    The SDK includes the header, wheel tag, and build adapters that setuptools
    and scikit-build-core need to build extensions for Imre.
    (#274)
  • Use collections.ChainMap and Counter.most_common() in runtime-loaded
    modules. Look up an installed distribution’s version with
    importlib.metadata.version().
    (#2365,
    #2364,
    #2107)

Full history for 0.1.3

Install imre 0.1.3

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://labs.astral.sh/imre/releases/0.1.3/imre-installer.sh | sh

Download imre 0.1.3

File Platform Checksum
imre-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
imre-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
imre-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.1.2

Choose a tag to compare

@github-actions github-actions released this 24 Oct 00:58
Immutable release. Only release title and notes can be modified.
8e79330

Release Notes

Released on 2026-10-23.

Enhancements

  • Build and run programs on Linux x86-64 and ARM64 without installing a system
    compiler, linker, or development files. The release archives include Clang 18,
    LLD 18, and their native link inputs. This adds about 76 MB to each download.
    Use --clang to choose your own toolchain.
    (#138)
  • Compile Ruff’s complete scripts/conformance.py unchanged. Its command line
    runs both ty analyzers, decodes their JSON diagnostics into dataclasses, and
    renders both report formats byte-for-byte identically to Ruff on CPython.
    (#130,
    #132,
    #135,
    #137)

Performance

  • Relink native Linux x86-64 executables with LLD. Rebuilding Ruff’s seven-module
    reporter after a renderer edit took 0.88 s with LLD and 1.22 s with GNU BFD
    on the same pinned core. Switching linkers still reuses compiled module objects.
    (#131)
  • Vectorize more integer-list reductions when the element arithmetic and subtotal
    fit in machine integers. Summing x * (x + 1) over 4,096 digits, including
    parsing them from text, ran about twice as fast on x86-64.
    (#134)
  • Combine adjacent integer sums over the same zip(strict=True) into one
    traversal when the terms are total integer expressions. The telemetry reporter
    can compute signed, absolute, and squared error in one pass over its inputs.
    (#139)
  • Reuse uniquely owned record storage in loops that replace a record with a
    simple scalar-field constructor. A surviving alias keeps the original record.
    (#145)

Bug fixes

  • Remove the relar run executable after its loader opens it and before user
    code starts. Killing the compiler and program together at that point leaves
    the temporary directory empty. Older explicitly supplied runtimes still clean
    up on normal exit.
    (#147)
  • Match CPython’s counted regex repetitions with an omitted minimum, including
    greedy, lazy, and unbounded forms.
    (#127)
  • Report diagnostics for excessively deep first-party imports, long elif
    chains, nested context managers, and finally blocks whose repeated cleanup
    would generate excessive LLVM IR.
    (#149,
    #152,
    #156,
    #160)
  • Check long call chains and deeply nested class-field ownership graphs without
    exhausting the compiler’s native stack. Cycles still produce diagnostics.
    (#162,
    #164)

Full history for 0.1.2

Install relar 0.1.2

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://labs.astral.sh/relar/releases/0.1.2/relar-installer.sh | sh

Download relar 0.1.2

File Platform Checksum
relar-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
relar-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
relar-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.1.1

Choose a tag to compare

@github-actions github-actions released this 23 Oct 15:50
Immutable release. Only release title and notes can be modified.
ff64cef

Release Notes

Released on 2026-10-23.

Enhancements

  • Default Path.read_text() to UTF-8 regardless of the system locale.
    (#121)
  • Add booleans to integer counters, format signed integers with f"{delta:+}",
    and infer an empty list’s scalar element type from append. These changes let
    Ruff’s per-file statistics table compile unchanged.
    (#115)
  • Run Ruff’s original annotation collector in the live conformance reporter. It
    reads each test file once before starting either ty process. On the 146-file
    checkout, the complete report matched Ruff on CPython byte for byte and took
    1.02× Rust’s elapsed time with the default allocator.
    (#121)

Performance

  • Reuse native executables and module objects across relar build and
    relar run on x86-64 Debian and Ubuntu with Clang 18 and GNU BFD. An
    unchanged build of the seven-module Ruff reporter fell from 1.81 s to 15 ms.
    Editing its renderer recompiled one module and reused the other six.
    (#120)
  • Discard unused runtime code when linking. An unstripped Fibonacci executable
    on Apple Silicon shrank from 6.29 MiB to 815 KiB. Linux executables now use
    full RELRO by default. Use --verbose-link to inspect the linker command.
    (#119)
  • Vectorize sums of squares when Relar can prove that the inputs and subtotal
    fit in machine integers. Summing the squares of 4,096 digits in an existing
    list ran 21× faster on x86-64-v3, or 2.25× faster when the program also parsed
    the digits from text. (#124)

Bug fixes

  • Reject malformed TOML integers and line breaks around =, including in fields
    the schema ignores. Accept a leading UTF-8 byte order mark in the CPython TOML
    decoder. (#114,
    #116,
    #123)
  • Match the literal hyphen after a regex range, as in [a-b-c].
    (#109)
  • Report a compiler error for excessively deep expressions and long operator
    chains before indexing the module.
    (#111)
  • Detect when the executable and LLVM output point to the same file through a
    dangling symlink, even before the output exists.
    (#107)

Full history for 0.1.1

Install relar 0.1.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://labs.astral.sh/relar/releases/0.1.1/relar-installer.sh | sh

Download relar 0.1.1

File Platform Checksum
relar-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
relar-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
relar-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 11:04
Immutable release. Only release title and notes can be modified.
acfd8bc

Release Notes

Released on 2026-10-23.

Relar’s first release compiles a statically typed subset of Python to native
executables. Compiled programs run without a Python installation and retain
Python’s arbitrary-precision integers.

Enhancements

  • Build a standalone executable with relar build app.py, or compile and run it
    in one step with relar run app.py. Both commands follow static imports
    across first-party modules. (#2,
    #6,
    #73,
    #97)
  • Define fixed-layout classes and dataclasses with methods and read-only
    properties. Declare string enums with named members and aliases.
    (#7,
    #67,
    #93)
  • Call functions with keyword arguments and scalar defaults. Pass typed
    functions, bound methods, and noncapturing lambdas as callbacks.
    (#33,
    #61)
  • Write comprehensions over typed lists, dictionaries, and sets. Iterate with
    zip(strict=True) and reversed, and short-circuit generator expressions
    with any and all. (#15,
    #16,
    #25,
    #57)
  • Match records, mappings, and sequences with match. Slice strings and lists,
    unpack sequences in assignments, and expand list and set literals with * and
    dictionary literals with **.
    (#35,
    #39,
    #45)
  • Catch built-in exceptions such as ValueError and OSError and run cleanup
    in finally. (#18,
    #21)
  • Decode JSON and TOML into typed records and containers, and serialize typed
    values back to JSON. (#63,
    #81,
    #84)
  • Search text with fixed regular expressions and extract named capture groups.
    (#92)
  • Read plain or gzip files line by line, write files atomically, and run
    subprocesses with captured output and a timeout.
    (#71,
    #79,
    #84,
    #87)
  • Compile the upstream python-base45 codec and luhn checksum implementations
    unchanged, including Luhn’s unannotated functions.
    (#48,
    #53)
  • Run typed ports of uv’s Python download catalog, Ruff’s typing conformance
    reporter, and the memory-report comparator used for ty. Ruff’s diagnostic
    collector, grouping, and per-file statistics functions compile unchanged.
    (#64,
    #82,
    #95,
    #102)

Performance

  • Reuse string buffers when encoding Base45 and fuse the digit reductions in
    Luhn’s checksum. (#49,
    #55)
  • Reduce record and string allocations in uv’s download catalog. Across plain
    and gzip inputs at the original size and at ten times that size, Relar took
    1.11–1.22× Rust’s elapsed time.
    (#90,
    #91)
  • Select jemalloc on Linux with --allocator jemalloc. Grouping Ruff
    diagnostics for 1,460 files took 1.07–1.17× Rust’s elapsed time with jemalloc
    on both sides. (#102)

Release

  • Install Relar from Astral Labs on x86-64 Linux, ARM64 Linux, and Apple Silicon
    macOS. The shell installer installs the compiler and runtime together.
    (#101,
    #103,
    #104)

Full history for 0.1.0

Install relar 0.1.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://labs.astral.sh/relar/releases/0.1.0/relar-installer.sh | sh

Download relar 0.1.0

File Platform Checksum
relar-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
relar-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
relar-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum