Urgent.News

What's breaking now, across thousands of outlets.

Tech

Alice v0.6.0

Alice v0.6.0 introduces several new features to support the building of small collections of packages from the Opam repository, which have been manually ported to Alice's package format. These packages can now refer to modules from the standard library, excluding the prelude, such as Unix and Str. For addressing the need of including C source files in the src directory, Alice v0.6.0 now compiles and links all C files into the resulting executable.

This has prompted the development of another new feature: config scripts. These scripts, contained in a file named config.ml within the package's root directory, allow packages to be built with custom linker arguments and access to built-in modules from the standard library. Config scripts can also depend on other packages and are expected to run only once, as their output can be cached in the build directory.

To compile config scripts efficiently, the bytecode compiler is recommended over the native compiler. Additionally, Alice commands (e.g., alice build, alice run) now accept a --backend argument, allowing users to choose between native or bytecode compilation. The default is native. For macOS and Linux users, the latest version of Alice can be installed via Homebrew or by running the provided install script. NixOS users can install Alice v0.6.0 via the flake github:alicecaml/alice#alice_0_6_0.default.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at alicecaml.org →

More in Tech

More from Friday 20 November →