Mason Protter
Mason Protter
A [comment on Reddit](https://www.reddit.com/r/Clojure/comments/9i5wij/the_julia_challenge/e6jsasf/) recently appeared where someone felt like the article wasn't explicit enough about what you actually wanted them to implement. I don't know how valid that is,...
``` (v1.1) pkg> add https://github.com/rprechelt/Vectorize.jl.git Cloning git-repo `https://github.com/rprechelt/Vectorize.jl.git` Updating git-repo `https://github.com/rprechelt/Vectorize.jl.git` Resolving package versions... Updating `~/.julia/environments/v1.1/Project.toml` [922354f6] + Vectorize v0.1.1 #master (https://github.com/rprechelt/Vectorize.jl.git) Updating `~/.julia/environments/v1.1/Manifest.toml` [922354f6] + Vectorize v0.1.1 #master (https://github.com/rprechelt/Vectorize.jl.git)...
https://github.com/YingboMa/ForwardDiff2.jl/blob/master/test/api.jl#L56 ```julia using Test using ForwardDiff2: D, DI, ForwardDiff2 using StaticArrays using LinearAlgebra julia> let dh1 = D(DI(x->x[1]^x[2] + x[3]^3 + x[3]*x[2]*x[1])) dh2 = D(D(x->x[1]^x[2] + x[3]^3 + x[3]*x[2]*x[1])) for...
This has been touched on in #24 and https://github.com/jrevels/Cassette.jl/pull/157, but it should probably have its own dedicated issue for clarity. ```julia julia> using ForwardDiff2: D [ Info: Precompiling ForwardDiff2 [994df76e-a4c1-5e1f-bd5c-23b9b5303d4f]...
```julia v = rand(3) julia> DI(prod)(v) 1×3 LinearAlgebra.Adjoint{Float64,StaticArrays.SArray{Tuple{3},Float64,1,3}} with indices SOneTo(1)×SOneTo(3): 0.159717 0.144019 0.0883726 julia> DI(DI(prod))(v) 3×3 StaticArrays.SArray{Tuple{3,3},Float64,2,9} with indices SOneTo(3)×SOneTo(3): 0.0 0.673959 0.940515 0.673959 0.0 0.768448 0.940515 0.768448 0.0...
MWE: ```julia julia> using Transducers julia> 1:6 |> Enumerate() |> x -> tcollect(x; basesize=1) 6-element Vector{Tuple{Int64, Int64}}: (1, 1) (1, 2) (1, 3) (1, 4) (1, 5) (1, 6) julia>...
Filed in https://github.com/JuliaFolds/Transducers.jl/issues/569 by @atbug > ```julia > const grid = [[i, j] for i in -4:4, j in -4:4] > > foldxt(+, Map(i -> grid[i]), 1:length(grid)) > ``` >...
I'm not really sure what it's doing that makes it so slow, but it's real bad: ```julia using Transducers julia> let v = rand(10000) @btime foldl(right, Iterators.partition($v, 100)) @btime foldxl(right,...
See https://github.com/JuliaFolds2/BangBang.jl/pull/2 for an example of this and https://pkgdocs.julialang.org/v1/creating-packages/#Conditional-loading-of-code-in-packages-(Extensions) for the relevant documentation. There's a number of conditionally loaded packages in Transducers.jl: https://github.com/JuliaFolds2/Transducers.jl/blob/master/src/Transducers.jl#L176-L196, and also some unconditionally loaded packages like...
A nice beginner task for someone looking to help out would be to use [PrecompileTools.jl](https://github.com/JuliaLang/PrecompileTools.jl) to speed up the TTFX of this package.