Yuval

Results 59 issues of Yuval

A simple reproducer: ``` julia> using NamedArrays julia> identity.(NamedArray(AbstractMatrix{Int}[[1 2; 3 4]])) ERROR: BoundsError: attempt to access Tuple{} at index [1] Stacktrace: [1] getindex(t::Tuple, i::Int64) @ Base .\tuple.jl:29 [2] find_namedarray(args::Tuple{})...

Following https://github.com/JuliaPlots/PlotUtils.jl/pull/83#issuecomment-621382134, I realized that actual floating point are not really used during the optimization, so most FP calculations can be avoided. Representing the ticks as a new `Ticks` type...

Inputs with small variance sometimes make `dotplot` error: ``` x = ones(7) x[2] -= 1e-16 dotplot(x) ``` ``` Stacktrace: [1] _empty_reduce_error() @ Base .\reduce.jl:301 [2] mapreduce_empty(f::Function, op::Base.BottomRF{typeof(Base._rf_findmin)}, T::Type) @ Base...

Using `ProgressLogging.@progress` inside Pluto causes a large overhead that scales roughly with the number of iterations. In this very simple notebook, it's about 0.05 seconds per iteration. In my actual...

bug
performance
logging

The `var` function operates pointwise on array arguments ( JuliaLang/julia#23897. It doesn't seem to be documented). But it fails for empty vector of arrays: ``` julia> using Statistics, StaticArrays julia>...

For example, this: ``` expensive_function(k) = (println(k); k > 2 && error("too large!")) b = OrderedDict(k => expensive_function(k) for k in 1:3) ``` prints ``` 1 2 3 1 2...

``` julia> join.(RLEVector([("a","b"), ("b","c")], [1,3]), " ") ERROR: UndefRefError: access to undefined reference Stacktrace: [1] getindex @ .\array.jl:861 [inlined] [2] ree!(runvalues::Vector{String}, runends::Vector{Int64}) @ RLEVectors C:\Users\sternlab\.julia\packages\RLEVectors\Rriqk\src\runs.jl:96 [3] RLEVector @ C:\Users\sternlab\.julia\packages\RLEVectors\Rriqk\src\RLEVector-type.jl:57 [inlined]...

e.g. ``` @benchmark let (; x, y) = $p f(x,y) end ``` currently fails at macro expansion

On insider version 1.5.8, the entire file gets formatted on paste, rather than just the formatted text (when "Format On Paste" is on)

area-ls-formatting