Comments (4)
JuliaLang/julia#50578 for reference when this was introduced.
from packagecompiler.jl.
It looks like the issue is not type piracy but method overwriting?
from packagecompiler.jl.
Yes, but technically type piracy is the only(?) way to achieve this
I'm glad it's validating this and it's throwing warnings/errors, although it would be nice to somehow opt out of errors for this use case.
Currently the only workaround for this is to remove any type piracy on Base from the base sysimage layer, which turns out to be a difficult thing to do (not impossible though)
There's piracy in many major packages like:
- OrderedCollections.jl
- TimeZones.jl
- HTTP.jl
Also Compat.jl is a type piracy factory when used in some Julia version / Compat.jl version configurations
from packagecompiler.jl.
We also ran into this as we previously used method overwriting as an ugly hack to workaround the problem described here: #743 (comment)
In Julia versions 1.9 and earlier, during sysimg compilation we were able to overwrite _artifact_str
to download all artifacts rather than just the lazy ones, so that any missing artifacts would be downloaded during julia_init
. In 1.10+, that is no longer an option because of this change - obviously the previous solution was pretty hacky but at least was functional. Of course if there is any suggestion for a better solution that would be great
from packagecompiler.jl.
Related Issues (20)
- Can't the JULIA_DEPOT_PATH be changed in apps?
- Package Compiler Fails on Julia v1.10 HOT 1
- Error in PackageCompiler.jl with Test.jl and `filter_stdlibs = true` in Julia 1.10 HOT 2
- Cache the "base" sysimage using Scratch.jl HOT 3
- Need to update Windows compilers for 1.11
- Sysimage documentation bug
- Missing libcholmod when building apps with `filter_stdlibs = false` after updating PackageCompiler HOT 5
- Sysimage with `Plots.jl` breaks loading some shared libraries in R (via `RCall.jl`) HOT 1
- Compiled app errors when loading depencies HOT 2
- Building "examples/MyLib" fails on macOS HOT 1
- Error when creating a c-callable library on MacOS HOT 1
- Dependency analyzer seems to skip packages that are `import .PKGNAME` HOT 3
- Error occurred while compiling code that includes `using LoopVectorization` HOT 4
- Plans for the "true" Profile-Guided Optimization (PGO) in the compiler
- Zarr and DimensionalData in same package will not compile on macOS HOT 2
- Build from temporary depot (so that relocatability issues are locally reproducible)
- Failed consistency check when trying to relocate compiled app (MacOS) HOT 2
- Error for compiled executable program ran in another machine HOT 1
- How to select the GLIBC version for create_app?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packagecompiler.jl.