Cédric St-Jean
Cédric St-Jean
On 0.6, ```julia julia> using BenchmarkTools julia> t1 = ["A", "A", "A"]; julia> t2 = arrowformat(t1); julia> @btime $t1[2] 2.025 ns (0 allocations: 0 bytes) "A" julia> @btime $t2[2] 17.286...
In this code, changes to `SubMod.x` are ignored. ```julia module TestMod module SubMod export x x = 8 end using .SubMod end ``` It's the `using` that's problematic. `SubMod.x` works...
It seems that `sum` uses the naive sequential sum algorithm for generators. With large vectors, it eventually saturates, and yields an incorrect answer: ```julia julia> N = 100000000; aa =...
```julia julia> f(_, a) = 10 f (generic function with 1 method) julia> f(_, a=1) = 10 ERROR: syntax: all-underscore identifier used as rvalue around REPL[0]:1 ``` The second form...
This code used to work in 0.5, but fails in 0.6. I'm assuming that this is PyCall's responsibility, and not PyPlot's. ```julia julia> using PyPlot Fontconfig warning: line 146: blank...
It would be nice to support extrapolating to `missing` ```julia > using Interpolations, Missings > A = rand(20) > A_x = collect(1.0:2.0:40.0) > knots = (A_x,) > itp = extrapolate(interpolate(knots,...
Similar to what was noted in https://github.com/FluxML/MacroTools.jl/issues/40#issuecomment-357466077, ```julia julia> @capture :(myvariable = 2) (lhs_Symbol = rhs_) true julia> @capture :(myvariable = 2) (lhs_Symbol = rhs_) | someotherpat false julia> @capture...
```julia module MM using MacroTools: @capture @capture(:(x=2), _lhs = _rhs) end > UndefVarError: MacroTools not defined ``` It works if I import MacroTools. In my code, I usually fix this...
```julia julia> @q @time(1+1) :(#= REPL[5]:1 =# @time 1 + 1) ``` It could be fixed by postwalking and changing all the `:macrocall`s to have `nothing` for the line number,...
It occurred to me this morning that with the new `setproperty!/getproperty` methods, it might be possible to do something like: ```julia o = SettableRef(some_immutable_object) o.f.x = 10 o.f.y = 23...