Updated: Jan 28, 2025
First you need CLI to orchestrate the compiler.
For Unix:
curl -fsSL sh.thelang.io | bash
In case you are curious what it does, you can check here: https://github.com/thelang-io/cli/blob/main/install.sh
For Windows:
irm ps1.thelang.io | iex
In case you are curious what it does, you can check here: https://github.com/thelang-io/cli/blob/main/install.ps1
the -v
If that doesn't work you probably need to re-login into your terminal.
Before, everything was compiled on cloud servers. After Oct 2024, I disabled cloud servers (I paid $600 for the last year and nobody used it). If you think I should enabled it back, let me know. But for now you will need an offline compiler.
Before you will get a compiler you will need to have CMake installed: https://cmake.org/download/
Next thing you need to run this command:
the offline
This should be it!
Create a file, eg "main":
main {
print("Hello, World")
}
And run it like this:
the run main
Important
Under the hood CLI will recognize that you have offline compiler installed and will use it.
Remember, this is old version that is built using C++. This version is slow, and I'm aware of that. The new version, where it's much faster and self-compiles, is still in development. Expected to be released somewhere in 2025.