Download
Installing takes under a minute. The route below was literally tested on a clean Linux machine with nothing preinstalled: no NoodleCore, no pip, no C compiler. What you read here is exactly what was measured.
What you need
- Linux or macOS
- Python 3.9 or newer
- A C compiler:
cc,gccorclang(if it is missing, the installer tells you exactly which command installs one for your distribution) git
Step 1: get it and install
git clone https://github.com/cubic461/NoodleCore-Public.git
cd NoodleCore-Public
./install.sh --test
The installer creates its own virtual environment (so it also works on
systems with externally-managed Python), installs the noodle command,
prints a version proof, and with --test runs a compilation as its final
check: it compiles and runs examples/hello.nc.
If your machine has no C compiler yet, the installer stops with a clear
message and the install command for your distribution. On a clean Rocky
Linux machine, dnf install gcc was enough; after that the full install
succeeded in one run (hello.nc: 0 errors).
Then add the printed bin/ directory to your PATH and you are done.
Step 2: first program
Create a file hello.nc:
print("Hello from .nc!")
let x: int = 42
print(x + 10)
Run it with:
noodle run hello.nc
Step 3: update and roll back
Every version gets its own directory (versions/vX.Y.Z/); an update installs
the new version next to the old one and then switches over in a single
atomic step. The old version stays on disk, so a failed update leaves your
working install untouched.
noodle update --check # is there a newer release? (installs nothing)
noodle update # fetch, verify, install next to it, switch over
noodle update --list # installed versions (* = active)
noodle update --rollback # switch back to the previous version instantly
Updating is proven working: an update from 1.1.0 to 1.2.0 installed the new version alongside, ran hello.nc under the new version (0 errors), and then switched back to 1.1.0 with a single command, both versions still on disk.
What you download (and what you don't)
The download contains the language toolchain: the compiler to C, the runner, the installer and updater, examples and tests. NoodleDB, the database engine, is not part of it; that is a separate product line.
The code is under the PolyForm Noncommercial license: free to use, study and modify for noncommercial purposes. Commercial use: see contact.
Questions? Mail michael@noodlecore.io — see contact.