Skip to content

Aether 0.898.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 11:21
· 269 commits to main since this release
Immutable release. Only release title and notes can be modified.

What's new in 0.898.0

Fixed

  • Building aether natively on FreeBSD links again. The toolchain's link
    line dropped libfyaml's flags word by word, and pkg-config's libfyaml line
    there begins -L/usr/local/lib, so every -L/usr/local/lib went with it
    and aetherc failed with unable to find library -lnghttp2. Only the run
    of words libfyaml added is removed now.

  • http.serve_file no longer sends a corrupt response where its sendfile(2)
    drain fails or does not exist.
    The fast path sent the headers, then on a
    drain that came up short fell back to the buffered send and serialized the
    whole response again: a second status line and header block where the client
    was reading the body, and no body behind it. On FreeBSD (and any platform
    other than Linux and macOS) the drain was not implemented, so every file
    served that way was corrupt (curl: (18) ... bytes missing, or "Excess found
    writing body"); on Linux and macOS it happened when a client stopped reading
    past the send timeout. Once the headers are out the response is committed:
    a failed drain now closes the connection and sends nothing more. FreeBSD now
    has a real sendfile(2) drain, and platforms without one read the file into
    the body instead of taking the fast path. Tests:
    tests/integration/http_sendfile checks the keep-alive requests share one
    connection, and tests/integration/http_sendfile_cut covers the failed
    drain.

  • os.system and os.exec work on FreeBSD again. Both ran sh -c -- CMD.
    dash and bash read the -- as the end of sh's options, but FreeBSD's
    /bin/sh takes it as the command string, so every os.system there
    returned 127 (--: not found) and every os.exec came back empty; a stock
    aeb stopped at its first helper build. They run sh -c CMD now, and a
    command that starts with - or + gets a leading space instead, so it is
    still the command and not sh options on every shell. Test:
    tests/regression/test_os_shell_command_string.ae.

  • The FreeBSD release has a working std.regex. Its cross build
    (make FREEBSD=1, which the release job runs) set PCRE2 := 0, so the
    release's libaether.a carried the regex stub, and every regex.compile
    failed with "regex: built without libpcre2-8". It now builds the vendored
    engine, as the Windows and Android cross builds already did, and the release
    and PR cross-build jobs check the archive has it
    (scripts/check_regex_engine.sh).

Downloads

Platform Architecture File Notes
Linux x86_64 aether-0.898.0-linux-x86_64.tar.gz
macOS x86_64 aether-0.898.0-macos-x86_64.tar.gz
macOS arm64 aether-0.898.0-macos-arm64.tar.gz
Windows x86_64 aether-0.898.0-windows-x86_64.zip
FreeBSD x86_64 aether-0.898.0-freebsd-x86_64.tar.gz cross-built, not tested on FreeBSD

Quick install

Linux / macOS

# Download the archive for your platform, then:
tar -xzf aether-0.898.0-<platform>.tar.gz
export PATH="$PWD/bin:$PATH"
ae version

Windows

Extract the .zip archive, then run bin\ae.exe version from the extracted folder.


Documentation: https://github.com/aether-lang-dev/aether#readme