Activity
From 12/31/2023 to 01/06/2024
01/06/2024
-
09:38 PM Feature #20152: mkmf / extconf: Add a proper way to not compile the extension
- byroot (Jean Boussier) wrote in #note-8:
> > OTOH, IMO it's not a big ask for devs/users to install make when they are installing gems.
> ...
Really? https://rubyinstaller.org/ provides MSYS2 integration by "Devkit". It provides `make`. -
01:51 PM Feature #20152: mkmf / extconf: Add a proper way to not compile the extension
- > This is not something mkmf can do on its own, it would need changes in RubyGems
Thanks for the info, as I said, I'm quite unfamiliar with how these pieces fit together.
> ...
Or look for a specially named file? This way `mkmf` co... -
12:00 PM Feature #20152: mkmf / extconf: Add a proper way to not compile the extension
- This is not something mkmf can do on its own, it would need changes in RubyGems, and it seems not so easy for RubyGems to know.
When one uses `spec.extensions = ["ext/mygem/extconf.rb"]` in a `.gemspec` file, RubyGems will:
1. Run `... -
08:50 AM Feature #20152: mkmf / extconf: Add a proper way to not compile the extension
- > Does skip_compilation just make a Makefile does nothing?
I don't know, I'm unfamiliar with the internals of `mkmf` and not well versed in all this tooling.
I'm just requesting the capability of skipping compilation from `extconf.... -
07:43 AM Feature #20152: mkmf / extconf: Add a proper way to not compile the extension
- byroot (Jean Boussier) wrote in #note-2:
> This would be called in `extconf.rb`
Does `skip_compilation` just make a Makefile does nothing?
Then it won't be able to fix the issue that `make` is needed, since `make` is called outside ... -
09:28 PM Feature #19908: Update to Unicode 15.1
- Is not [this](https://www.unicode.org/reports/tr29/tr29-43.html#Regex_Definitions) the updated regular expression?
```diff
ccs-base := [\p{L}\p{N}\p{P}\p{S}\p{Zs}]
ccs-extend := [\p{M}\p{Join_Control}]
extended_base := ... -
06:26 PM Revision 76afbda5 (git): [ruby/net-http] Tweak to Net::HTTP What's Here
- https://github.com/ruby/net-http/commit/3bf641ca63
-
06:25 PM Revision 8cad6fc9 (git): Tweak to Integer What's Here
-
06:24 PM Revision 4a44bf8c (git): Tweak to Float What's Here
-
06:24 PM Revision 7b615bfd (git): Tweak to Float What's Here
-
06:23 PM Revision 54e8901f (git): Tweak for ENV doc
-
05:15 PM Revision 4bdfc907 (git): [ruby/irb] Refactor exit command
- (https://github.com/ruby/irb/pull/835)
* Remove unnecessary code from the exit command's implementation
1. The parameters of `IRB.irb_exit` were never used. But there are some
libraries seem to call it with arguments + it's declared... -
04:43 PM Revision d96fe5e4 (git): [DOC] Fix indentation in Numeric#step
-
03:43 PM Revision e168dbda (git): [DOC] Simply use `--` / `++` instead of `:stopdoc:` / `:startdoc:`
-
02:34 PM Revision 0831d960 (git): [DOC] Fix typo in call-seq for Float#round
-
12:19 PM Revision 9b78ef75 (git): [DOC] Load options and parse files from srcdir
- RDoc options that do not change and can be written in `.rdoc_options`
file are moved, so that they match when called without `make`.
Get rid of parsing the files in `page_dir` twice (as relative paths
and absolute paths). -
12:16 PM Revision 3dac2789 (git): [ruby/irb] Require Reline v0.4.2+
- (https://github.com/ruby/irb/pull/834)
https://github.com/ruby/irb/commit/eff8d0d46a -
10:54 AM Misc #20156: C99 updates
kddnewton (Kevin Newton) wrote:
> Now that we require Visual Studio 2015 and Oracle Developer Studio 12.5, we can do a couple of things to clean up:
> ...
b75828fdfadaff6c5e09e42be32dff1216ed8fb1 says:
> Fix compile error with Ora...-
10:23 AM Revision d1de2a34 (git): [ruby/rdoc] Rename and move the tests for `--locale` option [ci skip]
- https://github.com/ruby/rdoc/commit/b2a35ee39d
-
10:17 AM Revision f6847e94 (git): [ruby/rdoc] Ignore `locale` at `write_options`
- `@locale` is set from `@locale_name` and loaded from `@locale_dir`
after `write_options`, and `RDoc::I18n::Locale` does not seem to
expected to be loaded.
https://github.com/ruby/rdoc/commit/fd610f7023 -
06:49 AM Bug #20157 (Open): Regression in GC.measure_total_time
-
06:49 AM Bug #20157: Regression in GC.measure_total_time
- Backport PR: https://github.com/ruby/ruby/pull/9428
-
06:39 AM Bug #20157 (Closed): Regression in GC.measure_total_time
- PR above has been merged - thank you again.
-
04:27 AM Bug #20157: Regression in GC.measure_total_time
- I've proposed a fix here: https://github.com/ruby/ruby/pull/9427
-
04:14 AM Bug #20157 (Closed): Regression in GC.measure_total_time
- Setting `GC.measure_total_time = false` is no longer disabling GC time measurement in Ruby 3.3.0.
Reproduction script:
``` ruby
puts RUBY_DESCRIPTION
GC.measure_total_time = false
puts "measure_total_time is now false"
puts "... -
06:36 AM Revision 913b26d0 (git): Add test case for GC.measure_total_time
-
06:36 AM Revision 7db35e10 (git): Fix GC.measure_total_time regression
- Commit 93ac7405b80cc61930d73da04441fa09af1851e1 introduced a regression
where measurements would still be taken after setting
GC.measure_total_time = false.
Fixes [Bug #20157] -
04:49 AM Misc #20107 (Closed): Update required Oracle Solaris Studio version to 12.5
- Now that we have lost a (RubyCI) machine to check the behavior, I don't know if we can check whether the features work on 12.6 or not. But I think #note-2 was a "yes" from the platform maintainer to update the policy ([the wiki](https://...
-
04:47 AM Revision 4112585b (git): Too much nestings make editors confused
- Get rid of nested double quotes inside nested interpolations. Also,
remove comments that are no longer needed by the documents. -
12:32 AM Revision 54a12365 (git): Add ruby_debug_print functions to vm_debug.h
-
12:32 AM Revision 0c990994 (git): Add a shorthand for ruby_debug_print_node
-
12:32 AM Revision da23f8fe (git): Print node id and location by ruby_debug_print_node
01/05/2024
-
11:11 PM Misc #20156 (Closed): C99 updates
- Now that we require Visual Studio 2015 and Oracle Developer Studio 12.5, we can do a couple of things to clean up:
* We should be able to remove our custom `stdbool.h` (added in VS2015 and Oracle SS 12.3)
* Remove our usage of `__res... -
11:00 PM Misc #20107: Update required Oracle Solaris Studio version to 12.5
- Oh sorry I was going based on https://github.com/ruby/ruby/wiki/C99-Usage-Guidelines. If we no longer test with these, then I think this issue can be closed? Is there any other documentation or tests that need to be updated?
-
10:37 PM Misc #20107: Update required Oracle Solaris Studio version to 12.5
- I'm not sure what you mean. We already removed Solaris from [Ruby CI](https://rubyci.org/) from Oct 2023.
Can you point what is the old CI tasks?
-
07:02 PM Misc #20107: Update required Oracle Solaris Studio version to 12.5
- Is that something we can address within Ruby or is it entirely outside of our control?
@hsbt do you want to remove the old CI tasks or should I? -
10:14 PM Bug #20155 (Assigned): Using value of rb_fiber_scheduler_current() crashes Ruby
- While trying to manually block/unblock fibers from an extension using the Fiber Scheduler,
I noticed that using the return value of `rb_fiber_scheduler_current()` crashes Ruby.
I've created a minimal extension gem called "fiber_block... -
09:27 PM Bug #20154: aarch64: configure overrides `-mbranch-protection` if it was set in CFLAGS via environment
- I have looked at other aspects of the options and inspected the assembly outputted with -mbranch-protection={standard,pac-ret} in Fedora PR's workaround https://src.fedoraproject.org/rpms/ruby/pull-request/167
-
09:25 PM Bug #20154 (Closed): aarch64: configure overrides `-mbranch-protection` if it was set in CFLAGS via environment
- Recently a GH PR was merged <https://github.com/ruby/ruby/pull/9306> For PAC/BTI support on ARM CPUs for Coroutine.S.
Without proper compilation support in configure.ac it segfaults Ruby with fibers on CPUs where PAC is supported: htt... -
07:24 PM Bug #20153 (Assigned): Backport 7f9c174102 to fix --yjit-stats with RubyVM::YJIT.enable
-
07:20 PM Bug #20153 (Closed): Backport 7f9c174102 to fix --yjit-stats with RubyVM::YJIT.enable
- Ruby 3.3.0 ignores `--yjit-stats` when `RubyVM::YJIT.enable` (no argument) is used, which is an unintended behavior.
commit:7f9c174102d0e2369befc7b88f2c073becaa7560 should be backported to ruby_3_3.
Backport PR: https://github.com/... -
07:08 PM Revision 7f9c1741 (git): YJIT: Let RubyVM::YJIT.enable respect --yjit-stats (#9415)
-
06:09 PM Feature #14602: Version of dig that raises error if a key is not present
- Following what @mame explained about Matz expectations, I would like to (*humbly*) suggest another option:
* `dig_expected`
(and a my +1 to `dig_strict`) -
05:06 PM Bug #11526 (Closed): Streaming HTTP requests are not idempotent and should not be retried
-
04:51 PM Revision 4d031400 (git): [ruby/net-http] Don't invoke response block more than once due to retry
- If a socket error occurs while performing a streaming download via
the response block provided to transport_request, avoid calling
the response block again as this would result in duplicate data
received by the client.
Fixes https://git... -
04:07 PM Revision 37657c79 (git): [ruby/uri] Make URI#to_s prepend relative path with / if there is a host or port
- Otherwise, the path could be considered part of the host or port.
This is better than modifying the path to make it absolute when
a host or port is set. We could also raise for invalid paths
when a host or port is set using check_path,... -
04:06 PM Feature #18035: Introduce general model/semantic for immutability.
- I understand the advantages of immutability, but I worry about the overall direction this is taking us. So I'll just quote something @mame wrote previously, as it reflects my own opinion.
mame (Yusuke Endoh) wrote in #16153#note-6:
>... -
04:06 PM Feature #20152: mkmf / extconf: Add a proper way to not compile the extension
- Prism would use this as well: https://github.com/ruby/prism/blob/829ac0ed3f449313584aae35db98fd7614eb9d63/ext/prism/extconf.rb#L47-L56
-
04:03 PM Feature #20152: mkmf / extconf: Add a proper way to not compile the extension
- In case you meant which gems would use this, then I think the 3 I listed as example would make a good use of it, and I'm certain there are some more that are in similar cases.
-
01:29 PM Feature #20152: mkmf / extconf: Add a proper way to not compile the extension
- > Where will this be used?
I'm not sure I understand the question.
This would be called in `extconf.rb` -
12:58 PM Feature #20152: mkmf / extconf: Add a proper way to not compile the extension
- byroot (Jean Boussier) wrote:
> It would be very useful to have some proper first class API to skip compiling the extension.
> ...
Where will this be used? -
10:53 AM Feature #20152 (Open): mkmf / extconf: Add a proper way to not compile the extension
- ### Context
There are various gems that ship with a native extension as a way to speedup part of the gem, but also ship with a pure Ruby version of these methods as a fallback. So they only want to compile the extension if the platfor... - 02:33 PM Revision 557f1a57 (git): Update default gems list at 99933751c1c99488b7207449179dcb [ci skip]
-
02:32 PM Revision 99933751 (git): [ruby/reline] Bump version to v0.4.2
- (https://github.com/ruby/reline/pull/633)
https://github.com/ruby/reline/commit/5b59e48070 -
02:11 PM Bug #20148: Sorting not working as expected on Urdu words.
- As Martin says Ruby's `Array<String>#sort` just uses simple Unicode scalar value sort, which is not what you expect.
For the use case which considers the knowledge of the language, you need to use "Collation".
RDB sometimes implement... -
12:25 AM Bug #20148 (Rejected): Sorting not working as expected on Urdu words.
- The characters involved (shown right-to-left in most environments) are:
U+0627 ا ARABIC LETTER ALEF
U+00628 ب ARABIC LETTER BEH
U+0062A ت ARABIC LETTER TEH
U+00679 ٹ ARABIC LETTER TTEH
U+0067E پ ARABIC LETTER PEH
The first three ch... -
01:54 PM Revision 634d4e29 (git): Update net-* gems for Ruby 3.3 (#9418)
- * Bump up net-ftp to 0.3.4
* Bump up net-smtp to 0.4.0.1
* Bump up net-imap to 0.4.9.1
* [ruby/net-http] Renew test certificates
The private key is replaced with a public known test key published at
[RFC 9500].
Also lifetime has bee... -
09:29 AM Revision 900fb48e (git): Support Feature and Bug tickets for release note generator
-
09:21 AM Revision 3bd9adad (git): Bump up net-http to 0.4.1
-
09:21 AM Revision 671fd2a6 (git): [ruby/net-http] Renew test certificates
- The private key is replaced with a public known test key published at
[RFC 9500].
Also lifetime has been extended to 10 years from 4 years.
[RFC 9500]: https://www.rfc-editor.org/rfc/rfc9500.html
https://github.com/ruby/net-http/commi... -
09:21 AM Revision 041448de (git): Bump up net-imap to 0.3.4.1
-
09:21 AM Revision 152eadd3 (git): Bump up net-smtp to 0.3.4
-
09:21 AM Revision 01d63a45 (git): Bump up net-ftp to 0.2.1
- 09:14 AM Revision f75302b8 (git): Update bundled gems list at 185abff6260c100cbb1022c8ee8bbb [ci skip]
-
09:13 AM Revision 185abff6 (git): Use released versions of net-imap and net-smtp
-
09:06 AM Bug #20106 (Closed): Backport d3933fc753187a055a4904af82f5f3794c88c416 to fix net-http test errors
- I submit PRs for fixing them.
* Ruby 3.3 https://github.com/ruby/ruby/pull/9418
* Ruby 3.2 https://github.com/ruby/ruby/pull/9419
* Ruby 3.1 https://github.com/ruby/ruby/pull/9420
- 08:25 AM Revision f4b05961 (git): Update default gems list at 75a8b48fba5392019bf7be82eab247 [ci skip]
-
08:25 AM Revision 75a8b48f (git): [ruby/net-http] Bump version to 0.4.1
- https://github.com/ruby/net-http/commit/21e226c0bc
- 06:58 AM Revision 7b2b1e61 (git): Update bundled gems list as of 2024-01-05
-
03:14 AM Bug #20151 (Closed): Can't build Ruby 3.1 on FreeBSD 14.0
- I couldn't install Ruby 3.1.3 on FreeBSD 14.0.
```
compiling util.c
util.c:255:1: error: expected identifier or '('
ruby_qsort(void* base, const size_t nel, const size_t size, cmpfunc_t *cmp, void *d)
^
./include/ruby/util.h:12... -
03:14 AM Revision 6d67dfc9 (git): Add test cases for duplicated `when\' clause warnings
- Add test cases for `__LINE__` and `__FILE__` because
they were managed by NODE_LIT and NODE_STR but changed to
be managed by dedicated NODE now. -
02:06 AM Revision 098d97e9 (git): [rubygems/rubygems] Quote Etag in `If-None-Match` header of compact index request
- https://github.com/rubygems/rubygems/commit/d26bcd7551
-
01:55 AM Bug #20147: FreeBSD libyaml
- I could install Ruby 3.2.2 on FreeBSD 14.0 with `ruby-build` and the following configuration.
```
./configure "--prefix=$HOME/.rbenv/versions/3.1.3" --enable-shared --with-readline-dir=/usr/local --with-libffi-dir=/usr/local --with-liby...
01/04/2024
-
11:56 PM Revision 6aacbd69 (git): Free pthread_attr after setting up the thread
- [bug #20149]
-
11:44 PM Bug #19409 (Closed): Object's shape is reset after a ractor move
-
10:30 PM Bug #19409: Object's shape is reset after a ractor move
- This has been fixed by https://github.com/ruby/ruby/commit/32c4b0125f9afe11909d1c10e4133e20180e809e, please close. Thanks!
-
11:44 PM Feature #13383: [PATCH] Module#source_location
- If we decided to introduce this feature, I'm against using a plain Array. Let's use a well defined interface.
-
11:44 PM Bug #19411 (Closed): GC issue with moved objects
-
10:29 PM Bug #19411: GC issue with moved objects
- This has been fixed in https://github.com/ruby/ruby/commit/32c4b0125f9afe11909d1c10e4133e20180e809e, please close. Thanks!
-
11:44 PM Feature #15927 (Closed): Allow string keys to be used for String#% and sprintf methods
-
10:26 PM Feature #15927: Allow string keys to be used for String#% and sprintf methods
- This can be closed as I agree with the feedback given. Thanks!
-
11:43 PM Bug #19387 (Open): ObjectSpace.each_objects only returns shareable objects after starting a Ractor
-
10:24 PM Bug #19387: ObjectSpace.each_objects only returns shareable objects after starting a Ractor
- I believe this was closed prematurely due to an unrelated git commit that wrongly tagged it. Please reopen :)
-
11:43 PM Bug #20104 (Closed): Regexp#match returns nil but allocates T_MATCH objects
- This is already marked for backport to 3.3, it just needs to be closed.
-
10:45 PM Bug #20104: Regexp#match returns nil but allocates T_MATCH objects
- So my PR has been merged but I believe a backport is desirable for 3.3. I'm not sure who to ping for a backport request. Thanks!
- 10:35 PM Revision dd8157f7 (git): Update default gems list at 5ff1524fde1e1014472ce78746b8f6 [ci skip]
-
10:34 PM Revision 5ff1524f (git): [ruby/erb] Version 4.0.4
- https://github.com/ruby/erb/commit/b68bfed6a8
-
10:33 PM Revision d20c6094 (git): [ruby/erb] Skip building a native extension for JRuby
- https://github.com/ruby/erb/commit/f0f68baf6b
-
09:27 PM Revision 10b9679f (git): [ruby/rdoc] Tweaks to Markup Reference
- https://github.com/ruby/rdoc/commit/05ac6dba66
-
08:51 PM Revision d65d2fb6 (git): Do not `poll` first
- Before this patch, the MN scheduler waits for the IO with the
following steps:
1. `poll(fd, timeout=0)` to check fd is ready or not.
2. if fd is not ready, waits with MN thread scheduler
3. call `func` to issue the blocking I/O call
Th... -
08:41 PM Bug #20150 (Closed): Memory leak in grapheme clusters
- GitHub PR: https://github.com/ruby/ruby/pull/9414
String#grapheme_cluters and String#each_grapheme_cluster leaks memory because if the string is not UTF-8, then the created regex will not be freed.
For example:
```ruby
str = "h... -
08:08 PM Bug #20149 (Closed): Fix memory leak in IPSocket rb_getaddrinfo
- PR: https://github.com/ruby/ruby/pull/9413
Fixes a memory leak pthread_attr is created, but never cleaned up
```
require 'socket'
10.times do
10_000.times do
IPSocket.getaddress("localhost")
end
puts `ps -o rss=... -
05:09 PM Bug #20148 (Rejected): Sorting not working as expected on Urdu words.
- I was trying to sort an array of Urdu characters and found out an ambiguity in the result. Here is the script that I am using.
['ا', 'پ', 'ب', 'ت', 'ٹ'].sort
Actual Result:
["ا", "ب", "ت", "ٹ", "پ"]
Expected Result:
["ا", "ب", '... -
04:37 PM Misc #20075: DevMeeting-2024-01-17
- * [Feature #13383] Module#source_location
- Matz [asked](https://github.com/ruby/dev-meeting-log/commit/9f106e4e484f6a512666d346f7854dcd05d59391#diff-c64c00cad3a8a676641bd811a5d27600e162deedc5f3bfe398a43f3c78a88673R46) for specific us... -
04:27 PM Feature #18035: Introduce general model/semantic for immutability.
- I'm not sure this was already mentioned, but this feels related to 3.2's Data class.
If this is accepted, should Data classes all be immutable? To quote [the docs](https://docs.ruby-lang.org/en/3.2/Data.html):
> Data provides no me... -
04:25 PM Revision 6c252912 (git): Memory leak when duplicating identhash
- [Bug #20145]
Before this commit, both copy_compare_by_id and hash_copy will create a
copy of the ST table, so the ST table created in copy_compare_by_id will
be leaked.
h = { 1 => 2 }.compare_by_identity
10.times do
1_00... -
04:15 PM Bug #20090: Anonymous arguments are now syntax errors in unambiguous cases
- @nobu should we expect a 3.3.1 release soon?
-
01:09 PM Bug #20147 (Open): FreeBSD libyaml
- I use ruby-install to manage multiple Ruby versions. Some time ago I had issues installing Ruby 3.2.2 https://github.com/postmodern/ruby-install/issues/463, and the same issue was open for ruby-build in https://github.com/rbenv/ruby-buil...
-
11:53 AM Revision 542011ff (git): [ruby/reline] Fix pasting tab-indented code crash
- (https://github.com/ruby/reline/pull/630)
https://github.com/ruby/reline/commit/90155fd0d9 -
10:09 AM Revision a4bdf267 (git): Fix version detection error of net-smtp
- https://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20240104T083002Z.fail.html.gz
https://rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20240104T073006Z.fail.html.gz -
09:46 AM Feature #20102: Introduce `Fiber#resuming?`
- ioquatix (Samuel Williams) wrote in #note-4:
> @Eregon I appreciate your input. I don't mind doing that, but isn't that the same for all methods on Fiber?
It is, and many methods on Fiber are already not allowed to be called for Fibers ... -
08:47 AM Revision c945a849 (git): Skip test depending on bundled gems
- Because bundled gems cannot be loaded at test-all, this test which
depends on one of the bundled gems, `rake`, always does nothing except
print an expected warning. -
05:58 AM Feature #20054: Replace the use of `def` in endless method definitions with a new sigil
- What about using '&', i.e. resulting in `&foo = method_body`? '&' is definitely associated with methods/blocks/procs, both in the parameter list of a method definition and in the `&:method_name` idiom.
-
03:59 AM Bug #20146 (Assigned): Code using Ractor with env `RUBY_MAX_CPU=1` ends with unreachable
-
02:17 AM Bug #20146 (Closed): Code using Ractor with env `RUBY_MAX_CPU=1` ends with unreachable
- ## Reproducible code
```rb
# sample-code.rb
Ractor.new { 1 }
```
```bash
RUBY_MAX_CPU=1 ruby sample-code.rb # This will not end with exit code 0
RUBY_MAX_CPU=2 ruby sample-code.rb # This ends with exit code 0 as expected
```
... -
03:52 AM Misc #20107: Update required Oracle Solaris Studio version to 12.5
- I think it is OK.
Note that Oracle Developer Studio 12.6, the latest version, have severe bug that prevent to compile Ruby ([Bug #15292]). This means that it may be needed to keep support 12.5 for a long time.
- 12:39 AM Revision 577bc825 (git): [rubygems/rubygems] remove useless comments from unpack_command.rb
- https://github.com/rubygems/rubygems/commit/7576c21295
-
12:31 AM Feature #16495: Inconsistent quotes in error messages
- ivoanjo (Ivo Anjo) wrote in #note-25:
> matz (Yukihiro Matsumoto) wrote in #note-7:
> ...
To chime in here, at Honeybadger we use this regular expression to parse the Ruby backtrace: https://github.com/honeybadger-io/honeybadger-ruby/b...
01/03/2024
-
11:40 PM Feature #20102: Introduce `Fiber#resuming?`
- @Eregon I appreciate your input. I don't mind doing that, but isn't that the same for all methods on Fiber? In other words, the GVL provides a bit of a safety net.
Should we apply this model to other methods? Maybe we need to define w... -
09:18 AM Feature #20102: Introduce `Fiber#resuming?`
- Could you make it `raise FiberError` if it's called on a Fiber of a different thread?
Because that's always racy (i.e. it might have changed by the time `resuming?` returns) so it seems wrong to query that for a Fiber belonging to anoth... -
10:57 PM Bug #20112 (Assigned): Ractors not working properly in ruby 3.3.0
-
03:51 PM Bug #20112 (Closed): Ractors not working properly in ruby 3.3.0
- I recently installed Ruby 3.3.0, and noticed that some of my scripts that use Ractors started to struggle with performance. After doing some benchmarks, I noticed that, while Ractors seem to be working well on Ruby 3.2.2, they're not wor...
-
09:17 PM Bug #20145 (Closed): Memory leak when duplicating identhash
- GitHub PR: https://github.com/ruby/ruby/pull/9411
Both copy_compare_by_id and hash_copy will create a copy of the ST table, so the ST table created in copy_compare_by_id will be leaked.
```ruby
h = { 1 => 2 }.compare_by_identity
... -
08:41 PM Revision 46f7fac8 (git): Free rb_native_thread of main thread
- The rb_native_thread gets reported as a memory leak by the macOS leaks
tool:
$ RUBY_FREE_AT_EXIT=1 leaks -q --atExit -- ./miniruby -e ""
STACK OF 1 INSTANCE OF 'ROOT LEAK: <calloc in ruby_xcalloc_body>':
6 dyld ... -
08:17 PM Bug #19999: Backport: .travis.yml and fixed commits
- @nagachika I sent the PR to the ruby_3_2 branch to pass Travis CI with the latest config file that exists on master and ruby_3_3 branches. You can do cherry-pick the commits or merge the PR.
https://github.com/ruby/ruby/pull/9410
I a... -
08:00 PM Revision 7304d562 (git): [ruby/prism] Include field comments in Java source
- https://github.com/ruby/prism/commit/4a9389f304
-
07:32 PM Bug #20079: alexandria testsuite began to segfault recently
- @luke-gru Can you please try this modified version of mame's patch?
```diff
diff --git a/hash.c b/hash.c
index 78e9d9a2d6..434b40c445 100644
--- a/hash.c
+++ b/hash.c
@@ -4398,6 +4398,7 @@ rb_hash_compare_by_id(VALUE hash)
- ... -
06:31 PM Revision c7ce2f53 (git): Fix memory leak in setting encodings
- There is a memory leak in Encoding.default_external= and
Encoding.default_internal= because the duplicated name is not freed
when overwriting.
10.times do
1_000_000.times do
Encoding.default_internal = nil
end
... -
05:20 PM Revision a25329e0 (git): [ruby/prism] Fix parsing pinned local variable pattern for numbered parameter
- Fix https://github.com/ruby/prism/pull/2094
The part of `parse_variable_call` for variables was split into a new
function `parse_variable` and used it.
https://github.com/ruby/prism/commit/4c5fd1a746 -
05:18 PM Revision 3a3fcf56 (git): [ruby/prism] Fix rational when parsing non decimal integer
- https://github.com/ruby/prism/commit/75d4331f7f
-
04:46 PM Revision 0215965d (git): [ruby/prism] Better error recovery for content after unterminated heredoc
- https://github.com/ruby/prism/commit/c2d325a886
-
04:44 PM Revision a1d0c621 (git): [ruby/prism] More spacing in config.yml
- https://github.com/ruby/prism/commit/825ff8b9ec
-
04:44 PM Revision ca2a6b7d (git): [ruby/prism] Spacing in config.yml
- https://github.com/ruby/prism/commit/983561988e
- 04:44 PM Revision 06a65ce6 (git): [ruby/prism] Document `IntegerNode` fields
- https://github.com/ruby/prism/commit/77280b2807
- 02:15 PM Revision fc48a679 (git): [rubygems/rubygems] Bump rb-sys
- Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.84 to 0.9.85.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.84...v0.9.85)
---
updated-depende... -
01:47 PM Revision 66e0d92d (git): [ruby/irb] Avoid completing empty input
- (https://github.com/ruby/irb/pull/832)
The candidate list for empty input is all methods + all variables +
all constants + all keywords. It's a long list that is not useful.
https://github.com/ruby/irb/commit/812dc2df7b -
01:33 PM Feature #16495: Inconsistent quotes in error messages
- It may be interesting to note that the Prism parser has adopted a style guide for error messages, which avoids using the mixed quotes, and uses backticks around token literals to render well in markdown.
https://github.com/ruby/prism/... -
01:28 PM Feature #16495: Inconsistent quotes in error messages
- matz (Yukihiro Matsumoto) wrote in #note-7:
> It was something cultural. I admit nowadays very few people use backquote as a left-hand quote, but it used to be. I also admit consistent quotes are easier for our eyes when using recent ma... -
11:58 AM Bug #20111: `defined?` returns `expression` for assignment operators combined with fully qualified constants
- At least it seems inconsistent with `defined?(A += 1)` and `defined?(a += 1)` which are both `"assignment"`
-
11:00 AM Bug #20111 (Closed): `defined?` returns `expression` for assignment operators combined with fully qualified constants
- `defined?` doesn't consider &&=, ||= and other ...= operators as `assignment`:
```ruby
defined?(A::B += 1) # => "expression"
defined?(A::B &&= true) # => "expression"
defined?(A::B ||= true) # => "expression"
```
But considers ... -
02:12 AM Revision 73fb9c35 (git): [ruby/io-console] `IO_CONSOLE_VERSION` is no longer a macro
- https://github.com/ruby/io-console/commit/14b35217dc
-
01:54 AM Revision 9ff4e52d (git): [DOC] Make "Appendix F. Ractor support" a numbered list
-
12:19 AM Revision 5aba5f04 (git): [DOC] Add parentheses in call-seq for String#include?
01/02/2024
-
10:17 PM Revision 8916b81b (git): [ruby/io-console] Define IO::ConsoleMode::VERSION from console.c
- https://github.com/ruby/io-console/commit/6302a2082c
-
09:16 PM Revision e46922e4 (git): [ruby/prism] Introduce field comments
- In an effort to further improve our documentation, this commit
introduces the concept of templating comments onto fields. I hope
to get more documentation above the nuances of specific fields this
way going forward.
With this, we templa... -
08:59 PM Revision adbfbd82 (git): [ruby/prism] Ignore visibility flag
- https://github.com/ruby/prism/commit/55b049ddac
-
07:10 PM Revision 380c218b (git): [ruby/prism] Do not add error for forwarding in CRuby 3.3.0
- https://github.com/ruby/prism/commit/a28e57c650
-
07:08 PM Revision 0ee625ce (git): [ruby/prism] Fix to check multiple block arguments for forwarding arg
- Fix https://github.com/ruby/prism/pull/2111
https://github.com/ruby/prism/commit/21ca243d0a -
06:59 PM Revision 165deec5 (git): [ruby/prism] Document the version option on prism parse
- https://github.com/ruby/prism/commit/eddd72a8ef
-
06:58 PM Revision 29026404 (git): Fix up common.mk targets for prism
-
06:51 PM Revision 23beceed (git): [ruby/prism] IndexTargetNode should always have ATTRIBUTE_WRITE
- Because this is a user-facing change, we also need to deal with the
fact that CRuby 3.3.0 was just released.
In order to support workflows that want to parse exactly as CRuby
parses in a specific version, this PR introduces a new option... -
05:13 PM Revision 04f64608 (git): Sync to latest prism
-
05:03 PM Revision b959263b (git): Fix Exception#detailed_message for GC compaction
- Before this commit, the test fails with RGENGC_CHECK_MODE enabled:
TestException#test_detailed_message_under_gc_compact_stress [test/ruby/test_exception.rb:1466]:
<"\e[1mfoo (\e[1;4mRuntimeError\e[m\e[1m)\e[m\n" +
"\e[1mbar\... -
04:34 PM Revision 28ec7940 (git): Sync to latest prism
-
04:20 PM Feature #20108 (Closed): Introduction of Happy Eyeballs Version 2 (RFC8305) in Socket.tcp
- This is an implementation of Happy Eyeballs version 2 (RFC 8305) in Socket.tcp.
### Background
Currently, `Socket.tcp` synchronously resolves names and makes connection attempts with `Addrinfo::foreach.`
This implementation has the ... -
04:06 PM Bug #19991 (Closed): rb_register_postponed_job async-signal-unsafety causes crash in GC
-
03:47 PM Bug #19991: rb_register_postponed_job async-signal-unsafety causes crash in GC
- I guess this can be closed since https://github.com/ruby/ruby/pull/8949 was merged? ;)
-
04:04 PM Misc #20107 (Closed): Update required Oracle Solaris Studio version to 12.5
- Per https://www.oracle.com/us/assets/lifetime-support-hardware-301321.pdf and https://www.oracle.com/a/ocom/docs/support/advanced-customer-support/solaris-linux-vm-lsp.pdf, 12.2, 12.3, and 12.4 are all end-of-life for "extended support"....
-
02:00 PM Revision a046d4ef (git): [ruby/rdoc] [DOC] MarkupReference
- (https://github.com/ruby/rdoc/pull/1075)
https://github.com/ruby/rdoc/commit/095b78123b -
10:39 AM Bug #20106 (Closed): Backport d3933fc753187a055a4904af82f5f3794c88c416 to fix net-http test errors
- Testing with Ruby 3.3, I observe test errors such as:
~~~
108) Failure:
TestNetHTTPS#test_skip_hostname_verification [/builddir/build/BUILD/ruby-3.3.0/test/net/http/test_https.rb:217]:
Exception raised:
<#<OpenSSL::SSL::SSLError: ... -
05:19 AM Revision 7a050638 (git): Introduce NODE_FILE
- `__FILE__` was managed by `NODE_STR` with `String` object.
This commit introduces `NODE_FILE` and `struct rb_parser_string` so that
1. `__FILE__` is detectable from AST Node
2. Reduce dependency ruby object - 02:20 AM Revision 91a0d1c4 (git): [rubygems/rubygems] Bump rb-sys
- Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.84 to 0.9.85.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.84...v0.9.85)
---
updated-depende... -
01:36 AM Revision 97986f40 (git): LLDB: Print actual node structure of NODE_LINE
-
01:15 AM Revision 00b2573e (git): [DOC] Links to extension.rdoc from extension.ja.rdoc
- Use links than plain text references.
TODO: Internationalize the RDoc hardcoded link text.
Currently RDoc hardcodes reference name with external name in English,
as "REF at -
01:15 AM Revision 84eeb83f (git): [DOC] Stop using `:enddoc:` in rdoc files
- In rdoc files, all documents belong to the top level of each file, and
`:enddoc:` turns off `#document_self` for the entire document in the
current file. This disables cross-references to labels in that file.
Instead use `:stopdoc:` so ... -
12:50 AM Revision 5993d0f5 (git): Add a test case for `__LINE__` assignment in condition warning
-
12:50 AM Revision 6ec4d203 (git): Warn "literal in condition" for `__LINE__`
- Print warning for a code like
```ruby
if __LINE__
end
# => warning: literal in condition
```
01/01/2024
-
11:16 PM Revision 9368782d (git): Use max_cpu when RUBY_MAX_CPU given
-
11:13 PM Revision ad2c95db (git): [DOC] clarify situation for Ractor#send of T_DATA objects.
- For copying, use language like "some" T_DATA objects not supported. This
is because objects like Time are supported, they don't refer to other
objects so it's okay.
For `send(obj, move: true)`, it's currently not supported to move any T... -
11:10 PM Revision 32c4b012 (git): Set Ractor moved object's shape to original object's shape
- Fixes [Bug #19409]
-
09:28 PM Revision e12d4c65 (git): Don't create T_MATCH object if /regexp/.match(string) doesn't match
- Fixes [Bug #20104]
-
05:40 PM Revision 676748ab (git): [ruby/irb] Make show_source resolve top-level constant names
- (https://github.com/ruby/irb/pull/831)
https://github.com/ruby/irb/commit/5843616c78 -
04:14 PM Revision 6934a60a (git): [DOC] Fix alignment of values for Integer#div
-
04:12 PM Revision c0481e58 (git): [DOC] Fix indentation for Integer#div
- The line was indented, which caused it to be treated as a code block.
-
01:57 PM Revision c0e3c3b6 (git): [ruby/irb] Fix display_document params in noautocomplete mode
- (https://github.com/ruby/irb/pull/826)
* Fix display_document params in noautocomplete mode
* Fix wrong preposing and target order in display_document
The fixed wrong-ordered value is not used in RegexpCompletor, so this change does n... -
12:47 PM Revision c149cd3d (git): Roll net-* bundled gems from git to fix CI (#9403)
- - https://github.com/ruby/net-ftp/pull/29
- https://github.com/ruby/net-imap/pull/259
- https://github.com/ruby/net-smtp/pull/75 -
12:31 PM Revision 3e9a612d (git): [DOC] Fix wrong description about Process.waitpid2 (#9401)
-
11:51 AM Revision d3933fc7 (git): [ruby/net-http] Renew test certificates
- The private key is replaced with a public known test key published at
[RFC 9500].
Also lifetime has been extended to 10 years from 4 years.
[RFC 9500]: https://www.rfc-editor.org/rfc/rfc9500.html
https://github.com/ruby/net-http/commi... -
10:58 AM Revision cd411778 (git): [ruby/irb] test_recovery_sigint: Ensure precondition is met
- (https://github.com/ruby/irb/pull/829)
* test_recovery_sigint: Ensure precondition is met
test_recovery_sigint depends on its process has SIG_DEF sigaction for
SIGINT. When its parent process set SIG_IGN which inherits to children,
the... -
10:57 AM Revision 5c81fd68 (git): [ruby/irb] Remove redundant env cleanup in rendering test
- (https://github.com/ruby/irb/pull/827)
https://github.com/ruby/irb/commit/99b0017d75 -
07:43 AM Feature #20105 (Closed): Introduce `IO::Stream` or something similar.
- Ruby's IO class has a general model for streaming IO, including some hidden classes like `IO::generic_readable` and `IO::generic_writable`.
As Ruby's core IO classes evolve, gems like `openssl` (see `OpenSSL::Buffering`) need to be up... -
02:25 AM Revision 997124fc (git): [DOC] Remove extra colon in Hash#default_proc
12/31/2023
-
03:55 PM Revision a19544d1 (git): [DOC] Fix markup
-
03:50 PM Revision 0502df01 (git): [DOC] Fix missing `::` for dl
-
03:49 PM Revision 32f2cb47 (git): [DOC] Use local links
-
03:19 PM Revision 569a06aa (git): [ruby/rdoc] Allow empty name rdoc-ref as a local link
- https://github.com/ruby/rdoc/commit/914a6af137
-
11:52 AM Revision b4adc1bb (git): [ruby/win32ole] [DOC] Fix indent
- https://github.com/ruby/win32ole/commit/76acc979bf
-
09:33 AM Revision 375d1c99 (git): [ruby/win32ole] [DOC] Remove useless comment that is mixed into RDoc
- https://github.com/ruby/win32ole/commit/afceb6814f
-
05:06 AM Misc #17815 (Closed): Snapcraft Ruby plugin
-
01:20 AM Misc #17815: Snapcraft Ruby plugin
- This can be closed. I've implemented a Ruby build plugin on v1 and v2.
-
03:13 AM Revision 0d2ca334 (git): [DOC] Fix link to untrace_var from trace_var
-
01:58 AM Revision 55a81863 (git): [ruby/win32ole] [DOC] Add .document files
- https://github.com/ruby/win32ole/commit/eba2934177