Giter Club home page Giter Club logo

Comments (8)

davidanthoff avatar davidanthoff commented on August 25, 2024

Happy to add it on this end, if someone figures out what exact Julia expression we should run.

Also, just FYI: at the moment we can't release new builds to everyone because we are in the middle of changing the code signing for Windows. Or rather, I switched everything over already, but then it turned out that the new cert is not the right one, so we now have to wait until this is resolved...

from juliaup.

IanButterworth avatar IanButterworth commented on August 25, 2024

Maybe:

julia --startup-file=no -e 'import Base64; foreach(p -> @eval(import $(Symbol(p))), readdir(pkgdir(Base64, "..")))'

Base64 isn't special here, just a zero dep stdlib to find the stdlib source directory.

Probably only worth doing this on 1.10+ where stdlibs can have pkgimages.

from juliaup.

IanButterworth avatar IanButterworth commented on August 25, 2024

In terms of timing, on my M2 macbook on a reasonable internet connection this would add 16s to install time.
(I see Statistics and its ext is getting precompiled, which it shouldn't.. so that's a julia bug to fix)

% time julia +nightly --startup-file=no -e 'import Base64; foreach(p -> @eval(import $(Symbol(p))), readdir(pkgdir(Base64, "..")))'
Precompiling Statistics...
  1 dependency successfully precompiled in 1 seconds
Precompiling SparseArraysExt...
  1 dependency successfully precompiled in 1 seconds. 4 already precompiled.
julia +nightly --startup-file=no -e   2.88s user 1.38s system 25% cpu 16.538 total


% time julia +nightly --startup-file=no -e 'import Base64; foreach(p -> @eval(import $(Symbol(p))), readdir(pkgdir(Base64, "..")))'
julia +nightly --startup-file=no -e   1.36s user 0.84s system 223% cpu 0.985 total

Personally I think that's quite excessive, and I would've thought it would be worse for a Windows user?

from juliaup.

davidanthoff avatar davidanthoff commented on August 25, 2024

We don't have to wait into it finished, right? I could just launch a detached process that runs that and forget about it?

from juliaup.

IanButterworth avatar IanButterworth commented on August 25, 2024

True

from juliaup.

IanButterworth avatar IanButterworth commented on August 25, 2024

The Statistics issue above was because of a custom Statistics version being reachable in my default env. So we need to

JULIA_LOAD_PATH=@stdlib julia +nightly --startup-file=no -e 'import Base64; foreach(p -> @eval(import $(Symbol(p))), readdir(pkgdir(Base64, "..")))'

from juliaup.

IanButterworth avatar IanButterworth commented on August 25, 2024

From a little testing this is more robust

JULIA_LOAD_PATH=@stdlib julia +nightly --startup-file=no -e 'foreach(p -> @eval(import $(Symbol(p))), filter!(x -> isfile(joinpath(Sys.STDLIB, x, "src", "$(x).jl")), readdir(Sys.STDLIB)))'

from juliaup.

IanButterworth avatar IanButterworth commented on August 25, 2024

@davidanthoff can we get this in before the final 1.11 rc so that we can test it in the wild?

from juliaup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.