Sebastiano Vigna

Results 259 comments of Sebastiano Vigna

Well, I don't understand exactly what you're asking for here—note that I'm aware of Kotlin, but I have zero knowledge of the language...

Mmmmh. There is a merge implementation for hash maps, so I'm wondering why it isn't called. Don't you see it in a stack trace? In any case, that wouldn't solve...

Can you elaborate?

I didn't even know there was an Optional class. 😅 Can you provide a use case?

First of all thank you for suggesting the paper. I didn't knowv it and these people are big shots so I expect a very interesting content. I'll have a look...

What about getting an iterator, rather then a slice? Then you could collect it. I realize that the method you suggest is more convenient tho. I think there's a way...

Ah ok I mistakenly understood you wanted them unpacked. I already have this code in Java (the sublist code of the list view of a bit vector). I think it...

We already have a custom formatter. But to obtain that result we would need to store in a OnceLock or similar the start, and accessing the OnceLock would add further...

Ok, sorry, we just found that we can do an `Instant::now()` and move the value inside the closure. So it's entirely doable. Maybe it would be interesting as an example.