Maxon 0.1.1
Maxon 0.1.1 is released. Archives for every supported target are on the GitHub releases page.
What changed
Section titled “What changed”maxon run, which compiles a program and runs it in one step. A.maxonfile may begin with a#!line and be run directly as a script.maxon help, andmaxon help <command>for a single command. Runningmaxonwith no arguments now lists the commands.--define, which sets a top-levelStringconstant at build time.- Build manifests can declare several named targets, and state the version of what they build.
- Compiled executables carry version metadata: a version resource on Windows, a source version on macOS, and a producer string on Linux.
Changed
Section titled “Changed”maxon versionreplaces the--versionand-Vflags, and reports the commit and date the compiler was built from.maxon helpreplaces the--helpand-hflags.Build.buildOnein a build manifest is renamedBuild.build.maxon fmtseparates groups of declarations with one blank line at every nesting depth, not only at the top level.- On Linux and macOS, starting a program that cannot be found raises
SubprocessError.executableNotFoundinstead ofspawnFailed.
- Non-ASCII text displays correctly in a Windows console.
- A deadlocked program on Linux reports the deadlock instead of occasionally hanging.
- A default parameter value is filled in a global variable’s initializer, not only inside a function.
- On Linux, a subprocess started by program name finds the program on
PATH, and a file of that name in the working directory is never run in its place.
Install
Section titled “Install”To install Maxon or upgrade an existing install, see Installation, which also shows how to install a specific release.