Hi Andrei, Tim, another related issue I sometimes have with interactive development in Matlab is to load/save workspaces entirely.
For example, in a typical experiment I will have a short driver script "run_exp1.m" which contains as its last line a statement like "save result_exp1.mat", saving everything, including options defining the experiment and the results. (Then typically for me a second script like "plot_exp1.m" is used to load this file and create some plots.) I have looked around a little but there seems to be no way to save all variables listed in whos() in Julia. There is the MAT package and I have used it before to save arrays, but what about general Julia data structures? Are there plans for universal serialization/deserialization of data structures in a portable and future-proof manner, such that it would be suitable for storing experimental results? Thanks, Sebastian On Mon, Jul 7, 2014 at 10:39 PM, Andrei Zh <[email protected]> wrote: > Thanks Tim, this is another interesting capability, and I'm definitely > looking forward to try it out in Julia REPL. It's a bit unusual though, so > I'm still looking for smoother way to work interactively. > > I checked one of popular packages (namely, Distributions.jl) and I like > their approach. They put all the code for related functionality into > somefile.jl without any bothering about modules, play around with it > (redefine without any problem) and then, when they are done, just include > this file into SomeModule. This is not what I've got used to in Python, but > it still works quite well. > > Anyway, further ideas for better interactive development are still welcome. > > > On Monday, July 7, 2014 12:27:09 PM UTC+3, Tim Holy wrote: >> >> On Sunday, July 06, 2014 02:52:45 PM Andrei Zh wrote: >> > Is there any way to update definitions that where imported into Main >> > with >> > "using" statement? >> >> Not that I know of. https://github.com/JuliaLang/julia/pull/7487 may be of >> interest to you. >> >> --Tim >> >
