Hello World in Julia

Our first program will print the classic “hello world” message. Here’s the full source code.

println("hello world")

To run the program, save the code in a file named hello_world.jl and use the Julia interpreter to execute it.

$ julia hello_world.jl
hello world

In Julia, there is no direct binary compilation like some other languages, but you can create a script and run it using the Julia interpreter. Learning how to manage Julia environments and packages is a good next step.

Now that we can run basic Julia programs, let’s learn more about the language.