Takafumi Arakaki

Results 748 comments of Takafumi Arakaki

I'm actually opposed to _automatically_ converting Python's named tuple to Julia's. This is because Python's named tuples use nominal type whereas Julia's named tuples use structural type. It means that...

This probably needs a direct implementation, as Base does.

Hi, thanks for the interest! Good to know that you want to improve the thread-based parallelism landscape in Julia! > * Which one is more general? ThreadsX.jl is actually a...

In principle, I can add type assertion to make the downstream code type-stable (even though we'd use dynamic dispatch internally). But there's a subtle difficulty due to that `Task(f)` is...

I think I didn't implement them since there was no `argmax(f, xs)` etc. in `Base` before Julia 1.7. Now that we already have 1.7-rc, I think it's safe to implement...

@chriselrod I'm wondering if the hang was data-dependent. If that's the case, can you get the hang more quickly by ```julia seed = Ref(0) @btime ThreadsX.sort!(xs) setup=(xs=rand(MersenneTwister(seed[] += 1), 0:0.01:1,...

Thanks for trying it out! So it's more like a timing thing...? I asked people in #multithreading slack channel if they have some ideas about this.

I tried it a bit and then switched to `while true; @btime ThreadsX.sort($(rand(0:0.01:1, 1_000_000))); end` after seeing your last comment, as I thought it's more about the scheduler. So far...

> it crashes when I ctrl-C I couldn't get the hang but I get this part, too. Meaning that ctrl-C during the `while` loop killed Julia REPL.

> No hang? Interesting. For how long have you been running it? Sadly no. I ran ~40 min last time and then gave up. > I can provide the full...