https://github.com/JuliaLang/julia

sort by:
Revision Author Date Message Commit Date
594e6ef Introduce an interface for external GC backends 08 February 2024, 15:02:01 UTC
3dadada Allow using an unexported custom `AbstractTestSet` in `@testset` (#53212) Co-authored-by: Sukera <Seelengrab@users.noreply.github.com> 08 February 2024, 12:53:28 UTC
667cdde compiler: fix the XXX test case in ssair.jl (#53245) This should live in test/compiler/inline.jl instead. 08 February 2024, 12:39:13 UTC
2b939f7 Add Debian terminfo directory default to find_terminfo_file (#51809) Without this, `Base.current_terminfo` returns `TermInfo(String[]; 0 flags, 0 numbers, 0 strings)` because it cannot find the correct terminfo files. In the regular terminal, there was basic color and formatting functionality because `$TERM`s starting with `xterm` are treated specially, but in a tmux session, where the `$TERM = tmux-256color`, there was no color at all. This also has the side-effect of enabling strikethrough and italics in the default gnome terminal emulator. The readme found in `/etc/terminfo/README` (as mentioned in `terminfo(5) "Fetching Compiled Descriptions"`) says the following: ``` /etc/terminfo/README This directory is for system-local terminfo descriptions. By default, ncurses will search ${HOME}/.terminfo first, then /etc/terminfo (this directory), then /lib/terminfo, and last not least /usr/share/terminfo. ``` I believe the manual might be different depending on the distro. 08 February 2024, 12:26:11 UTC
815cfd5 Added documentation to libdl module (#52825) Part of #52725 --------- Co-authored-by: RichieWilynnton <richiewilynton@gmail.com> Co-authored-by: Steven G. Johnson <stevenj@mit.edu> Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: inky <git@wo-class.cn> Co-authored-by: Max Horn <max@quendi.de> 08 February 2024, 12:13:23 UTC
c1a7bb2 🤖 [master] Bump the Pkg stdlib from f3b81f1aa to 6dd0e7c9e (take 2) (#53220) Replaces https://github.com/JuliaLang/julia/pull/53216 (I can't push to that repo branch) Adds - making pkgimages for REPLExt - Fixes PkgCompletionProvider location Stdlib: Pkg URL: https://github.com/JuliaLang/Pkg.jl.git Stdlib branch: master Julia branch: master Old commit: f3b81f1aa New commit: 6dd0e7c9e Julia version: 1.11.0-DEV Pkg version: 1.11.0 Bump invoked by: @IanButterworth Powered by: [BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl) Diff: https://github.com/JuliaLang/Pkg.jl/compare/f3b81f1aac77acf08f5d847ead29ad0a228dec67...6dd0e7c9e99d578aa5477e2c78c91a161ce4c357 ``` $ git log --oneline f3b81f1aa..6dd0e7c9e 6dd0e7c9e Revert "add test for recurring precompile" (#3779) dbf114fa9 Merge pull request #3777 from JuliaLang/kc/repl_extension a49d47981 fixup e3edf3917 avoid prompting for git creds on CI (#3778) 510454343 make the `REPL` specific code into an extension 12d2de14e make `pkgstr` independent of REPL ``` --------- Co-authored-by: Dilum Aluthge <dilum@aluthge.com> Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com> Co-authored-by: Kristoffer Carlsson <kcarlsson89@gmail.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> 08 February 2024, 12:05:47 UTC
ebe947e Add docstring for InteractiveUtils module (#53206) Handles the `InteractiveUtils` part of https://github.com/JuliaLang/julia/issues/52725. cc @stevengj 08 February 2024, 11:57:22 UTC
e68e432 allow printing some TOML dictionaries inline by marking them with an IdSet (#53233) This was one way I came up with to "mark" what dictionaries one wants to print inline. I am not sure `IdSet` is even considered public but it seemed the most reasonable for this. 08 February 2024, 11:56:45 UTC
4c2df21 Add `Pipe` to the documentation (#53202) The reasoning is that `Pipe` is specifically documented in other functions that are part of the public API (e.g. `redirect_stdio()`), so it should be documented too. Same goes for `link_pipe!()` since it's mentioned in the `Pipe` docstring. The other function that could be documented is `open_pipe!()`, but that specifically applies to `PipeEndpoint`'s and I could imagine that we want it to be difficult to create a half-initialized `Pipe` :sweat_smile: I wrote a docstring for `link_pipe!()` based off the libuv docs: https://docs.libuv.org/en/v1.x/pipe.html#c.uv_pipe 08 February 2024, 11:55:17 UTC
b5bd10e Add `track_content` option to allow hashing of `include_dependency`s (#51798) Continuation of #49866. Fixes #52462 So far any `include_dependency` was tracked by `mtime`. A package using `include_dependency` can't be relocated without recompilation if the dependency also needs to be relocated. With `include_dependency(path, track_content=true)` the tracking works like for `include`, i.e. recompilation is only triggered when the file's content changes. In case `path` is a directory we use the string `join(readdir(path))` as content. --------- Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com> 08 February 2024, 11:54:08 UTC
15e2af2 Added docstring for Artifacts.jl (#52913) This is a part of issue #52725. --------- Co-authored-by: Steven G. Johnson <stevenj@mit.edu> Co-authored-by: Max Horn <max@quendi.de> 08 February 2024, 11:52:35 UTC
c5ad467 Document --heap-size-hint in Command-line Interface (#50480) Almost a direct copy of the output in `julia --help`. Closes #50588 Co-authored-by: Max Horn <max@quendi.de> 08 February 2024, 11:44:55 UTC
2673c14 Clarify `==` docs for collections (#52495) Alright, here's my spitball at fixing https://github.com/JuliaLang/julia/issues/52484. This also clarifies the non-missing behaviors, and adds a reference to `all` which should be a useful breadcrumb. I don't want to say `all(x .== y)` because that has all sorts of broadcasting semantics, but we could perhaps add a comparison to `all(splat(==), zip(x, y))` or `all(map(==, x, y))`, but even those feel sketchy to reference as they may miss other properties (like array shape). --------- Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: inky <git@wo-class.cn> Co-authored-by: Max Horn <max@quendi.de> 08 February 2024, 11:39:42 UTC
41a6e7b [LibCURL_jll] Upgrade to v8.6.0 (#53222) 08 February 2024, 10:03:05 UTC
5cb5cd8 code_warntype docs: more neutral reference to @code_warntype (#51361) fix #51358 --------- Co-authored-by: Fredrik Ekre <ekrefredrik@gmail.com> Co-authored-by: Max Horn <max@quendi.de> 08 February 2024, 09:25:36 UTC
4414599 Fix PkgId repr (#52795) Fixes #52793 ``` % ./julia --startup-file=no -E 'repr(Base.PkgId(Base.UUID("295af30f-e4ad-537b-8983-00126c2a3abe"), "Revise"))' "Base.PkgId(UUID(\"295af30f-e4ad-537b-8983-00126c2a3abe\"), \"Revise\")" ``` ``` julia> Base.PkgId(Base.UUID("295af30f-e4ad-537b-8983-00126c2a3abe"), "Revise") Revise [295af30f-e4ad-537b-8983-00126c2a3abe] ``` 08 February 2024, 09:24:39 UTC
4d0a469 SubArray: avoid invalid elimination of singleton indices (#53228) close #53209 08 February 2024, 06:22:48 UTC
2bd4cf8 Avoid allocations in views of views (#53231) Currently, views-of-views construct their re-indexed indices by slicing into the parent indices. This PR changes this to use views of the parent indices instead. This makes the operation faster and non-allocating if the `parentindices` for the original view are `Vector`s. ```julia julia> a = rand(200, 200); julia> av = view(a, collect.(axes(a))...); julia> @btime view($av, axes($av)...); 312.393 ns (4 allocations: 3.25 KiB) # master 7.354 ns (0 allocations: 0 bytes) # PR ``` Indexing into the resulting view seems equally fast in simple cases: ```julia julia> av2 = view(av, axes(av)...); julia> @btime sum($av2); 66.883 μs (0 allocations: 0 bytes) # master 66.888 μs (0 allocations: 0 bytes) # PR julia> av2 = view(av, collect.(axes(av))...); julia> @btime sum($av2); 66.886 μs (0 allocations: 0 bytes) # master 66.891 μs (0 allocations: 0 bytes) # PR ``` --------- Co-authored-by: N5N3 <2642243996@qq.com> 08 February 2024, 06:22:24 UTC
a6ce761 add docs and jldoctests for `Base.shell_split` and `Base.rstrip_shell` (#52520) These were undocumented and I have seen `Base.shell_split` used in the package ecosystem. This adds some docs for clarity although neither of these functions are part of Base's exports. --------- Co-authored-by: Jameson Nash <vtjnash@gmail.com> 08 February 2024, 04:50:19 UTC
72d3abe Fix potential instability/invalidation in dlpath (#53232) While debugging some invalidations and instabilities in code in packages I work on, one of the issues I stumbled over is this code in this `dlpath` method: ```julia function dlpath(libname::Union{AbstractString, Symbol}) handle = dlopen(libname) path = dlpath(handle) dlclose(handle) return path end ``` The `dlopen` modified in this PR can in principle return `nothing`. But there is no `dlpath` method for this. If one loads just a plain Julia, all is fine, but under certain conditions (deep in a call chain analyzed with Cthulhu.jl) it ended up not being able to prove that `path` will be a string, and only inferred it as `Any`. But if `throw_error` is set to `true` (the default, and used in the relevant code path) then `dlopen` cannot return `nothing`, it always returns a `String`. But the Julia compiler can't know that, as the exception is thrown by a C helper. So instead modify the Julia code a bit to help Julia deduce this fact by itself. 07 February 2024, 21:28:09 UTC
18df941 doc: cosmetic whitespace changes in documentation.md (#53183) 07 February 2024, 20:44:57 UTC
e2c8809 Disambiguate get_world_counter and get_inference_world (#53088) Add brief docs to `Base.get_world_counter` and add `Base.tls_wold_age`. Furthermore to disambiguate `get_world_counter` from the inference world rename the abstract interpreter accessor to `get_inference_world` 07 February 2024, 19:36:12 UTC
d24316a Fix Int8(-128) // Int8(-128) (#51944) Fixes #51731 and #51730 Also fixes one of the previously broken tests: ```julia @test_broken Rational{Int64}(UInt(1), typemin(Int32)) == Int64(1) // Int64(typemin(Int32)) ``` This PR ensures the `Rational{T}` constructor with concrete `T` will only throw if the final numerator and denominator cannot be represented by `T`, or are both zero. If the `T` in `Rational{T}` is not concrete, this PR tries to ensure the numerator and denominator are promoted to the same type. This means `-1*Rational{Integer}(-1, 0x01) == 1` doesn't throw now. A side effect of this is that `Rational{Integer}(Int8(-1), 0x01)` now throws. Also, related to <https://github.com/JuliaLang/julia/pull/25702#issuecomment-359821951>, now `divgcd` doesn't change the types of its inputs and can handle `typemin`, but it still throws a `DivideError` if both inputs are zero. 07 February 2024, 15:53:14 UTC
736eeda docs: remove outdated discussion about externally changing module bindings (#53170) As of Julia 1.9, bindings in modules can be changed directly. See https://discourse.julialang.org/t/clarify-the-documentation-about-modifying-module-variables/109668/3 07 February 2024, 15:03:21 UTC
bead1d3 fix spurious overflow for Float16(::Rational) (#52395) Fixes #52394. Also fixes `Float32` for `UInt128`, since currently `Float32((typemax(UInt128)-0x01) // typemax(UInt128))` gives `Nan32`. 07 February 2024, 14:50:51 UTC
d765ad1 Added documentation for the Markdown Macro (#52607) Co-authored-by: Jameson Nash <vtjnash@gmail.com> 07 February 2024, 13:56:14 UTC
e22db88 [deps] Do not build OpenBLAS Bfloat16 kernels in from source build (#53221) Not clear why OpenBLAS build fails, GCC 10 should be sufficient to compile the Bfloat16 kernels and [from what I can tell](https://github.com/JuliaLang/julia/issues/53172#issuecomment-1930144786) that's the compiler version used in CI, but I don't know how to verify it since this is a nightly job. If someone who knows more about the setup can chime in, that'd be great. In the meantime, disabling these kernels should fix #53172. 07 February 2024, 13:08:24 UTC
d453af8 Fix escaping of docstring in `@__DIR__` (#53225) This issue was introduced in #52442. The markdown parser had issues with the triple-quotes. Usually you can use quadruple-quotes to fix this, but this does not appear to be supported, so we escape each with backslash. Here is the corrected docstring rendered: ```julia-repl help?> @__DIR__ @__DIR__ -> String Macro to obtain the absolute path of the current directory as a string. If in a script, returns the directory of the script containing the @__DIR__ macrocall. If run from a REPL or if evaluated by julia -e <expr>, returns the current working directory. Example ≡≡≡≡≡≡≡ The example illustrates the difference in the behaviors of @__DIR__ and pwd(), by creating a simple script in a different directory than the current working one and executing both commands: julia> cd("/home/JuliaUser") # working directory julia> # create script at /home/JuliaUser/Projects open("/home/JuliaUser/Projects/test.jl","w") do io print(io, """ println("@__DIR__ = ", @__DIR__) println("pwd() = ", pwd()) """) end julia> # outputs script directory and current working directory include("/home/JuliaUser/Projects/test.jl") @__DIR__ = /home/JuliaUser/Projects pwd() = /home/JuliaUser ``` 07 February 2024, 04:53:09 UTC
41bbfb4 Add explicit mention of branch cuts to `log`, `sqrt`, `angle` docstrings (#52970) I realised that `angle` doesn't even specify that it's in -π to π. These are all pretty standard but perhaps we should be explicit. 07 February 2024, 02:39:00 UTC
0c804bd Add InteractiveUtils in doc refs to define_editor (#52927) Otherwise since `define_editor` is not exported, it's hard for the user to find what it's referring to. (Another possibility would be to export `define_editor`) 07 February 2024, 02:37:53 UTC
76b8b2a improve return type inference for `string` (#52806) Packages like URIs.jl overload `joinpath` with methods that return non-strings. This prevents good return type inference for `string` when the types of its arguments are unknown. Even if this is a URIs.jl bug, it makes sense to be defensive about this in the Julia implementation. Also note that URIs.jl is widely-used, JuliaHub says it's got in excess of a thousand (indirect) dependents. So, IMO, this is a Julia bug that we should fix: ```julia-repl julia> all(T -> T <: AbstractString, Base.return_types(string)) true julia> import URIs julia> all(T -> T <: AbstractString, Base.return_types(string)) false ``` Fixed by adding a `::String` type assertion in `base/libdl.jl`. 07 February 2024, 02:36:51 UTC
fc1c1cd Add missing artifact functions to docs output (#52698) Fixes #52688 Co-authored-by: re1san <kathareaniket47@gmail.com> 07 February 2024, 02:31:00 UTC
32687b0 Clarify the docs of @__DIR__ (#52442) The original docs start with `Expand`, which is already a concept that might not be clear to the reader. Furthermore, in this version there is an example to illustrate how this macro is different from `pwd()`. 07 February 2024, 00:59:21 UTC
101aa39 Remove allocation from PermutedDimsArray constructor (#53185) Remove allocation from PermutedDimsArray constructor by replacing `all(map(pred, ...))` with `all(pred, ...)`. 06 February 2024, 21:49:05 UTC
34f1496 rename init.c func `abspath` -> `absrealpath` (#52574) For clarification given its behavior is not the same as julia's `abspath` Related https://github.com/JuliaLang/julia/issues/52458 06 February 2024, 21:45:41 UTC
522cf3b add docstring and doctest for `Base.format_bytes` (#52976) There are many uses of this function throughout the package ecosystem. In addition, it is common to see it re-implemented. This adds some docstrings and tests for `Base.format_bytes`. 06 February 2024, 21:40:20 UTC
321cc2d add specialized `reverse` implementation for `NTuple` (#50113) This adds a specialized version of `reverse` for NTuple using a simple constructor. 1.9: ``` julia> a = tuple(rand(Int, 256)...); julia> @benchmark reverse($a) BenchmarkTools.Trial: 7099 samples with 1 evaluation. Range (min … max): 611.280 μs … 5.698 ms ┊ GC (min … max): 0.00% … 0.00% Time (median): 670.392 μs ┊ GC (median): 0.00% Time (mean ± σ): 700.950 μs ± 144.952 μs ┊ GC (mean ± σ): 1.37% ± 5.70% ▃▄██▇▆▆▆▆▄▂ ▂ ▇███████████▇▇▆▄▇█▅▅▅▃▄▁▁▁▁▃▄▄▁▁▁▃▁▃▁▁▄▃▄▅▆▅▆▆▅▅▆▇▆▆▇▇▇█▇▆▇▇▆ █ 611 μs Histogram: log(frequency) by time 1.33 ms < Memory estimate: 794.42 KiB, allocs estimate: 33663. ``` This commit: ``` julia> @benchmark reverse($a) BenchmarkTools.Trial: 10000 samples with 995 evaluations. Range (min … max): 26.252 ns … 52.545 ns ┊ GC (min … max): 0.00% … 0.00% Time (median): 26.285 ns ┊ GC (median): 0.00% Time (mean ± σ): 26.578 ns ± 0.940 ns ┊ GC (mean ± σ): 0.00% ± 0.00% █▆▂ ▁ ▁ ████▆▅▆▅▄▄▄▂▃▄███▇▆▆▆▅▆▄▅▅▆█▇▆▄▅▆▆▅▆██▅▅▅▄▅▅▄▅▄▅▅▅▄▅▃▅▂▄▄██ █ 26.3 ns Histogram: log(frequency) by time 30.2 ns < Memory estimate: 0 bytes, allocs estimate: 0. ``` 06 February 2024, 21:35:49 UTC
0c49003 Update LLVM version to 16.0.6+4 (#53195) This has a build change for enzyme, but should be NFC 06 February 2024, 18:56:33 UTC
9bafc53 Profile: add notes to `print()` docs (#53205) 06 February 2024, 18:36:53 UTC
eb82072 deps/ittapi: Update ittapi clean target (#52693) Change: - clean `libittnotify` and `libjitprofiling`, not `libopenlibm` c.f. https://github.com/JuliaLang/julia/blob/0f62824530feb9ab39c179175b3fc4702d21c552/deps/ittapi.mk#L23-L25 06 February 2024, 18:19:25 UTC
31ae775 fix typo in AnnotatedChar constructor (#53204) Found randomly when using JET for something completely different. 06 February 2024, 16:12:40 UTC
da8a441 Improved terminfo parser (#51198) This bundles up the following changes: - Rejiged TermInfo struct - Read the extended terminfo table using the same method as the non-extended table - Use signed integer types for most numeric values, as per term(5) - More robust get(::TermInfo, ...) methods - Better match the terminfo(5) "Fetching Compiled Descriptions" behaviour 06 February 2024, 16:11:32 UTC
94fd312 Add `:greedy` scheduler to `@threads` (#52096) 06 February 2024, 13:32:19 UTC
353884c Don't tell people to use Pkg to install Pkg (#53197) 06 February 2024, 13:30:35 UTC
28db6c7 AnnotatedIOBuffer: prevent despecialization of annotations list (#53155) In f117a500ca93 code modifying annotations via list comprehensions was introduced. However, when (1) there are annotations present and (2) all annotations are filtered out, this comprehension is inferred to a wider type incompatible with the AnnotatedString constructor. This can be fixed by changing the first element of the tuple to directly use the UnitRange{Int} constructor, which stops it being inferred as an Any. 05 February 2024, 22:36:10 UTC
cfcf8a0 Bump SparseArrays to use SuiteSparse 7.6.0 (#53180) This is using commits that are on a branch of SparseArrays.jl. The PR for SuiteSparse 7.6 in SparseArrays.jl - https://github.com/JuliaSparse/SparseArrays.jl/pull/502 - should be merged first. Then the commits should be updated here, and then this PR should be merged. 05 February 2024, 05:41:46 UTC
26d17a8 Remove Matrix constructor for AbstractTriangular (#53167) This seems redundant, as the fallback constructor does the same. ```julia julia> using LinearAlgebra julia> Revise.track(LinearAlgebra) julia> U = UpperTriangular(rand(4,4)) 4×4 UpperTriangular{Float64, Matrix{Float64}}: 0.798171 0.484117 0.988126 0.986837 ⋅ 0.186955 0.827882 0.600041 ⋅ ⋅ 0.344573 0.344545 ⋅ ⋅ ⋅ 0.29875 julia> Matrix(U) 4×4 Matrix{Float64}: 0.798171 0.484117 0.988126 0.986837 0.0 0.186955 0.827882 0.600041 0.0 0.0 0.344573 0.344545 0.0 0.0 0.0 0.29875 julia> @which Matrix(U) (Array{T, N} where T)(x::AbstractArray{S, N}) where {S, N} @ Core boot.jl:599 ``` 05 February 2024, 04:57:48 UTC
6defd59 Implement empty! for Channel (#53137) 05 February 2024, 02:30:50 UTC
914de06 improve error when broadcast failed due to axistype (#45922) 05 February 2024, 02:27:55 UTC
9aba4a8 try improving check_top_bit error message (#53166) Fixes #30247 @staticfloat this was your issue, so what do you think of this? I think the main problem was already solved (showing the wrong type), but I am wondering if this wording is still clearer, since it tries to align it with functions users might actually have encountered (trunc, convert, signbit) 05 February 2024, 01:17:26 UTC
d91a7fa further improve clarity of MethodError printing (#53164) Distinguish some of the cases of manually thrown MethodError by looking for a method in the specified world. Also refactor some of the kwcall handling to be closer to supporting `invoke`d calls (although it does not guaranteed to have a value for `f`, which is often required later). Fixes #36182 05 February 2024, 01:03:52 UTC
37a0e65 Do not resolve binding `Module` in Main during sysimg generation (#53162) Currently, the use of `Module` in the precompilation scripts makes the Module binding automatically resolved in Main because it is embedded in the sysimage. This prevents users from using the name Module for their own variables in Main. 05 February 2024, 01:01:31 UTC
8db1294 add atomic operators for globals, memory, and setonce (#52868) This implements `AtomicMemory`, atomic operations for globals, and the class of atomic function for setting a field or global or memory exactly once (setting undef => value). It is quite similar to an `@atomicreplace`, but where there was not a previous value. This is not needed for pointers, since it is simply calling C_NULL => pointer in that case, since there is no "undef" value that throws after load. plenty of future work still, for a later PR: - syntax lowering for `@atomic global x = y` and `@atomic closedover = y` - adding `Core.AtomicBox` for closure capture - generic functions for `atomicsetindex` & friends - macro for `@atomic x = y` and `@atomic x[] = y`, etc - design for `@atomiconce f()` 05 February 2024, 00:51:02 UTC
3d8b107 Improve printing for length and size method error (#53146) 04 February 2024, 03:58:55 UTC
6be4235 Write test result data to static location, and log (#53173) 04 February 2024, 03:53:45 UTC
47663bd Normalize indices in promote_shape error messages (#41311) Seeing implementation details like `Base.OneTo` in error messages may be confusing to some users (cf discussion in #39242, [discourse](https://discourse.julialang.org/t/promote-shape-dimension-mismatch/57529/)). This PR turns ```julia julia> ones(2, 3) + ones(3, 2) ERROR: DimensionMismatch("dimensions must match: a has dims (Base.OneTo(2), Base.OneTo(3)), b has dims (Base.OneTo(3), Base.OneTo(2)), mismatch at 1") ``` into ```julia julia> ones(2, 3) + ones(3, 2) ERROR: DimensionMismatch("dimensions must match: a has size (2, 3), b has size (3, 2), mismatch at 1") ``` Fixes #40118. (This is basically #40124, but redone because I made a mess rebasing). --------- Co-authored-by: Jameson Nash <vtjnash@gmail.com> 04 February 2024, 01:32:02 UTC
831cc14 Fix typo in BuildKite test data generation CI code (#53168) 03 February 2024, 19:48:55 UTC
6f7cfa7 Collect test results into BuildKit-compatible JSON (#53145) 03 February 2024, 15:12:52 UTC
fc06291 Improve error message for `which(fn, types)` (#47369) Error messages for `MethodError` are much more helpful in determining why the method was not successfully dispatched than simply "No unique matching method found." Fixes #47322 03 February 2024, 02:49:59 UTC
fda9321 stdlib: make dot product of Hermitian matrices real (#52318) Co-authored-by: Daniel Karrasch <daniel.karrasch@posteo.de> 03 February 2024, 01:07:49 UTC
12c5d2d Add count of lock conflicts to `@time` etc. Add `@lock_conflicts` (#52883) 02 February 2024, 23:48:54 UTC
98e4f01 Fix `size` on `GenericMemory` with non-`Int` `Integer` argument (#53161) I found this through fuzzing. The nature of the issue indicates to me that this was untested, but coverage doesn't seem to have run for the past three months so I can't check, which is why I added an explicit test. I'm not sure `arrayops.jl` is the best place for tests related to `GenericMemory`, so feel free to suggest a better one. Co-authored-by: Sukera <Seelengrab@users.noreply.github.com> 02 February 2024, 21:11:16 UTC
f2e168a Add filter(f, ::Namedtuple) (#50795) 02 February 2024, 16:59:15 UTC
d54a455 Hoist boundscheck in vector setindex for arrays (#53149) As noted by @N5N3 in https://github.com/JuliaLang/julia/issues/40962#issuecomment-1921469633, the bounds-check on the elementwise `setindex!` prevents vectorization. Explicitly performing the bounds-check and marking the `setindex!` as `@inbounds` speeds up the operation. ```julia julia> A = zeros(1000); B = rand(1000); julia> @btime $A[1:end] = @view $B[1:end]; 689.940 ns (0 allocations: 0 bytes) # master 97.629 ns (0 allocations: 0 bytes) # PR ``` 02 February 2024, 07:09:12 UTC
058b511 deps/libsuitesparse: fix source build (#53150) fix #53122 02 February 2024, 06:42:19 UTC
6e7db14 Update and load styledstrings in REPL (#51869) This has some value by itself, but mainly serves as a prerequisite for #51811, #51816, and #51829, along with two other PRs that have yet to be made. 01 February 2024, 18:19:57 UTC
f117a50 Introduce AnnotatedIOBuffer (#51807) This allows for styled content to be constructed incrementally, without resorting to repeated concatenation. It operates very similarly to IOContext, just with a special `write` method and specifically wrapping an IOBuffer. 01 February 2024, 15:38:38 UTC
c16472b Change to streaming out the heap snapshot data (#52854) This PR is to continue the work on the following PR: Prevent OOMs during heap snapshot: Change to streaming out the snapshot data (https://github.com/JuliaLang/julia/pull/51518 ) Here are the commit history: ``` * Streaming the heap snapshot! This should prevent the engine from OOMing while recording the snapshot! Now we just need to sample the files, either online, before downloading, or offline after downloading :) If we're gonna do it offline, we'll want to gzip the files before downloading them. * Allow custom filename; use original API * Support legacy heap snapshot interface. Add reassembly function. * Add tests * Apply suggestions from code review * Update src/gc-heap-snapshot.cpp * Change to always save the parts in the same directory This way you can always recover from an OOM * Fix bug in reassembler: from_node and to_node were in the wrong order * Fix correctness mistake: The edges have to be reordered according to the node order. That's the whole reason this is tricky. But i'm not sure now whether the SoAs approach is actually an optimization.... It seems like we should probably prefer to inline the Edges right into the vector, rather than having to do another random lookup into the edges table? * Debugging messed up edge array idxs * Disable log message * Write the .nodes and .edges as binary data * Remove unnecessary logging * fix merge issues * attempt to add back the orphan node checking logic ``` --------- Co-authored-by: Nathan Daly <nathan.daly@relational.ai> Co-authored-by: Nathan Daly <NHDaly@gmail.com> 01 February 2024, 14:59:17 UTC
8b88e3b delete unnecessary abstract type in `Base.Rounding` (#53093) 01 February 2024, 14:57:13 UTC
88218c6 Clarify error when arrays are too big for the system bit width (#52545) On Slack, was helping someone who encountered an "Invalid Array size" error message on a 32-bit system. The cause wasn't clear, so I had to dig around and realized that it only triggers if an array is created that is too large for the bit width of the system. So I figured it would be better to clarify that in the error message. --------- Co-authored-by: Steven G. Johnson <stevenj@mit.edu> Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com> 01 February 2024, 14:39:45 UTC
453e9d0 `typemin`, `typemax` for irrationals (#50894) Fixes #36978 01 February 2024, 14:35:22 UTC
30ccace Load StyledStrings in REPL By loading the StyledStrings stdlib in REPL, we load the privateered print/show methods for the Annotated{String,Char} types defined there. This is nice to have, because it means that styled annotated strings can be constructed in Base and elsewhere without loading the StyledStrings stdlib, but they will be displayed as intended in the REPL. 01 February 2024, 12:54:33 UTC
1552116 Update StyledStrings version This gets us two particular commits of interest: - Replace within-module eval with hygienic eval: which makes it possible to include StyledStrings in the sysimage without running into precompile errors. - Load the JULIA_*_COLOR env vars for compat: which mirrors the current behaviour to the relevant faces. 01 February 2024, 12:54:31 UTC
e7a1c7f 🤖 [master] Bump the Pkg stdlib from ba4955e2e to f3b81f1aa (#53138) Stdlib: Pkg URL: https://github.com/JuliaLang/Pkg.jl.git Stdlib branch: master Julia branch: master Old commit: ba4955e2e New commit: f3b81f1aa Julia version: 1.11.0-DEV Pkg version: 1.11.0 Bump invoked by: @KristofferC Powered by: [BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl) Diff: https://github.com/JuliaLang/Pkg.jl/compare/ba4955e2e0eb64e47861d0a7d96569c05d41f1f5...f3b81f1aac77acf08f5d847ead29ad0a228dec67 ``` $ git log --oneline ba4955e2e..f3b81f1aa f3b81f1aa disable `julia_version` tests (#3773) b13bd2ddf support the "path" key in Project.toml, (#3756) 731105126 why: show more when package is both a direct and indirect dep (#3771) a83783ecb Avoid deleting existing artifacts when ignoring hashes. (#3768) b43187590 ignore tree hashes on Windows w/o symlink capability (#3764) ``` Co-authored-by: Dilum Aluthge <dilum@aluthge.com> 01 February 2024, 09:46:54 UTC
f064e1b forward `repeat(A, cts..)` to `repeat(A; kw..)` (#49830) This would mean that custom array types that seek to extend `repeat` only need to add the method `repeat(A::CustomArray; kw...)` 01 February 2024, 06:12:14 UTC
6db867b Better libuv error message for ENOENT ~ (#22647) 01 February 2024, 05:16:57 UTC
353d7b7 Define valtype(::Tuple) and keytype(::Tuple) (#49179) Same as https://github.com/JuliaLang/julia/pull/46555, but for Tuples Co-authored-by: Oscar Smith <oscardssmith@gmail.com> 01 February 2024, 02:46:09 UTC
08e3c2e Access only stored inds in `copy` for strided `AbstractTriangular` (#52907) 31 January 2024, 20:38:30 UTC
444e14e Make FDWatcher check for file descriptors equal to -1 (#52902) 31 January 2024, 20:37:53 UTC
2b9839b Use insert! not splice! for new annotations Co-authored-by: Jameson Nash <vtjnash@gmail.com> 31 January 2024, 17:54:29 UTC
39839ac Update the mention of annotated features in NEWS 31 January 2024, 17:54:29 UTC
2e6ebb9 Tests for AnnotatedIOBuffer 31 January 2024, 17:54:29 UTC
d49ba4f Writing from one AnnotatedIOBuffer to another 31 January 2024, 17:54:29 UTC
f4c5e13 Also read AnnotatedChars from an AnnotatedIOBuffer The `read(::AnnotatedIOBuffer, AnnotatedString)` method is intended as an approximate analogue to `read(::IOBuffer, String)`. In the same sense, it makes sense to define `read(::AnnotatedIOBuffer, AnnotatedChar)` as an analogue to `read(::IOBuffer, Char)`. 31 January 2024, 17:54:23 UTC
c2b441b Make AnnotatedIOBuffer reading more generic While `String` is the only concrete type for which `read(::IOBuffer, ::Type{<:AbstractString})` is defined, is is entirely conceivable that some other custom string type could define a similar `read` method. Since making reading an `AnnotatedString` from an `AnnotatedIOBuffer` more generic is as easy as replacing the hardcoded `String` with a type parameter, we may as well do so. 31 January 2024, 17:53:42 UTC
886d7a4 get_bool_env: add method with a lazy default option. Add kwarg to throw (#52950) Based on need here https://github.com/JuliaLang/Pkg.jl/pull/3764#discussion_r1456534459 31 January 2024, 17:19:45 UTC
95ae27f Try to fix incorrect documentation of `nthreads` (#53117) Since https://github.com/JuliaLang/julia/pull/49094, the docstring of `nthreads` has been incorrect. It currently states that > The threads in default have id numbers `1:nthreads(:default)`. whereas that is no longer true: ```julia julia> filter(i -> Threads.threadpool(i) == :interactive, 1:Threads.maxthreadid()) 3-element Vector{Int64}: 1 2 3 julia> filter(i -> Threads.threadpool(i) == :default, 1:Threads.maxthreadid()) 6-element Vector{Int64}: 4 5 6 7 8 9 ``` 31 January 2024, 17:10:30 UTC
8304111 Add `Base.checked_pow(x,y)` to `Base.Checked` library (#52849) Fixes #52262. Performs `^(x, y)` but throws OverflowError on overflow. Example: ```julia julia> 2^62 4611686018427387904 julia> 2^63 -9223372036854775808 julia> checked_pow(2, 63) ERROR: OverflowError: 2147483648 * 4294967296 overflowed for type Int64 ``` Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Shuhei Kadowaki <aviatesk@gmail.com> 31 January 2024, 16:49:59 UTC
81deb5e fix pkgimage.mk tree (#53133) Taken from https://github.com/JuliaLang/julia/pull/53111 31 January 2024, 16:01:30 UTC
cc74d24 Inplace transpose for unit Triangular may skip diagonal (#53101) Since the diagonal elements of a `UnitUpperTriangular` are given by `onelement`, these should be unchanged under `transpose/adjoint`, and we don't need to access these elements in the parent array when performing in-place operations. Fixes ```julia julia> using LinearAlgebra julia> M = Matrix{BigFloat}(undef, 2, 2); julia> M[1,2] = 3; julia> U = UnitUpperTriangular(M) 2×2 UnitUpperTriangular{BigFloat, Matrix{BigFloat}}: 1.0 3.0 ⋅ 1.0 julia> transpose!(U) ERROR: UndefRefError: access to undefined reference Stacktrace: [1] getindex @ ./essentials.jl:882 [inlined] [2] getindex @ ./array.jl:915 [inlined] [3] copytri! @ ~/packages/julias/julia-latest/share/julia/stdlib/v1.11/LinearAlgebra/src/matmul.jl:414 [inlined] [4] transpose!(A::UnitUpperTriangular{BigFloat, Matrix{BigFloat}}) @ LinearAlgebra ~/packages/julias/julia-latest/share/julia/stdlib/v1.11/LinearAlgebra/src/triangular.jl:470 [5] top-level scope @ REPL[5]:1 ``` After this PR: ```julia julia> transpose!(U) 2×2 UnitLowerTriangular{BigFloat, Matrix{BigFloat}}: 1.0 ⋅ 3.0 1.0 ``` 31 January 2024, 12:09:57 UTC
cb9b00d follow up #53127, fix the broken test case (#53134) 31 January 2024, 08:18:01 UTC
311553e Make AnnotatedIOBuffer behave more like IOBuffer A few extra methods help a lot. It also turns out that we don't actually need to implement lock/unlock, the fallback implementations are enough. 31 January 2024, 06:22:20 UTC
2730f29 Introduce AnnotatedIOBuffer This allows for styled content to be constructed incrementally, without resorting to repeated concatenation. It operates very similarly to IOContext, just with a special `write` method and specifically wrapping an IOBuffer. 31 January 2024, 06:22:20 UTC
dc474d8 inference: avoid adding duplicate edges as invoke targets (#53121) This was inefficient, though not wrong. Fixes #53020 31 January 2024, 01:28:11 UTC
1295379 put a try catch around calls to `propertynames` in tab completion. (#53127) fixes https://github.com/JuliaLang/julia/issues/53126 31 January 2024, 01:24:10 UTC
9df7a67 🤖 [master] Bump the ArgTools stdlib from 4eccde4 to 997089b (#53124) Stdlib: ArgTools URL: https://github.com/JuliaIO/ArgTools.jl.git Stdlib branch: master Julia branch: master Old commit: 4eccde4 New commit: 997089b Julia version: 1.11.0-DEV ArgTools version: 1.1.2(Does not match) Bump invoked by: @vtjnash Powered by: [BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl) Diff: https://github.com/JuliaIO/ArgTools.jl/compare/4eccde45ddc27e4f7fc9094b2861c684e062adb2...997089b9cd56404b40ff766759662e16dc1aab4b ``` $ git log --oneline 4eccde4..997089b 997089b fix tests for TEMP_CLEANUP, which might be a Lockable (#35) 4a5f003 build(deps): bump actions/cache from 3 to 4 (#36) 84ba9e8 Hardcode doc edit backlink (#34) 9238839 build(deps): bump actions/checkout from 3 to 4 (#33) ``` Co-authored-by: Dilum Aluthge <dilum@aluthge.com> 30 January 2024, 23:09:05 UTC
4b1bbeb make `Base.reduced_indices` more type-stable (#52905) This fixes #35199 by rewriting `Base.reduced_indices` to be type stable (and grounded). I was also able to remove a method since that case is covered by the general case. The changes are illustrated by the following quick benchmarks: ```julia julia> VERSION v"1.10.0" julia> using BenchmarkTools julia> M = [1 2; 3 4] 2×2 Matrix{Int64}: 1 2 3 4 julia> @btime sum($M, dims=$(2)) 194.816 ns (5 allocations: 160 bytes) 2×1 Matrix{Int64}: 3 7 julia> @btime sum($M, dims=$((2,))) 209.385 ns (5 allocations: 224 bytes) 2×1 Matrix{Int64}: 3 7 julia> function my_reduced_indices(inds::Base.Indices{N}, region) where N rinds = inds for i in region isa(i, Integer) || throw(ArgumentError("reduced dimension(s) must be integers")) d = Int(i) if d < 1 throw(ArgumentError("region dimension(s) must be ≥ 1, got $d")) elseif d <= N rinds = let rinds_=rinds ntuple(j -> j == d ? Base.reduced_index(rinds_[d]) : rinds_[j], Val(N)) end end end rinds end my_reduced_indices (generic function with 1 method) julia> Base.reduced_indices(inds::Base.Indices{N}, region::Int) where N = my_reduced_indices(inds, region) julia> Base.reduced_indices(inds::Base.Indices{N}, region) where N = my_reduced_indices(inds, region) julia> @btime sum($M, dims=$(2)) 43.582 ns (1 allocation: 80 bytes) 2×1 Matrix{Int64}: 3 7 julia> @btime sum($M, dims=$((2,))) 43.882 ns (1 allocation: 80 bytes) 2×1 Matrix{Int64}: 3 7 ``` I also rewrote `Base.reduced_indices0` in the same fashion. I wasn't sure how to add tests for this since the improvements are to type-groundedness. Since these changes affect all reductions I hope this solution is robust. 30 January 2024, 22:27:09 UTC
432d248 Restrict some argument types for _truncate_at_width_or_chars (#53031) This resolved some invalidations for me in a package 30 January 2024, 22:13:49 UTC
9f643a0 Fix invalid let syntax from LHS views (#53108) When the frontend lowers an expression like `lhs .+= rhs`, it needs to prevent evaluating the LHS more than once before re-writing to `lhs .= lhs .+ rhs`. If the LHS was a `let` block — commonly generated by `@views` and (since #53064) `@view` — the lowering pass had previously been emitting an invalid `let` temporary. This very directly addresses that case. Fixes #53107. Fixes #44356. 30 January 2024, 21:06:19 UTC
fdb342c make `keytype` and `valtype` work for `UnionAll` `AbstractDict`s (#53116) Fixes #53115 30 January 2024, 20:40:35 UTC
back to top