General

Profile

Yura Sokolov

Issues

Activity

12/20/2015

08:54 AM Ruby trunk Bug #11822: Semantics of Queue#pop after close are wrong
I like optional arg to pop:
Either `pop?` or `pop(on_close: value)`

12/16/2015

07:39 AM Ruby trunk Bug #11822: Semantics of Queue#pop after close are wrong
Charles, closing queue only prevents adding new elements to. It should not delete already added items.
Look at Gol...

12/12/2015

09:05 AM Ruby trunk Feature #11405: [PATCH] hash.c: minor speedups to int/fixnum keys
> Yes, it will solve the issue. But I'm unsure if we need to fix this issue. Accessing elements takes just some nano ...

12/11/2015

08:18 PM Ruby trunk Feature #11405: [PATCH] hash.c: minor speedups to int/fixnum keys
> The cause was a dense cdhash in opt_case_dispatch. Both programs
> create a cdhash that has 10001 elements, which ...

11/04/2015

03:48 AM Ruby trunk Bug #10984: Hash#contain? to check whether hash contains other hash
What if

```ruby
{b: 1} === {a: 2, b: 1}
```

then

```ruby
h = {a: 2, b: 1}
case h
when {b: 1...

10/28/2015

05:18 AM Ruby trunk Feature #11625: Unlock GVL for SHA1 calculations
What's about other hashsum algos? MD5, SHA2, etc
Issue #11625 has been updated by Aaron Patterson.

File sha1gvl....

09/12/2015

09:19 AM Ruby trunk Feature #11518: Queue enhancement - promote! and promote_all!
First: you forgot to lock queue. Multithreading will bite you.
Second: if you want custom behaviour why don't you ...
09:08 AM Ruby trunk Feature #11517: Queue enhancement - conditional pop
Why don't you use separate queue with separate worker? It will solve your use case.
Even if it is hard to separate...

09/09/2015

06:00 AM Ruby trunk Bug #11471: min, min_by, max, max_by with optional parameter return a wrong value
Algorithm should be based on a heap.

08/23/2015

07:19 AM Ruby trunk Feature #10600: [PATCH] Queue#close
You misread about Go channel:
> **Sending to or closing** a closed channel causes a **run-time panic**.
> (on e...

Also available in: Atom