Atom

Run your first program

Save the following as hello.atom.

hello.atom
print('Hello, world!')
Terminal
atom run hello.atom
atom check hello.atom
atomc hello.atom -o hello.atomb
atom run hello.atomb --vm
atom disassemble hello.atomb
atom build hello.atom -o hello-native
atom publish hello.atom -o hello-vm

On Windows use output names ending in .exe for the last two commands. On macOS use build or emit-c for distributing an executable. atom compile and atomc produce hello.atomb by default beside the input. Source and bytecode run the same way. The CLI selects the bytecode decoder by the .atomb suffix. check checks the input program without initializing its imports or executing its top-level statements.

Pass script arguments after --, for example atom run app.atom -- 'one argument' two. Import os to read the resulting array in os.args. A built or published executable takes its program arguments directly. See modules and projects for import search paths.