Start Julia interpreter directly, skipping Juliaup?

I have Julia installed using juliaup. I’ve realized that the julia command forks to the Julia interpreter. Is there a conventional way to go directly to the interpreter?

My goal is to launch as fast as possible – I’m running thousands of short Julia programs. So, I’d like to skip the initialization that juliaup performs, e.g., checking for updates.

I think the binaries are available at ~/.julia/juliaup

(but probably it would be better not not run thousands of short Julia programs, and launch Julia once and run thousands of executions of a function?)

2 Likes

Maybe julia --compile="min"? This makes interpreter to run the program.

You can find the Julia binary being run with

joinpath(Sys.BINDIR, "julia")
4 Likes

Or

Base.julia_cmd()[1]

(which contrary to the suggestion above works both on Windows and Unix, and whether you use a debug build of Julia or not)

3 Likes

I did think there should be something better available, so nice to learn something new, but it’s sad it’s not a public function.