Mason Protter

Results 226 comments of Mason Protter

Hm, that would make my original use-case somewhat unnecessary (although significantly uglier to implement), but it wouldn't fix the use-case from Mike's blog post (thanks @jakobnissen I had forgotten about...

Does that rely on `iterate` inlining?

Not really, no. It's just an optional hook that lets you choose what object you actually iterate over.

> GC'ing appears to rely on inlining. In the following example: ~~I'm running this on 1.8.2 and I do see the GC run in this example, even with `@inline` and...

Fixed I guess with [SetupIterator.jl](https://github.com/MasonProtter/SetupIterator.jl) ```julia mutable struct Foo x::Int function Foo(x::Int) y = new(x) println("Creating $(repr(objectid(y)))") finalizer(i -> println("Destroying $(repr(objectid(i)))"), y) end end Base.length(x::Foo) = x.x ``` ```julia using...

The change to `_foldl_array` saves us two allocations and a lot of time on small arrays which use cartesian indexing. Before: ```julia julia> @btime foldxl(+, $(rand(10, 10)')) 108.862 ns (2...

@tkf could we get this merged?

Yes, statically sized arrays work out of the box, it's trivial to check: ```julia julia> using StaticArrays, JET julia> x = SizedVector{3}(rand(3)); y = SizedMatrix{4, 3}(rand(4, 3)); julia> f(x, y)...

What codegen issue?

One thing the Filter system seems to not support is filtering all the replies to a filtered post. I just had a situation where three people I follow had a...