Project

General

Profile

Activity

From 12/10/2021 to 12/16/2021

12/16/2021

10:26 PM Feature #18183: make SecureRandom.choose public
I agree with the proposal, but `choice` is not a good name for a public method.
Matz.
matz (Yukihiro Matsumoto)
05:58 PM Revision c4c78343 (git): Update stdlib version at 693a561cfa19dc35ff0d199a1934c9 [ci skip]
git[bot]
05:41 PM Revision 693a561c (git): [DOC] Exclude non-updated stdlibs since the previous release
nobu (Nobuyoshi Nakada)
04:56 PM Revision b746b713 (git): * 2021-12-17 [ci skip]
git[bot]
04:23 PM Bug #18373: Bundled gem (RBS, debug) extensions are not properly built
I am not sure what to really blame. The place where it goes quite wrong is actually mkmf, somewhere around [here](https://github.com/ruby/ruby/blob/fff058a8d6c2e5d7c3529484a1c9a636dbf66dc2/lib/mkmf.rb#L242-L249):
~~~ruby
if not $extmk...
vo.x (Vit Ondruch)
03:44 PM Revision 06bdb41c (git): dln.c: refine preprocessor conditions by USE_DLN_DLOPEN and _WIN32
nobu (Nobuyoshi Nakada)
02:44 PM Bug #18133: LTO: TestGCCompact#test_ast_compacts segfaults on i686
Thank you for checking the patch! Historically, Ruby has been using 16KB pages, so there's assumptions in the GC about this. This wasn't a problem on 64KB page size systems when we were using `posix_memalign`, but we can no longer use th... peterzhu2118 (Peter Zhu)
12:57 PM Bug #18133: LTO: TestGCCompact#test_ast_compacts segfaults on i686
Thx, the latest version passes the test suite everywhere and your explanation why it does not work makes sense.
Nevertheless, this makes me wonder in case there are 64 KB pages used for mmap, why Ruby wont use 64 KB pages as well? I a...
vo.x (Vit Ondruch)
11:10 AM Revision fff058a8 (git): Add description of ruby header files to extension.rdoc
larskanis (Lars Kanis)
11:03 AM Revision 9b187fec (git): Add `rb_parser_set_pos` function
Co-authored-by: Nobuyoshi Nakada <[email protected]>
Co-authored-by: Marivaldo Cavalheiro <[email protected]>
S_H_ (Shun Hiraoka)
11:02 AM Revision 41d4902c (git): Improve wording on NEWS.md
matheusrich (Matheus Richard)
09:18 AM Bug #18412 (Closed): Segfault in test_ractor.rb
During build of Ruby 3.0.3 for Fedora, I sometimes bump into this issue:
~~~
... snip ...
test_attr.rb ..
test_autoload.rb ........
test_block.rb ......................................................
vo.x (Vit Ondruch)
09:07 AM Feature #18410: Proposal to make inspect include underscores on numerics
sawa (Tsuyoshi Sawada) wrote in #note-4:
> In agreement with mame's comment, even if we can come to an agreement on the spec, I think it should be a property of pretty print rather than normal inspection. If there is need to make the nu...
brightbits (Michael Baldry)
09:02 AM Feature #18410: Proposal to make inspect include underscores on numerics
mame (Yusuke Endoh) wrote in #note-2:
> Thousands separators may vary depending on locales. See the discussion of #16011.
> ...
As mentioned by Martin, I was proposing always using _, as you can in Ruby code, not any kind of locale spe...
brightbits (Michael Baldry)
04:06 AM Feature #18410: Proposal to make inspect include underscores on numerics
In agreement with mame's comment, even if we can come to an agreement on the spec, I think it should be a property of pretty print rather than normal inspection. If there is need to make the numbers particularly readable to human, in suc... sawa (Tsuyoshi Sawada)
03:54 AM Feature #18410: Proposal to make inspect include underscores on numerics
mame (Yusuke Endoh) wrote in #note-2:
> Thousands separators may vary depending on locales. See the discussion of #16011.
Yes indeed. The advantage of using 964_218_442 is that a) I don't think there's actually a locale that uses thi...
duerst (Martin Dürst)
03:20 AM Feature #18410: Proposal to make inspect include underscores on numerics
Thousands separators may vary depending on locales. See the discussion of #16011.
Even if we can come to an agreement on the spec, changing `Integer#inspect` may have a big impact. We need to estimate the impact of the incompatibility...
mame (Yusuke Endoh)
09:00 AM Revision cf54de63 (git): [DOC] random number by range
nobu (Nobuyoshi Nakada)
08:50 AM Revision 5bf0060e (git): [DOC] Skip tests if only documents change [ci skip]
Run only checks for source code. Currently, our CIs do almost
nothing about the documents.
nobu (Nobuyoshi Nakada)
08:44 AM Revision 32ee6f80 (git): Restore the global random seed
nobu (Nobuyoshi Nakada)
08:44 AM Revision 6c87f8fc (git): Fix Kernel#srand and Kernel#rand descriptions [ci skip]
Actually used methods are all instance method, not the singleton
method.
nobu (Nobuyoshi Nakada)
08:44 AM Revision 18fef09a (git): Refine wording about the default random seed [ci skip]
nobu (Nobuyoshi Nakada)
08:00 AM Feature #18411: Introduce `Fiber.blocking` for disabling scheduler.
@matz this isn't strictly necessary but makes pure Ruby implementation of IO read/write hooks more efficient. I'm not sure if there is valid case for general user code. Can we consider it for Ruby 3.1? ioquatix (Samuel Williams)
07:58 AM Feature #18411 (Closed): Introduce `Fiber.blocking` for disabling scheduler.
When implementing pure-ruby IO scheduler, we may need to invoke some Ruby IO operations without entering the scheduler.
```ruby
def io_write(fiber, io, buffer, length)
offset = 0

while length > 0
# From offset until th...
ioquatix (Samuel Williams)
07:56 AM Bug #18330 (Closed): Make failure on 32-bit Linux (Android) with Clang due to implicit 64-to-32-bit integer truncation
Thanks! ioquatix (Samuel Williams)
07:17 AM Revision f1a02ebf (git): Install gemspec even though no .rb and no .so
When building with --with-static-linked-ext, some exts without rb file
doesn't produce neither .so or .rb under .ext/common. Therefore, change
rbinstall.rb to install gemspec even if there is no .so or .rb for that
case.
katei (Yuta Saito)
07:16 AM Revision 332d1e52 (git): btest: assign $stderr = STDOUT instead of IO#reopen to be more portable
`IO#reopen` internally uses dup syscall but some platforms don't support
the syscall. re-assigning `$stderr` is enough to capture the interpreter's
errors and warnings.
katei (Yuta Saito)
06:12 AM Revision 69a7eaae (git): Use `to_s` and `puts` in tests
`to_s` has the explict specification while `inspect` is often
vague.
nobu (Nobuyoshi Nakada)
05:46 AM Feature #18402: Argument Labels
Lomig (Lomig Enfroy) wrote in #note-5:
> The main idea / need is to use different names for variables/arguments when calling the method and inside the method itself.
Does this mean that both names can be used inside the method? And...
duerst (Martin Dürst)
05:19 AM Revision 05c9dfe2 (git): Suppress empty-body warning
nobu (Nobuyoshi Nakada)
04:02 AM Revision 02ba0bda (git): Remove RubyVM::JIT (#5275)
[Feature #18349] reverts [Feature #17490] k0kubun (Takashi Kokubun)

12/15/2021

09:30 PM Feature #18410 (Open): Proposal to make inspect include underscores on numerics
The documentation for inspect reads "Returns a string containing a human-readable representation of obj." but for large numerical values, while 964218442 is human-readable, 964_218_442 is a lot more readable. The language allows the use ... brightbits (Michael Baldry)
09:13 PM Revision 40cc8e92 (git): * 2021-12-16 [ci skip]
git[bot]
09:13 PM Revision 7e27de2f (git): YJIT: Remove unused branch_t::src_ctx field
No one reads it at the moment and it's heap allocated. alanwu (Alan Wu)
08:49 PM Feature #18296: Custom exception formatting should override `Exception#full_message`.
@Dan0042 I basically agree with your assessment and support (a) and in addition I'd prefer if we don't introduce inconsistent formatting for quoted messages, i.e. `#<NameError:"...">` should definitely have a space between the `:` and `"... ioquatix (Samuel Williams)
06:15 PM Feature #18296: Custom exception formatting should override `Exception#full_message`.
I'm interested in this feature because I'm uncomfortable with the current situation of sticking everything into `Exception#message` and losing access to the original message.
In #18194 I think everyone has agreed that
> an error message...
Dan0042 (Daniel DeLorme)
06:06 PM Bug #18409: Crash (free(): invalid pointer) if LD_PRELOAD doesn't explicitly include libjemalloc.so.2
I noticed that commit:737e4432b978eb4b9f5b10fb6cc6d9c883a5d17a is not backported to Ruby 3.0.x series. So before `./configure` you may need to do something like
```bash
export LDFLAGS="-Wl,--no-as-needed"
```
Make sure that the `...
xtkoba (Tee KOBAYASHI)
05:04 PM Bug #18409: Crash (free(): invalid pointer) if LD_PRELOAD doesn't explicitly include libjemalloc.so.2
How can I try to trace it? I tried attaching GDB to the process with little success. itay-grudev (Itay Grudev)
02:59 PM Bug #18409: Crash (free(): invalid pointer) if LD_PRELOAD doesn't explicitly include libjemalloc.so.2
Seems like someone (who?) is calling libc `free()` directly, maybe? xtkoba (Tee KOBAYASHI)
11:43 AM Bug #18409 (Closed): Crash (free(): invalid pointer) if LD_PRELOAD doesn't explicitly include libjemalloc.so.2
I recently installed Ruby 3.0.2 using rbenv with:
```
RUBY_CONFIGURE_OPTS='--with-jemalloc' rbenv install 3.0.2
```
After running our app it always crashed with:
```
free(): invalid pointer
[1] 51364 IOT instruction (core...
itay-grudev (Itay Grudev)
04:28 PM Feature #16663: Add block or filtered forms of Kernel#caller to allow early bail-out
headius (Charles Nutter) wrote in #note-15:
> ```ruby
> ...
That looks somewhat complex to implement, but it's such an elegant API, and doesn't even require a new method.
+1
Dan0042 (Daniel DeLorme)
02:56 PM Feature #16663: Add block or filtered forms of Kernel#caller to allow early bail-out
@jeremeyevans0:
> It sounds like you want iteration, and you are recommending with Thread.each_backtrace yielding Thread::Backtrace::Location objects. Is that correct?
Yes to iteration. Capturing a single frame is only one use case...
headius (Charles Nutter)
04:05 PM Misc #18404: 3.1 documentation problems tracking ticket
On another semi-unrelated note, isn't weird that this method returns `nil` sometimes (e.g. `Struct.new(:a).keyword_init? # => nil`)?
Is there any precedence for a question mark method returning `nil`? I know `nil` is falsey, but this mig...
matheusrich (Matheus Richard)
03:54 PM Misc #18404: 3.1 documentation problems tracking ticket
OK, I'll try to fight it, there are quite a few weird tricks that might help zverok (Victor Shepelev)
03:43 PM Misc #18404: 3.1 documentation problems tracking ticket
Gotcha! Thanks. I couldn't make it show up on the docs, though.
The docs are definitely there (struct.c:288)
```c
/*
* call-seq:
* StructClass.keyword_init? -> true or false
*
* Returns true if the class was initialized with +keyw...
matheusrich (Matheus Richard)
02:37 PM Bug #18133: LTO: TestGCCompact#test_ast_compacts segfaults on i686
I am able to repro this. Since ppc64 uses 64KB pages for mmap, we can't use mmap to allocate memory for Ruby pages (since they are 16KB). Because we can't use mmap, we can't use mprotect used by the read barriers of compaction, so we can... peterzhu2118 (Peter Zhu)
02:08 PM Bug #18133: LTO: TestGCCompact#test_ast_compacts segfaults on i686
vo.x (Vit Ondruch) wrote in #note-18:
> Checking on CentOS Steam 9, it is passing on ppc:
> ...
Hups, scratch that, it fails also on c9s:
~~~
1) Error:
TestGCCompact#test_ast_compacts:
NotImplementedError: Compaction isn't avail...
vo.x (Vit Ondruch)
02:02 PM Bug #18133: LTO: TestGCCompact#test_ast_compacts segfaults on i686
Checking on CentOS Steam 9, it is passing on ppc:
https://kojihub.stream.rdu2.redhat.com/koji/taskinfo?taskID=848077
The configure checks:
~~~
checking for mmap... yes
checking for sys/user.h... yes
checking whether PAGE_SIZE...
vo.x (Vit Ondruch)
11:20 AM Bug #18133: LTO: TestGCCompact#test_ast_compacts segfaults on i686
peterzhu2118 (Peter Zhu) wrote in #note-16:
> I debugged this today. Can you try with commits [0130e17a410d60a10e7041ce98748b8de6946971](https://github.com/ruby/ruby/commit/0130e17a410d60a10e7041ce98748b8de6946971) and [32b7dcfb56a417c1...
vo.x (Vit Ondruch)
01:30 PM Bug #17826: Ractor#take hangs if used in multiple Threads
Thank you for the review, and I'm glad to provide a confirmed bug report.
Volodya Sveredyuk and I invite you to give me a talk in our great and cozy local Ruby community in Lviv, Ukraine - Pivorak. Aaron Patterson and José Valim alrea...
kukunin (Sergiy Kukunin)
12:52 PM Revision fbd21a81 (git): Update stdlib version at 333865e56f594f365f2b3b4ef0f86f [ci skip]
git[bot]
12:47 PM Revision 333865e5 (git): Workaround for reline.gemspec
This file searches "lib/reline/version.rb" in the same directory,
"lib/reline". As no such path, the file in the default load path
is loaded unexpectedly.
nobu (Nobuyoshi Nakada)
12:32 PM Revision 16941908 (git): Skip test_operating_system_customizing_default_dir for failing with rubyci
hsbt (Hiroshi SHIBATA)
11:09 AM Bug #18381: Default vs Bundled gems
:+1:
Documentation would solve probably my question about:
https://bugs.ruby-lang.org/issues/18400
chooosen (Piotr Wasiak)
11:04 AM Bug #18400 (Closed): Cannot require 'prime' in irb @ 3.1.0.preview1
hsbt (Hiroshi SHIBATA)
11:02 AM Bug #18400: Cannot require 'prime' in irb @ 3.1.0.preview1
hsbt (Hiroshi SHIBATA) wrote in #note-3:
> You should add `prime` into your `Gemfile` for using prime via bundler environment.
Thanks for the hint, it resolves issue fully.
Can be closed.
chooosen (Piotr Wasiak)
10:47 AM Revision 1fc80754 (git): Update stdlib version at 9f87c0cc6dff70e8a1c4d204d1d459 [ci skip]
git[bot]
10:46 AM Revision 9f87c0cc (git): [rubygems/rubygems] Pass `:bimode` explicitly to `File.open`
The `File::BINARY` flag is apparently ignored due to a ruby bug, and
thus writing can cause encoding issues.
https://github.com/rubygems/rubygems/commit/db4efbebf2
deivid (David Rodríguez)
10:46 AM Revision c2dbdf30 (git): [rubygems/rubygems] Extract a helper to temporarily modify internal encoding
https://github.com/rubygems/rubygems/commit/93051fd2aa deivid (David Rodríguez)
10:46 AM Revision 890a6b43 (git): [rubygems/rubygems] Unify duplicated helper
https://github.com/rubygems/rubygems/commit/c6ef75424d deivid (David Rodríguez)
09:53 AM Revision de01011d (git): Update stdlib version [ci skip]
znz (Kazuhiro NISHIYAMA)
09:05 AM Revision 50443716 (git): Skip s390x because Travis CI was failing with unknown reason
hsbt (Hiroshi SHIBATA)
09:05 AM Revision 7e084ed7 (git): Merge RubyGems and Bundler master
Merge from https://github.com/rubygems/rubygems/commit/793ad95ecb40e84a1dcb4cb60f2686843ed90de5 hsbt (Hiroshi SHIBATA)
09:00 AM Revision 583e06e2 (git): Update stdlib version at ded33ed5b8d923b0bb707b4e617ba0 [ci skip]
git[bot]
08:55 AM Revision ded33ed5 (git): Update stdlib in NEWS
nobu (Nobuyoshi Nakada)
07:59 AM Revision 7d50142a (git): Remove unused footnote [ci skip]
znz (Kazuhiro NISHIYAMA)
07:01 AM Revision b2395539 (git): Update bundled_gems at 2021-12-15
git[bot]
06:31 AM Revision 0f99f3fe (git): Adjust indents [ci skip]
nobu (Nobuyoshi Nakada)
06:04 AM Revision 13c37835 (git): ucrt can raise `Errno::EINVAL`
`ENV[key] = long_str` can raise `Errno::EINVAL` also on ucrt env. ko1 (Koichi Sasada)
06:04 AM Revision 04aab3c2 (git): fix test
ko1 (Koichi Sasada)
06:04 AM Revision 0eafba36 (git): use `RB_VM_LOCK_ENTER()`
We found that we need to make Ruby objects while locking the environ
to ENV operation atomically, so we decided to use `RB_VM_LOCK_ENTER()`
instead of `env_lock`.
ko1 (Koichi Sasada)
06:04 AM Revision a4a3528e (git): Removed no longer used variables
nobu (Nobuyoshi Nakada)
06:04 AM Revision a6ebc105 (git): Fixed env_pairs array types
nobu (Nobuyoshi Nakada)
06:04 AM Revision db3ab440 (git): Use prototype definition instead of old K&R style
nobu (Nobuyoshi Nakada)
06:04 AM Revision b43338cc (git): Update dependencies
nobu (Nobuyoshi Nakada)
06:04 AM Revision 88e36d8f (git): Adjust styles [ci skip]
* --braces-after-func-def-line
* --space-after-for
nobu (Nobuyoshi Nakada)
06:04 AM Revision 9bb83a82 (git): Removed traling spaces [ci skip]
nobu (Nobuyoshi Nakada)
06:04 AM Revision f471cf29 (git): Symbols closed to env should be static
nobu (Nobuyoshi Nakada)
06:04 AM Revision 3aab8707 (git): Make ENV shareable
rm155 (Rohit Menon)
06:04 AM Revision e071ac8b (git): Add Ractor tests for ENV
rm155 (Rohit Menon)
06:04 AM Revision 2a3e4b69 (git): Move exception-raising functions out of mutex; Refactor env-copying
rm155 (Rohit Menon)
06:04 AM Revision d3d156c2 (git): Add locks for ENV
rm155 (Rohit Menon)
02:25 AM Revision 0fcc58a1 (git): [DOC] Improve Thread::Queue.new docs [ci skip]
zverok (Victor Shepelev)
12:47 AM Revision ac5d6fae (git): YJIT: Fix unexpected truncation when outputing VALUE
Previously, YJIT incorrectly discarded the upper 32 bits of the object
pointer when writing out VALUEs to setup default keyword arguments.
In addition to incorrectly truncating, the output pointers were not
properly tracked for handling...
alanwu (Alan Wu)

12/14/2021

11:24 PM Revision 6eb500e2 (git): [ruby/cgi] Extract CGI::Session#new_store_file
https://github.com/ruby/cgi/commit/b3e2ff9164 nobu (Nobuyoshi Nakada)
11:22 PM Revision e307627b (git): Don't invalidate BOPs when aliases redefined
Previously when redefining an alias of a BOP, we would unnecessarily
invalidate the bop. For example:
class String
alias len length
private :len
end
This commit avoids this by checking that the called_id on the meth...
jhawthorn (John Hawthorn)
11:22 PM Revision b7ae0899 (git): YJIT: Avoid unnecessary BOP invalidation
Previously we would invalidate BOPs in YJIT when the method registered
as a BOP was redefined on a subclass.
jhawthorn (John Hawthorn)
11:01 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
Thank you for all the comments @eregon. I think no one else has strong opinions on extending `GC.stat`,
and you've presented some very good reasons to not extend `GC.stat`, so I think we'll add an additional
API for accessing statistic...
peterzhu2118 (Peter Zhu)
03:41 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
I forgot to mention, I think `GC.stat` is expected to be reasonably fast as e.g. it might be done on every request for monitoring.
OTOH capturing per-heap information is typically significantly slower (at least it is on JVM), and so p...
Eregon (Benoit Daloze)
02:13 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
If callers want to prevent the probe effect from calls to `GC.stat`, they have to not only create a hash beforehand, but also do a call to `GC.stat`.
Since the first call can trigger GC, I don't think it's unreasonable to also allocate ...
peterzhu2118 (Peter Zhu)
11:10 AM Feature #18364: Add GC.stat_pool for Variable Width Allocation
meeting log is https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20211209Japan.md
@ko1 said:
> GC.stat returns a flat hash (Symbol to Numeric map) now. This proposal changes it so that the method returns a nested h...
Eregon (Benoit Daloze)
10:15 PM Revision b563f122 (git): [DOC] Fix docs rendering for Process._fork [ci skip]
Co-authored-by: Nobuyoshi Nakada <[email protected]> matheusrich (Matheus Richard)
10:01 PM Bug #18120 (Closed): Deadlock and segfault when using autoload in Ractor
Applied in changeset commit:git|397a509b6d0d1470df8c290d7c4adef78f1532ee.
----------
prohibit load by `autoload` on non-main Ractor
fix [Bug #18120]
ko1 (Koichi Sasada)
10:01 PM Revision aa7c4c37 (git): Fix arg_forward without parentheses [Bug #18267]
nobu (Nobuyoshi Nakada)
10:01 PM Revision 3a6b79d0 (git): Revert "Rename `in_kwarg` as `in_argdef` as unrelated to keywords"
This reverts commit b7f7117bdc78a4a342a57dad1a340b158492ccf3, to
separate `in_argdef` from `in_kwarg`.
nobu (Nobuyoshi Nakada)
08:52 PM Feature #12084: `Class#instance`
jemmai (Jemma Issroff) wrote in #note-8:
> Within MemoWise, we receive the `memo_wise(:example_method)` call on the singleton class of `String`, and must resolve it back to define the memoization on the `String` class itself, not its si...
Eregon (Benoit Daloze)
08:27 PM Feature #12084: `Class#instance`
matz (Yukihiro Matsumoto) wrote in #note-6:
> But there's still no real-world use-case.
We have defined the method described [here](https://github.com/panorama-ed/memo_wise/blob/b20b2cad20f9186c915f2b4a315ef3cfcc0a323a/lib/memo_wise/...
jemmai (Jemma Issroff)
08:40 PM Bug #18133: LTO: TestGCCompact#test_ast_compacts segfaults on i686
I debugged this today. Can you try with commits [0130e17a410d60a10e7041ce98748b8de6946971](https://github.com/ruby/ruby/commit/0130e17a410d60a10e7041ce98748b8de6946971) and [32b7dcfb56a417c1d1c354102351fc1825d653bf](https://github.com/ru... peterzhu2118 (Peter Zhu)
07:37 PM Misc #18404: 3.1 documentation problems tracking ticket
@matheusrich I'll look into the PRs in a few hours, thanks! About `Struct`: we need documentation for this method:
```ruby
MyStruct = Struct.new(:a, :b, keyword_init: true)
# => MyStruct(keyword_init: true)
MyStruct.keyword_init? ...
zverok (Victor Shepelev)
05:58 PM Misc #18404: 3.1 documentation problems tracking ticket
@zverok there's a reference to `keyword_init` on Struct [here](https://docs.ruby-lang.org/en/master/Struct.html#:~:text=members%20%23%20%3D%3E%20%5B%3Afoo%2C%20%3Abar%5D-,Keyword%20Argument,-By%20default%2C%20the) (if the link doesn't wo... matheusrich (Matheus Richard)
05:25 PM Misc #18404: 3.1 documentation problems tracking ticket
[Fix docs rendering for Process._fork #5270 (merged)](https://github.com/ruby/ruby/pull/5270) matheusrich (Matheus Richard)
04:53 PM Misc #18404: 3.1 documentation problems tracking ticket
First PR is out: [PR #5268 (merged)](https://github.com/ruby/ruby/pull/5268) Improves `Integer.try_convert` docs matheusrich (Matheus Richard)
04:38 PM Misc #18404: 3.1 documentation problems tracking ticket
@matheusrich That would be awesome! Thanks! zverok (Victor Shepelev)
04:17 PM Misc #18404: 3.1 documentation problems tracking ticket
I can also tackle the small glitches/typos you last mentioned. matheusrich (Matheus Richard)
04:15 PM Misc #18404: 3.1 documentation problems tracking ticket
I wanna take the easiest one (documenting `Struct#keyword_init`) to get my feet wet. matheusrich (Matheus Richard)
04:08 PM Misc #18404: 3.1 documentation problems tracking ticket
@matheusrich if you are willing to participate, let's coordinate efforts here for better visibility :)
Are you willing to write some docs yourself? You'll need to fork [ruby repo](https://github.com/ruby/ruby), make a local branch, fi...
zverok (Victor Shepelev)
03:34 PM Misc #18404: 3.1 documentation problems tracking ticket
@zverok LMK if I can help you. I'm available @matheusrich on Twitter. matheusrich (Matheus Richard)
06:42 PM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
Dan0042 (Daniel DeLorme) wrote in #note-26:
> austin (Austin Ziegler) wrote in #note-22:
> ...
The ship has sailed on rightward assignment (I think it’s a mistake and unforgivably ugly, I don’t understand the use case at all, and I sus...
austin (Austin Ziegler)
05:28 PM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
austin (Austin Ziegler) wrote in #note-22:
> As far as I understand rightward assignment (I’m not currently using Ruby 3), that’s not something that is legal.
Of course it's not currently legal to use rightward assignment in the method ...
Dan0042 (Daniel DeLorme)
04:46 AM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
nobu (Nobuyoshi Nakada) wrote in #note-23:
> Then what about `def name(external_name: default_value alias internal_name)`?
> ...
Noticed that the proposal is not **aliasing**, but **assignment**.
That means it should be the following ...
nobu (Nobuyoshi Nakada)
04:26 AM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
nobu (Nobuyoshi Nakada) wrote in #note-23:
> austin (Austin Ziegler) wrote in #note-22:
> ...
`alias` would not be a bad choice. I think that the use of `=>` starts getting opaque, and I say this as someone who’s used Ruby for nearly 2...
austin (Austin Ziegler)
04:01 AM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
austin (Austin Ziegler) wrote in #note-22:
> I would rather call it `keyword-ish`, _as_ it would only be used in cases that are not currently legal syntax in any case.
Then what about `def name(external_name: default_value alias inte...
nobu (Nobuyoshi Nakada)
05:59 PM Feature #18351: Support anonymous rest and keyword rest argument forwarding
All good points, I think it's OK to use the current names in the PR and experiment with it.
If we see too many breaking changes it might be worth trying to keep them without a name from the `#parameters` point of view.
Eregon (Benoit Daloze)
03:29 PM Feature #18351: Support anonymous rest and keyword rest argument forwarding
Eregon (Benoit Daloze) wrote in #note-5:
> jeremyevans0 (Jeremy Evans) wrote in #note-4:
> ...
The purpose of Method#parameters is to show what arguments are accepted by the method, not how the arguments are handled.
> Another issue...
jeremyevans0 (Jeremy Evans)
11:26 AM Feature #18351: Support anonymous rest and keyword rest argument forwarding
jeremyevans0 (Jeremy Evans) wrote in #note-4:
> Can anyone show a problem with having Method#parameters for `foo(...)` and `def foo(*, **, &)` return the same result?
I think there may be value to distinguish `...` and `*, **, &`.
T...
Eregon (Benoit Daloze)
05:33 PM Revision 397a509b (git): prohibit load by `autoload` on non-main Ractor
fix [Bug #18120] ko1 (Koichi Sasada)
05:31 PM Revision 2e6e2fd9 (git): fix local TP memory leak
It free `rb_hook_list_t` itself if needed. To recognize the
need, this patch introduced `rb_hook_list_t::is_local` flag.
This patch is succession of https://github.com/ruby/ruby/pull/4652
ko1 (Koichi Sasada)
05:26 PM Feature #3187 (Rejected): Allow dynamic Fiber stack size
ko1 (Koichi Sasada)
05:15 PM Bug #14817 (Closed): TracePoint#parameters for bmethod's return event should return the same value as its Method#parameters
fixed https://github.com/ruby/ruby/pull/4637 ko1 (Koichi Sasada)
05:12 PM Revision b8f7fc36 (git): Add examples for Integer.try_convert [ci skip]
matheusrich (Matheus Richard)
05:05 PM Revision b32b755e (git): Fix typo on Integer.try_convert [ci skip]
matheusrich (Matheus Richard)
04:58 PM Feature #18231 (Closed): `RubyVM.keep_script_lines`
c7550537f11dcf6450a9d3df3af3fa1f4fe05b15 ko1 (Koichi Sasada)
04:52 PM Revision 637c3cfc (git): Turn SET_LEX_STATE macro into an inline function call
nobu (Nobuyoshi Nakada)
04:50 PM Bug #17587 (Rejected): Segmentation fault with ractors and unix signals
as @wanabe san described, it is an expected behavior.
(I'm not sure why I prohibited trap in Ractor...)
ko1 (Koichi Sasada)
04:48 PM Bug #17882: bootstraptest/test_ractor.rb:224 segfaults on Cygwin
ko1 (Koichi Sasada) wrote in #note-3:
> Sorry now I don't have cygwin.
> ...
We currently have 16 open bugs related to cygwin: http://tagged-ruby-bugs.jeremyevans.net/#-cygwin. Considering WSL (Windows Subsystem for Linux) has been ar...
jeremyevans0 (Jeremy Evans)
04:30 PM Bug #17882: bootstraptest/test_ractor.rb:224 segfaults on Cygwin
Sorry now I don't have cygwin.
Should we support it?
ko1 (Koichi Sasada)
04:44 PM Feature #17785: Allow named parameters to be keywords
matheusrich (Matheus Richard) wrote in #note-18:
> Eregon (Benoit Daloze) wrote in #note-17:
> ...
Yes, then it's only complexity in the lexer and everything else would work unchanged.
The Oz language for instance has `'reserved'` whi...
Eregon (Benoit Daloze)
03:47 PM Feature #17785: Allow named parameters to be keywords
Eregon (Benoit Daloze) wrote in #note-17:
> because one cannot know if `__params__` would be used, potentially in an `eval` or aliases or so
I agree, with that kind of complexity it wouldn't make sense. But I wasn't thinking of anyth...
Dan0042 (Daniel DeLorme)
03:31 PM Feature #17785: Allow named parameters to be keywords
Eregon (Benoit Daloze) wrote in #note-17:
> matheusrich (Matheus Richard) wrote in #note-11:
> ...
Yeah, that's really not ideal. Do you think a special syntax (like `\class`, for example) would be less complex for Ruby implementations?
matheusrich (Matheus Richard)
04:41 PM Bug #18024: Ractor crashes when connections are closed in multiple Ractors
I couldn't repro it on WSL.
now only on MacOS?
ko1 (Koichi Sasada)
04:29 PM Bug #17826: Ractor#take hangs if used in multiple Threads
Yes, now it doesn't work correctly. Sorry I'll try to fix this issue on Ruby 3.2. ko1 (Koichi Sasada)
04:08 PM Bug #18396: An unexpected "hash value omission" syntax error when without parentheses call expr follows
matz (Yukihiro Matsumoto) wrote in #note-4:
> Although it's incompatible, I think it's worth improving. I estimate that the compatibility issue is minimal.
> ...
Please, no.
To my eye, `foo key:` looks like it continues on the next line....
Dan0042 (Daniel DeLorme)
03:50 PM Revision a3934cd1 (git): Fix indent [ci skip]
nobu (Nobuyoshi Nakada)
03:43 PM Revision 67b6a222 (git): * 2021-12-15 [ci skip]
git[bot]
03:42 PM Revision 9e00f826 (git): NEWS.md document String#unpack offset and Marshal.load freeze arguments
byroot (Jean Boussier)
02:16 PM Revision 0e7d0739 (git): Remove compaction support detection using sysconf
Except on Windows and MinGW, we can only use compaction on systems that
use mmap (only systems that use mmap can use the read barrier that
compaction requires). We don't need to separately detect whether we can
support compaction or not.
peterzhu2118 (Peter Zhu)
11:42 AM Feature #17881: Add a Module#const_added callback
> So, I think we should not add this until we have a good use case.
Yeah, this is no longer for Zeitwerk, since TracePoint reentrancy was made possible by @ko1.
We still want it though for https://github.com/Shopify/tapioca, cc @uf...
byroot (Jean Boussier)
11:37 AM Feature #17881: Add a Module#const_added callback
I highly doubt `const_added` is a good API for zeitwerk, i.e. if someone defines `const_added` and doesn't call `super` it will break zeitwerk.
TracePoint.new(:class) has no such problems, TracePoint.new(:class) seems already the best A...
Eregon (Benoit Daloze)
11:06 AM Revision 6daec460 (git): ripper: refine test to show expected states
nobu (Nobuyoshi Nakada)
07:07 AM Revision 1a634688 (git): Prepare for removing RubyVM::JIT (#5262)
k0kubun (Takashi Kokubun)
07:06 AM Revision a2839d71 (git): Update stdlib version [ci skip]
znz (Kazuhiro NISHIYAMA)
06:59 AM Revision 14c8dca6 (git): Update bundled_gems at 2021-12-14
git[bot]
03:31 AM Revision 15784219 (git): reduce `rb_clear_attr_ccs()` call
`rb_clear_attr_ccs()` should be called only when c_call or c_return
is activated.
ko1 (Koichi Sasada)
03:19 AM Revision 10eda60e (git): Merge to one regexp
znz (Kazuhiro NISHIYAMA)
02:59 AM Revision 900e0c8c (git): [ruby/securerandom] Use String#unpack1
https://github.com/ruby/securerandom/commit/5460a18c35 nobu (Nobuyoshi Nakada)
02:59 AM Revision 0ebbab23 (git): [ruby/securerandom] Drop support for old ruby versions
https://github.com/ruby/securerandom/commit/46943a991c nobu (Nobuyoshi Nakada)
02:52 AM Revision 40b0d69d (git): [DOC] Fix a type [ci skip]
nobu (Nobuyoshi Nakada)
12:28 AM Revision 87716012 (git): NEWS.md: Mention colorize command of un.rb
https://github.com/ruby/un/pull/1 znz (Kazuhiro NISHIYAMA)
12:08 AM Feature #18349 (Closed): Let --jit enable YJIT on supported platforms
Applied in changeset commit:git|11b8aaa26a22bb67b144484af6890844771b5f46.
----------
Rename --jit to --mjit (#5248)
* Rename --jit to --mjit
[Feature #18349]
* Fix a few more --jit references
* Fix MJIT Actions
* More s/jit/mjit/ a...
k0kubun (Takashi Kokubun)
12:08 AM Revision 11b8aaa2 (git): Rename --jit to --mjit (#5248)
* Rename --jit to --mjit
[Feature #18349]
* Fix a few more --jit references
* Fix MJIT Actions
* More s/jit/mjit/ and re-introduce --disable-jit
* Update NEWS.md
* Fix test_bug_reporter_add
k0kubun (Takashi Kokubun)

12/13/2021

10:29 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
> This seems incompatible and might break existing code which expects GC.stat to return a Hash[Symbol,Integer].
Quoting the dev meeting log:
> ...
Personally, I don't have a strong opinion on which route we should take (whether we ...
peterzhu2118 (Peter Zhu)
09:56 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
peterzhu2118 (Peter Zhu) wrote in #note-10:
> Thank you for the summary @mame! We'll extend `GC.stat` to return a nested data structure.
This seems incompatible and might break existing code which expects `GC.stat` to return a `Hash[...
Eregon (Benoit Daloze)
08:01 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
Thank you for the summary @mame! We'll extend `GC.stat` to return a nested data structure. peterzhu2118 (Peter Zhu)
09:31 PM Feature #17785: Allow named parameters to be keywords
matheusrich (Matheus Richard) wrote in #note-11:
> Since we have `__method__`, maybe adding something like `__params__`?
I dislike this approach because it will introduce lots of complexity for Ruby implementations, and will likely m...
Eregon (Benoit Daloze)
03:25 AM Feature #17785: Allow named parameters to be keywords
matheusrich (Matheus Richard) wrote in #note-11:
> Since we have `__method__`, maybe adding something like `__params__`?
I really like this idea. Although I would prefer having different names for positional vs keywords, so maybe `__arg...
Dan0042 (Daniel DeLorme)
08:57 PM Feature #18408 (Rejected): Allow pattern match to set instance variables
I expected this to work:
```ruby
42 => @v
```
But instead it raises "syntax error, unexpected instance variable"
Is this intentional?
Dan0042 (Daniel DeLorme)
08:29 PM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
Dan0042 (Daniel DeLorme) wrote in #note-21:
> austin (Austin Ziegler) wrote in #note-20:
> ...
I would rather call it `keyword-ish`, _as_ it would only be used in cases that are not currently legal syntax in any case. However, I think ...
austin (Austin Ziegler)
08:21 PM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
austin (Austin Ziegler) wrote in #note-20:
> I would personally prefer `as` over` =>` for this, as it doesn’t _increase_ the number of ways that `=>` gets used in Ruby.
I also like `as`, it's beautifully readable. But it would be a n...
Dan0042 (Daniel DeLorme)
07:43 PM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
Dan0042 (Daniel DeLorme) wrote in #note-19:
> The syntax `def name(external_name: default_value => internal_name)` has been suggested twice independently (#16460, #18402) so I think that would be fairly intuitive to any rubyist. And if ...
austin (Austin Ziegler)
06:41 PM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
The syntax `def name(external_name: default_value => internal_name)` has been suggested twice independently (#16460, #18402) so I think that would be fairly intuitive to any rubyist. And if instance variables were allowed as the internal... Dan0042 (Daniel DeLorme)
04:02 PM Bug #18396: An unexpected "hash value omission" syntax error when without parentheses call expr follows
I think this patch will change the meaning of `p x:` as matz said.
```diff
diff --git a/parse.y b/parse.y
index 0ff3ddbb4e..d92decfc1c 100644
--- a/parse.y
+++ b/parse.y
@@ -9290,7 +9290,7 @@ parser_yylex(struct parser_params *p)...
mame (Yusuke Endoh)
09:11 AM Bug #18396: An unexpected "hash value omission" syntax error when without parentheses call expr follows
The current state of things is indeed quite confusing (Wrote a small blog post on it: https://zverok.github.io/blog/2021-12-08-value-omission-debug.html).
As far as I can understand, the kind of old code that would be affected should ...
zverok (Victor Shepelev)
02:56 AM Bug #18396 (Open): An unexpected "hash value omission" syntax error when without parentheses call expr follows
Although it's incompatible, I think it's worth improving. I estimate that the compatibility issue is minimal.
After 3.1 release, we experiment to measure how big the issue is.
Matz.
matz (Yukihiro Matsumoto)
03:20 PM Revision 94494a56 (git): [ci skip] NEWS.md: Update Variable Width Allocation
peterzhu2118 (Peter Zhu)
03:17 PM Bug #18407: Behavior difference between integer and string flags to File creation
Digging just a little bit:
```c
#ifdef O_BINARY
if (oflags & O_BINARY) {
fmode |= FMODE_BINMODE;
}
#endif
```
and:
```ruby
>> File::BINARY
=> 0
```
In short `File::BINARY` is noop on unixes, it's a windows o...
byroot (Jean Boussier)
03:08 PM Bug #18407: Behavior difference between integer and string flags to File creation
Thank you @byroot. deivid (David Rodríguez)
03:07 PM Bug #18407: Behavior difference between integer and string flags to File creation
Reduced test, without open-uri and without changing the default external encoding:
```ruby
Encoding.default_internal = Encoding::UTF_8
f = File.new("/tmp/test.bin", File::CREAT | File::WRONLY | File::TRUNC | File::BINARY)
f.write "...
byroot (Jean Boussier)
02:42 PM Bug #18407 (Closed): Behavior difference between integer and string flags to File creation
Hi!
I was under the impression that these two commands should either both work of both fail, however they behave differently.
```shell-session
$ ruby -ropen-uri -EUTF-8:UTF-8 -e 'f = File.new("foo", "wb"); f.write URI.open("https:...
deivid (David Rodríguez)
03:03 PM Revision 845edc06 (git): * 2021-12-14 [ci skip]
git[bot]
03:03 PM Revision 4926647b (git): NEWS.md: sort [ci skip]
nobu (Nobuyoshi Nakada)
02:53 PM Revision 774b0440 (git): [ci skip] NEWS.md: Add Variable Width Allocation
peterzhu2118 (Peter Zhu)
02:14 PM Bug #18373: Bundled gem (RBS, debug) extensions are not properly built
this only breaks when you run "make install DESTDIR=/some/path"

but it works nicely without. so this is a bug in how DESTDIR is passed
to the rubygems extensions build.

darix

--
Always remember:
Never accept the world as it...
darix (Marcus Rückert)
12:20 PM Revision a08d8180 (git): NEWS.md: One more surrounding brackets for the ticket
nobu (Nobuyoshi Nakada)
11:44 AM Revision 8411e844 (git): [ruby/reline] Remove unnecessary variables, lower_space
The number of lines below the cursor position was known by
"@rest_height" alone, but the problem was caused by adding
"lower_space". Remove "lower_space" as it is unnecessary.
https://github.com/ruby/reline/commit/a575cef6a3
aycabta (aycabta .)
10:56 AM Revision 446a11f2 (git): [DOC] Add call sequences of Random using a range
nobu (Nobuyoshi Nakada)
10:55 AM Revision dc490ace (git): [DOC] Improve Random::Formatter description and example
nobu (Nobuyoshi Nakada)
10:47 AM Revision 6859d175 (git): [DOC] Exclude Bundler only [ci skip]
nobu (Nobuyoshi Nakada)
10:15 AM Revision 7ececae4 (git): NEWS.md: move of Random::Formatter [Feature #18190]
nobu (Nobuyoshi Nakada)
10:14 AM Revision 93f0beca (git): Appveyor: Skip tests on if only document files changed [ci skip]
nobu (Nobuyoshi Nakada)
09:08 AM Revision 914563ae (git): NEWS.md: `ruby -run -e httpd` displays URLs to access [Feature #17847]
gotoken (Kentaro Goto)
08:37 AM Feature #18402: Argument Labels
Well, using keywords is only a bonus side effect of arguments labels.
The main idea / need is to use different names for variables/arguments when calling the method and inside the method itself.
Thanks to you and this link, I was able ...
Lomig (Lomig Enfroy)
05:28 AM Revision c81d7d7c (git): NEWS.md: RFC 3339 UTC for unknown offset local time [Feature #17544]
nobu (Nobuyoshi Nakada)
05:21 AM Revision 47a12c88 (git): LEGAL: mention error_highlight
mame (Yusuke Endoh)
05:20 AM Revision 4ffb0bd6 (git): NEWS.md: Mention `in:` option of Time.new [Feature #17485]
nobu (Nobuyoshi Nakada)
05:19 AM Revision 2c0de392 (git): NEWS.md: `--disable-gems` is now just for debugging. [Feature #17684]
mame (Yusuke Endoh)
05:16 AM Revision ff029f25 (git): [DOC] Get rid of headings in list items
The current RDoc Markdown parser parses the list item starting
with `#` as a heading line.
nobu (Nobuyoshi Nakada)
05:02 AM Revision 0ee127e5 (git): add a NEWS entry for `TracePoint.allow_reenter`
ko1 (Koichi Sasada)
05:01 AM Revision 1da1d747 (git): NEWS.md: `def foo = puts "Hello"` is now allowed [Feature #17398]
mame (Yusuke Endoh)
04:53 AM Revision d463b407 (git): NEWS.md: Mention suspendatble coverage [Feature #18176]
mame (Yusuke Endoh)
04:49 AM Revision a6fb63d2 (git): NEWS.md: Use more descriptive example for error_highlight
mame (Yusuke Endoh)
04:21 AM Revision 9ad34da4 (git): [DOC] Mention RBOOL in extension.rdoc [Feature #13125]
nobu (Nobuyoshi Nakada)
03:53 AM Feature #18406 (Closed): Remove `NODE_DASGN_CURR`
Applied in changeset commit:git|54f0e63a8c53753af7db8653972ac450415eae13.
----------
Remove `NODE_DASGN_CURR` [Feature #18406]
This `NODE` type was used in pre-YARV implementation, to improve
the performance of assignment to dynamic lo...
nobu (Nobuyoshi Nakada)
01:55 AM Feature #18406 (Closed): Remove `NODE_DASGN_CURR`
This `NODE` type was used in pre-YARV implementation, to improve the performance of assignment to dynamic local variable defined at the innermost scope.
It has no longer any actual difference with `NODE_DASGN`, except for the node dump.
nobu (Nobuyoshi Nakada)
03:53 AM Revision 54f0e63a (git): Remove `NODE_DASGN_CURR` [Feature #18406]
This `NODE` type was used in pre-YARV implementation, to improve
the performance of assignment to dynamic local variable defined at
the innermost scope. It has no longer any actual difference with
`NODE_DASGN`, except for the node dump.
nobu (Nobuyoshi Nakada)
02:11 AM Revision d3c8f7b1 (git): Fix a typo [ci skip]
znz (Kazuhiro NISHIYAMA)
01:50 AM Feature #11346 (Rejected): New #intern_str or similarly-named method of Symbol to return a cached, frozen string (like "string".freeze)
ko1 (Koichi Sasada)
01:39 AM Feature #17848 (Rejected): inline rbs either by rdoc comments or changing syntax
ko1 (Koichi Sasada)
01:29 AM Revision a692a159 (git): ruby.c: Fix typo
mame (Yusuke Endoh)
01:29 AM Revision 8613c0c6 (git): Introduce an option "--dump=insns_without_opt" for debugging purposes
mame (Yusuke Endoh)
01:24 AM Bug #18405 (Closed): Regression in Struct member setter method parameters
Applied in changeset commit:git|6659253cc6c807641e23d469b425ddcf18de7af4.
----------
Struct setter's parameters == `[:req, :_]`
fix [Bug #18405]
Note that the parameter name `_` is not a spec, so we shouldn't
rely on this behavior.
ko1 (Koichi Sasada)
01:24 AM Revision 84cd3964 (git): * 2021-12-13 [ci skip]
git[bot]
01:23 AM Revision 5164c2b3 (git): Pass UnboundMethod to 2nd arg of define_method
ko1 (Koichi Sasada)
01:23 AM Revision fdfb43b2 (git): fix Struct's setter arity
https://github.com/ruby/ruby/pull/5131/files#diff-b2553d23e6b1fe76e20608d06c25f6acca06279100f1a9c24febcd79a82fac3cR2689 ko1 (Koichi Sasada)
01:23 AM Revision 6659253c (git): Struct setter's parameters == `[:req, :_]`
fix [Bug #18405]
Note that the parameter name `_` is not a spec, so we shouldn't
rely on this behavior.
ko1 (Koichi Sasada)
01:23 AM Revision 4d0cb1a5 (git): add `method_def_aritry()`
ko1 (Koichi Sasada)
12:43 AM Feature #17942: Add a `initialize(public @a, private @b)` shortcut syntax for defining public/private accessors for instance vars as part of constructor
> If you want really concise class definitions, use `Struct`. It doesn't get much more concise than:
> ...
This construction is bad because:
1. It **looks awkward**, and not consistent with the rest of the classes declarations in the p...
LevLukomskyi (Lev Lukomskyi)

12/12/2021

05:05 PM Bug #18405: Regression in Struct member setter method parameters
https://github.com/ruby/ruby/pull/5252 ko1 (Koichi Sasada)
07:12 AM Revision 2f79d6d3 (git): Update bundled_gems at 2021-12-12
git[bot]
04:05 AM Revision e4b35b15 (git): [ruby/cgi] Check integer overflow in long range
https://hackerone.com/reports/1328463
https://github.com/ruby/cgi/commit/ccaf6027e0
nobu (Nobuyoshi Nakada)

12/11/2021

11:45 PM Revision fbd73370 (git): * 2021-12-12 [ci skip]
git[bot]
11:45 PM Revision 3518b00d (git): YJIT: Edit module documentation for clarity
Add an empty line before the module doc string so RDoc can find it.
While we are at it, edit for clarity. The file should already be
using frozen string literals since c10d5085a247266c6399dc6fb68706d87cbdab05.
[ci skip]
alanwu (Alan Wu)
08:42 PM Misc #18404: 3.1 documentation problems tracking ticket
@ioquatix oh, indeed. And new methods that can/should be supported by the scheduler aren't yet in the `SchedulerInterface` :( zverok (Victor Shepelev)
08:31 PM Misc #18404: 3.1 documentation problems tracking ticket
`IO::Buffer` is also totally undocumented. ioquatix (Samuel Williams)
04:50 PM Misc #18404 (Closed): 3.1 documentation problems tracking ticket
So far, comparing the NEWS.md to actual documentation at https://docs.ruby-lang.org/en/master/, I identified the following problems:
* [Random::Formatter](https://docs.ruby-lang.org/en/master/Random/Formatter.html): the explanations o...
zverok (Victor Shepelev)
08:14 PM Bug #18405 (Closed): Regression in Struct member setter method parameters
Since the [PR optimizing Struct accessors](https://github.com/ruby/ruby/pull/5131) was merged, the behaviour of `Method#parameters` on Struct member setter methods has changed.
**Before:**
```ruby
S = Struct.new(:foo)
S.instance_me...
ufuk (Ufuk Kayserilioglu)
06:53 PM Feature #16663: Add block or filtered forms of Kernel#caller to allow early bail-out
headius (Charles Nutter) wrote in #note-13:
> I would like to see this feature happen in some way, but most of the use cases I considered will want to process and keep the top X frames, where X is variable at runtime depending on what w...
jeremyevans0 (Jeremy Evans)
09:57 AM Feature #16663: Add block or filtered forms of Kernel#caller to allow early bail-out
Sorry I missed all discussions, this has been a pretty busy autumn.
> find_caller is going to find a single entry from call frames. Is it sufficient for OP's demand?
find_caller is one use case, and probably the most common use case. I...
headius (Charles Nutter)
02:07 PM Feature #14794: Primitive arrays (Ruby 3x3)
thanks for your interest @mame!
btw I found a bug in pypy which leads to a slow performance in this benchmark which is now fixed
> performs an experiment with some real-world applications like Rails
based on experiments on TruffleRuby...
ahorek (Pavel Rosický)
02:05 PM Revision d7ef372c (git): Remove the macOS badge [ci skip]
It is disabled for the throughput of CI for now. nobu (Nobuyoshi Nakada)
10:03 AM Bug #18403 (Closed): Backport ecb2ff60507a41c624f59cb9da6a008ab3ec36e1 to ruby_3_0
ecb2ff60507a41c624f59cb9da6a008ab3ec36e1 should be backported into ruby_3_0.
Since the tiny flaw was introduced at the great header split, ruby_2_7 and earlier are not affected.
nagachika (Tomoyuki Chikanaga)
09:05 AM Feature #18402: Argument Labels
Sounds quite similar to [Feature #17785].
The current working solution is:
```ruby
def change_color(to:, for:, until:)
do_something_with(to)
do_something_else_with(binding.local_variable_get(:for), binding.local_variable_ge...
byroot (Jean Boussier)
04:37 AM Feature #18402: Argument Labels
Oh, I think the rightward assignment idea is brilliant; it would make sense and be kind of consistent syntaxically speaking! Lomig (Lomig Enfroy)
01:33 AM Feature #18402: Argument Labels
tentative +1
if/for/until are useful as keyword arguments but almost impossible to use as local variables.
But the suggested syntax makes it look to me like `new_color` is the keyword argument rather than the local alias.
I'd like to ...
Dan0042 (Daniel DeLorme)
01:08 AM Feature #18402 (Open): Argument Labels
As a developer, I mainly program in two languages: Swift and Ruby.
I love Ruby with all my heart, but I came to like a particular feature of Swift: **Argument labels** ; I would love to see them appear in Ruby.
Matz on Twitter sugges...
Lomig (Lomig Enfroy)
05:29 AM Revision b5c4570a (git): [ruby/reline] Prefer wait_readable for fiber scheduler.
https://github.com/ruby/reline/commit/06b4aa31fd Samuel Williams
05:01 AM Revision c91fb5db (git): Update stdlib versions [ci skip]
znz (Kazuhiro NISHIYAMA)

12/10/2021

05:23 PM Revision ecb2ff60 (git): intern/select/posix.h: remove unused parameter from rb_fd_dup
This unused parameter seems to be accidently introduced by https://github.com/ruby/ruby/commit/9e6e39c katei (Yuta Saito)
04:50 PM Revision e5ff030f (git): Enhanced RDoc for String (#5234)
Treated:
#to_i
#to_f
#to_s
#inspect
#dump
#undump
burdettelamar (Burdette Lamar)
04:08 PM Feature #16663: Add block or filtered forms of Kernel#caller to allow early bail-out
matz (Yukihiro Matsumoto) wrote in #note-10:
> `find_caller` is going to find a single entry from call frames. Is it sufficient for OP's demand?
Hopefully @headius can answer that. I assume that finding the first matching entry woul...
jeremyevans0 (Jeremy Evans)
03:13 PM Revision d6817d05 (git): * 2021-12-11 [ci skip]
git[bot]
03:13 PM Revision 1a62a50c (git): [rubygems/rubygems] Add `github` and `ref` options to `bundle add`
https://github.com/rubygems/rubygems/commit/c3e54acab0 Vyacheslav Alexeev
01:19 PM Revision 5f1975a4 (git): [ruby/reline] @convert_meta is true unless 8-bit characters
If Reline::IOGate.encoding contains 7-bit characters, convert-meta will set it On.
Because in readline(3):
> The default is On, but readline will set it to Off if the locale contains eight-bit characters.
As far as I know, 7-bit enco...
ima1zumi (Mari Imaizumi)
01:19 PM Revision 519a945e (git): [ruby/reline] Execute compress_meta_key if convert_meta is on
fix `#357`
When using 8-bit characters, it is better not to use `compress_meta_key`.
I believe not to use `compress_meta_key` unless `set convert-meta on` is written in the `.inputrc`.
The following is a quote from tmtm's comments.
> ...
ima1zumi (Mari Imaizumi)
01:18 PM Revision 3a2ae5bb (git): [ruby/reline] unleash real pasting speed
2700msec -> 410msec
read 80 console inputs at once
https://github.com/ruby/reline/commit/eb3ef7af98
YO4 (Yoshinao Muramatsu)
01:18 PM Revision 74765a5a (git): [ruby/reline] unleash pasting speed
https://github.com/ruby/reline/commit/074e407c62 YO4 (Yoshinao Muramatsu)
01:16 PM Revision aed21d65 (git): [ruby/reline] support input surrogate paird codepoint
support surrogate pair input
https://github.com/ruby/reline/commit/0b4acedc6a
YO4 (Yoshinao Muramatsu)
01:15 PM Revision 66e14e20 (git): [ruby/reline] follow consolemode change
fix 'https://github.com/ruby/reline/issues/300'
https://github.com/ruby/reline/commit/b2cc6805a8
YO4 (Yoshinao Muramatsu)
11:54 AM Revision eb2d3c19 (git): [rubygems/rubygems] Properly fetch Gem#latest_spec_for with multiple sources
https://github.com/rubygems/rubygems/commit/a93ec63df3 Kevin Logan
10:09 AM Revision 0e60bc11 (git): [rubygems/rubygems] Ignore dependencies not actually locked from frozen check
Only needed if there can be no explicit global source (bundler < 3).
https://github.com/rubygems/rubygems/commit/73923f4af5
deivid (David Rodríguez)
09:39 AM Revision 30268d1d (git): Prefer flat_map
nobu (Nobuyoshi Nakada)
09:39 AM Revision a5baf8d6 (git): Revert zero-check for alloca
Something weird results in int-in-bool-context and
stringop-overflow warnings.
nobu (Nobuyoshi Nakada)
08:15 AM Revision 787daea6 (git): Allow configuring TRANSIENT_HEAP_TOTAL_SIZE
Some platforms have memory resource limits, but theap's memory area is
too large for such situations. So allow configuring the size at
build-time.
katei (Yuta Saito)
07:01 AM Revision 0cefc2fb (git): Update bundled_gems at 2021-12-10
git[bot]
05:55 AM Revision 21749f7b (git): Update stdlib versions [ci skip]
znz (Kazuhiro NISHIYAMA)
12:07 AM Bug #18398 (Closed): bundler cannot install digest
hsbt (Hiroshi SHIBATA)
12:07 AM Bug #18400: Cannot require 'prime' in irb @ 3.1.0.preview1
You should add `prime` into your `Gemfile` for using prime via bundler environment. hsbt (Hiroshi SHIBATA)
12:06 AM Bug #18400 (Assigned): Cannot require 'prime' in irb @ 3.1.0.preview1
hsbt (Hiroshi SHIBATA)
 

Also available in: Atom