Project

General

Profile

Activity

From 04/12/2021 to 04/18/2021

04/18/2021

03:02 PM Feature #12543: explicit tail call syntax: foo() then return
mame (Yusuke Endoh) wrote in #note-9:
> And I have another concern. If tail call optimization is on by default, som...
jwmittag (Jörg W Mittag)
02:41 PM Feature #16945: Enable TCO by use of special form
x3qt (Yury Polyakov) wrote in #note-6:
> shyouhei (Shyouhei Urabe) wrote in #note-4:
> > Tell us how is it better t...
jwmittag (Jörg W Mittag)
10:06 AM Bug #17723: autoconf 2.70+ is not working with master branch
And 5a9b5b8e953dc36f4f7f7639e8aeaa8132241c79 too. nagachika (Tomoyuki Chikanaga)
10:06 AM Bug #17723: autoconf 2.70+ is not working with master branch
ruby_3_0 a55ba76617f240337854668c8b5dd9961873f5af merged revision(s) 4250d7c910fd67c0da07c6213901009330e3cd51,83f9664... nagachika (Tomoyuki Chikanaga)
10:04 AM Revision 5a9b5b8e (git): Add execution bit for autogen.sh.
nagachika (Tomoyuki Chikanaga)
09:05 AM Revision a55ba766 (git): merge revision(s) 4250d7c910fd67c0da07c6213901009330e3cd51,83f96642d2d74569cc38319d02d5922fac8f66b8,447feb0aa08e20cc5eeb8b3a6f881de261a2c9a2,1d80d703141f01383604022f9e8e53e10865197c,e271a3d4afc47e812b50fc9c50f6bf34d2d723a6,366e88e508de7c59d69906ad948cccd7979e932b,d825e34962540d345eb3c5a70eb264b415e915a5,4250d7c910fd67c0da07c6213901009330e3cd51,f9e43782995b1f77e7b10c79941bbbda15620e2a: [Backport #17723]
autogen.sh: Added
Currently it just runs "autoreconf --install"
---
aclocal.m4 | 4 ++--
...
nagachika (Tomoyuki Chikanaga)
08:59 AM Revision 6e6157d9 (git): merge revision(s) 6268fdc662c75c61091b2ab0b476ec15df023328:
spec/ruby/core/hash/transform_keys_spec.rb: Fix the failure of
ruby_3_0
https://github.com/ruby/spe...
nagachika (Tomoyuki Chikanaga)
04:49 AM Revision aae812d6 (git): * 2021-04-18 [ci skip]
git[bot]
04:47 AM Revision 6943ffc3 (git): Split revision.h rule
GNU-make specific rule is defined in defs/gmake.mk. nobu (Nobuyoshi Nakada)

04/17/2021

11:43 PM Feature #17808: Feature Request: JS like splat of Object properties as named method parameters

> But ultimately your whole feature request rely on a very specific JS "feature" (many people would call it a cruft...
Lithium (Brad Krane)
09:00 PM Bug #17812 (Closed): Timeout::Error doesn't let two-argument raise() set a new message
Shouldn't this:
```
martind@pizzagate:~$ ruby -we 'require "timeout"; raise(Timeout::Error.new("hello"), "world")'
...
[email protected] (Martin Dorey)
05:43 PM Feature #17795: Around `Process.fork` callbacks API

byroot (Jean Boussier) wrote in #note-21:
> I must admit I don't understand this argument. There are plenty of adv...
mame (Yusuke Endoh)
11:02 AM Feature #17795: Around `Process.fork` callbacks API
> some committers agreed with Jeremy's concern (easy to misuse).
I must admit I don't understand this argument. Th...
byroot (Jean Boussier)
07:56 AM Feature #17795: Around `Process.fork` callbacks API
This thicket was discussed in the dev meeting, but no conclusion was reached. The current situation is not so good, b... mame (Yusuke Endoh)
05:06 PM Bug #11230: Should rb_struct_s_members() be public API?
At the April 2021 developer meeting, it was decided to remove this C-API function after Ruby 3.2. jeremyevans0 (Jeremy Evans)
05:04 PM Feature #17403: Remove Fixnum and Bignum
At the April 2021 developer meeting, it was decided to make this change in Ruby 3.2. jeremyevans0 (Jeremy Evans)
10:14 AM Revision 1f562380 (git): Remove comments in tool/m4 from the generated configure
nobu (Nobuyoshi Nakada)
10:08 AM Revision 17c3014b (git): Prefer positive condition to double negative
Autoconf 2.70 seems to omit the check for the given CC,
`AC_COMPILE_IFELSE` does not know which is the cause of the
f...
nobu (Nobuyoshi Nakada)
08:18 AM Misc #17811 (Closed): DevelopersMeeting20210521Japan
# The next dev meeting
**Date: 2021/05/21 13:00-17:00**
Place/Sign-up/Agenda/Log: https://github.com/ruby/dev-mee...
mame (Yusuke Endoh)
08:18 AM Misc #17734 (Closed): DevelopersMeeting20210416Japan
mame (Yusuke Endoh)
08:15 AM Feature #17016: Enumerable#accumulate
This ticket was discussed in the dev meeting, but no conclusion was reached.
BTW, Mathematica's "Accumulate" is di...
mame (Yusuke Endoh)
08:04 AM Feature #17753: Add Module#namespace
In my view, the way to implement the use case that matches Ruby is to go downwards.
Module has many constants, that ...
fxn (Xavier Noria)
07:27 AM Feature #17753: Add Module#namespace
This ticket was discussed on the dev meeting. @matz said that (1) the use case is not clear to him, and that (2) he w... mame (Yusuke Endoh)
07:38 AM Feature #17749: Const source location without name
Thank you! Then, I think the patch should use const_source_location info instead of adding `file` and `line` fields.
...
mame (Yusuke Endoh)
07:21 AM Bug #16983 (Assigned): RubyVM::AbstractSyntaxTree.of(method) returns meaningless node if the method is defined in eval
This ticket was discussed on dev-meeting. A method (or proc) created in an `eval` context should be marked and `AST.o... mame (Yusuke Endoh)
06:44 AM Bug #17810 (Closed): addr2line.c: Some symbol names missing in C backtrace with Clang/LLVM
When Clang/LLVM is used for compilation, some symbol names are missing in C level backtrace information. An example:
...
xtkoba (Tee KOBAYASHI)
02:54 AM Revision ed9ac039 (git): * 2021-04-17 [ci skip]
git[bot]
02:54 AM Revision d953ac11 (git): Fix writing XDG_CONFIG_HOME in test-bundler
https://github.com/ruby/actions/actions/runs/756591173
```
Errno::EACCES: Permission denied @ dir_s_mkdir - /home/run...
znz (Kazuhiro NISHIYAMA)

04/16/2021

09:46 PM Bug #17809 (Closed): Ruby 2.6.7 backported C99 code that breaks older compilers
Hey folks,
It looks like the 2.6.7 release inadvertently backported some C99 code from HEAD onto the Ruby 2.6 bran...
tas50 (Tim Smith)
09:05 PM Feature #17808: Feature Request: JS like splat of Object properties as named method parameters
I believe the answers given so far should help (i.e. `(**rest)` and defining `to_hash`).
Also looks into `Struct` ...
marcandre (Marc-Andre Lafortune)
09:00 PM Feature #17808: Feature Request: JS like splat of Object properties as named method parameters
> Is there a way to modify existing declared methods adding that parameter
Well, I suppose you can decorate the me...
byroot (Jean Boussier)
07:24 PM Feature #17808: Feature Request: JS like splat of Object properties as named method parameters
byroot (Jean Boussier) wrote in #note-3:
> Well, the ruby equivalent to your example JS function would be:
>
> ```ru...
Lithium (Brad Krane)
07:03 PM Feature #17808: Feature Request: JS like splat of Object properties as named method parameters
Well, the ruby equivalent to your example JS function would be:
```ruby
def test(param1: nil, param2: nil, **)
e...
byroot (Jean Boussier)
06:53 PM Feature #17808: Feature Request: JS like splat of Object properties as named method parameters
Thanks for the quick update.
That almost works but to automate this the to_hash function needs to be aware of the m...
Lithium (Brad Krane)
01:43 PM Feature #17808: Feature Request: JS like splat of Object properties as named method parameters
Doesn't the implicit `to_hash` answer your demand?
```ruby
def foo(bar:)
p bar
end
class MyObject
def i...
byroot (Jean Boussier)
12:18 PM Feature #17808 (Open): Feature Request: JS like splat of Object properties as named method parameters
I'm pretty sure there is no equivalent Ruby for a very convenient JS way to enter named function parameters as below:... Lithium (Brad Krane)
05:59 PM Feature #17749: Const source location without name
mame (Yusuke Endoh) wrote in #note-8:
> @tenderlove I'm not sure about the use case. What purpose do you want this f...
tenderlovemaking (Aaron Patterson)
06:21 AM Feature #17749: Const source location without name
@tenderlove I'm not sure about the use case. What purpose do you want this for? Memory profiling?
`const_source_lo...
mame (Yusuke Endoh)
01:28 PM Feature #17795: Around `Process.fork` callbacks API
At Datadog, we use our monkey patching (mentioned in the description) to restart background threads that are used to ... ivoanjo (Ivo Anjo)
08:07 AM Feature #17795: Around `Process.fork` callbacks API
> It doesn't need system call unlike getpid.
It would be a win for sure, but in my opinion we might as well go all...
byroot (Jean Boussier)
08:03 AM Feature #17795: Around `Process.fork` callbacks API
Another idea is introducing Process.fork_level which can be used to detect fork instead of getpid.
```
Process.fo...
akr (Akira Tanaka)
11:20 AM Bug #17807 (Closed): "Segmentation fault at 0x0000000000000008" crash when accessing instance variables of Process::Waiter instances (Ruby 2.3 to 2.6)
Hey there! I'm in [Datadog's ddtrace gem](https://github.com/DataDog/dd-trace-rb) team and one of our customers was r... ivoanjo (Ivo Anjo)
08:51 AM Bug #16608: ConditionVariable#wait should return false when timeout exceeded
Previous dev-meeting (March), there is no objection to change the return value of `Mutex#sleep`.
> matz: agreed to...
ko1 (Koichi Sasada)
08:05 AM Feature #17762: A simple way to trace object allocation
It's OK to add this feature. The side effects are acceptable (for this is only for debugging anyway). I am OK with an... matz (Yukihiro Matsumoto)
07:13 AM Feature #15198 (Closed): Array#intersect?
Applied in changeset commit:git|b6bb4623ebcf1335cf0a81d279cde24a9e97bcce.
----------
NEWS for [Feature #15198] [ci s...
nobu (Nobuyoshi Nakada)
07:03 AM Feature #15198: Array#intersect?
We discussed this in today's developer meeting. Here are some remarks:
- It takes one argument for now.
- It means ...
knu (Akinori MUSHA)
06:56 AM Feature #15198: Array#intersect?
Accepted.
Matz.
matz (Yukihiro Matsumoto)
07:13 AM Feature #15976 (Closed): Add Array#overlap? for whether the intersection of 2 arrays is non empty?
Applied in changeset commit:git|b6bb4623ebcf1335cf0a81d279cde24a9e97bcce.
----------
NEWS for [Feature #15198] [ci s...
nobu (Nobuyoshi Nakada)
07:12 AM Revision b6bb4623 (git): NEWS for [Feature #15198] [ci skip]
nobu (Nobuyoshi Nakada)
07:06 AM Revision 55d91a09 (git): Add Array#intersect?
Travis Hunter
05:54 AM Bug #9542 (Rejected): Delegator does not delegate protected methods
mame (Yusuke Endoh)
05:44 AM Bug #9542: Delegator does not delegate protected methods
It's intentional.
Matz.
matz (Yukihiro Matsumoto)
05:41 AM Revision 97cee1cb (git): rb_hash_free(): has never existed.
This is just a hoax. Nobody have ever implemented a function named as
such. Also the functionality implied by the n...
shyouhei (Shyouhei Urabe)
05:25 AM Bug #17777: 2.6.7 fails to build on macOS: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99
Fixed at https://github.com/ruby/ruby/pull/4360 hsbt (Hiroshi SHIBATA)
04:30 AM Feature #17398: SyntaxError in endless method
Pros
* More intuitive / consistent / natural
Cons
* Duplicated syntax rules
* Even more complex syntax
If I were yo...
matz (Yukihiro Matsumoto)
04:12 AM Feature #17403: Remove Fixnum and Bignum
No at least 3.1.
Don't introduce incompatibility in 3.1.
naruse (Yui NARUSE)
03:25 AM Bug #17806 (Closed): Bad interaction between method cache, prepend, and refinements
I'm running into a couple of issues with Ruby 3's new method cache and
refinements.
The first script raises `Syst...
alanwu (Alan Wu)
02:05 AM Revision dd3eca64 (git): * 2021-04-16 [ci skip]
git[bot]
02:04 AM Revision 6268fdc6 (git): spec/ruby/core/hash/transform_keys_spec.rb: Fix the failure of ruby_3_0
https://github.com/ruby/spec/pull/833
https://github.com/ruby/spec/commit/8290e5ad8952b14ee9a5069651d9864c66681112
mame (Yusuke Endoh)

04/15/2021

08:30 PM Bug #17802: backport fbbc37dc1d5b329777e6d9716118db528ab70730 to 2.7 and 3.0
ruby_2_7 67f1cd20bfb97ff6e5a15d27c8ef06cdb97ed37a merged revision(s) fbbc37dc1d5b329777e6d9716118db528ab70730. usa (Usaku NAKAMURA)
01:30 AM Bug #17802: backport fbbc37dc1d5b329777e6d9716118db528ab70730 to 2.7 and 3.0
ruby_3_0 d5a34e1b142eccc54971494be2243a0c6ac01d94 merged revision(s) fbbc37dc1d5b329777e6d9716118db528ab70730. nagachika (Tomoyuki Chikanaga)
08:30 PM Revision 67f1cd20 (git): merge revision(s) fbbc37dc1d5b329777e6d9716118db528ab70730: [Backport #17802]
test/drb/test_drb.rb: Specify the host of DRbServer
to try fixing the following error.
http://rubyc...
U.Nakamura
08:10 PM Bug #17777: 2.6.7 fails to build on macOS: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99
https://github.com/ruby/ruby/pull/4385 austin (Austin Ziegler)
07:31 PM Bug #17805: Segmentation fault at 0x0000000000000010 ruby 2.7.3p183
peterzhu2118 (Peter Zhu) wrote in #note-1:
> Thank you for the report. It's a duplicate of #17780 which has been fla...
jaredbeck (Jared Beck)
07:30 PM Bug #17805 (Closed): Segmentation fault at 0x0000000000000010 ruby 2.7.3p183
peterzhu2118 (Peter Zhu)
07:29 PM Bug #17805: Segmentation fault at 0x0000000000000010 ruby 2.7.3p183
Thank you for the report. It's a duplicate of #17780 which has been fixed and flagged for backport (so it will land i... peterzhu2118 (Peter Zhu)
06:07 PM Bug #17805 (Closed): Segmentation fault at 0x0000000000000010 ruby 2.7.3p183
jaredbeck (Jared Beck)
02:10 PM Revision f1f08f5b (git): Remove useless attribute set in init_mark_stack
init_mark_stack already clears the mark stack so we do not need to
set the attribute cache_size to zero.
Peter Zhu
09:07 AM Revision 26888d5e (git): Workaround for installation failures on macOS
nobu (Nobuyoshi Nakada)
06:36 AM Revision 7af7a539 (git): Also merge tool/bundler/*.rb for testing of Bundler
hsbt (Hiroshi SHIBATA)
06:36 AM Revision 96741765 (git): Merge the master branch of RubyGems
hsbt (Hiroshi SHIBATA)
06:36 AM Revision ed149dbf (git): Merge the master branch of Bundler
hsbt (Hiroshi SHIBATA)
06:36 AM Revision 0d9496f9 (git): Restore bundler.gemspec from ruby/ruby repository with sync_default_gems.rb
hsbt (Hiroshi SHIBATA)
05:55 AM Revision fd978621 (git): mkconfig.rb: Update around SDKROOT
c.f. https://opensource.apple.com/source/ruby/ruby-145.40.1/patches/tool_mkconfig.rb.diff
* moved to "includedir" fr...
nobu (Nobuyoshi Nakada)
05:16 AM Bug #17775: Backport to fix build failures
merged into ruby_3_0
https://github.com/ruby/ruby/commit/6add6014d8626c4e5f6816030ea651321e6aa044
https://github.co...
nagachika (Tomoyuki Chikanaga)
04:51 AM Revision 31669960 (git): bump up RUBY_PATCHLEVEL
nagachika (Tomoyuki Chikanaga)
04:43 AM Revision ce06c24b (git): merge revision(s) c32375883a6,48bb0329eb3:
Update for autoconf 2.70
---
configure.ac | 232 +++++++++++++++++----------...
nobu (Nobuyoshi Nakada)
04:43 AM Revision 6add6014 (git): merge revision(s) a3851d97ede:
Removed unused AC_CHECKING
---
configure.ac | 7 -------
1 file changed, 7 deletions(-)
nobu (Nobuyoshi Nakada)
04:40 AM Revision df0f60b6 (git): spec/ruby/library/matrix/: Change the version guard to 3.1.0
[Bug #17521] won't be backported until 3.1.0.
https://github.com/ruby/spec/pull/832
mame (Yusuke Endoh)
03:41 AM Bug #17759: Correct `ioctl_req_t` for musl
Hi @xtkoba
Are you ineterested in becoming a Ruby commiter?
At least, @nobu and I want you to have a commit bit.
...
mame (Yusuke Endoh)
03:22 AM Bug #17803: Segmentation fault during deflate
xtkoba (Tee KOBAYASHI) wrote in #note-2:
> Maybe reproducible by spawning hundreds of threads each of which calls de...
mame (Yusuke Endoh)
02:20 AM Bug #17803: Segmentation fault during deflate
Although I am not sure, this looks like a thread-safety issue. Maybe reproducible by spawning hundreds of threads eac... xtkoba (Tee KOBAYASHI)
03:10 AM Bug #17521: [Matrix stdlib] Zero matrix to the power of zero
Since `matrix` is a gem that can be updated independently from Ruby, I think backports are not required. In addition,... marcandre (Marc-Andre Lafortune)
01:50 AM Bug #17521: [Matrix stdlib] Zero matrix to the power of zero
Even though nobody filled the Backport field yet, I will set "WONTFIX".
Such a long long standing bug could be thoug...
nagachika (Tomoyuki Chikanaga)
02:14 AM Revision 92545977 (git): [Doc] Add Hash#value? into call-seq (#4293)
kachick (Kenichi Kamiya)
01:34 AM Bug #17804: Math.cbrt(0.0) returns NaN
FWIW, that code was introduced by commit commit:c995315153f7403636ec0d6119b7885668b32039. xtkoba (Tee KOBAYASHI)
01:17 AM Bug #17804 (Closed): Math.cbrt(0.0) returns NaN
Math.cbrt(0.0) returns NaN. It should return 0.0.
From reading the implementation, I expect this bug to happen onl...
chasonr (Ray Chason)
01:29 AM Bug #17735: `Hash#transform_keys!` drops non evaluated keys
ruby_3_0 84d9a9afc0b49d095541acb9832f8b12fb506e19 merged revision(s) 31e0382723bfb35cffe3ca485dd0577668cafa07,5e5fb72... nagachika (Tomoyuki Chikanaga)
01:25 AM Revision 84d9a9af (git): merge revision(s) 31e0382723bfb35cffe3ca485dd0577668cafa07,5e5fb72f99701dc27c66ab148471893f14e6d6f0,fb6ebe55d91187d9635e0183d47dbf38e95b1141,522d4cd32f7727886f4fcbc28ed29c08d361ee20: [Backport #17735]
Keep non evaluated keys in `Hash#transform_keys!` [Bug #17735]
---
hash.c ...
nagachika (Tomoyuki Chikanaga)
12:55 AM Bug #17779: 特定の順序でHashのkeyを削除した場合に Hash#first が遅くなる
I think this is a performance thing.
If there are any real world application affected by this issue, please let me k...
nagachika (Tomoyuki Chikanaga)
12:49 AM Bug #17639: TYPO in define constant
The fix was already backported at 3e67bfe202d6b410375af990ac806f15cb2df762. nagachika (Tomoyuki Chikanaga)
12:46 AM Revision d5a34e1b (git): merge revision(s) fbbc37dc1d5b329777e6d9716118db528ab70730: [Backport #17802]
test/drb/test_drb.rb: Specify the host of DRbServer
to try fixing the following error.
http://rubyc...
nagachika (Tomoyuki Chikanaga)
12:44 AM Revision f057a607 (git): bump teeny version to 3.0.2.
nagachika (Tomoyuki Chikanaga)

04/14/2021

07:16 PM Bug #17801: repeated read from PTY blocks all Fibers
ioquatix (Samuel Williams) wrote in #note-1:
> Investigating.
Hello Samuel, if found the following:
**A read on a PT...
pebauer (peter bauer)
06:28 PM Feature #17790: Have a way to clear a String without resetting its capacity
> Maybe String#capacity and String#capacity= would make sense?
Using `capacity=` for the method name would set the...
dylants (Dylan Thacker-Smith)
05:51 PM Revision d9a52813 (git): * 2021-04-15 [ci skip]
git[bot]
05:51 PM Revision b190f6ef (git): [ruby/matrix] Fix a typo in a error message
universato (Yoshimine Sato)
02:34 PM Bug #17803: Segmentation fault during deflate
You should add this as an issue to the zlib repository: https://github.com/ruby/zlib/issues
However, before doing ...
jeremyevans0 (Jeremy Evans)
02:19 PM Bug #17803 (Closed): Segmentation fault during deflate
Hi there,
I've been running on a lot of crash when using permessage_deflate gem for websocket that uses the zlib d...
maximeg (Maxime Garcia)
07:34 AM Feature #17795: Around `Process.fork` callbacks API
I updated the description with:
- Added the third hook (after fork in parent) on @ko1's demand.
- Added links...
byroot (Jean Boussier)
06:06 AM Feature #17795: Around `Process.fork` callbacks API
For debugger, I also want to use.
I want to use 3 hooks like `pthread_atfork`.
ko1 (Koichi Sasada)
04:45 AM Bug #6391 (Closed): Segment Fault while execute make_encmake.rb for Ruby 1.9.3 P194 ( MinGW64)
Ruby 1.9 is EOL today. hsbt (Hiroshi SHIBATA)
02:30 AM Bug #17802 (Closed): backport fbbc37dc1d5b329777e6d9716118db528ab70730 to 2.7 and 3.0
ruby_2_7 and ruby_3_0 snapshot test fails during drb test suite.
https://github.com/ruby/actions/actions/runs/7457...
mame (Yusuke Endoh)
01:00 AM Feature #17752: Enable -Wundef for C extensions in repository
Thanks to user:shyouhei's work, we are now able to notice undefined identifiers evaluated in `#if` directives using G... xtkoba (Tee KOBAYASHI)

04/13/2021

10:22 PM Feature #17795: Around `Process.fork` callbacks API
~~@mame I'm afraid I don't have the permission to edit my own tickets.~~ Nevermind. byroot (Jean Boussier)
04:32 PM Feature #17795: Around `Process.fork` callbacks API
@byroot I see, thanks! I think that the intended behavior of the proposed APIs is valuable to be explained in the tic... mame (Yusuke Endoh)
03:17 PM Feature #17795: Around `Process.fork` callbacks API
> what process calls the after_fork hook? Only parent, only child, or both?
The `child`. But I agree that a better...
byroot (Jean Boussier)
02:46 PM Feature #17795: Around `Process.fork` callbacks API
> Do people actually fork in the middle of a transaction?
I think the most likely case is if the transaction is un...
Dan0042 (Daniel DeLorme)
02:36 PM Feature #17795: Around `Process.fork` callbacks API
I'd like to make sure: what process calls the `after_fork` hook? Only parent, only child, or both?
In the previous...
mame (Yusuke Endoh)
11:16 AM Feature #17795: Around `Process.fork` callbacks API
@byroot Thanks for the new issue, this seems much clearer than the previous one :)
jeremyevans0 (Jeremy Evans) wrote...
Eregon (Benoit Daloze)
10:52 AM Feature #17795: Around `Process.fork` callbacks API
@jeremyevans0 I understand your point, and I agree that in an ideal world this wouldn't be necessary.
However prag...
byroot (Jean Boussier)
02:32 AM Feature #17795: Around `Process.fork` callbacks API
The main issue I see with this is the potential for misuse. If I could be sure this would only be used by applicatio... jeremyevans0 (Jeremy Evans)
01:32 AM Feature #17795: Around `Process.fork` callbacks API
Python provides `os.register_at_fork` API for registering callbacks which are called on both before and after fork.
...
mrkn (Kenta Murata)
09:30 PM Bug #17800 (Third Party's Issue): Cannot disable SMTP TLS through mail library
Looks like you are referring to the mail gem, which is not part of Ruby itself: https://github.com/mikel/mail/blob/8f... jeremyevans0 (Jeremy Evans)
07:14 PM Bug #17800 (Third Party's Issue): Cannot disable SMTP TLS through mail library

Net::SMTP now defaults to automatic TLS; the **mail** interface hasn't been updated to reflect this. It will turn T...
MarkTheStrange (Mark Reed)
08:05 PM Bug #17801: repeated read from PTY blocks all Fibers
expected output from script on cli:
date
Di 13 Apr 2021 21:51:20 CEST
test
date
Di 13 Apr 2021 21:51:21 CEST
te...
pebauer (peter bauer)
07:51 PM Bug #17801: repeated read from PTY blocks all Fibers
Investigating. ioquatix (Samuel Williams)
07:31 PM Bug #17801 (Closed): repeated read from PTY blocks all Fibers
Ruby version:
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]
used Scheduler:
https://github.com/...
pebauer (peter bauer)
07:10 PM Bug #17799: Seg fault in rb_class_clear_method_cache
My explanation in #note-1 is partly incorrect. What is wrongfully 0 is the value of the class itself, not the class s... xtkoba (Tee KOBAYASHI)
06:49 PM Bug #17799: Seg fault in rb_class_clear_method_cache
My observation is that the function rb_class_clear_method_cache is called with argument klass=0, which clearly causes... xtkoba (Tee KOBAYASHI)
05:28 PM Bug #17799 (Feedback): Seg fault in rb_class_clear_method_cache
Recently our CI tests have been intermittently failing with segmentation faults at random points, such as:
```
/b...
stanhu (Stan Hu)
04:35 PM Feature #17753: Add Module#namespace
BTW, you all know AS has this concept right? https://github.com/rails/rails/blob/f1e00f00295eb51a64a3008c7b1f4c4f46e9... fxn (Xavier Noria)
11:50 AM Feature #17753: Add Module#namespace
The lexical parent module happens to be just the object from which you set the name, which does not even reflect the ... fxn (Xavier Noria)
10:57 AM Feature #17753: Add Module#namespace
I see, the name `namespace` is what we're disagreeing on.
Maybe you have another suggestion for the name of that met...
Eregon (Benoit Daloze)
10:01 AM Feature #17753: Add Module#namespace
Oh, let me say something explicitly: You guys are Ruby committers, you are the ones that have the vision for what mak... fxn (Xavier Noria)
09:46 AM Feature #17753: Add Module#namespace
To me, the ability of a namespace being namespace of itself
```ruby
m = Module.new
m::M = m
```
is one clear indica...
fxn (Xavier Noria)
09:37 AM Feature #17753: Add Module#namespace
BTW, we were discussing yesterday with Aaron that the flag I am raising is about the name `namespace`. What we are de... fxn (Xavier Noria)
09:29 AM Feature #17753: Add Module#namespace
> It's also a way to inform the user where that constant lives. The contents of the string have meaning.
The numerou...
fxn (Xavier Noria)
03:07 PM Misc #17734: DevelopersMeeting20210416Japan
* [Feature #17016] Add `Enumerable#accumulate` (parkerfinch)
* Is the name `#accumulate` acceptable?
* Is this ...
parker (Parker Finch)
02:51 PM Feature #17016: Enumerable#accumulate
I like `#accumulate`, and thank you @nobu for an implementation [here](https://github.com/ruby/ruby/pull/3361)!
Is...
parker (Parker Finch)
02:30 PM Feature #5446 (Closed): at_fork callback API
byroot (Jean Boussier) wrote in #note-52:
> @mame I created https://bugs.ruby-lang.org/issues/17795, let me know if ...
mame (Yusuke Endoh)
01:37 PM Revision 4eefb057 (git): Add RSymbol struct back into RVALUE
Commit 0ca714fa1aa3fbe4fb60ae1e5b730e544dabc27b removed RSymbol from
RVALUE. This commit adds RSymbol back into RVALUE.
Peter Zhu
01:37 PM Feature #17798 (Closed): exception in finalizer
https://docs.ruby-lang.org/ja/latest/method/ObjectSpace/m/define_finalizer.html に
> proc の呼び出しで発生した大域脱出(exitや例外)は無...
znz (Kazuhiro NISHIYAMA)
12:50 PM Feature #17752: Enable -Wundef for C extensions in repository
@xtkoba Your 4 patches look good to me, could you commit them? Eregon (Benoit Daloze)
05:50 AM Revision 393923b5 (git): Inline LONG_LONG conversions
Not only NUM2LL, also LL2NUM, ULL2NUM and NUM2ULL. nobu (Nobuyoshi Nakada)
05:30 AM Revision f8e1bf28 (git): workaround MSVC error
Previous code failed to compile on MSVC. Log:
https://github.com/ruby/ruby/pull/4371/checks?check_run_id=2304484466
...
shyouhei (Shyouhei Urabe)
05:30 AM Revision 6413dc27 (git): dependency updates
shyouhei (Shyouhei Urabe)
05:30 AM Revision f411fcd1 (git): get rid of #pragma GCC diagnostic ignored "-Wundef"
Use of TOKEN_PASTE was a bad idea at the first place. Just use ##
everywhere. Nobody practically lacks token pasting.
shyouhei (Shyouhei Urabe)
04:12 AM Revision 6878d517 (git): * 2021-04-13 [ci skip]
git[bot]
03:49 AM Feature #17797: MIPS support for addr2line.c
Could you please commit it yourself? mame (Yusuke Endoh)
02:59 AM Feature #17797 (Open): MIPS support for addr2line.c
In MIPS ELF, DWARF sections are of type `MIPS_DWARF`, not `PROGBITS`.
The attached patch modifies `addr2line.c` so...
xtkoba (Tee KOBAYASHI)
03:05 AM Revision 12f7ba5e (git): Make String#crypt ractor-safe
nobu (Nobuyoshi Nakada)

04/12/2021

05:29 PM Feature #17753: Add Module#namespace
I think those edge cases are pretty rare.
Module#namespace would refer to the lexical parent when the module is crea...
Eregon (Benoit Daloze)
03:28 PM Feature #17753: Add Module#namespace
> Yes, c.name is "X::C", but as I said above, that is just a string.
It's also a way to inform the user where that...
tenderlovemaking (Aaron Patterson)
05:07 PM Bug #17796 (Third Party's Issue): ruby does not compile with openssl-alpha14
Yes. Work for this is being tracked at: https://github.com/ruby/openssl/issues/369 rhenium (Kazuki Yamaguchi)
04:46 PM Bug #17796: ruby does not compile with openssl-alpha14
This is probably a duplicate of #17628. xtkoba (Tee KOBAYASHI)
04:42 PM Bug #17796 (Third Party's Issue): ruby does not compile with openssl-alpha14
ruby does not compile with openssl-alpha14
make[2]: Entering directory '/usr/src/photon/BUILD/ruby-2.7.1/ext/-test...
satya-rajesh (Satya vasamsetty)
02:59 PM Feature #17795: Around `Process.fork` callbacks API
byroot (Jean Boussier) wrote in #note-2:
> > Afaik the proper way to do this is to close the connection after the fo...
Dan0042 (Daniel DeLorme)
02:12 PM Feature #17795: Around `Process.fork` callbacks API
> Afaik the proper way to do this is to close the connection after the fork.
No before. Otherwise the connection i...
byroot (Jean Boussier)
01:24 PM Feature #17795: Around `Process.fork` callbacks API
> Most database clients, ORMs or other libraries keeping a connection pool might need to close connections before the... Dan0042 (Daniel DeLorme)
08:09 AM Feature #17795 (Closed): Around `Process.fork` callbacks API
Replaces: https://bugs.ruby-lang.org/issues/5446
### Context
Ruby code in production is very often running in a...
byroot (Jean Boussier)
01:47 PM Revision df7efdcb (git): Get rid of LONG_LONG redefinition
nobu (Nobuyoshi Nakada)
08:09 AM Feature #5446: at_fork callback API
@mame I created https://bugs.ruby-lang.org/issues/17795, let me know if it makes sense to you, in which case I'll upd... byroot (Jean Boussier)
07:52 AM Feature #5446: at_fork callback API
byroot (Jean Boussier) wrote in #note-50:
> @mame I'll do it.
Thanks!
mame (Yusuke Endoh)
06:52 AM Feature #5446: at_fork callback API
@mame I'll do it. byroot (Jean Boussier)
05:30 AM Feature #5446: at_fork callback API
Can anyone summarize the latest proposal? I cannot understand what is needed precisely. I'm afraid if some people see... mame (Yusuke Endoh)
06:58 AM Bug #17793 (Closed): `shorten-64-to-32` error for 32-bit Android due to `struct stat` definition
Applied in changeset commit:git|a5688b5ce6e87a5b881a4d52d4e59b6fe807e807.
----------
Support non-standard `struct st...
nobu (Nobuyoshi Nakada)
06:56 AM Bug #17793: `shorten-64-to-32` error for 32-bit Android due to `struct stat` definition
With the patch in #note-6 applied, `file.c` is compiled without any error or warning (including `-Wundef`) for armv7a... xtkoba (Tee KOBAYASHI)
06:36 AM Bug #17793: `shorten-64-to-32` error for 32-bit Android due to `struct stat` definition
Patch updated. nobu (Nobuyoshi Nakada)
06:00 AM Bug #17793: `shorten-64-to-32` error for 32-bit Android due to `struct stat` definition
It makes no difference because neither `SIZEOF_DEVT` nor `SIZEOF_DEV_T` is defined on Android (both for 32- and 64-bi... xtkoba (Tee KOBAYASHI)
05:48 AM Bug #17793: `shorten-64-to-32` error for 32-bit Android due to `struct stat` definition
All `SIZEOF_DEVT` were typo. nobu (Nobuyoshi Nakada)
05:30 AM Bug #17793: `shorten-64-to-32` error for 32-bit Android due to `struct stat` definition
Sorry, the second patch had a typo, `SIZEOF_DEVT` should be `SIZEOF_DEV_T`.
Is it fine?
nobu (Nobuyoshi Nakada)
04:55 AM Bug #17793: `shorten-64-to-32` error for 32-bit Android due to `struct stat` definition
user:nobu Thanks, it builds for armv7a-android without error or format warning. xtkoba (Tee KOBAYASHI)
03:53 AM Bug #17793: `shorten-64-to-32` error for 32-bit Android due to `struct stat` definition
Do these work?
```diff
diff --git i/configure.ac w/configure.ac
index 6fe43bfc8dd..f08597a007c 100644
--- i/configur...
nobu (Nobuyoshi Nakada)
06:58 AM Revision 59171378 (git): * 2021-04-12 [ci skip]
git[bot]
06:32 AM Revision a5688b5c (git): Support non-standard `struct stat` [Bug #17793]
On 32-bit Android:
* `st_dev`/`st_rdev` are not `dev_t`
* `st_mode` is not `mode_t`
nobu (Nobuyoshi Nakada)
04:23 AM Bug #17794 (Closed): addr2line.c can free(3) an invalid pointer without zlib
When built without zlib (`./configure ac_cv_lib_z_uncompress=no`), `ruby` aborts immediately after C level backtrace ... xtkoba (Tee KOBAYASHI)
01:29 AM Feature #17790: Have a way to clear a String without resetting its capacity
What about `buffer.clear(capacity: 1024)`
Or maybe even `buffer.clear(capacity: 1024..8192)`
I think that's more st...
Dan0042 (Daniel DeLorme)
 

Also available in: Atom