Andy Dienes

Results 134 comments of Andy Dienes

how would this compare to a more naive implementation like ``` nth(itr, n) = first(Iterators.Rest(itr, n)) ``` ?

`nth` and `trynth` seems a bit more julian than a `nothrow` kwarg matching `tryparse` and `trylock`,

on my machine I see essentially zero overhead in both cases

I suppose there is a similar definition here anyway https://github.com/JuliaLang/julia/blob/1aeea1979fac8f8cc9ffcc89d4c62830be55bebf/base/bitset.jl#L49 and it does make sense looking through Base a bit I see a few times as well that `copy` specialization...

is this also intended? ``` julia> x = 1 1 julia> module Foo export x x = 2 end Main.Foo julia> using .Foo julia> x 1 ``` previously would give...

> The slow down for big arrays seems fine to me me as well, given that the larger the shuffled array gets the more likely that the user will want...

since https://github.com/JuliaLang/julia/pull/58089 is merged, is this basically ready besides the doctests?

@c42f I have another proposal I'd like to try, which is essentially to move `Chain.jl` into real syntax by interpreting `chain ... end` as `@chain begin ... end` I might...

is https://github.com/JuliaLang/JuliaSyntax.jl/pull/199 complementary, incompatible, or orthogonal to this proposal? I must admit I am not at all a fan of the aesthetics of piping into a headless `|> ->(...)` compared...

I bisected the increase in _allocations_ of `@b Symbol("foo", 5)` to 44bef0df7a115334c10abac88aeba333b12cce2d (https://github.com/JuliaLang/julia/pull/55754) notably, I'm emphasizing allocations because the time does not seem stable over different sessions on any of...