3 ms·
I love Julia too, but it currently has a bug which kills my desired workflow: the plotting library (Gadfly) takes 30 seconds to import. Yes, there are a number
by jjoonathan 12y ago
I love Julia too, but it currently has a bug which kills my desired workflow: the plotting library (Gadfly) takes 30 seconds to import.
Yes, there are a number of workarounds. You can use python or R for plotting, you can keep a single interactive session going and reload your source file in it, you can precompile Gadfly into Julia's global precompiled blob, etc, but the solutions take time and effort that significantly offset Julia's value proposition (for me, at least). If you haven't looked at Julia yet you might want to hold off for a while until they get it sorted out. It looks like it might happen in the next version, 0.4, which hopefully will support pre-compiled libraries.
I feel like a bit of a dick for complaining about hiccups in a beta version, but I really like Julia and I really don't want to see it go the Clojure route and simply accept several-second delays in oft-repeated tasks. Drake, I'm looking at you -- Make can build my entire C++ codebase in less time than it takes your "make-replacement" to launch! I love your features, but the stuck-in-molassas feeling I get when using your program was enough to scare me away.
- johnmyleswhite 12y agoHave you tried the userimg.jl hack? It's _very_ hacky, but it will convince you that precompiling packages is viable in the short-term.
- jjoonathan 12y agoIIRC I put ~30 minutes into trying to figure it out, hit a roadblock, and went back to using R here-documents (err, multi-line strings). Just now I put ~5 minutes into trying to figure out what the roadblock was but I can't find much info on the compilation process. I'd be very grateful for any pointers you have :)
- johnmyleswhite 12y agoIf you're compiling Julia from source, you should be able to do something like write a base/userimg.jl file that contains this kind of text: Base.require("Distributions.jl") Base.require("Optim.jl") Base.require("DataFrames.jl") Base.require("Gadfly.jl”) You'll need to create a new build after adding this userimg.jl file. Also be aware that changes to these packages will stop showing up when you type "using Gadfly" since you'll always access your precompiled version.
- StefanKarpinski 12y agoWe're definitely not settling for several-second delays. This will get better soon.
- jjoonathan 12y agoGreat to hear! Thanks for all the hard work, btw. Julia seems to be steaming ahead at breakneck pace, it's exciting to be along for the ride!