Activity
From 12/17/2022 to 12/23/2022
12/23/2022
-
10:48 PM Revision c3c116f6 (git): [DOC] Document new methods of IO::Buffer and Fiber::Scheduler (#7016)
- Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
-
09:46 PM Misc #19247: Ruby 3.2 documentation problems tracker
- https://github.com/ruby/ruby/pull/7016 `Fiber::Scheduler` and `IO::Buffer` missing methods.
@jeremyevans0 sorry, I tagged you in both, you are usually the quickest to respond, and time is tight 🙏
Next year, I plan to follow the dev... -
07:11 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- peterzhu2118 (Peter Zhu) wrote in #note-12:
> It looks like you're using quite a lot of custom configuration flags
Right, mostly hardening. Which can certainly influence memory layout and what not.
> ...
I think that these are doc... -
06:26 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Thank you for checking the patches and testing different configurations. It looks like you're using quite a lot of custom configuration flags, most of which I'm not too familiar with. I'll look into this in the new year and debug the issue.
-
06:14 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- So far, it seems the key are the compiler flags. Going with default, the test case passes, using Fedora flags, the test case fails. These are hopefully the relevant parts of the log:
~~~
... snip ...
+ CFLAGS='-O2 -flto=auto -ffat... -
05:26 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Patches makes no difference.
-
05:18 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- vo.x (Vit Ondruch) wrote in #note-8:
> peterzhu2118 (Peter Zhu) wrote in #note-7:
> ...
Good news that it works without patches and with default configuration. Now what causes the issue. Let me try. -
04:58 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- peterzhu2118 (Peter Zhu) wrote in #note-7:
> It looks like your build system is patching files in Ruby? If so, could you provide these files and/or look into potentially upstreaming it?
I have certainly tried at times. But let me try... -
03:31 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Thank you for providing the logs, I took a look at it. I noticed these lines:
```Patch #0 (ruby-2.3.0-ruby_version.patch):
+ echo 'Patch #0 (ruby-2.3.0-ruby_version.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
... -
02:01 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Just FTR, this is result on the official builder (will be garbage collected in several days, sorry):
https://koji.fedoraproject.org/koji/taskinfo?taskID=95624219
You can check the build.log for each of the platforms. And it seems t... - 06:52 PM Revision 11ad9a42 (git): Fix missing handling of offset argument in `IO::Buffer` `pread` and `pwrite`. (#7012)
-
06:33 PM Bug #19254: Enabling YJIT configuration option breaks rspec-core test suite
- mame (Yusuke Endoh) wrote in #note-1:
> You mean this test?
> ...
Yes, sorry, forgot to attach the link.
k0kubun (Takashi Kokubun) wrote in #note-2:
> In addition to @mame 's point, can you report how to reproduce the issue by ... -
06:03 PM Bug #19254 (Feedback): Enabling YJIT configuration option breaks rspec-core test suite
- In addition to @mame 's point, can you report how to reproduce the issue by building Ruby from a source or a tarball? e.g.
```
$ git clone --depth=1 https://github.com/ruby/ruby
$ cd ruby
$ ./autogen.sh
$ ./configure --enable-yjit... -
05:59 PM Bug #19254: Enabling YJIT configuration option breaks rspec-core test suite
- You mean this test?
https://github.com/rspec/rspec-core/blob/522b7727d02d9648c090b56fa68bbdc18a21c04d/spec/rspec/core/example_spec.rb#L444-L496
Frankly speaking, this test appears to be completely wrong. MRI's GC is not exact (in t... -
03:20 PM Bug #19254 (Third Party's Issue): Enabling YJIT configuration option breaks rspec-core test suite
- In preparation for Ruby 3.2, we have enabled YJIT in Fedora:
https://src.fedoraproject.org/rpms/ruby/c/3c1be9f9c2c1d8679eebb9a185fefa15baa1bcfc?branch=private-ruby-3.2
Since that moment, rspec-core test suite started to fail (see t... -
06:19 PM Revision af4cd997 (git): sample/trick2022/03-mame/entry.rb: remove trailing spaces
-
06:19 PM Revision a8485291 (git): test/test_trick.rb: Add tests for TRICK 2022 entries
-
06:19 PM Revision e8b01809 (git): sample/trick2022/: adds the top-three entries of TRICK 2022
- See https://github.com/tric/trick2022 for TRICK 2022.
-
06:18 PM Revision 1d3bfd80 (git): MJIT: Export fewer shape functions (#7007)
- 05:24 PM Revision ee607564 (git): Fix backtrace beyond _singtramp on macOS arm64 (#7015)
- * move ptrauth_strip logic into vm_dump.c
* don't use _sigtramp special logic on arm64 -
05:19 PM Feature #17097: `map_min`, `map_max`
- IMHO we should just add `max_of` and `min_of`, like Crystal has.
`map` in the name feels out of place here because this method does not return a new array, it's just execute the block and remember the max/min value returned by the block... -
04:30 AM Feature #17097: `map_min`, `map_max`
- For the sake of naming conventions I would personally lean towards `map_max` to match methods like `filter_map`, and while this does not necessarily extend to _all_ Enumerable methods I would wonder if there's another conversation later ...
-
02:14 AM Feature #17097: `map_min`, `map_max`
- `max_of` method is very elegant! I really want the Ruby version of this method.
For example, I need to write `column_width = @ls_files.map { |ls_file| ls_file.name.size }.max` to determine column width according to the longest file nam... -
04:21 PM Revision 1876cda9 (git): Add tests for compacting shared arrays
-
04:21 PM Revision 7891f940 (git): Don't allow re-embedding frozen arrays
- Frozen arrays should not move from heap allocated to embedded because
frozen arrays could be shared roots for other (shared) arrays. If the
frozen array moves from heap allocated to embedded it would cause issues
since the shared array w... -
04:09 PM Revision d61a4cec (git): Docs: path: option for IO.new
-
04:09 PM Revision c621c614 (git): Docs: Fix problems with Fiber's docs
- * References to Scheduler (was outdated to SchedulerInterface)
* References between new methods (storage, [], []=)
* Storage's call-sequence (rendered confusingly) -
04:09 PM Revision 5c04ff94 (git): Docs: Fix small glitch in GC
-
04:09 PM Revision 64cdf193 (git): Docs: Separate documentation for UnboundMethod#==
-
04:09 PM Revision b3d57fdd (git): Docs: Update Struct docs about keyword initialization
-
04:09 PM Revision 91076b2c (git): Docs: Fix rendering of SyntaxError#path
-
04:07 PM Bug #19255: YJIT: global symbol leakage
- A hack: https://github.com/nobu/ruby/tree/yjit-symbol-leakage
-
03:52 PM Bug #19255 (Closed): YJIT: global symbol leakage
- When YJIT support is enabled, libyjit.a adds thousands leaking global symbols.
With this patch:
```diff
diff --git a/template/Makefile.in b/template/Makefile.in
index 145631386d8..6191bcbeb88 100644
--- a/template/Makefile.in
+++... -
02:48 PM Revision 65920cfc (git): addr2line.c: Strip pointer authentication
- We need to manually strip pointer authentication bits on M1 mac because
libunwind leaks them out.
Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
Co-Authored-By: Yuta Saito <kateinoigakukun@gmail.com> -
02:46 PM Revision 97280faf (git): Add blog post on VWA to NEWS.md [ci skip]
- The link currently 404s but the blog post will be published on Dec 25.
-
12:12 PM Bug #19252: IO::Buffer.pread last argument is always ignored?
- https://github.com/ruby/ruby/pull/7012
-
11:52 AM Bug #19252: IO::Buffer.pread last argument is always ignored?
- It looks like the base pointer is not computed correctly, let me check and fix it.
-
11:33 AM Revision 540b67da (git): test-syntax-suggest is run by check now
-
11:33 AM Revision cae53842 (git): Test syntax_suggest by `make check`
-
11:31 AM Revision 17b63ab6 (git): [ruby/rdoc] Fix fragile tests
- When the temporary path is long enough, the formatter may fold the
path and may hit a hyphen at the end of line, and miscounted.
https://github.com/ruby/rdoc/commit/5f46479543 -
10:37 AM Revision edb83dc3 (git): Revert the additional change from openssl-3.1.0
- Revert "[ruby/openssl] pkey/ec: constify"
This reverts commit d2cd903c85f38f42c6aefc6d97a1558f74d8d9db. -
10:36 AM Revision eb8d4d7b (git): Revert the additional changes from net-http-0.3.2
-
10:33 AM Revision d40064d1 (git): Revert the accidentally commit from erb-4.0.2
- Revert "[ruby/erb] Use a ruby-lang alias on spec.email"
This reverts commit fa64889abbad727d31bb927604d87679825dcd37. -
09:52 AM Bug #19253 (Closed): `Time` objects can't be efficiently and precisely serialized without Marshal
- Ok, I suppose the `#zone` isn't that important.
Thank you @mame. -
09:12 AM Bug #19253: `Time` objects can't be efficiently and precisely serialized without Marshal
- Interesting, `to_r` is what we were currently using: https://github.com/Shopify/paquito/pull/28.
The only part missing is the `zone` property:
```ruby
>> t.zone
=> "CET"
> ...
=> nil
```
It probably isn't a huge deal as it's... -
09:07 AM Bug #19253: `Time` objects can't be efficiently and precisely serialized without Marshal
- How about:
```
irb(main):001:0> t = Time.now
=> 2022-12-19 16:24:11.749470645 +0900
irb(main):002:0> Time.at(t.to_r, in: t.utc_offset)
=> 2022-12-19 16:24:11.749470645 +0900
irb(main):003:0> Time.at(t.to_r, in: t.utc_offset) == t... -
08:49 AM Bug #19253 (Closed): `Time` objects can't be efficiently and precisely serialized without Marshal
- ### Context
In our application we try to avoid to use `Marshal` for serializing cache payloads because we want to be strict on what types we allow to be cached. ([Full context in this post](https://shopify.engineering/caching-without-... -
09:46 AM Misc #19240: DevMeeting-2023-01-19
- - [Feature #19245] `Array#pack` should have a strict mode (byroot)
- Currently it silently modulo the arguments if they are too big for the type.
- This can can lead to silent data loss.
- I believe `pack` need a "strict mode" that... -
08:45 AM Revision c5eefb7f (git): darwin: resolve rb symbols from ext by `-flat_namespace` to see libruby transitively
- This repairs the assumption, which many fat-gem maintainer expect, "An
extension built with --disable-shared Ruby is loadable from
--enable-shared Ruby".
By default all references resolved to a dynamic library use "two-level
namespace",... -
07:57 AM Revision 9c1f03a3 (git): Debug for zlinux CI [ci skip]
-
06:30 AM Revision 970b26fb (git): NEWS.md: add 2 functions for debuggers [ci skip]
- 05:49 AM Revision 0d75d403 (git): Update bundled gems list at 2192f2e6bc361396f6a81ead955a0d [ci skip]
-
05:48 AM Revision 2192f2e6 (git): Update bundled_gems for net-imap
-
05:28 AM Bug #11064: #singleton_methods for objects with special singleton_class returns an empty array
- Thank you, Matz for answering my question.
> Singleton classes are in principle only accessed using the singleton_class method or the singleton class notation.
Since we already have the following results,
```ruby
nil.singleton_class #... -
02:37 AM Bug #11064: #singleton_methods for objects with special singleton_class returns an empty array
- @sawa Singleton classes are in principle only accessed using the `singleton_class` method or the singleton class notation. Implementation wise, FL_SINGLETON is set for singleton classes. Neither is true for NilClass (nor FalseClass nor T...
-
05:07 AM Revision 4aeea3cc (git): Removed the needless test guard for syntax_suggest.
- It's resolved by https://github.com/ruby/ruby/commit/5bb43aeb890657ea586e3fabbf763e5b5670ffd7
-
04:05 AM Revision bf3b3765 (git): [ruby/syntax_suggest] Remove debug print
- https://github.com/ruby/syntax_suggest/commit/4d53d31bc5
-
04:05 AM Revision 5bb43aeb (git): [ruby/syntax_suggest] Should not hardcode ruby name
- https://github.com/ruby/syntax_suggest/commit/0d5201b24d
- 03:54 AM Revision 4d05a96d (git): Bump actions/checkout from 3.1.0 to 3.2.0
- Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](http... - 02:47 AM Revision cc35d3cc (git): Bump actions/cache from 3.0.11 to 3.2.0
- Bumps [actions/cache](https://github.com/actions/cache) from 3.0.11 to 3.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.c... -
02:42 AM Revision d2cd903c (git): [ruby/openssl] pkey/ec: constify
- https://github.com/ruby/openssl/commit/6fb3499a7b
-
02:39 AM Bug #19113: Inconsistency in retention of compare_by_identity flag in Hash methods
- I agree with @jeremyevans0 too.
Matz.
-
02:12 AM Revision d2847009 (git): [DOC] Fix most of Range#cover? marked as verbatim
-
02:05 AM Revision 792c50e9 (git): [ruby/rdoc] Clean up home directories for each test
- https://github.com/ruby/rdoc/commit/f067c174da
- 01:21 AM Revision def8ad40 (git): Bump octokit/request-action
- Bumps [octokit/request-action](https://github.com/octokit/request-action) from 52ce92ce3185e00e2425f043c3e9509121929aea to 8cd8f5d6738d122de9213dc5cf87e116c40f5fae.
- [Release notes](https://github.com/octokit/request-action/releases)
- ... - 01:13 AM Revision 9c447293 (git): Bump github/codeql-action from 2.1.35 to 2.1.37
- Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.35 to 2.1.37.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md... - 01:01 AM Revision fe2c996a (git): Update default gems list at 2fb6b391423fbefc4a542765727a48 [ci skip]
- 01:00 AM Revision 2fb6b391 (git): Bump ruby/setup-ruby from 1.126.0 to 1.128.0
- Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.126.0 to 1.128.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](https://github.com/ruby/setup-ruby/compare/c7079efafd956afb5d823e8999c2506e10... - 12:52 AM Revision 5507b32d (git): Update default gems list at 2d2baaf2f46d447f64f4f8fd7cfa3a [ci skip]
-
12:51 AM Revision 3ade7139 (git): Bump version to 1.6.2
-
12:51 AM Revision ba342088 (git): Bump up Racc parser version
- 12:46 AM Revision 6438f3ca (git): [ruby/racc] Removed old originalId in comment
- https://github.com/ruby/racc/commit/1dfbef8e99
-
12:39 AM Revision 2d2baaf2 (git): [ruby/openssl] Ruby/OpenSSL 3.1.0
- https://github.com/ruby/openssl/commit/c2f7d775c6
-
12:39 AM Revision a7783059 (git): [ruby/openssl] Ruby/OpenSSL 3.0.2
- https://github.com/ruby/openssl/commit/48b79333e0
-
12:39 AM Revision 046aadb8 (git): [ruby/openssl] Ruby/OpenSSL 2.2.3
- https://github.com/ruby/openssl/commit/04acccd692
-
12:39 AM Revision 75e7b85e (git): [ruby/openssl] test/openssl/test_pkey.rb: allow failures in test_s_generate_parameters
- The root cause has been fixed by OpenSSL 3.0.6, but Ubuntu 22.04's
OpenSSL package has not backported the patch yet.
Reference: https://github.com/ruby/openssl/issues/492
https://github.com/ruby/openssl/commit/f2e2a5e5ed -
12:39 AM Revision 0e11d2c3 (git): [ruby/openssl] pkey/ec: check private key validity with OpenSSL 3
- The behavior of EVP_PKEY_public_check changed between OpenSSL 1.1.1
and 3.0 so that it no longer validates the private key. Instead, private
keys can be validated through EVP_PKEY_private_check and
EVP_PKEY_pairwise_check.
[ky: simplifi... -
12:39 AM Revision 782777a8 (git): [ruby/openssl] Undefine `OpenSSL::SSL` for no socket platforms
- This fixes a linkage error about `ossl_ssl_type` on platforms which do
not have socket, like WASI.
Even before this patch, some items are disabled under `OPENSSL_NO_SOCK` since
https://github.com/ruby/ruby/commit/ee22fad45d394818690c4a7... -
12:39 AM Revision e6ca6443 (git): [ruby/openssl] ssl: remove OpenSSL::ExtConfig
- This module was introduced in 2015 for internal use within this library.
Neither of the two constants in it is used anymore. I don't think we
will be adding a new constant in the foreseeable future, either.
OPENSSL_NO_SOCK is unused sin... -
12:39 AM Revision a4b4997c (git): [ruby/openssl] test/openssl/test_ssl.rb: do not run SSL tests if not available
- https://github.com/ruby/openssl/commit/a3d230d4e0
-
12:39 AM Revision dd6f3276 (git): [ruby/openssl] ssl: disable NPN support on LibreSSL
- As noted in commit https://github.com/ruby/openssl/commit/a2ed156cc9f1 ("test/test_ssl: do not run NPN tests
for LibreSSL >= 2.6.1", 2017-08-13), NPN is known not to work properly
on LibreSSL.
Disable NPN support on LibreSSL, whether OP... -
12:39 AM Revision d6c16dd3 (git): [ruby/openssl] ssl: update TLS1_3_VERSION workaround for older LibreSSL versions
- The macro is now defined by default in LibreSSL 3.4+. Let's document it
for future readers.
https://github.com/ruby/openssl/commit/935698e9f9 -
12:39 AM Revision 7c073cc1 (git): [ruby/openssl] test/openssl/test_asn1.rb: remove pend for unsupported LibreSSL versions
- Commit https://github.com/ruby/openssl/commit/af895bc5596b ("asn1: avoid truncating OID in
OpenSSL::ASN1::ObjectId#oid", 2016-12-15) added this test case.
The OBJ_obj2txt() issue was fixed by LibreSSL 2.5.1 (released in 2017)
and is no ... -
12:39 AM Revision 5591e493 (git): [ruby/openssl] test/openssl/test_asn1.rb: skip failing tests on LibreSSL 3.6.0
- LibreSSL 3.6.0 expects the seconds part in UTCTime and GeneralizedTime
to be always present. LibreSSL 3.6.0 release note [1] says:
> - The ASN.1 time parser has been refactored and rewritten using CBS.
> ...
[1] https://ftp.openbsd.org/... -
12:39 AM Revision 6df4d272 (git): [ruby/openssl] Suppress deprecation warnings by OpenSSL 3
- https://github.com/ruby/openssl/commit/91657a7924
-
12:39 AM Revision d7d1bb3e (git): [ruby/openssl] Constify when building with OpenSSL 3
- https://github.com/ruby/openssl/commit/c0023822fe
-
12:39 AM Revision 2bc7eac8 (git): [ruby/openssl] Check for functions with arguments
- https://github.com/ruby/openssl/commit/b67aaf925d
-
12:39 AM Revision ca7a6b15 (git): [ruby/openssl] pkey/ec: fix ossl_raise() calls using cEC_POINT instead of eEC_POINT
- https://github.com/ruby/openssl/commit/b2e9f5e132
-
12:39 AM Revision 13137236 (git): [ruby/openssl] raise when EC_POINT_cmp or EC_GROUP_cmp error instead of returning true
- https://github.com/ruby/openssl/commit/e1e8f3cebe
- 12:35 AM Revision f17448e8 (git): Update bundled gems list at fe2bcd352899cd402091c2815846d1 [ci skip]
-
12:35 AM Revision fe2bcd35 (git): Check `added` for the second sub! properly
- Even if the first sub! modifies `news`, when `added` is empty, it always
ended up skipping `File.write("NEWS.md", news)` because of the `next`.
This commit fixes the problem. - 12:32 AM Revision 31b29aad (git): Bump ossf/scorecard-action from 2.0.6 to 2.1.2
- Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.0.6 to 2.1.2.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md...
12/22/2022
-
11:32 PM Revision 7d700a9f (git): debug.gem v1.7.1
- 11:23 PM Revision 6ae4fe2b (git): Bump necojackarc/auto-request-review from 0.8.0 to 0.10.0 (#7002)
- Bumps [necojackarc/auto-request-review](https://github.com/necojackarc/auto-request-review) from 0.8.0 to 0.10.0.
- [Release notes](https://github.com/necojackarc/auto-request-review/releases)
- [Commits](https://github.com/necojackarc/a... -
11:06 PM Revision c566c968 (git): Hide RubyVM::Shape's interface as much as possible [ci skip]
- RubyVM::Shape is usually not available (you need SHAPE_DEBUG macro,
which is not defined by default). So it seems confusing to leave
RubyVM::Shape in the document.
This hides only method definitions because, well, I can't find a way to
... -
10:43 PM Revision 033e19da (git): Document the public interface of YJIT [ci skip]
-
10:30 PM Revision 0b2aea86 (git): Polish the public docs for MJIT [ci skip]
- Now every private interface is cleaned up, and the public interface is
documented. -
10:17 PM Bug #19252 (Closed): IO::Buffer.pread last argument is always ignored?
- I am trying to document new `IO::Buffer#pread` and `#pwrite` methods.
According to what I can guess from code and tests, this code:
```ruby
IO::Buffer.for('teststring') do |buffer|
buffer.pread(File.open('/dev/urandom', 'rb'), 0... -
09:39 PM Revision cce6a30f (git): Avoid calling it a stdlib [ci skip]
- It technically is, but it's probably just confusing for most people.
-
09:34 PM Misc #19247: Ruby 3.2 documentation problems tracker
- https://github.com/ruby/ruby/pull/6996 adds missing AST keyword arguments docs.
-
09:06 PM Bug #18797 (Closed): Third argument to Regexp.new is a bit broken
- Applied in changeset commit:git|7e8fa06022a9e412e3f8e6c8b6f0ba1909f648d5.
----------
Always issue deprecation warning when calling Regexp.new with 3rd positional argument
Previously, only certain values of the 3rd argument triggered a
... -
09:06 PM Revision dc8c5baf (git): Clean intermediate source file in `TestMJIT#test_jit_failure` (#6994)
-
08:43 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Thanks for running the script! From the output it looks like the read barrier is not being triggered, so the objects aren't being moved back. It also looks like the objects are being moved but just not upwards. I'm really not sure what's...
-
09:17 AM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- peterzhu2118 (Peter Zhu) wrote in #note-1:
> Thank you for this bug report. Could you run this script and paste the output? It will help me to debug this issue.
~~~
$ make -C redhat-linux-build/ test-all TESTS="../test_19248.rb"
ma... -
07:50 PM Revision 7e8fa060 (git): Always issue deprecation warning when calling Regexp.new with 3rd positional argument
- Previously, only certain values of the 3rd argument triggered a
deprecation warning.
First step for fix for bug #18797. Support for the 3rd argument
will be removed after the release of Ruby 3.2.
Fix minor fallout discovered by the te... -
07:35 PM Revision 9dcee2d8 (git): Remove MJIT's private constants from docs [ci skip]
-
07:17 PM Revision ad1ce2b7 (git): Remove mjit.md from public documentation [ci skip]
- It's for CRuby developers. Not meant to be a documentation for users.
Creating a directory seems like the easiest way to exclude this from
doc/.document. -
07:15 PM Revision 1679ba61 (git): Update MJIT documentation [ci skip]
-
06:16 PM Revision 4f73de67 (git): Fix typo in array.c
- We should be using the size of RArray and not RString for arrays.
-
06:15 PM Revision 98675ac0 (git): [DOC] IO#read doesn't always read in binary mode
- When `maxlen` is `nil`, it uses the data mode of the stream.
For example in the following:
```ruby
File.binwrite("a.txt", "\r\n\r")
p File.open("a.txt", "rt").read # "\n\n"
p File.open("a.txt", "rt").read(3) # "\r\n\r"
```
Note, thi... -
06:10 PM Revision bba2bfc9 (git): [DOC] encodings.rdoc: universal_newline reacts to \r
- It wasn't clear that the mode also translates "\r" to "\n".
-
03:32 PM Revision 95a1d1fd (git): addr2line.c: Support DW_FORM_rnglistx
-
03:32 PM Revision 53c82a6c (git): addr2line.c: Implement DW_AT_*_base
- ... and add code to parse the sections of .debug_addr_base and
.debug_rnglists_base. -
03:32 PM Revision 515f816b (git): addr2line.c: Support DW_FORM_strx* forms
-
03:32 PM Revision 5234f99b (git): addr2line.c: Support DW_FORM_addrx* forms
- ... and add VAL_addr value type
-
03:32 PM Revision 303e1169 (git): addr2line.c: Keep .debug_str_offsets and .debug_addr sections as well
- clang generates DWARF with the sections
-
02:23 PM Revision d7388f72 (git): Fix buffer overrun with auto-compact for shapes
- The following script crashes:
```ruby
GC.auto_compact = true
GC.stress = true
class Foo
def initialize
@a = @b = @c = 0
end
def add_ivars
@d = @e = @f = 0
end
end
ary = 1_000.times.map { Foo.new }
ary.each { |f| f.add... -
11:37 AM Revision d1d61cab (git): addr2line.c: Fix another indexing bug
-
11:28 AM Revision ebd6b5d8 (git): addr2line.c: Fix indexing bug
-
10:27 AM Revision e61e4ae6 (git): Refactor `reg_extract_args` to return regexp if given
-
09:57 AM Revision 78826ad4 (git): addr2info.c: Make it work with --enable-yjit
- Background: GCC 12 generates DWARF 5 with .debug_rnglists, while rustc
generates DWARF 4 with .debug_ranges.
The previous logic always used .debug_rnglists if there is the section.
However, we need to refer .debug_ranges for DWARF 4.
T... -
09:57 AM Revision c827d724 (git): addr2line.c: Support "Line Number Program Header" in DWARF 5
-
09:57 AM Revision 2445a4c5 (git): addr2line.c: Keep .debug_line_str section as well
- ... and properly support DW_FORM_line_strp.
This is a prepartion to support DWARF 5. - 08:49 AM Revision ed81d0f5 (git): Update default gems list at fe7190a8c19bb56ca0aefed368402a [ci skip]
-
08:48 AM Revision fe7190a8 (git): [ruby/optparse] Bump version to 0.3.1
- https://github.com/ruby/optparse/commit/2a1e157ae1
-
08:19 AM Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
- I have opened #19251 to discuss the followup.
-
06:27 AM Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
- mame (Yusuke Endoh) wrote in #note-7:
> We need to test our logic to handle leap seconds, etc.
> ...
I understand your concern, but the changes in [GH-6990] should be unrelated to leap seconds.
[GH-6990]: https://github.com/ruby/rub... -
06:00 AM Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
- mame (Yusuke Endoh) wrote in #note-7:
> I disagree with simply erasing the tests depending on tzdata.
> ...
I agree. In particular, this test was for 1981. Data about 1981 should only change very infrequently, essentially only when a... -
04:53 AM Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
- I disagree with simply erasing the tests depending on tzdata.
We need to test our logic to handle leap seconds, etc.
If we remove the dependency on tzdata, I think we need to mock tzdata and test our logic.
But we don't have to go... -
08:19 AM Bug #19251 (Open): Limit amount of test failures due to updates of tzdata
- It seems that recently, Ruby test suite is broken ~ twice a year due to changes in tzdata. I am not sure how detailed the test suite needs to be to have the right amount of test coverage, but it would be nice if Ruby developers had more ...
-
07:20 AM Revision 298176f2 (git): NEWS.md: Update power_assert version
-
06:51 AM Revision 454c0072 (git): Share argument parsing in `Regexp#initialize` and `Regexp.linear_time?`
-
06:46 AM Misc #19250 (Closed): The require path of MJIT
- Applied in changeset commit:git|bb4cbd0803c3297ad036008adc7a01159ce44e1e.
----------
Put RubyVM::MJIT::Compiler under ruby_vm directory (#6989)
[Misc #19250] -
06:46 AM Revision bb4cbd08 (git): Put RubyVM::MJIT::Compiler under ruby_vm directory (#6989)
- [Misc #19250]
-
06:12 AM Revision 43f4093a (git): Adjust style [ci skip]
-
06:02 AM Revision af0ea88b (git): Fix link [ci skip]
-
05:49 AM Revision 186b5c00 (git): Revert "Update bundled gems list at 2022-12-22"
- This reverts commit 89a66f20d8701f30f3d9952ae62a02fdefcd166b.
-
05:05 AM Revision 1e193c78 (git): Clarify NEWS entry for Bug #16889
-
05:02 AM Revision 4213f425 (git): Make sure TracePoint#binding returns nil for c_call/c_return events
- This makes sure the method returns nil for these events, as
described in NEWS, even if the TracePoint could create a binding. -
04:37 AM Revision ae455a12 (git): [DOC] Update TracePoint.allow_reentry docs
- Adjust call-seq to mention block, and add examples
and explanations. -
04:24 AM Bug #19249: Error running '__rvm_make -j8'
- You should file this issue to https://github.com/rvm/rvm.
-
04:17 AM Bug #19249: Error running '__rvm_make -j8'
- jeremyevans0 (Jeremy Evans) wrote in #note-1:
> Ruby 2.6 is no longer supported. Please try updating to Ruby 3.0 or 3.1.
jeremyevans0 (Jeremy Evans) wrote in #note-1:
> ...
I don't think this is good response.. expected atleast... -
04:05 AM Revision b7bb14b9 (git): Update documentation about Time#deconstruct_keys
-
03:48 AM Revision 4e6c44e2 (git): [DOC] Fix the paragraph about PRNG update
-
03:33 AM Misc #19240: DevMeeting-2023-01-19
- * [Feature #13890] Allow a regexp as an argument to 'count'
* Recent interest, should be easy to implement -
03:27 AM Revision e3847f39 (git): Added the missing word with 1e1d7047fcc
-
03:25 AM Revision 1e1d7047 (git): Introduce GH releases for default gems and bundled gems
- 02:34 AM Revision 89a66f20 (git): Update bundled gems list at 2022-12-22
-
02:12 AM Revision 5b85e404 (git): Update power_assert to 2.0.3
-
01:41 AM Revision 5b76a8ed (git): Introduce some notable IRB features in NEWS [ci skip]
-
12:56 AM Revision 67ef3cd3 (git): Skip a flaky Ractor test for mswin
-
12:46 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
- Thank you @matz and @naruse. I hate that this ended up being a last-minute change, but it seemed to be little risk adding a method to a new interface and the benefit seemed to greatly outweigh the risk. Otherwise, I would not have asked ...
-
12:32 AM Feature #19000 (Closed): Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
- Applied in changeset commit:git|99cee85775bc5656b942bf4e1b0568a8f40addcd.
----------
Add copy with changes functionality for Data objects (#6766)
Implements [Feature #19000]
This commit adds copy with changes functionality for `Data` ... -
12:23 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
- I'm also ok to merge!
This will ship as a part of Ruby 3.2! -
12:45 AM Revision 25371820 (git): Make it clear that it doesn't update the receiver [ci skip]
-
12:44 AM Revision 4e6b4cce (git): Add Data#with to examples in the NEWS [ci skip]
-
12:27 AM Revision 99cee857 (git): Add copy with changes functionality for Data objects (#6766)
- Implements [Feature #19000]
This commit adds copy with changes functionality for `Data` objects
using a new method `Data#with`.
Since Data objects are immutable, the only way to change them is by
creating a copy. This PR adds a `with` ...
12/21/2022
-
11:39 PM Misc #19250: The require path of MJIT
- No problem. Accepted.
Matz.
-
09:18 PM Misc #19250 (Closed): The require path of MJIT
- ## Background
Since Ruby 3.2, MJIT is written in Ruby [Misc #18968]. We made it a `require`-able library instead of a builtin/prebuilt ISeq so that it will never be an extra overhead when MJIT is disabled. It's loaded with `require "mji... -
11:37 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
- `with` seems slightly better than other candidates. `Data` is (or can be considered as) a value object without identity. So names with identity implication (`dup`, `copy`, `clone`) are not ideal. I like `update` but I understand @ko1's c...
-
09:53 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- eightbitraptor (Matthew Valentine-House) wrote in #note-2:
> could you let us know what architecture this is failing on for you, is it consistent or intermittent?
It was x86_64. And I hit the issue for the first build run.
I did n... -
03:30 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- vo.x (Vit Ondruch) wrote:
> Testing on Fedora Rawhide with commit:git|6af6857ecf, I observe the following error:
> ...
Hey. I have been unable to replicate this test failure on both my development environment, which is Fedora 37, or a to... -
02:56 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Thank you for this bug report. Could you run this script and paste the output? It will help me to debug this issue.
```
require "objspace"
class Foo
def add_ivars
10.times do |i|
instance_variable_set("@foo" + i.to_... -
02:42 PM Bug #19248 (Closed): TestGCCompact#test_moving_objects_between_size_pools test failure
- Testing on Fedora Rawhide with commit:git|6af6857ecf, I observe the following error:
~~~
1) Error:
TestGCCompact#test_moving_objects_between_size_pools:
NoMethodError: undefined method `>=' for nil:NilClass
/builddir/build/B... -
08:28 PM Misc #19247: Ruby 3.2 documentation problems tracker
- Just discovered one more: [IO#Open Options](https://docs.ruby-lang.org/en/master/IO.html#class-IO-label-Open+Options) don't mention `path:`.
-
08:17 PM Misc #19247: Ruby 3.2 documentation problems tracker
- https://github.com/ruby/ruby/pull/6985 Fixes:
* Fiber
* SyntaxError
* Struct
* Time
* UnboundMethod
* GC
I plan to do at least two more before the release:
* One documenting all the changes in `Fiber::Scheduler` and `IOBuffer`
... -
08:04 PM Feature #13890: Allow a regexp as an argument to 'count', to count more interesting things than single characters
- I'd love to have this feature. A `str.count(regexp)` is something I see folk trying fairly often. A `str.count(regexp)` also avoids the intermediary Array of `str.scan(regexp).size` or the back bending with `str.enum_for(:scan, regexp).c...
-
03:53 PM Bug #19249 (Closed): Error running '__rvm_make -j8'
- Ruby 2.6 is no longer supported. Please try updating to Ruby 3.0 or 3.1.
-
03:46 PM Bug #19249 (Closed): Error running '__rvm_make -j8'
- Hi
When I am trying to install rvm install 2.6 which is trying to install 2.6.6.
Error:
ruby-2.6.6 - #post-configuration - please wait
ruby-2.6.6 - #compiling - please wait
Error running '__rvm_make -j8',
please read /Users/so... -
03:34 PM Revision 398aaed2 (git): Fix the case trailer without newline
- cf0b413ef8b794ef6e7436f22fd5a998050dada9
-
03:25 PM Bug #18133 (Closed): LTO: TestGCCompact#test_ast_compacts segfaults on i686
-
03:01 PM Revision 98fbebf1 (git): [DOC] Fix typo
-
02:17 PM Revision 172dc98c (git): [ruby/net-http] Adding links to references
- https://github.com/ruby/net-http/commit/71bae5c0fe
-
02:17 PM Revision 276b84f8 (git): [ruby/net-http] Adding links to references
- https://github.com/ruby/net-http/commit/e4df80f299
-
02:17 PM Revision 86f0128e (git): [ruby/net-http] Adding links to references
- https://github.com/ruby/net-http/commit/df5a554fa8
-
02:09 PM Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
- nobu (Nobuyoshi Nakada) wrote in #note-2:
> coolo (Stephan Kulow) wrote:
> ...
Was this proposal forgotten or is this going to land? -
01:41 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
- A good use-case for `Fiber#storage=`: https://github.com/ruby-concurrency/concurrent-ruby/issues/456#issuecomment-1361325461
-
01:11 PM Revision 6af6857e (git): Set up RBS_SKIP_TESTS (#6862)
- * Set up RBS_SKIP_TESTS
-
11:48 AM Revision befc99c0 (git): [DOC] tool/update-NEWS-refs.rb: Align footnotes
-
11:48 AM Revision c7c006cc (git): [DOC] tool/update-NEWS-refs.rb: Remove extra brackets
- Surrounding with brackets is just a convention for the bugs tracker
links. - 10:13 AM Revision cc4c28ec (git): Make Enumerartor.product return nil when called with a block
-
09:57 AM Revision 684fa46e (git): Removed empty section
-
09:57 AM Revision e894ff5e (git): Update bundled_gems
- 09:19 AM Revision 308ccbae (git): Make product consistently yield an array of N elements instead of N arguments
- Inconsistency pointed out by @mame:
```
>> Enumerator.product([1], [2], [3]).to_a
=> [[1, 2, 3]]
> ...
=> [[1, 2]]
>> Enumerator.product([1]).to_a
=> [1]
> ...
=> [nil]
```
Got fixed as follows:
```
>> Enumerator.product([1], [2], [3]... -
06:18 AM Revision 1a244421 (git): test/socket/test_addrinfo.rb: Suppress Errno::EACCES on Windows
-
05:34 AM Revision 9f42ee3e (git): [DOC] Fix formatting
-
05:28 AM Revision 1e989c49 (git): MJIT: Refactor Compiler#cast_offset (#6967)
- Subtract max value from offset when sign bit is set, without string operations.
-
05:09 AM Revision 502ca37d (git): [ruby/optparse] The encoding argument of `Regexp.new` has been ignored since 1.9
- https://github.com/ruby/optparse/commit/766f567405
-
02:19 AM Revision afd46429 (git): tool/m4/ruby_wasm_tools.m4: force passing WASI_SDK_PATH when building for wasi
- Make the WASI_SDK_PATH variable mandatory when building for wasi host.
This requirement prevents developers from being stuck due to unfriendly
configuration's error message. -
12:48 AM Revision 2b96119f (git): [DOC] fix unintentional verbatim
-
12:40 AM Revision 47988e63 (git): test_readline#test_without_tty: Use EnvUtil.rubybin
- `ruby` is not always available in certain build environments and
configure options. Choose appropriate command line using EnvUtil.
12/20/2022
- 11:20 PM Revision 2c3475d9 (git): correct typo [ci skip]
-
10:05 PM Revision 33debffd (git): Use "Fiber storage variables" consistently
-
10:05 PM Revision 4495dea1 (git): Improve documentation for fiber-scoped variables
- * Especially around Enumerator.
-
10:02 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
- **Status update**
@alanwu and I reworked the PR at https://github.com/ruby/ruby/pull/6766 to ensure the following:
1. Calls to `.with` with no arguments is valid and returns the receiver as-is. As @eregon said, there is no way to d... -
04:27 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
- k0kubun (Takashi Kokubun) wrote in #note-37:
> +1. I'm not sure if it's possible to distinguish them in Ruby, but ideally `data.with` or `data.with()` should be rejected even if we accept `data.with(**changes)` when `changes` are empty.
... -
07:13 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
- Summary of the discussion so far:
* Interface
* `data.xxx(foo: bar)`, making `data.xxx` (no argument) an error
* Matz #note-27 is in favor of this.
* This might make dynamic use of this API harder #note-29
* `data.xxx(foo: ... -
09:33 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
- I had call with @ioquatix, we agreed the changes of https://github.com/ruby/ruby/pull/6972 are OK.
It's unclear if Fiber#storage and Fiber#storage= need to be allowed to be called for a different Fiber of the same thread (e.g., might ... -
06:22 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
- Eregon (Benoit Daloze) wrote in #note-30:
> Also this is a necessary condition to avoid synchronization on Fiber[]/Fiber[]= for non-GIL Rubies.
Correction: that is not the case since at least storage cannot be shared between threads.
B... -
05:31 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
- Fixes for the above are in https://github.com/ruby/ruby/pull/6972
> Also there is no experimental warning or anything as matz has asked.
There is some mention in the docs, but I think that's not enough, especially for `Fiber#storag... -
04:49 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
- matz (Yukihiro Matsumoto) wrote in #note-22:
> (4) Fiber.new(...,storage: hash|true|false|nil) - accepted, but true/false should be experimental
> ...
`false` is a violation of everything we discussed (with @byroot etc).
It means no m... -
02:53 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
- for the sake of thoroughness the nodejs one above was inspired by .Net https://learn.microsoft.com/en-us/dotnet/api/system.threading.asynclocal-1?view=net-7.0
-
01:42 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
- This is really nice for some use cases, and I was planning to propose basically exactly what @ioquatix proposed here to tackle these.
One example: we create context objects that allow us to track what happens across a given HTTP reque... -
08:59 PM Feature #19245 (Open): Strict mode for Array#pack that doesn't silently truncate numbers that are too large for the given directive
-
06:32 PM Feature #19245 (Closed): Strict mode for Array#pack that doesn't silently truncate numbers that are too large for the given directive - Applied in changeset commit:git|88040063d0ec8aa64e0de2a3afae7286ec53bfdb.
----------
Array#pack: document silent truncation
Ref: [Feature #19245]
At the very least this behavior should be documented. -
12:30 PM Feature #19245: Strict mode for Array#pack that doesn't silently truncate numbers that are too large for the given directive
- Interesting that the `setbyte` conclusion was to implicitly modulo.
Whereas `Integer#chr` does raise `RangeError`:
```ruby
>> 256.chr
in `chr': 256 out of char range (RangeError)
```
-
12:10 PM Feature #19245: Strict mode for Array#pack that doesn't silently truncate numbers that are too large for the given directive
- FWIW, #15460 was another discussion about "implicit modulo".
I'm of the opinion it's better to error there and I think this behavior is rarely if ever wanted.
FFI::Pointer does raise for out-of-bounds integers, and that feels very si... -
10:26 AM Feature #19245: Strict mode for Array#pack that doesn't silently truncate numbers that are too large for the given directive
- > The word “specified” makes confusion.
Apologies.
> ...
Indeed. If anything it's the version that silently truncate that would be the "more dangerous" version of it, which is usually what `!` suffix tend to mean in ruby-core. But ... -
09:47 AM Feature #19245: Strict mode for Array#pack that doesn't silently truncate numbers that are too large for the given directive
- byroot (Jean Boussier) wrote:
> This is specified:
Note that “ruby-spec” is not the specification of ruby.
The word “specified” makes confusion.
> ...
Usually we don’t add `!` for stricter behavior.
-
08:26 AM Feature #19245: Strict mode for Array#pack that doesn't silently truncate numbers that are too large for the given directive
- In the meantime I'd like to document this before we release 3.2 https://github.com/ruby/ruby/pull/6969
-
08:10 AM Feature #19245 (Open): Strict mode for Array#pack that doesn't silently truncate numbers that are too large for the given directive
- ```ruby
>> [256].pack("C").unpack1("C")
=> 0
> ...
=> 1
```
This is specified:
```ruby
it "encodes the least significant 32 bits of a negative number" do
[ [[-0x0000_0021], "\xdf\xff\xff\xff"],
[[-0x0000_4321], "... -
08:18 PM Revision 39e70eef (git): [DOC] Fix formatting for GC.compact
-
08:16 PM Revision 9f4472ca (git): [DOC] Escape all usages of GC
- RDoc was making every usage of the word "GC" link to the page for GC
(which is the same page). -
08:09 PM Revision 63fe03aa (git): [DOC] Fix call-seq for GC methods
- RDoc parses the last arrow in the call-seq as the arrow for the return
type. It was getting confused over the arrow in the hash. -
08:07 PM Revision 790b3f7b (git): [DOC] Fix formatting for GC#latest_gc_info
-
08:06 PM Revision ae539868 (git): [DOC] Fix formatting for GC#latest_compact_info
-
06:57 PM Misc #19247 (Closed): Ruby 3.2 documentation problems tracker
- Bugs and problems:
* [Fiber](https://docs.ruby-lang.org/en/master/Fiber.html):
* Formatting glitches for `::[]`, `::[]=`, `::storage`, `::storage=` (no references to companion methods)
* Also there are some rendering glitches in... -
06:32 PM Revision 0efa36ac (git): Ensure Fiber storage is only accessed from the Fiber it belongs to
-
06:32 PM Revision d557f179 (git): Use an experimental warning for Fiber#storage=
-
06:32 PM Revision 45175962 (git): Never use the storage of another Fiber, that violates the whole design
- * See https://bugs.ruby-lang.org/issues/19078#note-30
-
06:17 PM Revision 88040063 (git): Array#pack: document silent truncation
- Ref: [Feature #19245]
At the very least this behavior should be documented. - 05:08 PM Revision 3ded50a3 (git): Update default gems list at b2bf5d237ba5f2d1ebaf12d164064c [ci skip]
-
05:07 PM Revision b2bf5d23 (git): [ruby/irb] Version 1.6.2
- https://github.com/ruby/irb/commit/a8ea9963c6
-
05:07 PM Revision cf0b413e (git): [ruby/irb] Respect DLEXT to force-load debug.so
- (https://github.com/ruby/irb/pull/481)
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> -
04:53 PM Feature #19193: drop DOS TEXT mode support
- > The most important reason we are keeping "text mode" at reading is backward interoperability for old files.
agree too.
Interoperability with the unix environment is becoming increasingly important.
So, when writing CRLF newline ... -
04:32 PM Revision 80e56d14 (git): Fix thrashing of major GC when size pool is small
- If a size pooll is small, then `min_free_slots < heap_init_slots` is true.
This means that min_free_slots will be set to heap_init_slots. This
causes `swept_slots < min_free_slots` to be true in a later if statement.
The if statement cou... -
03:50 PM Revision c72a748b (git): Win32: add dependency of revision.h
- When out-of-place build, and revision.h does not exist in the source
directory, `VPATH` fallbacks to the current directory. -
03:10 PM Revision 25635bbc (git): Add links to Wasm port resources to NEWS.md
-
02:23 PM Feature #19191: Implicit console input transcoding is more desirable
- Not sure if this is appropriate for this topic,
Consider the case where UTF-16 reading from the console will be supported in the future.
For explicit encoding
```
p [STDIN.external_encoding, STDIN.internal_encoding]
=> ["UTF-16LE"... -
02:09 PM Feature #19191: Implicit console input transcoding is more desirable
- I agree that the IRB issue should be corrected on the part of the IRB.
My point was that for certain devices, external_encoding on read can be fixed to the device's specification.
In that case, external_encoding is not used when inte... -
10:34 AM Bug #19246: Rebuilding the loaded feature index much slower in Ruby 3.1
- One more thing (Sorry for sounding like Colombo), we also remove items from `$LOADED_FEATURES` when plugins are updated. Because the application is long running and we have a plugin manager that lets the user install new versions we remo...
-
10:19 AM Bug #19246: Rebuilding the loaded feature index much slower in Ruby 3.1
- Additional note: For development purposes there are also need to remove from `$LOADED_FEATURES` in order to reload files without reloading the application. The application being a desktop application makes it not ideal to restart it ever...
-
10:12 AM Bug #19246 (Closed): Rebuilding the loaded feature index much slower in Ruby 3.1
- Some background to this issue: (This is a case that is unconventional usage of Ruby, but I hope you bear with me.)
We ship the Ruby interpreter with our desktop applications for plugin support in our application (SketchUp).
One fea... -
08:53 AM Revision 90c8f7ca (git): Ignore man directories entirely [ci skip]
-
08:53 AM Revision 5716c0f1 (git): MSVS lacks `touch` [ci skip]
-
08:40 AM Revision 031bc21a (git): expand-config.rb: search revision.h to extract release date
-
07:07 AM Revision 0344283f (git): Fix missing parentheses [ci skip]
-
07:06 AM Revision 0ccc498e (git): loadpath.c does not depend on revision.h since 947ebd0ac5ba
-
06:57 AM Revision 5c21cc39 (git): configure.ac: limit miniruby dep to when bundle_loader needs it
- See also e7bffe0
https://bugs.ruby-lang.org/issues/19239
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> - 05:50 AM Revision a5a40259 (git): Update default gems list at 20f9316f9dd5c77f96f1c08adb8da7 [ci skip]
-
05:50 AM Revision 20f9316f (git): [ruby/syntax_suggest] Bump version to 1.0.2
- https://github.com/ruby/syntax_suggest/commit/92ea00650a
-
05:13 AM Bug #19242 (Closed): Circular cause by Marshal
- Applied in changeset commit:git|2e7e153a2af1456515d43b6381e38534b069b1c2.
----------
[Bug #19242] Prohibit circular causes to be loaded -
05:12 AM Revision 2e7e153a (git): [Bug #19242] Prohibit circular causes to be loaded
-
04:15 AM Revision 18ba8909 (git): Merge RubyGems/Bundler master
- Pick from https://github.com/rubygems/rubygems/commit/ba3adad4d80038ffd7bea015da2f11d3e8a2ff82
- 04:15 AM Revision ad1f61fe (git): [rubygems/rubygems] Bump rb-sys
- Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.48 to 0.9.52.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.48...v0.9.52)
---
updated-depende... - 04:15 AM Revision ae30b426 (git): [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
- Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.48 to 0.9.52.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.48...v0.9.52)
---
updated-depende... - 04:15 AM Revision 870bcc96 (git): [rubygems/rubygems] fix
- https://github.com/rubygems/rubygems/pull/6147 when --parseable and
--groups used
together
https://github.com/rubygems/rubygems/commit/3b0b95c509 -
04:15 AM Revision 8eb66180 (git): [rubygems/rubygems] Turn `--ext` option into string. Deprecate usage without explicit value.
- - this is preparation for onboarding Rust based extension gem generator
https://github.com/rubygems/rubygems/commit/d32801bdbc -
04:15 AM Revision eaf0157d (git): [rubygems/rubygems] Regenerate bundler man pages for December 2022.
- https://github.com/rubygems/rubygems/commit/17037fe32c
-
04:15 AM Revision f270aa3e (git): [rubygems/rubygems] Use safe Marshal deserialization for dependency API response. - adds Bundler#safe_load_marshal and Bundler::SAFE_MARSHAL_CLASSES listing safe classes to deserialize
- https://github.com/rubygems/rubygems/commit/e947c608cc
-
04:15 AM Revision efd103f3 (git): [rubygems/rubygems] Fix crash when showing some resolution errors
- If the conflict explanation includes empty ranges and version unions,
Pub Grub was crashing.
https://github.com/rubygems/rubygems/commit/eb360b77a2 -
04:15 AM Revision 1db9bcfe (git): [rubygems/rubygems] Fix crash when building resolution errors with OR requirements
- https://github.com/rubygems/rubygems/commit/8f287479bc
-
04:15 AM Revision 82934895 (git): [rubygems/rubygems] Slight tweak to error message building
- Let Pub Grub decide how the constraint should be displayed.
https://github.com/rubygems/rubygems/commit/4f651b6429 - 04:15 AM Revision beef7296 (git): [rubygems/rubygems] Clarify flag description
- Prerelease versions are already considered in a certain circumstance,
and the 'if updating' is redundant in the update case anyway.
https://github.com/rubygems/rubygems/commit/8d68635f8c - 04:15 AM Revision 32e72b78 (git): [rubygems/rubygems] Add tests for bundle lock
- Ensure `bundle lock` handles pre flag just like bundle update does.
https://github.com/rubygems/rubygems/commit/b9e85e3157 - 04:15 AM Revision 42972bdd (git): [rubygems/rubygems] Test the public interface
- With `GemVersionPromoter#sort_versions` being so simple, we no longer
need to reach into the class's internals to make private methods public
in order to effectively test. We can just allow both cases to go through
the main method.
http... - 04:15 AM Revision c436f52f (git): [rubygems/rubygems] Fix tiny typo
- https://github.com/rubygems/rubygems/commit/390e3e1ebd
- 04:15 AM Revision 2bc4f1de (git): [rubygems/rubygems] Support for pre flag in `bundle update`
- Passing this flag allows bumping to the current version, even if that
version is prerelease. This works in concert with the current flags.
https://github.com/rubygems/rubygems/commit/a6409e3509 - 04:15 AM Revision 1ee31f9d (git): [rubygems/rubygems] Clarify segment equality check
- https://github.com/rubygems/rubygems/commit/6624474c5a
- 04:15 AM Revision e58d18bf (git): [rubygems/rubygems] Return early outside of loop
- The conditions are not dependent on each spec and can be checked once at
the beginning of the method.
https://github.com/rubygems/rubygems/commit/086bc9433f - 04:15 AM Revision c67f6c4d (git): [rubygems/rubygems] Add question marks to interrogative methods
- https://github.com/rubygems/rubygems/commit/52da85e9ef
-
04:15 AM Revision 0a9544ce (git): [rubygems/rubygems] Cleanup intermediate artifacts after installing built extensions
- https://github.com/rubygems/rubygems/commit/98b6a959bd
-
04:15 AM Revision 9d10b839 (git): [rubygems/rubygems] Use better name for variable
- The installed file not always have the `.so` extension.
https://github.com/rubygems/rubygems/commit/6f6681bcb9
Co-authored-by: Eloy Espinaco <eloyesp@gmail.com> -
04:15 AM Revision 012ef7d1 (git): [rubygems/rubygems] Fix tests checking intermediate files
- Some tests check that the shared objects are actually installed, but
checking an intermediate build file instead of the installed one.
https://github.com/rubygems/rubygems/commit/ad526073b0 -
04:15 AM Revision 3fd33590 (git): [rubygems/rubygems] Fix crash when lockfile is missing dependencies
- We have a check for a corrupt lockfile right before installing. However,
the check accounted for locked specs not satisfying locked dependencies,
but not for locked specs missing for some locked dependencies.
Instead of fixing this chec... -
04:15 AM Revision 16b36a5b (git): [rubygems/rubygems] Remove unused code
- https://github.com/rubygems/rubygems/commit/b88c43a28c
-
04:15 AM Revision d1533f20 (git): [rubygems/rubygems] Detect circular dependency errors
- https://github.com/rubygems/rubygems/commit/a8348d271d
-
04:15 AM Revision 96aa1a1a (git): [rubygems/rubygems] Remove dead logic
- https://github.com/rubygems/rubygems/commit/950615405e
-
04:15 AM Revision d1c21035 (git): [rubygems/rubygems] Extract a variable for consistency
- https://github.com/rubygems/rubygems/commit/3f4b1c7a01
12/19/2022
-
10:55 PM Revision 8f081d4d (git): Syntax-highlight scripts in yjit.md [ci skip]
- Specifically, I wanted to grey out comments in shell scripts. But I just
specified a language for blocks without comments as well to avoid
forgetting that in the future. -
10:09 PM Revision e7915d6d (git): Fix misfire of compaction read barrier
- gc_compact_move incorrectly returns false when destination heap is full
after sweeping. It returns false even if destination heap is different
than source heap (returning false means that the source heap has
finished compacting). This ca... -
09:59 PM Revision 650a20a3 (git): Re-enable test_ractor for YJIT
- This would be still flaky, but we want to make sure there's no
YJIT-specific issue when Ruby 3.2 is released. We might skip it again
after the release. -
06:13 PM Revision 8275cad1 (git): Fix buffer overrun when re-embedding objects
- We eagerly set the new shape of an object when moving an object during
compaction. This new shape may have a different capacity than the
current original shape capacity. This means that we cannot copy from the
original buffer using size ... -
05:14 PM Bug #19150 (Open): pack/unpack silently ignores unknown directives
- Reopening so we remember to make it raise in 3.3
-
03:44 PM Revision b2f53dcc (git): YJIT: skip map in print_sorted_exit_counts (#6954)
- Array#sum accepts a block.
-
03:26 PM Revision 1482f064 (git): YJIT: Improve the description about --enable-yjit (#6947)
-
03:19 PM Revision bcdc9cf1 (git): YJIT: Make --yjit-stats always visible on --help (#6946)
-
02:26 PM Feature #19244: Windows: USERPROFILE should be preferred over HOMEPATH
- Patch is here: https://github.com/ruby/ruby/pull/6958
-
07:25 AM Feature #19244 (Closed): Windows: USERPROFILE should be preferred over HOMEPATH
- Create a new local user on Windows called "testuser".
Then switch to the new user per runas:
```
C:\> runas /user:testuser cmd
```
Then in the new window:
```
C:\>ruby -e "p Dir.home"
"C:/WINDOWS/system32"
C:\>echo %HOMEDR... -
02:26 PM Bug #19243: Windows: Dir.home returns string in wrong encoding
- Patch is here: https://github.com/ruby/ruby/pull/6958
-
07:13 AM Bug #19243 (Closed): Windows: Dir.home returns string in wrong encoding
- Create a new local user on Windows called "kanisä".
Then login to the new user and run in cmd:
```
C:\Users\kanisä>ruby -e "p Dir.home"
"C:/Users/kanis\xE4"
C:\Users\kanisä>ruby -e "p Dir.home.encoding"
#<Encoding:UTF-8>
C:\... -
08:49 AM Revision 1148636e (git): [ruby/irb] PTY module is platform dependent
- https://github.com/ruby/irb/commit/dbb3dc72ff
-
06:55 AM Revision 9761422f (git): Added news entries for Bundler
- 06:00 AM Revision 919b5bfc (git): Update default gems list at 1142bc875bc00d492046ecbf781f07 [ci skip]
-
05:59 AM Revision 1142bc87 (git): [ruby/did_you_mean] Bump version to 1.6.3
- https://github.com/ruby/did_you_mean/commit/f7703add76
-
05:48 AM Revision 2605ff79 (git): tool/update-NEWS-refs.rb: Accept non-redmine url links
-
05:39 AM Revision 65ce6795 (git): Sort by URL [ci skip]
-
05:22 AM Revision 9a484593 (git): Added notable changes for the default gems
-
05:09 AM Revision c41a7012 (git): Use pthread API if the target platform doesn't support TLS attribute
-
05:07 AM Bug #19242 (Closed): Circular cause by Marshal
- Crafted marshaled data can creates an `Exception` object with circular `cause`.
-
05:04 AM Revision 4de514da (git): Revert "Mentioned https://github.com/ruby/ruby/pull/6086 to NEWS"
- This reverts commit 6229c02d6b895eda8c73efa8a41c73692d133a65.
Nothing has been changed in RubyVM.stat on normal Ruby build. It seems
confusing to say that something has been changed there. The flag is
supposed to be enabled only by CRub... -
04:14 AM Revision d64e1022 (git): Fix guess_diff type
- `unsigned_time_t` has the same size as `time_t`, but it doesn't mean
these types are same except for signedness. For instance, while
`long` and `long long` has the same size and `time_t` is defined as
the latter on 64bit OpenBSD, `unsig... -
03:10 AM Revision df4820e7 (git): Added some changes that are only exists on GitHub to NEWS
-
02:45 AM Revision 40ec3762 (git): Mentioned https://github.com/ruby/date/pull/80
-
02:43 AM Revision 289d99cc (git): Merge Time class sections on NEWS
-
02:38 AM Revision 6229c02d (git): Mentioned https://github.com/ruby/ruby/pull/6086 to NEWS
-
02:34 AM Revision 63a9b72c (git): Removed empty section
-
02:20 AM Revision 34d43ed9 (git): typo in doc [ci skip]
-
02:05 AM Revision 47a6e7b5 (git): Note about Regexp.linera_time? [ci skip]
- 01:51 AM Revision e123695f (git): Update default gems list at 08d21b4bd2000596160d62f28b840b [ci skip]
-
01:50 AM Revision 08d21b4b (git): [ruby/net-http] Bump version to 0.3.2
- https://github.com/ruby/net-http/commit/b8bdb7248e
-
01:50 AM Revision 1998d979 (git): [ruby/date] Bump version to 3.3.3
- https://github.com/ruby/date/commit/ea3644a7c4
-
12:46 AM Bug #13298 (Closed): mingw SEGV TestEnumerable#test_callcc
- I've merged https://github.com/ruby/ruby/pull/6957 which is similar to the above proposal.
It fixes a repeatable segfault on my local Windows 11 development VM. - 12:45 AM Revision 60737826 (git): Disable SEH workaround on __MINGW64__ only. (#6957)
12/18/2022
-
10:37 PM Bug #13485 (Closed): MinGW TestEnumerable#test_callcc SEGV info
-
10:35 PM Bug #19241 (Third Party's Issue): Ractor will change Windows System Power Mode
- Can you file this to https://github.com/oneclick/rubyinstaller2/?
-
06:03 PM Bug #19241: Ractor will change Windows System Power Mode
- I recheck this issue, It happened while starting with sh.exe in MSYS2.
And I start sh.exe standalone and Power Mode changed.
But why not happened with ruby-2.7? And I'm not sure. -
05:27 PM Bug #19241: Ractor will change Windows System Power Mode
- jakit (Jakit Liang) wrote:
> ## Problem
> ...
I've tried 2.7.7 and 2.5.9. And there is no such problem. -
05:25 PM Bug #19241 (Third Party's Issue): Ractor will change Windows System Power Mode
- ## Problem
Just start `irb`:
```
% irb
irb(main):001:0>
```
And you can see Windows Power mode will change to `High Performance`
## Version
`ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]`
And oth... -
10:13 PM Bug #19239: miniruby is not built by default when cross-compiling ruby 3.2.0-rc1
- Final patch thanks to @nobu and @katei is at https://github.com/ruby/ruby/pull/6959
-
07:17 PM Revision d4315284 (git): [rubygems/rubygems] Add bundle lock --update --bundler
- bundle lock --update can do everything that bundle update can do, but
it doesn't actually install gems. This is especially useful for
generating a lockfile on a machine that doesn't have the libraries
available to be able to build native... -
03:37 PM Revision ede7c035 (git): [ruby/net-http] Adding links to references
- https://github.com/ruby/net-http/commit/6dfe6f411a
-
10:18 AM Revision 2811d9d2 (git): NEWS.md: Tweak "Constant lookup when defining a class/module"
-
09:48 AM Revision dd338ae1 (git): NEWS.md: Fix typos
-
09:47 AM Revision 937299ed (git): NEWS.md: Fix a typo
-
05:24 AM Revision 7e93f7ce (git): Suppress cross tool warning for pkg-config [ci skip]
- It is used from mkmf.rb on target environments.
-
03:56 AM Revision e7bffe0c (git): configure.ac: add miniruby to PREP when cross-compiling to darwin
- miniruby is used to resolve symbols in ext bundles
https://bugs.ruby-lang.org/issues/19239
Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com> -
03:03 AM Revision c316a5f2 (git): [ruby/date] Adjust format [ci skip]
- https://github.com/ruby/date/commit/71c35b4054
-
02:58 AM Revision b8cc0992 (git): [ruby/date] Extract `head_match_p` and abbreviated name length constants
- https://github.com/ruby/date/commit/3f666fa882
-
02:58 AM Revision df49bf81 (git): [ruby/date] Consider the length of string to parse
- https://github.com/ruby/date/commit/3bfed83ce7
-
02:58 AM Revision 49dc424f (git): [ruby/date] Remove `extz_pats` table
- https://github.com/ruby/date/commit/945e26e243
-
02:58 AM Revision 70c90596 (git): [ruby/date] Remove `merid_names` table
- https://github.com/ruby/date/commit/7fe2bd5f94
-
02:58 AM Revision 6efeaabe (git): [ruby/date] Match abbreviated day and month names with head of full names
- https://github.com/ruby/date/commit/a45f8f03c9
12/17/2022
-
11:44 PM Bug #13298: mingw SEGV TestEnumerable#test_callcc
- I also found that the `if (0)` is required in Ruby 3.2 in order to build locally in the Ruby Installler Dev Kit otherwise it crashes as indicated.
-
10:51 PM Revision ea3d3c45 (git): Use FL_TEST_RAW in rb_hash_default_value
- We should always have a T_HASH here, so we can use FL_TEST_RAW to avoid
checking whether we may have an immediate value.
I expect this to be a very small performance improvement (perf stat
./miniruby benchmark/hash_aref_miss.rb shows a ... -
10:51 PM Revision fbaa5db4 (git): Use a BOP for Hash#default
- On a hash miss we need to call default if it is redefined in order to
return the default value to be used. Previously we checked this with
rb_method_basic_definition_p, which avoids the method call but requires
a method lookup.
This com... -
10:30 PM Bug #13485: MinGW TestEnumerable#test_callcc SEGV info
- Not sure about what/when/where, but this test is passing and there is no longer a patch in ruby-loco.
Hence, ok to close. Sorry. -
09:06 PM Revision 632beec0 (git): MJIT: Refactor BitField dereference byte and bitmask (#6955)
- Prefer Array#unpack1 and Enumerable#sum.
I think the bitmask formula ``2 ** @width - 1`` would be clearer, but not faster for such small integers. -
02:18 PM Revision 6e3bc671 (git): Hard crash when allocating in GC when RUBY_DEBUG
- Not all builds have RGENGC_CHECK_MODE set, so it should also crash when
RUBY_DEBUG is set. -
02:16 PM Revision 965f4259 (git): Move check for GC to xmalloc and xcalloc
- Moves the check earlier to before we actually perform the allocation.
-
10:04 AM Revision 950dc169 (git): Move Coverage-related items to Stdlib section
-
09:29 AM Revision c00f7cfb (git): Move Socket-related changes to stdlib section
- 07:43 AM Revision 9da5a7e7 (git): Add tests for `Queue#pop` with fiber scheduler. (#6953)
-
05:25 AM Revision a4ab9921 (git): common.mk: test-bundled-gems-prepare: pin-down hoe version.
- hoe-4.0.0 causes test failure in minitest.
https://github.com/ruby/actions/actions/runs/3715629538