Project

General

Profile

Activity

From 11/12/2020 to 11/18/2020

11/18/2020

10:13 PM Bug #17308 (Closed): RubyVM::InstructionSequence.compile_file doesn't use the same default encoding than Kernel.load
Applied in changeset commit:git|4a5c42db88d30532bd4fbcdff89615ebf961d2a2.
----------
Make RubyVM::InstructionSequenc...
jeremyevans (Jeremy Evans)
08:45 PM Bug #17308: RubyVM::InstructionSequence.compile_file doesn't use the same default encoding than Kernel.load
I submitted a pull request to make RubyVM::InstructionSequence.compile_file use same encoding as Kernel#load: https:... jeremyevans0 (Jeremy Evans)
10:12 PM Revision 4a5c42db (git): Make RubyVM::InstructionSequence.compile_file use same encoding as load
This switches the internal function from rb_parser_compile_file_path
to rb_parser_load_file, which is the same intern...
jeremyevans (Jeremy Evans)
10:11 PM Revision fee00737 (git): * 2020-11-19 [ci skip]
git[bot]
10:11 PM Revision ce3c9a34 (git): Fix USE_TRANSIENT_HEAP macro usage in hash.c
Additionally fix some typos in transient heap. Cristian Greco
07:02 PM Bug #17321 (Closed): Having a singleton class makes cloning imperfect
Fixed by commit:ebb96fa8808317ad53a4977bff26cf755d68077e. jeremyevans0 (Jeremy Evans)
05:06 PM Feature #17333: Enumerable#many?
>We already have `none?`, `one?`, `any?` and `all?`, which translate into `== 0`, `== 1`, `> 0` and `== self.size`.
`...
sawa (Tsuyoshi Sawada)
01:48 PM Feature #17333: Enumerable#many?
ITYM `> 1`. 😉 knu (Akinori MUSHA)
01:12 PM Feature #17333: Enumerable#many?
Pull Request is here:
https://github.com/ruby/ruby/pull/3785
okuramasafumi (Masafumi OKURA)
01:01 PM Feature #17333: Enumerable#many?
okuramasafumi (Masafumi OKURA) wrote:
> Currently we need to write something this:
>
> ```ruby
> [1, 2, 3].cou...
okuramasafumi (Masafumi OKURA)
12:58 PM Feature #17333 (Open): Enumerable#many?
`Enumerable#many?` method is implemented in ActiveSupport.
https://api.rubyonrails.org/classes/Enumerable.html#metho...
okuramasafumi (Masafumi OKURA)
04:18 PM Feature #17312: New methods in Enumerable and Enumerator::Lazy: flatten, product, compact
@p8
> I was really suprised that `#last` isn't implemented in Enumerable while `#first` is.
It is natural.
T...
zverok (Victor Shepelev)
03:31 PM Feature #17312: New methods in Enumerable and Enumerator::Lazy: flatten, product, compact
I was really suprised that #last isn't implemented in Enumerable while #first is.
p8 (Petrik de Heus)
03:34 PM Feature #13381: [PATCH] Expose rb_fstring and its family to C extensions
After trying to use the new functions in `json` and `messagepack` I realized we overlooked something entirely.
The...
byroot (Jean Boussier)
10:32 AM Bug #17332 (Closed): No error when using endless method definitions with `self.` setters
Seems to have been fixed since preview1:
```
[05:29][~]$ ruby -v -e 'def self.foo=() = 1'
ruby 3.0.0dev (2020-11...
marcandre (Marc-Andre Lafortune)
08:55 AM Bug #17332 (Closed): No error when using endless method definitions with `self.` setters
With ruby 3.0.0 preview1, endless method definitions can be used for setter methods with explicit receiver:
```rub...
hjwylde (Henry Wylde)
07:28 AM Revision dc3a65bd (git): [ruby/net-smtp] Bump version to 0.2.1
https://github.com/ruby/net-smtp/commit/6e5c09dcc4 hsbt (Hiroshi SHIBATA)
07:27 AM Revision 6e487719 (git): Update TypeProf to 0.6.1
mame (Yusuke Endoh)
05:26 AM Revision 1301bd8c (git): Update documentation for Ripper.{lex,tokenize,sexp,sexp_raw} [ci skip]
jeremyevans (Jeremy Evans)
05:16 AM Feature #17276 (Closed): Ripper stops tokenizing after keyword as a method parameter
Applied in changeset commit:git|cd0877a93e91fecb3066984b3fa2a762e6977caf.
----------
Support raise_errors keyword fo...
jeremyevans (Jeremy Evans)
05:15 AM Revision cd0877a9 (git): Support raise_errors keyword for Ripper.{lex,tokenize,sexp,sexp_raw}
Implements [Feature #17276] jeremyevans (Jeremy Evans)
01:52 AM Revision a776032e (git): Move the declaration into the function
instead of 'do not call it directly.' comment. znz (Kazuhiro NISHIYAMA)
01:14 AM Bug #17021: "arm64" and "arm" are mixed in RbConfig on Apple silicon
I heard that config.guess claims it "arm", while `uname -m` reports "arm64".
First of all, `$host_cpu` and others ar...
nobu (Nobuyoshi Nakada)
01:04 AM Bug #17331: Let Fiber#raise work with transferring fibers
We could also make this automatically determine whether the fiber is yielding or transferring and choose the appropri... nevans (Nicholas Evans)
12:50 AM Bug #17331 (Closed): Let Fiber#raise work with transferring fibers
It would be useful to use `raise` on transferring fibers just as we can with yielding fibers.
I've added a `transf...
nevans (Nicholas Evans)
12:32 AM Feature #17326: Add Kernel#must! to the standard library
jez (Jake Zimmerman) wrote in #note-16:
> A colleague pointed out that `or_else` has the nice property that it could...
phluid61 (Matthew Kerwin)
12:06 AM Feature #17326: Add Kernel#must! to the standard library
A colleague pointed out that `or_else` has the nice property that it could replace the `||=` for default initializing... jez (Jake Zimmerman)
12:05 AM Revision 519062b3 (git): Add Fiddle 1.0.2 to NEWS
Sutou Kouhei
12:05 AM Revision 0915a020 (git): Update Fiddle's dependencies
Sutou Kouhei
12:05 AM Revision fcd680fb (git): [ruby/fiddle] Remove needless return
https://github.com/ruby/fiddle/commit/50e02f9445 Sutou Kouhei
12:05 AM Revision aa22b665 (git): [ruby/fiddle] Bump version
https://github.com/ruby/fiddle/commit/74b65cb858 Sutou Kouhei
12:05 AM Revision 5c7ef89d (git): [ruby/fiddle] test: suppress shadowing outer local variable warning
https://github.com/ruby/fiddle/commit/cf168680a2 Sutou Kouhei
12:05 AM Revision ceccc165 (git): [ruby/fiddle] Remove needless workaround
It's fixed in upstream.
https://github.com/MSP-Greg/ruby-loco/issues/4
https://github.com/ruby/fiddle/commit/2ae0ff4934
Sutou Kouhei
12:05 AM Revision 3b385c33 (git): [ruby/fiddle] Add workaround for ruby head for mingw
https://github.com/ruby/fiddle/commit/bb227c206d Sutou Kouhei
12:05 AM Revision 821cfa74 (git): [ruby/fiddle] Use msys2_mingw_dependencies
https://github.com/ruby/fiddle/commit/fee175a8ff Sutou Kouhei
12:05 AM Revision e2770129 (git): [ruby/fiddle] Use ruby_xcalloc() instead of ruby_xmalloc() and memset()
https://github.com/ruby/fiddle/commit/6d24fb5438 Sutou Kouhei
12:05 AM Revision 1867088d (git): [ruby/fiddle] Remove needless rescue
GitHub: fix GH-15
Reported by Eneroth3. Thanks!!!
https://github.com/ruby/fiddle/commit/f3d70b81ec
Sutou Kouhei
12:05 AM Revision aff5eace (git): [ruby/fiddle] Add workaround for RubyInstaller for Windows
See comment for details.
https://github.com/ruby/fiddle/commit/0c76f03dc4
Sutou Kouhei
12:05 AM Revision 307388ea (git): [ruby/fiddle] Add a "pinning" reference (#44)
* Add a "pinning" reference
A `Fiddle::Pinned` objects will prevent the objects they point to from
moving. This is ...
tenderlovemaking (Aaron Patterson)
12:05 AM Revision e2dfc0c2 (git): [ruby/fiddle] Add support for specifying types by name as String or Symbol
For example, :voidp equals to Fiddle::TYPE_VOID_P.
https://github.com/ruby/fiddle/commit/3b4de54899
Sutou Kouhei
12:05 AM Revision ae7b5354 (git): [ruby/fiddle] Add TYPE_CONST_STRING and SIZEOF_CONST_STRING for "const char *"
Add rb_fiddle_ prefix to conversion functions.h to keep backward
compatibility but value_to_generic() isn't safe for ...
Sutou Kouhei

11/17/2020

11:24 PM Feature #17326: Add Kernel#must! to the standard library
jeremyevans0 (Jeremy Evans) wrote in #note-14:
> But the fact that there should be a high bar is something I would ho...
jez (Jake Zimmerman)
09:46 PM Feature #17326: Add Kernel#must! to the standard library
jez (Jake Zimmerman) wrote in #note-13:
> jeremyevans0 (Jeremy Evans) wrote in #note-12:
>
> > the benefit of add...
jeremyevans0 (Jeremy Evans)
09:12 PM Feature #17326: Add Kernel#must! to the standard library
jeremyevans0 (Jeremy Evans) wrote in #note-12:
> the benefit of adding it is smaller than the cost of adding another...
jez (Jake Zimmerman)
08:50 PM Feature #17326: Add Kernel#must! to the standard library
This method is trivial to write in Ruby. While it can be useful even in codebases that do not use static typing, I t... jeremyevans0 (Jeremy Evans)
07:46 PM Feature #17326: Add Kernel#must! to the standard library
I really don't want to add new syntax for something that can already be expressed in normal Ruby code.
I wanted to b...
jez (Jake Zimmerman)
03:44 PM Feature #17326: Add Kernel#must! to the standard library
Just an aside note: not saying something against, or for the proposal, I can't help noticing that abandoned "method r... zverok (Victor Shepelev)
03:20 PM Feature #17326: Add Kernel#must! to the standard library
I don't think I can agree with the `|.` operator, but having the raise in a block would make a lot of sense to me.
...
Dan0042 (Daniel DeLorme)
06:35 AM Feature #17326: Add Kernel#must! to the standard library
I like this syntax :
`task|.raise.mailing_params|.raise.fetch('template_context')`
As you said it's consistent wi...
nrodriguez (Nicolas Rodriguez)
11:13 PM Revision 64926d50 (git): test/net/smtp - use TCPSocket when UNIXSocket unavailable
MSP-Greg (Greg L)
10:17 PM Revision 2ef3b979 (git): NEWS: Add --backtrace-limit option [ci skip]
Junichi Ito
09:58 PM Revision 898aff95 (git): Remove NEWS entry about taint deprecation warnings [ci skip]
JunichiIto on GitHub correctly pointed out this is no longer
accurate due to the change to not display deprecation wa...
jeremyevans (Jeremy Evans)
08:30 PM Misc #17329 (Closed): Doc for pattern match?
Ah, I confused both sites. Closing this then. marcandre (Marc-Andre Lafortune)
06:32 PM Misc #17329: Doc for pattern match?
> Who has access to do that?
If you mean access to ruby-doc.org, I believe it is one-person project. Last time I w...
zverok (Victor Shepelev)
06:09 PM Misc #17329: Doc for pattern match?
Ohh, glad to see it's there, not updated.
There have been many improvements by @BurdetteLamar, we should definitel...
marcandre (Marc-Andre Lafortune)
10:02 AM Misc #17329: Doc for pattern match?
(As an aside note, I really believe Ruby needs some kind of "Documentation working group", the current state of thing... zverok (Victor Shepelev)
10:00 AM Misc #17329: Doc for pattern match?
Funny.
Here: https://docs.ruby-lang.org/en/master/doc/syntax/control_expressions_rdoc.html#label-case+Expression w...
zverok (Victor Shepelev)
01:59 AM Misc #17329 (Closed): Doc for pattern match?
Is there an official doc for pattern matching?
I note that `case` in https://ruby-doc.org/core-2.7.2/doc/syntax/co...
marcandre (Marc-Andre Lafortune)
07:04 PM Feature #17278: On-demand sharing of constants for Ractor
In #17323#note-5, ko1 mentioned there is a possibility to provide "fork" model. So I tried thinking if it could apply... Dan0042 (Daniel DeLorme)
06:53 PM Revision 0829f147 (git): * 2020-11-18 [ci skip]
git[bot]
06:52 PM Revision 5e3259ea (git): fix public interface
To make some kind of Ractor related extensions, some functions
should be exposed.
* include/ruby/thread_native.h
*...
ko1 (Koichi Sasada)
06:37 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
n.b. I consider this to be related, at least in spirit, to https://bugs.ruby-lang.org/issues/595. I consider this ana... nevans (Nicholas Evans)
04:25 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
Like I wrote above, I think I'd like to change my PR so that `terminated_fiber.cancel` returns `nil` or `false` inste... nevans (Nicholas Evans)
03:45 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
one more update to alternatives nevans (Nicholas Evans)
03:40 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
added more to alternatives nevans (Nicholas Evans)
03:20 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
Added some other alternatives to the description. nevans (Nicholas Evans)
03:02 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
Thanks for taking a look at this, Benoit. I agree it's not obvious why this is necessary with Fiber#raise, so I'll tr... nevans (Nicholas Evans)
04:28 PM Feature #17312: New methods in Enumerable and Enumerator::Lazy: flatten, product, compact
> But even with Enumerator the recursive aspect still represents a compatibility problem.
I am not sure about its ...
zverok (Victor Shepelev)
04:14 PM Feature #17312: New methods in Enumerable and Enumerator::Lazy: flatten, product, compact
I understand the thinking behind #flatten; if `ary.flatten` is possible then why not `ary.to_enum.flatten`? It should... Dan0042 (Daniel DeLorme)
03:50 PM Feature #17312: New methods in Enumerable and Enumerator::Lazy: flatten, product, compact
@mame @Dan0042 Oh, you are right, starting to think from `Enumerable::Lazy` perspective I've missed a huge incompatib... zverok (Victor Shepelev)
04:07 PM Feature #17276: Ripper stops tokenizing after keyword as a method parameter
Eregon (Benoit Daloze) wrote in #note-2:
> jeremyevans0 (Jeremy Evans) wrote in #note-1:
> > Maybe we could support...
jeremyevans0 (Jeremy Evans)
10:10 AM Feature #17276: Ripper stops tokenizing after keyword as a method parameter
jeremyevans0 (Jeremy Evans) wrote in #note-1:
> Maybe we could support keyword arguments in `Ripper.lex` and `Ripper...
Eregon (Benoit Daloze)
05:17 AM Feature #17276: Ripper stops tokenizing after keyword as a method parameter
Ripper records errors, but `Ripper.tokenize` and `Ripper.lex` cannot return them. Here's how you can handle errors w... jeremyevans0 (Jeremy Evans)
02:24 PM Bug #17197: Some Hash methods still have arity 2 instead of 1
Ah, I was wrong.
mame (Yusuke Endoh) wrote in #note-6:
> IMO, this is a bug since 1.9.0 because `Hash#select` looks ...
mame (Yusuke Endoh)
01:37 PM Bug #17197: Some Hash methods still have arity 2 instead of 1
Eregon (Benoit Daloze) wrote in #note-8:
> Check if the block uses arity 1 and warn that it should instead use `|k,v...
Dan0042 (Daniel DeLorme)
12:55 PM Feature #17330: Object#non
It reminded me https://bugs.ruby-lang.org/issues/12075#change-57152. nobu (Nobuyoshi Nakada)
12:49 PM Feature #17330 (Open): Object#non
(As always "with core" method proposals, I don't expect quick success, but hope for a fruitful discussion)
### Rea...
zverok (Victor Shepelev)
12:45 PM Bug #17021: "arm64" and "arm" are mixed in RbConfig on Apple silicon
Maybe, `uname -m` (and tool/config.guess) returns "arm", then `RUBY_UNIVERSAL_ARCH` replaces target_cpu only? nobu (Nobuyoshi Nakada)
12:35 PM Bug #17021: "arm64" and "arm" are mixed in RbConfig on Apple silicon
As I have no access to Apple silicon machines, can anyone share config.log file on that platform? nobu (Nobuyoshi Nakada)
10:20 AM Bug #17021: "arm64" and "arm" are mixed in RbConfig on Apple silicon
This seems a clear bug, at least `host_cpu` and `build_cpu`.
`arm` means 32-bit and is already used e.g. on Linux to...
Eregon (Benoit Daloze)
12:20 PM Bug #11213: defined?(super) ignores respond_to_missing?
https://github.com/ruby/ruby/pull/3777 nobu (Nobuyoshi Nakada)
10:25 AM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
phluid61 (Matthew Kerwin) wrote in #note-9:
> ``` ruby
> attr_accessor :x, :y #=> ?
> ```
This is exactly why ...
radarek (Radosław Bułat)
10:23 AM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
marcandre (Marc-Andre Lafortune) wrote in #note-8:
> I would also like `alias_method x, y` to return `x` so we could...
radarek (Radosław Bułat)
07:55 AM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
Dan0042 (Daniel DeLorme) wrote in #note-7:
> +1
>
> Ever since ruby 2.1 when `def` was improved to return a Symbo...
phluid61 (Matthew Kerwin)
04:30 AM Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression
I would also like `alias_method x, y` to return `x` so we could write `protected alias_method :foo, :bar` marcandre (Marc-Andre Lafortune)
09:05 AM Revision 0683912d (git): Skip tests related TLS with Windows platform.
hsbt (Hiroshi SHIBATA)
05:17 AM Revision cada6d85 (git): Import net-smtp-0.2.0 from https://github.com/ruby/net-smtp
hsbt (Hiroshi SHIBATA)
02:32 AM Bug #17305 (Closed): rb_rescue2() seems to loop forever if given a non-module for rescued exceptions on <= 2.6.6
I bisected the fix to commit:a569bc09e25a2ba813d0bec1228d9ff65330a3db. We definitely don't want the entire commit. ... jeremyevans0 (Jeremy Evans)
12:41 AM Revision fcc88da5 (git): configure.ac: fix for upcoming autoconf-2.70
The failure initially noticed on `autoconf-2.69d` (soon to become 2.70):
```
$ ./configure
./configure: line 8720: s...
Sergei Trofimovich
12:39 AM Feature #13381 (Closed): [PATCH] Expose rb_fstring and its family to C extensions
Applied in changeset commit:git|ef19fb111a8c8bf1a71d46e6fcf34b227e086845.
----------
Expose the rb_interned_str_* fa...
byroot (Jean Boussier)
12:39 AM Revision ef19fb11 (git): Expose the rb_interned_str_* family of functions
Fixes [Feature #13381] byroot (Jean Boussier)
12:08 AM Feature #17328 (Rejected): Extend `un.rb` to be usable by everyone
You can run it as `ruby run.rb`. nobu (Nobuyoshi Nakada)

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)
 

Also available in: Atom