NewsCrawler.org

Alice v0.6.0 adds standard library modules, C code and config scripts

Alice v0.6.0 is a new release of Alice, a tool for building OCaml projects. The author made it to support a small set of packages from the Opam repository, which they have been porting by hand to Alice's package format in alice-ports.

Packages can now use standard library modules that are excluded from the prelude[1], such as Unix and Str. They are listed in a new builtins section in Alice.kdl. Packages can also include C source files in their src directory, and these are compiled and linked into the result when a project is built.

A package can now include a config script[2], a file named config.ml that is compiled and run as the first step of building the package. Lines in its output that begin with alice: are read as directives, and currently only alice:print_endline and alice:add_c_linker_args are supported. Commands such as alice build and alice run accept a --backend argument set to native (the default) or bytecode. The bytecode backend builds faster, but the programs it produces run more slowly[3].

Read the original alicecaml.orgDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page