FWIW, as an old linuxer, I have created for my own usage two scripts to facilitate the use of either sysimage or DaermonMode.jl to get faster frequently used scripts (=faster TTFX, Time to First X). Sorry, I have done this in bash shell, as a first step/prototyping step before writing that in pure Julia.
So I would like to have advices / comments about those prototype implementations. Please take a look to
d aemon) and
s ysimage) at https://github.com/jdadavid/juliashellutils and comment and suggest! Many thanks in advance.
Excerpts from the Readme
julias : Julia launcher wrapper for using local JuliaSysimage.[dll|so] if its exists and is up to date Usage : julias : [+h] [+v|+q] [+f] [+J juliax] [julia_options] file.jl [args] launch Julia with sysimage "JuliaSysimage.[dll|so]" if found +h : this help +v : verbose +q : quiet (no warnings, e.g. about out of date or force) +f : force use of sysimage even if out of date +J juliax : use juliax executable for julia
juliad : launches Julia daemon server (if necessary), and client, to execute julia file with reduced TTFX # wraps excellent DaemonMode by @dmolina (see https://github.com/dmolina/DaemonMode.jl) # You must have added DaemonMode to the project that will be used (or the default v1.x env) Usage : juliad [+h] [+v] [+l] [+k] [+s] [+J juliax] [julia_options] file.jl [args] +h : this help +v : verbose (vs launching steps) +l : list running server and exits +k : kill running server and exits +s : launch julia with startup file (default is without) +J juliax : use "juliax" as julia executable Notes: - the principle is to lauch one daemon per directory (=project) - the script creates a local file '.juliad' which stores the status of a running daemon - as of current, status is (port used, julia_args(project, use_startup))