General

Profile

chrisseaton (Chris Seaton)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 5 7

Activity

11/25/2020

10:16 PM Ruby master Feature #17342: Hash#fetch_set
`#fetch_or_set` could be a good name.
> Why do we need a block for the second parameter? Can't that just be an ord...
chrisseaton (Chris Seaton)
09:34 PM Ruby master Feature #17342: Hash#fetch_set
Thanks I've always wanted this feature. Whenever I write `cache.fetch(key) { cache[key] = calculation }` (or more oft... chrisseaton (Chris Seaton)

11/20/2020

12:02 AM Ruby master Bug #17334: Marshal cannot dump instance of Monitor
I'm not sure what a dumped instance of `Monitor` would look like though? Its state implicitly includes the current st... chrisseaton (Chris Seaton)

11/15/2020

10:13 PM Ruby master Feature #17327: The Queue constructor should take an initial set of items
I'm not worried about `Queue.new(worklist)` or `Queue.new(*worklist)`, so that's fine if more people feel that way. I... chrisseaton (Chris Seaton)
10:07 PM Ruby master Feature #17327: The Queue constructor should take an initial set of items
https://github.com/ruby/ruby/pull/3768 chrisseaton (Chris Seaton)
10:06 PM Ruby master Feature #17327 (Open): The Queue constructor should take an initial set of items
I often create a `Queue` and then process it with a set of concurrent workers in threads. I end up writing:
```rub...
chrisseaton (Chris Seaton)

11/14/2020

08:55 PM Ruby master Feature #14781: Enumerator.generate
@zverok are you making available the code in https://github.com/zverok/enumerator_generate available under the same l... chrisseaton (Chris Seaton)

10/29/2020

08:54 PM Ruby master Feature #17261: Software transactional memory (STM) for Threads and Ractors
I think there's benefits to building STM into the language (if we decided we want STM at all) rather than it being a ... chrisseaton (Chris Seaton)

10/28/2020

05:29 PM Ruby master Feature #17261: Software transactional memory (STM) for Threads and Ractors
I wrote a long-form blog post to give people interested in this proposed feature some context.
https://chrisseaton...
chrisseaton (Chris Seaton)

10/20/2020

03:55 PM Ruby master Misc #17199: id outputed by inspect and to_s output does not allow to find actual object_id and vice-versa
Additional context is that `#object_id` used to use the object's address, and is now a simple incrementing number, an... chrisseaton (Chris Seaton)

Also available in: Atom