Takafumi Arakaki

Results 748 comments of Takafumi Arakaki

`gradient(x -> sum(setindex!!(x, 2, 2)), zeros(3))` would not work with current BangBang since it just uses standard `setindex!`. If you only need to differentiate setindex of vectors and matrices, a...

Thanks for the PR! I thought it made sense, and I was about to merge it, and then realized that there was a bit of subtle issue with `Number`s: ```julia...

It'd be bad to define `isequal(Init(*), 1) === true` and `isequal(Init(*), "") === true` because it breaks transitivity. Defining `=` may be OK since we already have, e.g., `I(3) ==...

I guess the `iterate` route is so bad because the filtering makes the CPS conversion to create non-terminating recursive calls. So, that's why the compiler gives up on inference. Solving...

As discussed in https://julialang.zulipchat.com/#narrow/stream/225583-appreciation/topic/Tail-call.20elimination/near/201208515 my thoughts on tail-call elimination is > [...] I think it might be impossible to do with *untyped* IR. Here is my naive strategy to implement...

Thanks for the suggestion! There's actually a "secrete" function `Transducers.fold` that does this. But I'm not sure about the API so it's currently not a public API. The main reasons...

``` Fri, 24 Dec 2021 06:27:08 GMT [ Info: Precompiling... DONE Fri, 24 Dec 2021 06:27:08 GMT [ Info: Running /home/runner/work/Folds.jl/Folds.jl/test/runtests.jl Fri, 24 Dec 2021 06:27:18 GMT [ Info: Loading...

`Iterators.partition` is useful when you want to implement, e.g., `foreach` on arrays. This package does not try to replace it. This is essentially just an API I extracted out from...

Let me also mention that it would be very useful to add `Projecto.toml`/`Manifest.toml`-integration in PkgBenchmark.jl. I think some part of the script can be simplified a lot if PkgBenchmark.jl has...

FYI, I put things together in a (unregistered) package https://github.com/tkf/BenchmarkCI.jl for running benchmarks via GitHub Actions with a minimal setup. It runs `judge` against `origin/master` and then post the result...