Project

General

Profile

Activity

From 11/10/2020 to 11/16/2020

11/16/2020

10:41 PM Revision 68ffc8db (git): Set allocator on class creation
Allocating an instance of a class uses the allocator for the class. When
the class has no allocator set, Ruby looks f...
alanwu (Alan Wu)
10:41 PM Revision ebb96fa8 (git): Fix singleton class cloning
Before this commit, `clone` gave different results depending on whether the original object
had an attached singleton...
alanwu (Alan Wu)
10:37 PM Bug #17197: Some Hash methods still have arity 2 instead of 1
@Dan0042 How would we warn that case? Check if the block uses arity 1 and warn that it should instead use `|k,v|` or ... Eregon (Benoit Daloze)
02:04 PM Bug #17197: Some Hash methods still have arity 2 instead of 1
So when you have a bug that is troublesome to fix because it may result in large incompatibility... rather than "just... Dan0042 (Daniel DeLorme)
07:59 AM Bug #17197: Some Hash methods still have arity 2 instead of 1
This story is rather different from `Hash#each` in #14015.
`Hash#each` has yielded an array that has a key and a val...
mame (Yusuke Endoh)
10:34 PM Bug #17302 (Closed): The TracePoint API does not allow setting multiple line traces within the same method (ISEQ)
Applied in changeset commit:git|084e7e31b257f6ac859769553b4c1c6ca2930152.
----------
remain enabled and line specifi...
ko1 (Koichi Sasada)
10:33 PM Revision 084e7e31 (git): remain enabled and line specified trace points
If two or more tracepoints enabled with the same target and with
different target lines, the only last line is activa...
ko1 (Koichi Sasada)
08:14 PM Feature #16786: Light-weight scheduler for improved concurrency.
I am happy with `Fiber.set_scheduler`. I'm also happy with `Fiber.scheduler=` (canonical Ruby style) but I accept and... ioquatix (Samuel Williams)
05:38 PM Revision 1271782f (git): * 2020-11-17 [ci skip]
git[bot]
05:38 PM Revision 1ee8d4b0 (git): Fix typo on Proc docs
Tomás Coêlho
04:00 PM Feature #17328: Extend `un.rb` to be usable by everyone
This has the potential to introduce security issues. Avoiding security issues by not automatically loading files in ... jeremyevans0 (Jeremy Evans)
02:37 PM Feature #17328 (Rejected): Extend `un.rb` to be usable by everyone
I've opened the PR here: https://github.com/ruby/ruby/pull/3771, although if you need me to submit a patch just let m... sdwolfz (Codruț Gușoi)
03:55 PM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
+1
Ever since ruby 2.1 when `def` was improved to return a Symbol, I've always wondered why the same was not done ...
Dan0042 (Daniel DeLorme)
01:30 PM Misc #16778: Should we stop vendoring default gems code?
Not that I'm no longer interested, but it sounds like it'd be wasted work.
Even if the reason for rejection doesn'...
deivid (David Rodríguez)
01:14 PM Revision 0f37f384 (git): [DOC] Fixed a typo [ci skip]
nobu (Nobuyoshi Nakada)
12:53 PM Feature #17326: Add Kernel#must! to the standard library
Since this feature is reminiscent of the safe navigation operator `&.`, I think it would be good if we can make the n... sawa (Tsuyoshi Sawada)
12:25 PM Feature #17326: Add Kernel#must! to the standard library
Given that Ruby 3 will ship with RBS which will be supplanted with a type-checker based on RBS (Steep) soon, I expect... ufuk (Ufuk Kayserilioglu)
07:33 AM Feature #17326: Add Kernel#must! to the standard library
I like this feature as a tiny tool for debugging and assertion.
When I encounter `undefined method 'foo' for nil:Nil...
mame (Yusuke Endoh)
06:25 AM Feature #17326: Add Kernel#must! to the standard library
There is `not_nil!` in Crystal https://github.com/crystal-lang/crystal/blob/master/src/object.cr#L223 nrodriguez (Nicolas Rodriguez)
12:31 AM Feature #17326: Add Kernel#must! to the standard library
- Yes I think we need this feature (except the name)
- Re: naming, the rule of a bang method is:
> A bang...
shyouhei (Shyouhei Urabe)
12:12 PM Feature #17327: The Queue constructor should take an initial set of items
Agreed with @byroot (actually I was going to note the same, he beat me to it).
I would also like to note that dif...
ufuk (Ufuk Kayserilioglu)
09:11 AM Feature #17327: The Queue constructor should take an initial set of items
I agree that the constructor should take an enumerable rather than variadic arguments, as it would be consistent with... byroot (Jean Boussier)
08:44 AM Revision 8985add9 (git): Update TypeProf to 0.5.2
mame (Yusuke Endoh)
08:44 AM Revision bcd29fed (git): Update TypeProf to 0.5.1
soutaro (Soutaro Matsumoto)
08:44 AM Revision 57ab779a (git): Update RBS to 0.17.0
soutaro (Soutaro Matsumoto)
08:24 AM Feature #17312: New methods in Enumerable and Enumerator::Lazy: flatten, product, compact
I think `Enumerable#compact` is trivial and maybe useful.
In regard to `Enumrable#flatten`, I agree with @Dan0042's ...
mame (Yusuke Endoh)
07:59 AM Feature #17323: Ractor::LVar to provide ractor-local storage
Dan0042 (Daniel DeLorme) wrote in #note-4:
> The problem with the example above is that it's too magical to have a v...
ko1 (Koichi Sasada)
02:01 AM Revision 0ba096df (git): Fix a link [ci skip]
znz (Kazuhiro NISHIYAMA)
01:59 AM Revision ef82a0ef (git): Fix links [ci skip]
znz (Kazuhiro NISHIYAMA)

