⚠️ This guide has not been actively kept up to date since before Nim 1.0. Many things are still the same, but some things have changed.

Hello World

The code for a simple hello world program is as follows:

echo "Hello World"

Save this text as helloworld.nim. To compile and execute the program, the following command should be run

$ nim c -r --verbosity:0 helloworld.nim
Hello World

The command has several elements: