Re:Introduction to Pluto.jl
by leephillips on Thursday April 29, 2021 @08:32PM
(#26988577)
How is it that I do `julia script.jl` all the time? Or by “inability” do you mean that it’s slow because of the startup time? If you need a utility that starts up instantly, create a sysimage.
[ Parent
| on HN ]
In contrast to interpreted languages, creating a sysimage is yet another step (in addition to installing a third party package).
In contrast to AOT-compiled languages, PackageCompiler.jl doesn't statically analyze your code. So you need a "precompile script" that hopefully hits all callable methods (such a script will have to be made manually). The resulting "binary" is also massive.
Re:Introduction to Pluto.jl
by pdeffebach on Friday April 30, 2021 @08:55AM
(#26992763)
Yeah people in python are used to doing `python script.py` all the time, and that's not very convenient in julia.
sysimages are great, as is daemonmode. But really just do Revise at the REPL.