You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Idea: use PackageCompiler.jl to avoid the precompilation cache nightmare? #217
I looked at PackageCompiler a bit. I think creating the system image for "Python-mode" is possible if there is an option to pass julia_cmd (whose .exec[1] would point to fake-julia/julia in PyJulia usage). If @lucatrv et al. are OK with it I think I can make a PR to do that.
Actually, I think more problematic part is (still) the precompilation cache management on the Julia side because the precompilation cache does not change even if you use different system image:
The function Base.find_all_in_cache_path needs to depend on (say) the path of the system image for this plan to work. I'll suggest it in Julia's issue tracker JuliaLang/julia#27418 It sounds like useful feature to have even for pure-Julia development.
I've never attempted this... and sorry I would not have time to work on it now... but of course feel free to submit a PR, if you ask my opinion yes this would be useful!
I guess I'll not be doing the PR for julia_cmd right now since Julia core has to be improved for this plan to work (I think). But perhaps you can join the discussion in JuliaLang/julia#27418 for how precompile files should interact with the system image? I think it would be nice to have environment-specific system image sometimes (even outside the PyJulia context).
Activity
stevengj commentedon Oct 29, 2018
@lucatrv, any ideas?
tkf commentedon Oct 30, 2018
I looked at PackageCompiler a bit. I think creating the system image for "Python-mode" is possible if there is an option to pass
julia_cmd(whose.exec[1]would point tofake-julia/juliain PyJulia usage). If @lucatrv et al. are OK with it I think I can make a PR to do that.Actually, I think more problematic part is (still) the precompilation cache management on the Julia side because the precompilation cache does not change even if you use different system image:
The function
Base.find_all_in_cache_pathneeds to depend on (say) the path of the system image for this plan to work. I'll suggest it in Julia's issue tracker JuliaLang/julia#27418 It sounds like useful feature to have even for pure-Julia development.lucatrv commentedon Oct 30, 2018
I've never attempted this... and sorry I would not have time to work on it now... but of course feel free to submit a PR, if you ask my opinion yes this would be useful!
lucatrv commentedon Oct 30, 2018
Also have a look at PR #26 which was attempted time ago but never completed.
tkf commentedon Oct 31, 2018
@lucatrv Thanks for the comments. Re: Python C extension, I commented here: JuliaLang/PackageCompiler.jl#25 (comment)
I guess I'll not be doing the PR for
julia_cmdright now since Julia core has to be improved for this plan to work (I think). But perhaps you can join the discussion in JuliaLang/julia#27418 for how precompile files should interact with the system image? I think it would be nice to have environment-specific system image sometimes (even outside the PyJulia context).