Activity
From 03/04/2022 to 03/10/2022
03/10/2022
-
09:24 PM Misc #18591: DevMeeting-2022-03-17
- * [Bug #18620] Not possible to partially curry lambda or proc's `call` method (jeremyevans0)
* Should we make chan... -
08:39 PM Bug #18620: Not possible to partially curry lambda or proc's `call` method
- `.arity` is normally fixed for a given method definition (e.g., `Proc#call`) so I'm not sure supporting this is a goo...
-
08:21 PM Bug #18620: Not possible to partially curry lambda or proc's `call` method
- Turns out that fixing `Method#arity` is not sufficient for this to work. This is because `Method#curry` does the equ...
-
06:05 PM Bug #18620: Not possible to partially curry lambda or proc's `call` method
- This likely comes from the fact that `lambda{|x|}.arity => 1`, but `lambda{|x|}.method(:call).arity => -1`. I think ...
-
12:07 PM Bug #18620 (Rejected): Not possible to partially curry lambda or proc's `call` method
- You can curry the call method of a regular object:
``` ruby
class Foo
def foo(a, b)
a + b
end
end
Fo... -
08:38 PM Feature #17403 (Closed): Remove Fixnum and Bignum
- Fixnum and Bignum were removed in commit:40e7aefebad412bde50fa9bdadcc8405f7605355
-
07:07 PM Bug #14103 (Closed): Regexp absense operator has no chance to ^C
- Applied in changeset commit:git|edc8576a65b7082597d45a694434261ec3ac0d9e.
----------
Allow interrupting regexps that... -
07:06 PM Revision 82dea290 (git): Revert "Fast object is iclass checks"
- This reverts commit 1b15756d24c11ed6bfddb5ae53402a071a20ea97.
-
07:06 PM Revision edc8576a (git): Allow interrupting regexps that backtrack
- Fixes [Bug #14103]
Co-authored-by: Nobuyoshi Nakada <[email protected]> -
05:58 PM Bug #18622: const_get still looks in Object, while lexical constant lookup no longer does
- NuriYuri (Youri Nouri) wrote in #note-2:
> I always believed it was expected because ConstantSpecs.const_get("Constan... -
04:23 PM Bug #18622: const_get still looks in Object, while lexical constant lookup no longer does
- I always believed it was expected because ConstantSpecs.const_get("ConstantSpecsTwo::Foo") behave like:
```
module ... -
04:12 PM Bug #18622 (Closed): const_get still looks in Object, while lexical constant lookup no longer does
- There is some inconsistency here between literal constant lookup and the meta API (const_get).
Lexical constant lo... -
05:47 PM Feature #18621: Fiber.yield loses the fact it was kwargs from Fiber#resume
- And thank you for this fast and detailed reply :)
-
05:46 PM Feature #18621 (Rejected): Fiber.yield loses the fact it was kwargs from Fiber#resume
- > So in order for it to work, the final line would need to be: foo(*[args])
Right, due to `make_passing_arg` inde... -
05:29 PM Feature #18621: Fiber.yield loses the fact it was kwargs from Fiber#resume
- I don't think this is a bug, I think this should be expected behavior. Absent use of ruby2_keywords, in no other pla...
-
03:14 PM Feature #18621: Fiber.yield loses the fact it was kwargs from Fiber#resume
- Note that kwargs are correctly passed through for Fiber.new:
```ruby
Fiber.new do |*args, **kwargs|
p kwargs # =... -
03:12 PM Feature #18621 (Rejected): Fiber.yield loses the fact it was kwargs from Fiber#resume
- ```ruby
f = Fiber.new do
args = Fiber.yield
args
end
f.resume
args = f.resume(a: 1)
Hash.ruby2_keywords_ha... -
05:34 PM Revision 1b15756d (git): Fast object is iclass checks
- Calling rb_obj_is_kind_of with an ICLASS returns the same result as
calling it with the ICLASS's original Module.
Mo... -
05:29 PM Feature #18589: Finer-grained constant invalidation
- Tested this patch out on GitHub's largest app and the size of the additional constant cache bookkeeping was only ~3MB...
-
01:45 PM Feature #18589: Finer-grained constant invalidation
- @kddeisz is away for a few days, so I'll take the liberty to answer even though he may correct me later.
> A 5.7% ... -
01:40 PM Feature #18589: Finer-grained constant invalidation
- What's the memory overhead of this? (probably the biggest concern from CRuby's side)
A 5.7% increase does sound li... -
02:18 AM Feature #18589: Finer-grained constant invalidation
- @Dan0042 yeah sorry, I was looking at different numbers and got wires crossed.
-
04:44 PM Revision 67faea97 (git): Small optimization for the opt_and instruction
- This change eagerly performs a bitwise and on the parameters. If both
parameters are fixnums, then the result value ... -
04:40 PM Feature #18615: Use -Werror=implicit-function-declaration by default for building C extensions
- shyouhei (Shyouhei Urabe) wrote in #note-9:
> @jeremyevans0 Do you have any suggestions for this kind of situations?... -
01:08 PM Feature #18615: Use -Werror=implicit-function-declaration by default for building C extensions
- That would maybe help for that specific function and nothing else.
It seems fairly straightforward that in 2022 `-... -
12:46 PM Feature #18615: Use -Werror=implicit-function-declaration by default for building C extensions
- How about adding `rb_check_safe_obj` entry which is `__attribute__((__error__))` to our headers? This is granular th...
-
11:37 AM Feature #18615: Use -Werror=implicit-function-declaration by default for building C extensions
- shyouhei (Shyouhei Urabe) wrote in #note-8:
> There is nothing that a Ruby _user_ can do for this situation. Gem _a... -
02:53 AM Feature #18615: Use -Werror=implicit-function-declaration by default for building C extensions
- What I have learned so far:
- Authors of sqlite gem have already fixed their code and released a new one.
- The l... -
02:02 AM Feature #18615: Use -Werror=implicit-function-declaration by default for building C extensions
- There is nothing that a Ruby _user_ can do for this situation. Gem _authors_ should be aware of their bugs. Hiding ...
-
04:35 PM Bug #18600 (Closed): Aliased method visibility issue on Ruby 3.1
- Applied in changeset commit:git|0c6e24d102e894a7211a596e6aa95828b1cf4406.
----------
Fix visibility of alias of zsup... - 04:35 PM Revision 702f4062 (git): * 2022-03-11 [ci skip]
-
04:35 PM Revision 0c6e24d1 (git): Fix visibility of alias of zsuper methods
- This was broken by 71c746379d5872e250d90ae45c585760afaf9516.
Fixes [Bug #18600] -
04:08 PM Feature #11547: remove top-level constant lookup
- There is some inconsistency here between literal constant lookup and the meta API (const_get).
`const_get` still loo... -
02:51 PM Feature #18619: Reverse the order of GC Compaction cursor movement
- Any idea why this PR results in so many more pinned slots?
-
01:33 PM Feature #18619: Reverse the order of GC Compaction cursor movement
- From the `After compaction (this PR)` image, it seems some objects of the leftmost heap are not moved, even though th...
-
09:57 AM Feature #18619 (Closed): Reverse the order of GC Compaction cursor movement
- # Reverse the order of GC Compaction cursor movement
**Github PR: [https://github.com/ruby/ruby/pull/5637](https... - 01:59 PM Revision 7f544075 (git): Update default gems list at bd1862330756b177ba189597b9de10 [ci skip]
-
01:58 PM Revision bd186233 (git): [ruby/io-wait] Update version to 0.2.2.pre1 for testing
- https://github.com/ruby/io-wait/commit/12e26f574e
-
01:36 PM Feature #18617: Allow multiples keys in Hash#[] acting like Hash#dig
- janosch-x (Janosch Müller) wrote in #note-2:
> i think this would be confusing.
Agreed. Also IMHO accessing deep ... -
08:31 AM Feature #18617: Allow multiples keys in Hash#[] acting like Hash#dig
- i think this would be confusing.
- its not obvious what `hash[:a, :b]` does, it could also mean `hash.values_at(:a... -
12:25 PM Feature #18618: no clobber def
- Note that you could perfectly implement this in pure Ruby today.
```ruby
module ClobberChecker
def method_adde... -
06:12 AM Feature #18618: no clobber def
- @Dan0042 I like that syntax --much more convenient-- but I don't know if it would be useful to me if it were just tog...
-
05:50 AM Feature #18618: no clobber def
- >Isn’t this the same idea as final methods in other languages like Java?
Had this discussion with a coworker --`fi... -
03:14 AM Feature #18618: no clobber def
- Ah, forgot to say sorbet already have support to final, abstract and override. Having support in Ruby could help with...
-
03:11 AM Feature #18618: no clobber def
- Isn’t this the same idea as final methods in other languages like Java?
There is an implementation for this https:... -
02:11 AM Feature #18618: no clobber def
- I like this idea.
But no one will use this feature if you need to always opt-in via `ncdef`.
It would make more sen... -
04:35 AM Revision 0024a76e (git): Ignore pre-release for sync target on sync_default_gems
-
01:53 AM Revision 561dda99 (git): [DOC] Enhanced RDoc for String (#5635)
- Treats:
#count
#delete
#delete!
#squeeze
#squeeze!
Adds section "Multiple Character Selectors" ... -
01:45 AM Revision ee5bf4ca (git): [DOC] Remove an unnecessary character [ci skip]
03/09/2022
-
11:37 PM Bug #18561: Make singleton def operation and define_singleton_method explicitly use public visibility
- I couldn't get `def $o.foo` to have non-public visibility in any version of Ruby. I definitely don't think it is pos...
- 11:16 PM Revision cadfeb36 (git): * 2022-03-10 [ci skip]
-
11:16 PM Revision 5f4e7842 (git): Avoid unnecessary conditional
- All frames should be either iseq frames or cfunc frames. Use a
VM assert instead of a conditional to check for a cfu... -
10:22 PM Bug #18580: Range#include? inconsistency for beginless String ranges
- This was discussed during the February 2022 developer meeting, and @matz said he needs more time to consider it.
-
03:31 PM Feature #18618 (Closed): no clobber def
- Sometimes I want to be certain I'm not clobbering/masking a method:
```
class Dog
def bark
'bark!'
end... -
02:42 PM Revision 72c038a8 (git): [DOC] Enhanced RDoc for String (#5633)
- Treats:
#tr (revised to link to "Character Selectors" document)
#tr!
#tr_s
#tr_s!
Also renames doc/... -
02:38 PM Revision f62f9131 (git): [ruby/rdoc] Support crossref of methods with multiple arguments
- For example, consider the following markup:
C1#m(a, b)
Before this patch, it generated this HTML:
<p><a href=\... -
02:01 PM Bug #18588: ruby -e 'p gets' with japanese charactors gets additional invalid leading chars and caught Encoding::InvalidByteSequenceError
- It seems to ANSI version of PeekConsoleInput read multibyte charactor partially, subsequent ReadFile returns wrong da...
-
01:43 PM Revision 77f3f8a1 (git): exts.mk.tmpl: propagate MINIRUBY to enc.mk even though invoking from exts.mk
- This is another attempt to fix out-of-src build with
--with-static-linked-ext. The first attempt was
4f1888bda70981d9... -
12:48 PM Feature #18615: Use -Werror=implicit-function-declaration by default for building C extensions
- shyouhei (Shyouhei Urabe) wrote in #note-6:
> Mmm... Rubygems' hiding compiler warnings is the root cause of this pro... -
02:55 AM Feature #18615: Use -Werror=implicit-function-declaration by default for building C extensions
- Mmm... Rubygems' hiding compiler warnings is the root cause of this problem, meseems. Implicit function declaration ...
-
10:50 AM Bug #18616: Error with clang(1) on MacOS due to __declspec()
- shyouhei (Shyouhei Urabe) wrote in #note-2:
> Thank you for reporting! Are you using the compiler that nginx detect... -
03:13 AM Bug #18616: Error with clang(1) on MacOS due to __declspec()
- Thank you for reporting! Are you using the compiler that nginx detects here? If you use one that the ruby's build s...
-
07:51 AM Misc #18591: DevMeeting-2022-03-17
- - [Feature #18566] Merge `io-wait` gem into core `IO` class. (byroot)
- It's very small and any non-trivial IO code... -
07:06 AM Misc #18591: DevMeeting-2022-03-17
- * [Feature #18563] Add "graphemes" and "each_grapheme" aliases (znz)
* Some languages already use graphemes. -
06:15 AM Revision b068a53d (git): [DOC] Fix default offset of String#byterindex
03/08/2022
- 10:27 PM Revision cd9a9bdf (git): * 2022-03-09 [ci skip]
-
10:27 PM Revision 1d356300 (git): [DOC] RDoc for character selectors (#5632)
- This file will be a link target for methods doc that cites character selectors (e.g., String#tr),
It covers only the... -
09:52 PM Feature #18617 (Open): Allow multiples keys in Hash#[] acting like Hash#dig
- # Abstract
Since is very common the hash nested hashes, expecialy in the API world, I whold love to use Hash#[] sy... -
08:42 PM Bug #18616: Error with clang(1) on MacOS due to __declspec()
- Never mind, the bug is in `clang`(1):
<https://github.com/llvm/llvm-project/issues/49958> -
08:10 PM Bug #18616 (Closed): Error with clang(1) on MacOS due to __declspec()
- Issue originally reported in Nginx Unit <https://github.com/nginx/unit/issues/653>.
Apple version of `clang`(1) be... -
01:11 PM Feature #18615: Use -Werror=implicit-function-declaration by default for building C extensions
- Actually compiling CRuby itself already uses `-Werror=implicit-function-declaration` (https://github.com/ruby/ruby/bl...
-
01:01 PM Feature #18615 (Closed): Use -Werror=implicit-function-declaration by default for building C extensions
- Currently, if a C extension refers a non-existing function it will continue to compile and only emit a warning.
And ... -
01:04 PM Misc #18591: DevMeeting-2022-03-17
- * [Feature #18615] Use -Werror=implicit-function-declaration by default for building C extensions (eregon)
* OK to... -
12:08 PM Revision 1adc7aa6 (git): Added release option to sync only released version of the default gems
-
11:19 AM Feature #18611: Promote best practice for combining multiple values into a hash code
- Including the class is often (maybe even always?) unnecessary, and does impact performance.
Struct is special becaus... -
08:46 AM Bug #18614: Error (busy loop) in TestGemCommandsSetupCommand#test_destdir_flag_does_not_try_to_write_to_the_default_gem_home
- Some additional information: The permissions in the related directories are as follows (from a different test run):
... -
08:39 AM Bug #18614 (Closed): Error (busy loop) in TestGemCommandsSetupCommand#test_destdir_flag_does_not_try_to_write_to_the_default_gem_home
- When running `make check`, I get a busy loop in
`TestGemCommandsSetupCommand#test_destdir_flag_does_not_try_to_write... -
08:40 AM Revision bfc697f1 (git): test/io/console/test_io_console.rb: parens needed
-
07:29 AM Bug #18613 (Feedback): Voluntary wanted: Some signal-related tests fail on FreeBSD 13
- Some tests fail randomly on FreeBSD 13.
http://rubyci.s3.amazonaws.com/freebsd13/ruby-master/log/20220216T143001Z.... -
07:23 AM Bug #18612: ffi gem installed successfully but while using raises Bus Error.
- I think this issue should be fixed by `gem install ffi -- --enable-libffi-alloc`. See #18555 and https://github.com/f...
-
06:53 AM Bug #18612 (Third Party's Issue): ffi gem installed successfully but while using raises Bus Error.
- -- Crash Report log information --------------------------------------------
See Crash Report log file under the ... -
07:06 AM Revision 17e09f03 (git): Skip three tests on FreeBSD 13
- Some tests that use signals frequently fail randomly on FreeBSD 13.
Maybe something around signals has changed in Fre... -
02:42 AM Bug #18286: Universal arm64/x86_84 binary built on an x86_64 machine segfaults/is killed on arm64
- Is it this? https://bugs.chromium.org/p/v8/issues/detail?id=11389#c18, https://github.com/nodejs/node/issues/37061#is...
03/07/2022
-
07:32 PM Feature #18611: Promote best practice for combining multiple values into a hash code
- Yes we could recommend adding `class` to the mixture. That's an argument for `hash_values` since if it has `self` alr...
-
07:15 PM Feature #18611: Promote best practice for combining multiple values into a hash code
- chrisseaton (Chris Seaton) wrote:
> A better pattern we think is this:
>
> ```ruby
> def hash
> [x, y, z].has... -
05:57 PM Feature #18611 (Closed): Promote best practice for combining multiple values into a hash code
- User-defined hash methods often work by combining the hash code of several values into one. This requires some logic ...
-
06:58 PM Revision faff37da (git): [DOC] Enhanced RDoc for String #tr and #tr! (#5626)
- 06:40 PM Revision bd81c351 (git): * 2022-03-08 [ci skip]
- 06:40 PM Revision 943efa8c (git): [rubygems/rubygems] Add newline to validate_platforms! message when platform is missing
- When I run bundle install with BUNDLE_DEPLOYMENT=true in the environment
on a different platform than I usually do de... -
02:37 PM Revision c4459635 (git): Use rb_ary_unshare for shared array in rb_ary_replace
- rb_ary_unshare will perform FL_UNSET_SHARED and
rb_ary_decrement_share. -
12:02 PM Misc #18610 (Closed): [DOC] Fix typo in Process#clock_gettime
- Applied in changeset commit:git|9cbebdcb74b98a012be72c8cc6b64099312eb432.
----------
[DOC] Fix documentation typo fo... -
12:02 PM Revision 9cbebdcb (git): [DOC] Fix documentation typo for Process#clock_gettime
- Fixes [Misc #18610]
- 11:09 AM Revision ff7eb851 (git): Update default gems list at 9c531ca524506f9de7bc4643fd6d89 [ci skip]
-
11:08 AM Revision 9c531ca5 (git): [ruby/ostruct] Drop unused directives from gemspec (https://github.com/ruby/ostruct/pull/39)
- This gem exposes no executables.
https://github.com/ruby/ostruct/commit/a1242f7ebe - 11:08 AM Revision 0adabdc5 (git): [ruby/ostruct] v0.5.3
- https://github.com/ruby/ostruct/commit/322efd0e61
- 11:08 AM Revision e1391bf9 (git): [ruby/ostruct] Fix class and method as attribute names
- https://github.com/ruby/ostruct/commit/7258535073
-
11:04 AM Revision 1dd2d2ce (git): [DOC] Change to guidance on lists in What's Here section (#5618)
- Currently, the guide says a "What's Here" section should have a labeled list for the methods. Such a list can render ...
03/06/2022
- 10:03 PM Revision 86bd9146 (git): * 2022-03-07 [ci skip]
-
10:03 PM Revision 8ae09706 (git): [rubygems/rubygems] Update README.md.tt
- Reduce the number of steps required to install a gem from two steps to one by using `bundle add`
https://github.com/... - 01:17 PM Revision 3179efe6 (git): * 2022-03-06 [ci skip]
-
01:17 PM Revision 156079a8 (git): [rubygems/rubygems] Make `--strict` flag of `update` and `outdated` commands consistent
- Previously they had slightly different behavior when combined with
conservative updating flags.
The correct behavior... -
02:15 AM Misc #18609: keyword decomposition in enumerable (question/guidance)
- thank you all for the feedback and suggestions, much appreciated.
03/05/2022
- 01:01 PM Revision 83de7133 (git): merge revision(s) c51b92c18deb850d2cea3a7c9020db23b364ab72: [Backport #18358]
- [ruby/zlib] [Bug #18358] Fix crash in zlib when in progress
When Zlib::Inflate#inflate or Zlib::Deflate#deflate ... - 12:38 PM Revision f740ffb8 (git): merge revision(s) b3d62a77d928eff01268ca7fa1c1c0966702926d [Backport #17803]
- [ruby/zlib] Synchronize access to zstream to prevent segfault in
multithreaded use
I'm not sure whether thi... - 12:06 PM Revision 7cc0c531 (git): * 2022-03-05 [ci skip]
-
12:05 PM Revision d6278627 (git): Mention removed gems since 3.1 [ci skip]
03/04/2022
-
05:50 PM Misc #18610 (Closed): [DOC] Fix typo in Process#clock_gettime
- `:nanoseconds` => `:nanosecond`
https://github.com/ruby/ruby/pull/5625 -
05:46 PM Misc #18591: DevMeeting-2022-03-17
- * [Feature #18589] Finer-grained constant invalidation
* We want to trade a very small memory increase for much be... -
03:23 PM Misc #18609: keyword decomposition in enumerable (question/guidance)
- https://try.ruby-lang.org/ is Opal by default (clearer on https://try.ruby-lang.org/playground/), and that is not ful...
-
01:30 PM Misc #18609: keyword decomposition in enumerable (question/guidance)
- Eregon (Benoit Daloze) wrote in #note-5:
> Hanmac (Hans Mackowiak) wrote in #note-3:
> > interesting, it seems to b... -
12:57 PM Misc #18609: keyword decomposition in enumerable (question/guidance)
- To clarify the example does not pass keyword arguments to a block (same for a method) requiring keyword arguments, th...
-
12:55 PM Misc #18609 (Closed): keyword decomposition in enumerable (question/guidance)
- Hanmac (Hans Mackowiak) wrote in #note-3:
> interesting, it seems to be changed in between "3.1.0" and "3.1.1"
Th... -
08:45 AM Misc #18609: keyword decomposition in enumerable (question/guidance)
- sawa (Tsuyoshi Sawada) wrote in #note-2:
> Perhaps, you can also do this:
>
> ```ruby
> drafts.each do |draft|
... -
08:37 AM Misc #18609: keyword decomposition in enumerable (question/guidance)
- interesting, it seems to be changed in between "3.1.0" and "3.1.1"
-
08:26 AM Misc #18609: keyword decomposition in enumerable (question/guidance)
- Perhaps, you can also do this:
```ruby
drafts.each do |draft|
name, mod, image = draft.values_at(:name, :mod, ... -
01:50 AM Misc #18609: keyword decomposition in enumerable (question/guidance)
- If you don't want to change too much code, you can define your own method like this if you want to automatically keyw...
-
01:27 AM Misc #18609 (Closed): keyword decomposition in enumerable (question/guidance)
- There is a pattern that I have used somewhat often in ruby 2, decomposing hash keys as keyword arguments to blocks fo...
-
03:05 PM Feature #18589: Finer-grained constant invalidation
- > Do you have measurements about it on some apps?
So here's some metrics from the app I investigated. The metric i... -
01:08 PM Bug #18607: Ruby 2.7.5 fails to configure on macOS Monterey on mac with M1 Pro
- hsbt (Hiroshi SHIBATA) wrote in #note-1:
> Can you file this to `ruby-install` repo at first?
I will definitely d... -
02:54 AM Bug #18607 (Feedback): Ruby 2.7.5 fails to configure on macOS Monterey on mac with M1 Pro
- Can you file this to `ruby-install` repo at first?
-
09:09 AM Revision 41a48535 (git): Remove gdbm related code from Travis CI
- The related extensions have been removed.
Related: https://github.com/ruby/ruby/pull/4619 -
06:56 AM Revision c757c4e0 (git): sitelibdir makes no sense in ruby itself
-
02:28 AM Revision fb928f0e (git): Fix typos [ci skip]
Also available in: Atom