11/15/2020

11:25 PM Bug #17124 (Closed): Wrong "ambiguous first argument" warning
Applied in changeset commit:git|f5bb9115a7f69c32089b9b970933c3507fb9f82b.
----------
Use more specific warning for a...
jeremyevans (Jeremy Evans)
08:28 AM Bug #17124: Wrong "ambiguous first argument" warning
I think your wording is a big improvement 👍
I think you've paid the cost already with your diff, we should reap th...
marcandre (Marc-Andre Lafortune)
06:11 AM Bug #17124 (Feedback): Wrong "ambiguous first argument" warning
marcandre (Marc-Andre Lafortune) wrote in #note-3:
> I hadn't thought of `method /a /x` or `method /a /<newline>othe...
jeremyevans0 (Jeremy Evans)
11:25 PM Revision f5bb9115 (git): Use more specific warning for ambiguous slash
Fixes [Bug #17124] jeremyevans (Jeremy Evans)
10:59 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
This sounds like Thread#kill but for Fiber.
However, Fiber is cooperative so it seems this shouldn't be needed.
W...
Eregon (Benoit Daloze)
08:48 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
I've updated the description to 1) better describe the motivation and 2) match the PR's current behavior when a Fiber... nevans (Nicholas Evans)
05:35 AM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
updated description and github PR nevans (Nicholas Evans)
10:50 PM Feature #17327: The Queue constructor should take an initial set of items
That all makes sense to me. ioquatix (Samuel Williams)
10:13 PM 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:11 PM Feature #17327: The Queue constructor should take an initial set of items
What about a way to bulk add items, e.g. `q.concat` or whatever is the same for Array, and maybe it would be best to ... ioquatix (Samuel Williams)
10:07 PM 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 Feature #17327 (Closed): 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)
10:45 PM Revision 45fd53e0 (git): * 2020-11-16 [ci skip]
git[bot]
10:44 PM Revision fd46ff9d (git): NEWS: merge Range and Regexp being frozen [doc]
Marc-Andre Lafortune
05:51 AM Bug #17146 (Closed): Queue operations are allowed after it is frozen
jeremyevans0 (Jeremy Evans)
05:48 AM Bug #17158 (Closed): Ractor Segfault when using shell and puts
jeremyevans0 (Jeremy Evans)
05:48 AM Bug #17304 (Closed): Ruby stuck calling sched_yield on fork
jeremyevans0 (Jeremy Evans)
01:04 AM Revision cd50ff80 (git): * 2020-11-15 [ci skip]
git[bot]
12:59 AM Revision 0433f5ae (git): Functions defined in headers should be static inline
nobu (Nobuyoshi Nakada)

11/14/2020

11:15 PM Feature #17326 (Closed): Add Kernel#must! to the standard library
# Abstract
We should add a method `Kernel#must!` (name TBD) which raises if `self` is `nil` and returns `self` oth...
jez (Jake Zimmerman)
10:45 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
I also created a github PR at https://github.com/ruby/ruby/pull/3766. nevans (Nicholas Evans)
10:43 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
This is my first big foray into the ruby C API, so I hope it makes sense what I was trying to do. Did I handle `vm_fi... nevans (Nicholas Evans)
10:43 PM Feature #17325 (Closed): Adds Fiber#cancel, which forces a Fiber to break/return

Calling `Fiber#cancel` will force a fiber to return, skipping rescue and catch blocks but running all ensure blocks...
nevans (Nicholas Evans)
09:34 PM Feature #14781: Enumerator.generate
@chrisseaton I do!
Everything that is good for the community is good by me.
zverok (Victor Shepelev)
08:55 PM 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:22 AM Revision 311a66b7 (git): Update TypeProf to 0.5.0
mame (Yusuke Endoh)
01:41 AM Bug #17318: Raising float to the power of other issue
That depends on your purpose or background of the problem. In non-math situations, `power(a, b)` should not return an... gotoken (Kentaro Goto)

11/13/2020

11:26 PM Feature #17100: Ractor: a proposal for a new concurrent abstraction without thread-safety issues
`send` is a term traditionally used in the actor context. We'd like to experiment how it works well (or bad) for Rubu... matz (Yukihiro Matsumoto)
10:18 AM Feature #17100: Ractor: a proposal for a new concurrent abstraction without thread-safety issues
Thank you for the detailed explanation, that makes sense to me.
I am sure it will result in some confusion, but hopef...
Eregon (Benoit Daloze)
08:15 AM Feature #17100: Ractor: a proposal for a new concurrent abstraction without thread-safety issues
# `Ractor#send` naming issue
Recent weeks I'm thinking about the name of `Ractor#send`.
Matz and I discussed poss...
ko1 (Koichi Sasada)
11:17 PM Bug #17318: Raising float to the power of other issue
deXterbed (Manoj Mishra) wrote in #note-3:
>
> that still raises the question, how exactly am i supposed to calcul...
phluid61 (Matthew Kerwin)
05:09 PM Bug #17318: Raising float to the power of other issue
deXterbed (Manoj Mishra) wrote in #note-3:
> ```
> def raise(a, b)
> return -((a.abs)**b) if a < 0
> a**b
> ...
mame (Yusuke Endoh)
04:59 PM Bug #17318: Raising float to the power of other issue
Also see #16677 w/r edge cases.
-0.4**0.9 #=> -0.4383832905540869
-0.4.to_f**0.9 #=> (-0.4169272...
Dan0042 (Daniel DeLorme)
03:43 PM Bug #17318: Raising float to the power of other issue
mame (Yusuke Endoh) wrote in #note-2:
> It is due to precedence of operators unary minus and `**`.
>
> `x**y` calcul...
deXterbed (Manoj Mishra)
08:38 PM Feature #17315: Hash #transform
to_h works for me even though it is unintuitive a name for monadic mapping a hash. I wish we had a common name funct... dsisnero (Dominic Sisneros)
07:53 PM Feature #17323: Ractor::LVar to provide ractor-local storage
Would it be possible to somehow have ractor-local variables that are automatically dereferenced instead of having to ... Dan0042 (Daniel DeLorme)
07:13 PM Feature #17322: Deprecate `Random::DEFAULT` and introduce `Random.default()` method to provide Ractor-supported default random generator
Eregon (Benoit Daloze) wrote in #note-6:
> I think `rand`, etc should use a thread-local `Random` instance (and threa...
Dan0042 (Daniel DeLorme)
05:23 PM Feature #16786: Light-weight scheduler for improved concurrency.
Dan0042 (Daniel DeLorme) wrote in #note-71:
> Fiber.schedulers[Thread.current] = sch
It seems weird to me to ...
Eregon (Benoit Daloze)
05:17 PM Feature #16786: Light-weight scheduler for improved concurrency.
Would this be too crazy?
Fiber.schedulers #=> Hash
Fiber.schedulers.default = sch
Fiber.schedulers[T...
Dan0042 (Daniel DeLorme)
05:20 PM Bug #17310: Closed ractors should die
Sorry for the side discussion.
I think this is the important point to discuss:
Eregon (Benoit Daloze) wrote in ...
Eregon (Benoit Daloze)
05:17 PM Bug #17310: Closed ractors should die
ko1 (Koichi Sasada) wrote in #note-9:
> > It is convenient to Ractor.new { ... }.take, but we could have Ractor#join...
Eregon (Benoit Daloze)
05:07 PM Misc #17319: Rename Random.urandom to os_random and document random data sources
zofrex (James Sanderson) wrote in #note-6:
> I think that people reading "raw_seed" are likely to think that either ...
Eregon (Benoit Daloze)
01:20 PM Misc #17319: Rename Random.urandom to os_random and document random data sources
I don't think `raw_seed` is name that does a good job of communicating what this method does and what it can be used ... zofrex (James Sanderson)
03:14 AM Misc #17319: Rename Random.urandom to os_random and document random data sources
How about `Random.raw_seed(size)`? nobu (Nobuyoshi Nakada)
04:46 PM Revision 78262105 (git): Use rb_attr_get() for hidden ivar
rb_ivar_get() can issue an uninitialized ivar warning. We never want to
issue warnings about hidden ivars as they are...
alanwu (Alan Wu)
04:32 PM Feature #17312: New methods in Enumerable and Enumerator::Lazy: flatten, product, compact
What would be the interaction between Array#flatten and Enumerable#flatten ?
It's a big compatibility problem if fla...
Dan0042 (Daniel DeLorme)
04:16 PM Feature #17298: Ractor's basket communication APIs
A comment about naming... my first impression was that a "basket" is a container with multiple objects to transmit be... Dan0042 (Daniel DeLorme)
03:06 PM Bug #14726 (Closed): wrong message when superclass is not a Class
Applied in changeset commit:git|ce9beb9d20187c861462282460b998684759e5e7.
----------
Improve error message when subc...
jeremyevans (Jeremy Evans)
03:06 PM Revision 1bd98ee2 (git): * 2020-11-14 [ci skip]
git[bot]
03:06 PM Revision ce9beb9d (git): Improve error message when subclassing non-Class
Fixes [Bug #14726] jeremyevans (Jeremy Evans)
12:17 PM Revision 6d059674 (git): Update to ruby/spec@b0b7f53
Eregon (Benoit Daloze)
12:17 PM Revision acbe7aa1 (git): Update to ruby/mspec@f8b0618
Eregon (Benoit Daloze)
05:19 AM Bug #17324: You may have encountered a bug in the Ruby interpreter or extension libraries.
gundamseedw (J Wong) wrote in #note-1:
> gundamseedw (J Wong) wrote:
> > i've attached the crash report log.
> >
> >...
gundamseedw (J Wong)
04:19 AM Revision 69c5474e (git): Fixup 957efa95cc12c608705a5663256226f022ea6c7f
hsbt (Hiroshi SHIBATA)
04:01 AM Feature #14922: Resolv getaddresses ignores AAAA records for IPv6
I've submitted my patch as a pull request: https://github.com/ruby/resolv/pull/1 jeremyevans0 (Jeremy Evans)
03:52 AM Feature #11322: OpenUri: RuntimeError: HTTP redirection loop
I've submitted the patch as a pull request, with a test: https://github.com/ruby/open-uri/pull/1 jeremyevans0 (Jeremy Evans)
03:06 AM Revision e70a1d9b (git): Revert https://github.com/ruby/webrick/pull/44
Because the test for this change was still broken. hsbt (Hiroshi SHIBATA)
02:38 AM Revision c046cc1d (git): * 2020-11-13 [ci skip]
git[bot]
02:36 AM Revision 37e5b367 (git): [ruby/webrick] add mime type of extention .mjs
https://github.com/ruby/webrick/commit/45d68f9eba hisanori
02:35 AM Revision 957efa95 (git): [ruby/webrick] Allow empty POST and PUT requests without content length
RFC 7230 section 3.3.3 allows for this.
Fixes #30
https://github.com/ruby/webrick/commit/069e9b1908
jeremyevans (Jeremy Evans)

11/12/2020

09:31 PM Feature #17322: Deprecate `Random::DEFAULT` and introduce `Random.default()` method to provide Ractor-supported default random generator
In JRuby and in TruffleRuby, Random instances are thread-safe (i.e., they use synchronization internally).
Also, `ran...
Eregon (Benoit Daloze)
02:39 AM Feature #17322: Deprecate `Random::DEFAULT` and introduce `Random.default()` method to provide Ractor-supported default random generator
It sounds rather intuitive to me that `rand` etc. are not sharable among ractors. It is their nature to mutate proce... shyouhei (Shyouhei Urabe)
02:26 AM Feature #17322: Deprecate `Random::DEFAULT` and introduce `Random.default()` method to provide Ractor-supported default random generator
> Maybe Ractor#[] (like Thread#[]) ?
yes, it is one option (but I don't like this, make a new ticket soon about i...
ko1 (Koichi Sasada)
02:24 AM Feature #17322: Deprecate `Random::DEFAULT` and introduce `Random.default()` method to provide Ractor-supported default random generator
ko1 (Koichi Sasada) wrote in #note-2:
> > Why not introduce general-purpose per-ractor variables first, instead of ma...
shyouhei (Shyouhei Urabe)
02:15 AM Feature #17322: Deprecate `Random::DEFAULT` and introduce `Random.default()` method to provide Ractor-supported default random generator
> Why not introduce general-purpose per-ractor variables first, instead of magical method that interacts with the crr... ko1 (Koichi Sasada)
01:58 AM Feature #17322: Deprecate `Random::DEFAULT` and introduce `Random.default()` method to provide Ractor-supported default random generator
Why not introduce general-purpose per-ractor variables first, instead of magical method that interacts with the crren... shyouhei (Shyouhei Urabe)
01:48 AM Feature #17322 (Closed): Deprecate `Random::DEFAULT` and introduce `Random.default()` method to provide Ractor-supported default random generator
`Random::DEFAULT` a default random generator used by `rand`, `srand`, `Array#shuffle` without a given random generato... ko1 (Koichi Sasada)
07:17 PM Bug #17324 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries.
The crash information includes:
```
Crashed Thread: 4 thread_pool.rb* Dispatch queue: com.apple.security...
jeremyevans0 (Jeremy Evans)
07:08 PM Bug #17324: You may have encountered a bug in the Ruby interpreter or extension libraries.
gundamseedw (J Wong) wrote:
> i've attached the crash report log.
>
> im using
>
> Rails 5.2.4.4
> Puma 5.0.4...
gundamseedw (J Wong)
07:04 PM Bug #17324 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries.
i've attached the crash report log.
im using
Rails 5.2.4.4
Puma 5.0.4
Ruby 2.5.8
gundamseedw (J Wong)
06:44 PM Feature #17323: Ractor::LVar to provide ractor-local storage
marcandre (Marc-Andre Lafortune) wrote in #note-2:
> - deep-copying the cache is probably faster than having to reca...
ko1 (Koichi Sasada)
06:24 PM Feature #17323: Ractor::LVar to provide ractor-local storage
I'm curious for better use cases.
The above example is not very convincing:
- there's no much use in sending this o...
marcandre (Marc-Andre Lafortune)
05:07 PM Feature #17323: Ractor::LVar to provide ractor-local storage
Another advantages compare with current API is,
* we don't need to care about variable name.
* we can make ractor...
ko1 (Koichi Sasada)
04:55 PM Feature #17323 (Closed): Ractor::LVar to provide ractor-local storage
Ruby supports thread and fiber local storage:
* `Thread#[sym]` provides *Fiber* local storage
* `Thread#thread_va...
ko1 (Koichi Sasada)
02:39 PM Revision 63258664 (git): spec/ruby/core/file/utime_spec.rb: XFS seems to have Year 2038 problem
https://rubyci.org/logs/rubyci.s3.amazonaws.com/rhel8/ruby-master/log/20201112T123004Z.fail.html.gz
```
1)
File.utime...
mame (Yusuke Endoh)
12:35 PM Revision 028d52bb (git): [ruby/date] Numeric already includes Comparable
https://github.com/ruby/date/commit/f6140df0ad matsuda (Akira Matsuda)
12:35 PM Revision 33574d57 (git): [ruby/date] Updated timezones from timeanddate.com
https://github.com/ruby/date/commit/f08175e34d nobu (Nobuyoshi Nakada)
12:34 PM Revision 81dece54 (git): [ruby/date] Honor timezones from timeanddate.com
https://github.com/ruby/date/commit/d20380fc55 nobu (Nobuyoshi Nakada)
12:34 PM Revision d65f1140 (git): [ruby/date] Fixed the script file name to update zonetab.list
https://github.com/ruby/date/commit/3c002b1daa nobu (Nobuyoshi Nakada)
12:34 PM Revision 0fdcb947 (git): [ruby/date] [DOC] declate DateTime class is deprecated
https://github.com/ruby/date/commit/58ca6e6a3e naruse (Yui NARUSE)
12:05 PM Revision e8f8e63f (git): Backport cosmetic changes from upstream repo that is ruby/rdoc
hsbt (Hiroshi SHIBATA)
12:05 PM Revision ffc8cf12 (git): Fixed typo
hsbt (Hiroshi SHIBATA)
10:27 AM Revision 0d52dce3 (git): strip trailing spaces and adjusted indents [ci skip]
nobu (Nobuyoshi Nakada)
10:16 AM Bug #17320 (Closed): Is 'make realclean' supposed to work?
Of course `configure` must be execute prior trying to run `make something`. Oh my. Sorry for the noise. vo.x (Vit Ondruch)
08:40 AM Misc #17319: Rename Random.urandom to os_random and document random data sources
I hear what you're saying about communicating that it is not coming from `/dev/random`. It's hard to communicate all ... zofrex (James Sanderson)
12:20 AM Misc #17319: Rename Random.urandom to os_random and document random data sources
Also until very recently (until version 5.6), Linux kernel has had distinct /dev/random and /dev/urandom. Some peopl... shyouhei (Shyouhei Urabe)
12:06 AM Misc #17319: Rename Random.urandom to os_random and document random data sources
+1 for doc update. Naming wise, ruby is rather POSIX-centric. For instance it has IO.select which works on Windows ... shyouhei (Shyouhei Urabe)
08:00 AM Revision 98de98fb (git): * 2020-11-12 [ci skip]
git[bot]
07:59 AM Revision a237617a (git): array.rb: Remove unnecessary phrase from rdoc
A fix to 54fb8fb62a30c7b60ab6443a62821f6f8bc479c4 mame (Yusuke Endoh)
07:59 AM Revision a02ba604 (git): array.rb: show examples whether `Array#shuffle!` has side effect or not
Partially revert 54fb8fb62a30c7b60ab6443a62821f6f8bc479c4 mame (Yusuke Endoh)
05:35 AM Feature #17316: On memoization
marcandre (Marc-Andre Lafortune) wrote in #note-5:
> > What about allowing Kernel#instance_variable_set to take a bl...
sawa (Tsuyoshi Sawada)
01:19 AM Bug #17310: Closed ractors should die
Ractor is designed to manage blocking operations by
* receive
* yield and take
and they can be multiplex with ...
ko1 (Koichi Sasada)
01:07 AM Bug #17310: Closed ractors should die
> It is convenient to Ractor.new { ... }.take, but we could have Ractor#join for that purpose, and that would also wo... ko1 (Koichi Sasada)

11/11/2020

11:51 PM Feature #16786: Light-weight scheduler for improved concurrency.
I had a call with @ioquatix .
He doesn't like `Thread.current.fiber_scheduler=` (mixing too many things).
He says `Fi...
Eregon (Benoit Daloze)
10:32 PM Bug #17321 (Closed): Having a singleton class makes cloning imperfect

## Problem
---
Running the following reproduction script:
```ruby
class Foo
def self.foo; end
end
def re...
ufuk (Ufuk Kayserilioglu)
07:27 PM Feature #17267: Remove Win32API at Ruby 3.0
@hsbt Was it extracted to a gem?
BTW:
```
$ gem-codesearch "require.+Win32API" | wc -l
339
$ gem-codesearch -i...
Eregon (Benoit Daloze)
12:28 AM Feature #17267 (Closed): Remove Win32API at Ruby 3.0
hsbt (Hiroshi SHIBATA)
07:18 PM Bug #17310: Closed ractors should die
Eregon (Benoit Daloze) wrote in #note-7:
> Also, it seems a big issue if exceptions in Ractor are silently ignored.
...
Eregon (Benoit Daloze)
07:14 PM Bug #17310: Closed ractors should die
Also, it seems a big issue if exceptions in Ractor are silently ignored.
If we can't `Ractor.yield` the exception, t...
Eregon (Benoit Daloze)
07:12 PM Bug #17310: Closed ractors should die
I think (2) is a better solution.
A Ractor should always be able to send messages while it's alive.
Another thoug...
Eregon (Benoit Daloze)
09:11 AM Bug #17310 (Closed): Closed ractors should die
Applied in changeset commit:git|deed21bb08170431891b65fda26f4a3557c9ffd4.
----------
ignore yield_atexit if outgoing...
ko1 (Koichi Sasada)
07:29 AM Bug #17310: Closed ractors should die
At least, I merged (1) patch.
`Ractor#kill` is not acceptable to avoid non-deterministic behavior like introduced by...
ko1 (Koichi Sasada)
07:11 PM Feature #17316: On memoization
> What about allowing Kernel#instance_variable_set to take a block instead of the second argument, in which case the ... marcandre (Marc-Andre Lafortune)
06:36 PM Feature #17316: On memoization
marcandre (Marc-Andre Lafortune) wrote in #note-3:
> I just released a small gem to deal with memoization
Looks i...
sawa (Tsuyoshi Sawada)
05:55 PM Feature #17316: On memoization
Memoization is tricky, not just for `nil`/`false` values. What about freezing that object? What about calling `Ractor... marcandre (Marc-Andre Lafortune)
10:22 AM Feature #17316 (Open): On memoization
I have seen so many attempts to memoize a value in the form:
```ruby
@foo ||= some_heavy_calculation(...)
```
...
sawa (Tsuyoshi Sawada)
06:54 PM Feature #17307: A way to mark C extensions as thread-safe, Ractor-safe, or unsafe
I talked this over with Eregon yesterday in the context of doing this work in TruffleRuby, and we came to the conclus... aardvark179 (Duncan MacGregor)
05:40 PM Bug #17320: Is 'make realclean' supposed to work?
Sorry, hit the enter. Prematurealy.
The DeveloperHowto [1] mentions `make realclean` to remove everything pregener...
vo.x (Vit Ondruch)
05:35 PM Bug #17320 (Closed): Is 'make realclean' supposed to work?
https://github.com/ruby/ruby/blob/fa3670e6e48a8553ad1f37bbfbd112911da497d1/common.mk#L649 vo.x (Vit Ondruch)
04:04 PM Feature #17315: Hash #transform
I didn't suggest anything, as I don't see a good name, and I don't see the appeal of this method:
- it can not be mo...
marcandre (Marc-Andre Lafortune)
09:54 AM Feature #17315: Hash #transform
marcandre (Marc-Andre Lafortune) wrote in #note-2:
> I'll reopen this, as you are asking for a mutating version of `t...
sawa (Tsuyoshi Sawada)
03:49 PM Misc #17319: Rename Random.urandom to os_random and document random data sources
[PR here](https://github.com/ruby/ruby/pull/3760) zofrex (James Sanderson)
03:47 PM Misc #17319 (Rejected): Rename Random.urandom to os_random and document random data sources
SecureRandom gets randomness from `Random.urandom`, which is a confusing name because `urandom` only uses /dev/urando... zofrex (James Sanderson)
03:23 PM Bug #17318 (Rejected): Raising float to the power of other issue
It is due to precedence of operators unary minus and `**`.
`x**y` calculates `(-0.4790529833050308)**0.99180327868...
mame (Yusuke Endoh)
12:34 PM Bug #17318: Raising float to the power of other issue
Formatting replaced the double * with a single * i put in the snippet above, please ignore deXterbed (Manoj Mishra)
12:31 PM Bug #17318 (Rejected): Raising float to the power of other issue
Raising a negative float to another float results in a complex number. Interestingly, doing the same thing without us... deXterbed (Manoj Mishra)
02:19 PM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
>> The idea behind private attribute methods (which I've seen used in a lot of codebases, and use myself) is uniformi... zverok (Victor Shepelev)
12:54 PM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
sawa (Tsuyoshi Sawada) wrote in #note-2:
> Private attribute methods defeat the purpose of attribute methods. If you ...
radarek (Radosław Bułat)
07:56 AM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
> Private attribute methods defeat the purpose of attribute methods. If you want to access them within the class, you... zverok (Victor Shepelev)
07:12 AM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
> Private attribute methods defeat the purpose of attribute methods
I should have mentioned it, but it is more use...
marcandre (Marc-Andre Lafortune)
07:04 AM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
Private attribute methods defeat the purpose of attribute methods. If you want to access them within the class, you c... sawa (Tsuyoshi Sawada)
02:17 PM Bug #17317: In 2.7.2, Hash#except doesn't seem to exist, but is in the documentation
Actually, situation with documentation sites is kind of weird now (to say the least).
* "Official" docs.ruby-lang....
zverok (Victor Shepelev)
02:11 PM Bug #17317: In 2.7.2, Hash#except doesn't seem to exist, but is in the documentation
Thanks, and apologies for raising this in the wrong place! I've emailed the site owner. Anonymous
01:01 PM Bug #17317: In 2.7.2, Hash#except doesn't seem to exist, but is in the documentation
If I recall correctly, we have received some issue reports about ruby-doc.org maybe because the site looks official t... mame (Yusuke Endoh)
12:53 PM Bug #17317 (Third Party's Issue): In 2.7.2, Hash#except doesn't seem to exist, but is in the documentation
Thanks for the report, but ruby-doc.org is a third-party project that the ruby-core team is not maintaining. Could yo... mame (Yusuke Endoh)
10:54 AM Bug #17317 (Third Party's Issue): In 2.7.2, Hash#except doesn't seem to exist, but is in the documentation
According to https://ruby-doc.org/core-2.7.2/Hash.html#method-i-except, Hash#except is available in 2.7.2, but it doe... Anonymous
09:11 AM Revision fa3670e6 (git): remove Ractor#close
close_incoming by antoher ractor means there is no other messages
will be sent to the ractor, so Ractor.receive will ...
ko1 (Koichi Sasada)
09:10 AM Revision deed21bb (git): ignore yield_atexit if outgoing port is closed
If outgoing_port is closed, Ractor.yield never successes.
[Bug #17310]
ko1 (Koichi Sasada)
06:49 AM Revision db31ace9 (git): Threads in a ractor will be killed with the ractor
If a terminating ractor has child threads, then kill all child
threads.
ko1 (Koichi Sasada)
06:49 AM Revision 1e8abe5d (git): introduce USE_VM_CLOCK for windows.
The timer function used on windows system set timer interrupt
flag of current main ractor's executing ec and thread c...
ko1 (Koichi Sasada)
12:52 AM Misc #17309: URI.escape being deprecated, yet there is no replacement
chucke (Tiago Cardoso) wrote in #note-5:
> I wonder why `uri` can't do the same. [punycode IDN domains are a standar...
shyouhei (Shyouhei Urabe)
12:29 AM Misc #17309: URI.escape being deprecated, yet there is no replacement
I may not be in position of the full details of the decision, and what is exactly the full of the deprecated URI.esca... chucke (Tiago Cardoso)
12:27 AM Revision dd07354f (git): Use Fiddle::Importer directly
hsbt (Hiroshi SHIBATA)
12:27 AM Revision 5081bd96 (git): Removed win32/resolv.rb for 32bit env
hsbt (Hiroshi SHIBATA)
12:27 AM Revision ff67aac1 (git): Removed win32api
hsbt (Hiroshi SHIBATA)

11/10/2020

10:48 PM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
I think this is a reasonable request that could be helpful. I've been tempted a few times to write this. marcandre (Marc-Andre Lafortune)
06:22 PM Feature #17314 (Closed): Provide a way to declare visibility of attributes defined by attr* methods in a single expression
**Description**
Many of us (me included) declare class attributes, even if they are private, on the top of class d...
radarek (Radosław Bułat)
09:26 PM Feature #17315 (Open): Hash #transform
I'll reopen this, as you are asking for a mutating version of `to_h`. marcandre (Marc-Andre Lafortune)
08:53 PM Feature #17315 (Closed): Hash #transform
You'll be happy to hear that this is exactly what `to_h` does already. marcandre (Marc-Andre Lafortune)
07:41 PM Feature #17315 (Open): Hash #transform
Add new methods to `transform` or `transform!` both the keys and the values of a hash.
#7793
```ruby
h = {'name...
dsisnero (Dominic Sisneros)
06:34 PM Bug #17310: Closed ractors should die
Option 1 seems easy.
I don't have enough experience to know if `Ractor#close_outgoing` could be useful or not. I a...
marcandre (Marc-Andre Lafortune)
08:12 AM Bug #17310: Closed ractors should die
Thank you.
Flow:
1. close outgoing port
2. exit the block and try to yield the result
3. outgoing port is closed
4...
ko1 (Koichi Sasada)
06:24 PM Revision 6ddde162 (git): * 2020-11-11 [ci skip]
git[bot]
06:24 PM Revision 4465099a (git): Fix some typos in NEWS.md.
Fabio Sangiovanni
02:06 PM Feature #17016: Enumerable#accumulate
parker (Parker Finch) wrote in #note-34:
> I still slightly lean toward the `#accumulate` option.
What about `#cu...
y.annikov (Yakov Annikov)
12:46 PM Bug #14157: You may have encountered a bug in the Ruby interpreter or extension libraries.
Hi Sir,
Here is the issue i found please let how will i resolve, I cant found anywhere
vinit1994 (vinit yadav)
12:35 PM Revision 0b19f334 (git): [ruby/racc] Bump version to 1.5.1
https://github.com/ruby/racc/commit/2cb3055a73 hsbt (Hiroshi SHIBATA)
12:21 PM Revision 4a03df45 (git): [ruby/racc] skip the failing test with JRuby
https://github.com/ruby/racc/commit/cf37713895 hsbt (Hiroshi SHIBATA)
12:20 PM Revision 5a19b492 (git): [ruby/racc] Use the Ruby license. Fix #134
https://github.com/ruby/racc/commit/7c881cd548 hsbt (Hiroshi SHIBATA)
08:56 AM Feature #17307: A way to mark C extensions as thread-safe, Ractor-safe, or unsafe
I agree only a few people using statically linked ruby with extensions.
So another option is ignore unsupported plat...
ko1 (Koichi Sasada)
08:55 AM Feature #17307: A way to mark C extensions as thread-safe, Ractor-safe, or unsafe
> Are there some platforms where dlsym() or equivalent is not available?
I didn't think it is a problem.
But it s...
ko1 (Koichi Sasada)
05:45 AM Revision 9728cb73 (git): Use fiddle (win32/importer) instead of Win32API
- ext/win32/lib/win32/sspi.rb: Use fiddle (win32/importer) instead of Win32API U.Nakamura
04:14 AM Revision 17e7a819 (git): Complex and Rational is embedded classes now
hsbt (Hiroshi SHIBATA)
03:02 AM Bug #16809: Fiber crashes with --with-coroutine=copy
I think we found the root cause of this, and it should be addressed by:
https://github.com/ruby/ruby/pull/3624/commi...
ioquatix (Samuel Williams)
02:18 AM Feature #17281 (Closed): Remove support for mathn
I merged this at https://github.com/ruby/ruby/commit/b958e2add835d62c0a62edaf9a23ecbbd70a3635 hsbt (Hiroshi SHIBATA)
02:14 AM Revision b958e2ad (git): Removed canonicalization for mathn
nobu (Nobuyoshi Nakada)
02:04 AM Revision 8b3653b4 (git): Fix links
S_H_ (Shun Hiraoka)
01:44 AM Revision b557c576 (git): refactoring.
iv_index_tbl_newsize() usually returns iv_index_tbl->num_entries
because ivup->iv_extended is usually false.
ko1 (Koichi Sasada)
 

Also available in: Atom