Install Cromo 0.99.1
One line installs cromo, its library and the extension for VS Code, for your user and without administrator rights, in ~/.cromo. The script checks the SHA-256 of the archive against the manifest of the version, and adds cromo to the PATH.
Windows x64 your system
> irm https://cromolang.org/install.ps1 | iex
Linux x64 your system
$ curl -sSf https://cromolang.org/install.sh | sh
$ cromo version cromo 0.99.1 (LLVM 23.1.4) $ cromo run hello.cro Hello, world!
Version 0.99.1
Each archive holds cromo in bin, the library and the runtime in lib, the extension for VS Code in extension, and the licenses. The manifest of the version lists the archives with their SHA-256; cromo update checks its Ed25519 signature before it installs a version.
| System | Archive | Size | SHA-256 |
|---|---|---|---|
| Windows x64 | win_x86_64-0.99.1.zip | 41.5 MB | 9fec1500dd9e913d8c4c6eed8427c399ddd42d43ff9c31e053352d9d3cb5a9fc |
| Linux x64 | linux_x86_64-0.99.1.tar.gz | 44.2 MB | a90dea1ff721f195ade5cc2336ec2edba879e7b175bdd5f3b22d3c512374b788 |
The manifest: release/0.99.1, and its signature: release/0.99.1.sig. The latest version is always at cromolang.org/latest.
After the installation
Updating
cromo update installs the latest version next to the one you have, after checking its signature, and makes it the active one. cromo update 0.27.1 goes back to an older version.
Linux on ARM64
cromo runs on Windows x64 and Linux x64, and both write programs for Linux on ARM64, as a Raspberry Pi or a server with Graviton: cromo build --target linux-arm64. A cromo that runs on ARM64, Windows on ARM64 and macOS come later.
Installing by hand
Unpack the archive anywhere and add its bin folder to the PATH: cromo finds its library in lib, next to bin. The extension is the .vsix file in extension.
Visual Studio Code
The installer adds the extension when it finds the command code. It is also cromolang.cromo in the Visual Studio Marketplace and in Open VSX.
Uninstalling
Delete ~/.cromo, %USERPROFILE%\.cromo on Windows, and its bin from the PATH: on Windows the installer added it to the PATH of the user, on Linux to ~/.profile, ~/.bashrc and ~/.zshrc, after the line # Cromo.
The guide and the sources
The Cromo Guide, also as PDF, in English and in Italian. The compiler, the library and the design decisions are on GitHub, with the way to build them.