Jeff Bezanson
Jeff Bezanson
Compared against `deserialize`. For example ``` dts = [ DateTime()+Dates.Millisecond(i) for i=1:1000000 ] JLD.save("test.jld", "x", dts); open(f->serialize(f,dts),"test.jls","w") # after warm-up julia> @time JLD.load("test.jld"); 0.073771 seconds (2.00 M allocations: 45.800 MB,...
`setrounding` works by redefining a lot of methods. I suppose that can be good for performance, but has the serious costs of (1) `setrounding` itself is very slow (including file...
Example: ``` julia> using Unitful: 𝐌,𝐋,L,mg julia> typeof(1u"mg/L") Quantity{Int64,𝐌*𝐋^-3,Unitful.FreeUnits{(mg, L^-1),𝐌*𝐋^-3,nothing}} julia> 1u"mg/L" isa Quantity{Int64,𝐌*𝐋^-3,Unitful.FreeUnits{(mg, L^-1),𝐌*𝐋^-3,nothing}} false ``` So if I copy and paste the representation of `typeof(1u"mg/L")`, it is not...
These methods: ``` Base.convert(::Type{Any}, x::CatValue) = x Base.convert(::Type{S}, x::T) where {S, T
``` julia> using Distributed julia> addprocs(2); julia> @everywhere using DistributedArrays julia> a = fill(1000,10); julia> da = distribute(a); julia> @time map(x->rand(x,x)^2, a); 0.903241 seconds (63.61 k allocations: 155.698 MiB, 29.39%...
I believe this used to work, but now gives ``` julia> distribute(1:100) MethodError: no method matching UnitRange{Int64}(::Array{Int64,1}) Closest candidates are: UnitRange{Int64}(::Any, !Matched::Any) where T
 I tried debugging code that uses `@spawn` just for fun, and inside the macro a line is annotated with `typeof(10)`. I have no idea why.
Simple change needed when using other interpreters.
There should be a REPL mode with a simple command set where everything is julia-friendly by default, for example `bt` would do what `jbt` currently does in the LLDB prompt.
For example `b MyMod.myfunc`.