Hacker News new | ask | show | jobs
by wjholden 1217 days ago
How well does this work? I've seen this library but never used it. Julia is really slow from a cold start, which limits its utility for scripting.

About a year ago I was very off-put by someone on Reddit who sort of scolded me for wanting to use Julia as a general-purpose scripting language at the CLI. The Redditor said this wasn't as idiomatic usage of Julia. Idk how representative this is of the community at large.

2 comments

PackageCompiler is one of the 6 projects pinned in the JuliaLang repo, along with Pkg (the package manager), the juliaup installer, IJulia Jupyter kernels, the Julialang.org website, and Julia itself.

https://github.com/JuliaLang

It's not "idiomatic usage of Julia". What the hell? It's literally given by the language developers as first class as the package manager and put on the website right next to it.

By any chance, was your post about starting Julia in a tight inner loop? If so, this really isn't idiomatic and exactly one of the few cases where Julia isn't great. Though it can be circumvented.
Tooks some digging, but [here it is](https://www.reddit.com/r/Julia/comments/n2mje4/comment/gwmt1...). I was talking about invoking Julia from the shell as a script. Because loading packages takes time, I found that my script was significantly faster in Python than Julia.

I never did get around to trying the daemon mode thing someone suggested. Someday I'll have a reason to do this again and try it.

Scolded is a bit exaggerated, I think. Python starts faster, but as soon as you have long running complex tasks Julia takes off - it's just the tradeoff you were hitting.