Skip to content

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