Hello Sovereignty
Hello Sovereignty
Section titled “Hello Sovereignty”“Speak, and it shall be done.”
It is time to breathe life into the rock.
1. The Source Code
Section titled “1. The Source Code”Create a file named hello.jan in your editor.
func main() do print("I think, therefore I am Sovereign.")end2. The Compilation
Section titled “2. The Compilation”We do not interpret. We build.
janus build hello.janIf you see no errors, you have succeeded. Silence is golden.
3. The Execution
Section titled “3. The Execution”Run your creation.
./helloOutput:
I think, therefore I am Sovereign.4. The Autopsy
Section titled “4. The Autopsy”What just happened?
janus build did not just “run” the code. It created a binary.
Look at it:
ls -lh hellofile helloIt says ELF 64-bit LSB pie executable.
This file is independent. You can copy it to another Linux machine, and it will run. It does not need Janus installed. It stands alone.
You have created an independent entity.
Next Steps
Section titled “Next Steps”Now that you can speak, let us learn the grammar of the Gods.
- [Core Fundamentals]/learn/fundamentals/ — Types, control flow, and functions
- [Quick Start]/learn/getting-started/ — Full quick start guide