Repository navigation
The M9 compiler m9c, the runtime libm9rt.a, the standard library as M9 source, the module reference, the compiler's man page and the VS Code extension files. gcc is the only toolchain any of them needs.
One package per distribution, x86-64 and one for arm64 (in a VM on Apple silicon), each built ON that distribution (the x86-64 Ubuntu 26.04 one on a real 26.04 machine rather than a VM) from the one source tarball attached here (m9-0.29.3.tar.gz, sha256 f6b66ea0c8416e2e7e2618f115cc3302daae63553642a1f0c23a0ebe0b2c8242), then installed there and made to compile and run an M9 program with an empty environment before it was allowed to leave the build machine.
That tarball is the same set of files as this repository -- the compiler, runtime, standard library, gates, man page and module reference -- and the release tooling refuses to cut one that is not, checked both against the list and against an independent deny-list of paths that must never be published.
| distribution | package | install |
|---|---|---|
| Ubuntu 24.04 LTS | m9_0.29.3-1_amd64.ubuntu24.04.deb |
sudo apt install ./m9_0.29.3-1_amd64.ubuntu24.04.deb |
| Ubuntu 26.04 LTS | m9_0.29.3-1_amd64.ubuntu26.04.deb |
sudo apt install ./m9_0.29.3-1_amd64.ubuntu26.04.deb |
| Debian 13 | m9_0.29.3-1_amd64.debian13.deb |
sudo apt install ./m9_0.29.3-1_amd64.debian13.deb |
| Fedora 43 | m9-0.29.3-1.fc43.x86_64.rpm |
sudo dnf install ./m9-0.29.3-1.fc43.x86_64.rpm |
| Rocky 9 (RHEL 9, Alma 9) | m9-0.29.3-1.el9.x86_64.rpm |
sudo dnf install ./m9-0.29.3-1.el9.x86_64.rpm |
| Arch | m9-0.29.3-1-x86_64.pkg.tar.zst |
sudo pacman -U ./m9-0.29.3-1-x86_64.pkg.tar.zst |
| Ubuntu 26.04 LTS, arm64 | m9_0.29.3-1_arm64.ubuntu26.04.deb |
sudo apt install ./m9_0.29.3-1_arm64.ubuntu26.04.deb |
Windows — experimental
m9-0.29.3-windows-x86_64.zip (sha256 58b7648257ee2315876ac56d67e17c2521861f27698f11f404f35ffcbe0fcf0a) is one folder with everything in it: its own gcc (a subset of the MSYS2 UCRT64 toolchain, measured by tracing real builds), the compiler's bootstrap C, the standard library and tools as M9 source, the tutorial as pages, and an install.bat that compiles the compiler on your own machine — the same "gcc is the only toolchain" claim as above, with the gcc in the box. Unpack it anywhere and run install.bat from a terminal; it says what it will do and asks before it touches your PATH or your VS Code extensions.
Experimental means experimental. It is the same compiler as the Linux one — the runtime carries _WIN32 paths beside the POSIX ones and the generated C never names a platform — but it is verified on one Windows machine -- its receipt's smoke line names the Windows 11 build the sealed zip was installed, compiled with and its tutorial run on -- where Linux is tested across six distributions. One of the tutorial's twenty-nine examples does not work there yet: chapter 17 (it runs sort and uniq). The rest, netCDF, zarr over TLS and the threaded chapters included, runs.
macOS (Apple silicon)
brew tap atverm/m9 && brew install m9
installs this release on a Mac from the same source tarball, built there with Homebrew's gcc, and with OpenSSL, blosc and netCDF from Homebrew, so a program that opens an https URL, reads a zarr chunk or writes a netCDF file links on the first try. m9-0.29.3.rb (sha256 5602e8398845f4e5d822e942f798c4cff46589cab8c4eb17174d718fd409430c) is the formula the tap carries; its receipt records the Mac it was installed and smoke-tested on (26.7.1 arm64, gcc-16 (Homebrew GCC 16.2.0) 16.2.0).
It is the same compiler — every macOS difference in the runtime and the driver is under __APPLE__ or macos and the generated C never names a platform. The whole gate round and the whole tutorial run on Apple silicon, zarr over TLS and the threaded chapters included. Intel Macs are untested.
Docker
docker run --rm -v "$PWD:/w" atverm/m9:0.29.3 m9c --run Hello.m9
atverm/m9 on Docker Hub (tags 0.29.3, 0.29 and latest) is Debian 13 slim with this release's own Debian 13 package installed. It also has blosc, zstd, zlib, netCDF and libpq, so the library-backed modules link. The working directory is /w: mount your sources there. Before it is pushed, the image compiles and runs an M9 program, runs --run on text past ASCII, and builds a program that uses Io, Logger and Http over TLS. It serves x86-64 and arm64: docker pull takes the one for your machine. The arm64 image was added on 2026-12-01 from the same release, its Debian 13 arm64 package built from the tarball above and held to the same checks.
What changed since the previous release
- Fixed: four ways a local pool's storage outlived the pool were accepted, and the program read freed memory. A callee stored NEW (pool, ...) in a field of its VAR parameter, handed a pool local to its caller. A local such a callee filled was returned or copied out. A record holding a local pool's storage was assigned whole to a VAR or OWN parameter. And a KEPT argument in a local pool was kept by the callee in its caller's VAR parameter, beside another frame value. Each is refused now, with a probe and an entry in docs/diagnose.md. A program 0.29.2 built may be refused: each such site reads freed memory.
- New: Http.SetTimeout (cl, connectMs, readMs) gives a Client time limits, in milliseconds. The connect limit covers the TCP connect over every address and the TLS handshake; the read limit bounds each wait for data. A limit that runs out raises TransportError ('connect timed out', 'read timed out'), and such a request is not sent again. 0, the default, waits as long as it takes, as before.
- Plot.Chart ticks a window of three days or less on the clock: hh:mm, hh:mm:ss for a step under a minute, the date at midnight. A window under a day had no label at all.
- Plot.Render's log axes tick 1, 2 and 5 of each decade over one to three decades, and 1 to 9 under one, as well as the decades. No tick is drawn outside the axis, and a log axis of one point no longer hangs. Figures with linear axes are unchanged.
- New: Plot.SetZone sets the clock Chart labels its time axis in, an offset from UTC and the times it changes. A clock set back labels the repeated hour twice; day ticks fall on local midnights.
- The Plot changes came from the airgradient project, with the oracle that holds them (tools/plotticks, the plotticks gate).
- Fixed: Plot.Render of a single point, or of one x for all, hung on linear axes and wrote NaN on log ones. An x range of no width is widened by one each side, as the y range was.
- Fixed: a THREAD's first TASK could raise OutOfMemory on a busy machine when one carrier was asked for (M9_CARRIERS=1). The start waited for a new worker less than 5 ms; it waits up to 10 s now.
- Fixed: m9c --make reused objects older than the runtime header they were compiled against, and the program could crash after an upgrade. Such an object is rebuilt now.
- New: Parquet.Options.usUtcCols writes INT64 columns as TIMESTAMP(MICROS, adjusted to UTC), polars' Datetime('us', 'UTC').
- The Debian and Ubuntu packages build without devscripts and without recommended packages: 104 build packages, not 396.
Each .receipt records the distribution the package was built on, its sha256, the tarball's sha256, the gcc that built it, and the smoke line. Nothing here was modified after it came back from the build machine except the 3 debs' file names, which carry their distribution because they would otherwise be the same name (dpkg reads the control file, not the name).
Chapter 0 of the tutorial (M9Tutorial, tutorial.modula9.net) covers installation from these and from source.