With the latest commit
the simple hello world is
function (@main)(args::Vector{String})::Cint
println(Core.stdout, "Hello, world!")
return 0
end
In that use, no module is needed and the args
argument is passed as a Vector of strings rather than a Vector of Any.
# julia +nightly juliac.jl --experimental --output-exe hello --trim hello.jl
is required to compile a hello
executable.
Note: Required files should be install manually. This would help:
# wget -nc https://raw.githubusercontent.com/JuliaLang/julia/refs/heads/master/contrib/juliac.jl
# wget -nc https://raw.githubusercontent.com/JuliaLang/julia/refs/heads/master/contrib/juliac-buildscript.jl
# wget -nc https://raw.githubusercontent.com/JuliaLang/julia/refs/heads/master/contrib/julia-config.jl