Re:Julia 1.6: what has changed since Julia 1.0?
by orbifold on Sunday February 14, 2021 @07:34PM
(#26137690)
I and probably many others intend to develop reproducible figures. The way to do that in python / matlab is to have a script which loads data from disk and then produces a figure (a png / pdf). You then execute that file many times each time tweaking one aspect of the figure. Julia makes that workflow almost impossibly slow.
[ Parent
| on HN ]
Re:Julia 1.6: what has changed since Julia 1.0?
by cbkeller on Sunday February 14, 2021 @08:28PM
(#26138032)
Then write a function that does everything your script would do in the clean local scope of that function, and call it many times as needed. I mean heck, that’s a more elegant solution even if script latency wasn’t in the equation.
Re:Julia 1.6: what has changed since Julia 1.0?
by jampekka on Monday February 15, 2021 @02:29AM
(#26140095)
I usually do a clean local scope of the function anyway. The problem is the reloading. Revise.jl works sometimes, but sometimes doesn't, and it makes debugging more difficult (this is difficult enough in Julia as is in my experience). Another problem is having to use the REPL that doesn't integrate as nicely with the rest of the OS as shell.
I don't see why REPLing it is a more elegant solution. With that solution I can call the function form the REPL if I want, but also from the shell if I want. With shell I get the elegance of having a persistent, complete and reproducible description of the state all the time, which can be e.g. version controlled.
Re:Julia 1.6: what has changed since Julia 1.0?
by eigenspace on Sunday February 14, 2021 @10:02PM
(#26138592)
Why not just write a function? You can do this without restarting tour julia session every time...
Re:Julia 1.6: what has changed since Julia 1.0?
by orbifold on Monday February 15, 2021 @07:19AM
(#26142029)
Well to be more precise the script contains functions of course , each of which produces one of the figures and takes the path to the data / data as input. In any case the REPL has no place in such a workflow because I want to be able to check in the script at the end and have a reliable way of reproducing any of the figures I put into the paper later.
Re:Julia 1.6: what has changed since Julia 1.0?
by eigenspace on Tuesday February 16, 2021 @12:55PM
(#26156688)
You could literally just stick your script into a function and have it be just as reproducible (well, probably more reproducible) and never need to restart julia...