@@ -56,34 +56,38 @@ cd("complet_path\t\t$CTRL_C
5656"""
5757
5858precompile_script = """
59- # Used by Revise & its dependencies
60- delete!(push!(Set{Module}(), Base), Main)
61- m = first(methods(+))
62- delete!(push!(Set{Method}(), m), m)
63- empty!(Set())
64- push!(push!(Set{Union{GlobalRef,Symbol}}(), :two), GlobalRef(Base, :two))
65- (setindex!(Dict{String,Base.PkgId}(), Base.PkgId(Base), "file.jl"))["file.jl"]
66- (setindex!(Dict{Symbol,Vector{Int}}(), [1], :two))[:two]
67- (setindex!(Dict{Base.PkgId,String}(), "file.jl", Base.PkgId(Base)))[Base.PkgId(Base)]
68- (setindex!(Dict{Union{GlobalRef,Symbol}, Vector{Int}}(), [1], :two))[:two]
69- (setindex!(IdDict{Type, Union{Missing, Vector{Tuple{LineNumberNode, Expr}}}}(), missing, Int))[Int]
70- Dict{Symbol, Union{Nothing, Bool, Symbol}}(:one => false)[:one]
71- Dict(Base => [:(1+1)])[Base]
72- Dict(:one => [1])[:one]
73- Dict("abc" => Set())["abc"]
74- pushfirst!([], sum)
75- get(Base.pkgorigins, Base.PkgId(Base), nothing)
76- sort!([1,2,3])
77- unique!([1,2,3])
78- cumsum([1,2,3])
79- append!(Int[], BitSet())
80- isempty(BitSet())
81- delete!(BitSet([1,2]), 3)
82- deleteat!(Int32[1,2,3], [1,3])
83- deleteat!(Any[1,2,3], [1,3])
84- Core.svec(1, 2) == Core.svec(3, 4)
85- copy(Core.Compiler.retrieve_code_info(Core.Compiler.specialize_method(which(+, (Int, Int)), [Int, Int], Core.svec())))
86- any(t->t[1].line > 1, [(LineNumberNode(2,:none),:(1+1))])
59+ # NOTE: these were moved to the end of Base.jl. TODO: move back here.
60+ # # Used by Revise & its dependencies
61+ # while true # force inference
62+ # delete!(push!(Set{Module}(), Base), Main)
63+ # m = first(methods(+))
64+ # delete!(push!(Set{Method}(), m), m)
65+ # empty!(Set())
66+ # push!(push!(Set{Union{GlobalRef,Symbol}}(), :two), GlobalRef(Base, :two))
67+ # (setindex!(Dict{String,Base.PkgId}(), Base.PkgId(Base), "file.jl"))["file.jl"]
68+ # (setindex!(Dict{Symbol,Vector{Int}}(), [1], :two))[:two]
69+ # (setindex!(Dict{Base.PkgId,String}(), "file.jl", Base.PkgId(Base)))[Base.PkgId(Base)]
70+ # (setindex!(Dict{Union{GlobalRef,Symbol}, Vector{Int}}(), [1], :two))[:two]
71+ # (setindex!(IdDict{Type, Union{Missing, Vector{Tuple{LineNumberNode, Expr}}}}(), missing, Int))[Int]
72+ # Dict{Symbol, Union{Nothing, Bool, Symbol}}(:one => false)[:one]
73+ # Dict(Base => [:(1+1)])[Base]
74+ # Dict(:one => [1])[:one]
75+ # Dict("abc" => Set())["abc"]
76+ # pushfirst!([], sum)
77+ # get(Base.pkgorigins, Base.PkgId(Base), nothing)
78+ # sort!([1,2,3])
79+ # unique!([1,2,3])
80+ # cumsum([1,2,3])
81+ # append!(Int[], BitSet())
82+ # isempty(BitSet())
83+ # delete!(BitSet([1,2]), 3)
84+ # deleteat!(Int32[1,2,3], [1,3])
85+ # deleteat!(Any[1,2,3], [1,3])
86+ # Core.svec(1, 2) == Core.svec(3, 4)
87+ # # copy(Core.Compiler.retrieve_code_info(Core.Compiler.specialize_method(which(+, (Int, Int)), [Int, Int], Core.svec())))
88+ # any(t->t[1].line > 1, [(LineNumberNode(2,:none),:(1+1))])
89+ # break # end force inference
90+ # end
8791"""
8892
8993julia_exepath () = joinpath (Sys. BINDIR:: String , Base. julia_exename ())
0 commit comments