Repo2docker: Compile custom julia sysimage

Created on 3 Mar 2019  路  3Comments  路  Source: jupyterhub/repo2docker

Once https://github.com/jupyter/repo2docker/pull/595 is merged and we have some experience with it, we should investigate whether we can use PackageCompiler.jl during the build step to compile a custom sysimage that includes all the packages in the Project.toml. That custom sysimage would then be stored in the docker file. This has the potentially to make things _a lot_ more snappy because we could probably get around a fair bit of JIT compiling.

enhancement help wanted

Most helpful comment

Yes, we should probably wait until this whole stack is more mature on the julia side of things. I think we can really only consider using it when PackageCompiler.jl is at a point where "it just works", not matter what.

All 3 comments

woahhhhh that'd be super duper cool! :D I love it.

Beware of issues that can arise due to this, though - Makie, for example, will not show a plot display unless AbstractPlotting.__init__() is called first (because of weirdness around the display stack). There might be other examples of this behaviour that you'd have to watch out for.

Yes, we should probably wait until this whole stack is more mature on the julia side of things. I think we can really only consider using it when PackageCompiler.jl is at a point where "it just works", not matter what.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nuest picture nuest  路  6Comments

betatim picture betatim  路  6Comments

betatim picture betatim  路  6Comments

choldgraf picture choldgraf  路  5Comments

betatim picture betatim  路  6Comments