jolin-io / JuliaScript.jl

finally fast julia scripts
MIT License
79 stars 1 forks source link

JuliaScript

Build Status

You have a julia script.jl and want to run it fast?

Welcome to juliascript! It is built for exactly that purpose.

Installation

  1. Make sure julia is installed via juliaup
  2. Then run the following in a Linux bash terminal
    curl -o ~/.julia/juliaup/bin/juliascript -fsSL https://raw.githubusercontent.com/jolin-io/JuliaScript.jl/main/bin/juliascript
    chmod +x ~/.julia/juliaup/bin/juliascript

Now you can run juliascript yourscript.jl on the terminal, or use the shebang #!/usr/bin/env juliascript as the first line of your exectuable script.

How it works

Further speedup

Sometimes the speedup this gives may not be satisfying. Then you can manually create a sysimage to improve performance even further.

juliascript packagecompile yourscript.jl

Depending on your script this may take from 5 minutes up to 30 minutes.

Every further call juliascript yourscript.jl will then use the sysimage (until you make a change to yourscript.jl).

Experimental environment variables