Activity
From 09/14/2024 to 09/20/2024
Today
- 01:10 AM Bug #20489 (Assigned): Ractor behavior strange in ruby master
- 12:27 AM Bug #20727 (Assigned): YJIT segmentation fault inside of invalidate_block_version
- 12:27 AM Feature #20724 (Assigned): Update to Unicode 16.0
- 12:27 AM Feature #20715 (Assigned): `Ractor.[]` and `Ractor.[]=` to access Ractor local storage
- 12:27 AM Misc #20661 (Assigned): Stop retrying tests in `make test-all` command by default
- 12:27 AM Misc #20652 (Assigned): Memory allocation for gsub has increased from Ruby 2.7 to 3.3
- 12:27 AM Feature #20627 (Assigned): `require` on Ractor should run on the main Ractor
- 12:27 AM Bug #20420 (Assigned): benchmark/gc/redblack.rb license clarification
- 12:27 AM Bug #20089 (Assigned): Fiber#kill transfers to root fiber
- 12:27 AM Bug #18455 (Assigned): `IO#close` has poor performance and difficult to understand semantics.
- 12:27 AM Bug #14681 (Assigned): `syswrite': stream closed in another thread (IOError)
- 12:23 AM Feature #19171 (Closed): Update Unicode data to Unicode Version 15.1
- @duerst This issue is duplicate of #19908. I'm closing this.
- 12:20 AM Bug #20733: Build failure OpenSSL extension with FreeBSD 13.3
- I could build openssl extension with `--with-opt-dir=/usr/local`.
>FreeBSD 13.3 build on Ruby CI was failure from...
09/19/2024
- 11:43 PM Bug #20734 (Closed): Test failure at FreeBSD 14.1
- @nobu fixed this at https://github.com/ruby/ruby/commit/dc8c382266b056fa51408806478218f5230fbce2
- 04:20 AM Bug #20734 (Assigned): Test failure at FreeBSD 14.1
- I confirmed that https://github.com/ruby/ruby/commit/63cbe3f6ac9feb44a2e43b1f853e2ca7e049316c is not working with Fre...
- 10:53 PM Feature #20756 (Rejected): Introduce Boolean class
- #12515 is an enough reason to reject this idea.
> Rejected for several reasons:
>
> * many gems and librarie... - 09:50 PM Feature #20756 (Rejected): Introduce Boolean class
- Hello All,
Is is possible to add a parent class for `TrueClass` and `FalseClass`?
I always found it strange that ... - 06:51 PM Revision 2230ac4a (git): Fix potentially missing write barrier in iseq_build_kw
- We're writing objects to the iseq but not firing the write barrier.
- 06:51 PM Revision ead280fe (git): Replace RB_OBJ_WRITTEN with RB_OBJ_WRITE in iseq_set_arguments_keywords
- 06:51 PM Revision 7a2b5ed5 (git): Replace RB_OBJ_WRITTEN with RB_OBJ_WRITE in pm_compile_scope_node
- 05:14 PM Revision dc644482 (git): Remove an unused variable
- 04:39 PM Feature #20750: Expose ruby_thread_has_gvl_p in ruby/thread.h
- Hello,
Here is the new proposed patch for your review.
https://github.com/ruby/ruby/pull/11649
I do not know i... - 03:55 PM Feature #20750: Expose ruby_thread_has_gvl_p in ruby/thread.h
- Benoit,
Thank you.
Maybe I should have run the more complete pattern that I see in the ruby code base:
```c
... - 04:10 PM Revision d9981beb (git): [DOC] Improve docs for GC.latest_gc_info
- 03:28 PM Misc #20728: Propose Eileen Uchitelle as a core committer
- Thank you for nominating me Kevin, and the support those who have commented so far. It would be an honor to be accept...
- 02:34 PM Bug #20716 (Closed): Different instance_method behavior in Ruby 2.7 and Ruby 3.x
- Applied in changeset commit:git|6118e8a47394409b53164b60e79fadf348b97db3.
----------
Fix method caching bug when inc... - 02:34 PM Revision 6118e8a4 (git): Fix method caching bug when including/prepend module A that prepends module B
- Fix by always adding the generated iclass to the subclasses list,
otherwise the method cache for the iclass is not cl... - 12:21 PM Revision 167fba52 (git): Remove rb_gc_impl_initial_stress_set
- 09:08 AM Revision dc8c3822 (git): Fix bug at fork on FreeBSD
- The main thread in a forked process appears not to own the read-write
lock. - 09:06 AM Revision d9f6e326 (git): Don't update lockfile with bundler/inline
- 07:23 AM Revision 46ee05f0 (git): Added missing block arg
- 07:12 AM Revision 59db92a1 (git): [ruby/set] 2024
- https://github.com/ruby/set/commit/ea95c5a3d2
- 07:11 AM Revision e53d2f20 (git): [ruby/set] Reword the document for to_a and clarify the implementation notes
- ref. https://github.com/ruby/ruby/pull/11453
https://github.com/ruby/set/commit/3cf6d11bd2 - 05:59 AM Revision 24b587e7 (git): Use ppc64le coroutines for powerpc64-freebsd*
- There is nothing endianness-related in ppc64le and all the tests pass on both ucontext and ppc64le coroutines on powe...
- 05:59 AM Revision c362206a (git): Use ppc64le coroutines on powerpc64le-freebsd*
- Only one ractor-related test fails, but it also fails with ucontext.
- 05:33 AM Revision c193ca52 (git): Adjust indent [ci skip]
- 04:29 AM Bug #20607 (Closed): Exception messages are inconsistent when thread-local variables are accessed
- Applied in changeset commit:git|8dc0d2904a7d859b463a3f44ac73e5d4540a1cc1.
----------
Update exception message in str... - 04:29 AM Revision 8dc0d290 (git): Update exception message in string_for_symbol
- This is a static function only called in two places (rb_to_id and
rb_to_symbol), and in both places, both symbols and...
09/18/2024
- 11:55 PM Bug #20597 (Closed): `eval('break if false')` should raise SyntaxError but retuns nil
- Applied in changeset commit:git|268c72377b06b7d84a0998ca241340d0f58768f6.
----------
Raise a compile error for break... - 11:54 PM Revision 268c7237 (git): Raise a compile error for break/next/redo inside eval in cases where it is optimized away
- In cases where break/next/redo are not valid syntax, they should
raise a SyntaxError even if inside a conditional blo... - 08:47 PM Revision 984a791d (git): [DOC] Escape the word GC in GC.config
- 07:46 PM Revision 29f2cb83 (git): Fix evaluation order issue in f(**h, &h.delete(key))
- Previously, this would delete the key in `h` before keyword
splatting `h`. This goes against how ruby handles `f(*a,... - 07:18 PM Revision e358104e (git): [DOC] Fix formatting for ways to create Range objects
- 06:26 PM Revision 9c12c39e (git): Revert "Fix evaluation order issue in f(**h, &h.delete(key))"
- This reverts commit 07d3bf4832532ae7446c9a6924d79aed60a7a9a5.
No failures in the pull request CI, but there are now ... - 06:18 PM Bug #20640 (Closed): Evaluation Order Issue in f(**h, &h.delete(key))
- Applied in changeset commit:git|07d3bf4832532ae7446c9a6924d79aed60a7a9a5.
----------
Fix evaluation order issue in f... - 06:18 PM Revision 07d3bf48 (git): Fix evaluation order issue in f(**h, &h.delete(key))
- Previously, this would delete the key in h before keyword
splatting h. This goes against how ruby handles f(*a, &a.p... - 04:58 PM Revision f8e1c93f (git): Move more of GC.latest_gc_info into Ruby
- 04:42 PM Bug #20740 (Closed): prism_compile coding issue for PM_FORWARDING_SUPER_NODE
- Applied in changeset commit:git|c14b60630d680addd5b4ef9c9b159a26a5446483.
----------
Fix coding issue in prism_compi... - 04:42 PM Revision 461c4896 (git): [rubygems/rubygems] Add a note about when hack can be removed
- https://github.com/rubygems/rubygems/commit/058b29fe98
- 04:42 PM Revision ae214be9 (git): [rubygems/rubygems] Fix TODO
- https://github.com/rubygems/rubygems/commit/2cd13005f6
- 04:42 PM Revision 47db8bc0 (git): [rubygems/rubygems] Stop fighting with ourselves
- https://github.com/rubygems/rubygems/commit/7cf2fdcfa1
- 03:52 PM Revision c14b6063 (git): Fix coding issue in prism_compile.c
- Make sure to set back `ISEQ_COMPILE_DATA(iseq)->current_block` for
forwarding super nodes with a block.
Fixes [Bug #... - 03:52 PM Revision 96da3f16 (git): [ruby/prism] Allow returns in default parameter values
- https://github.com/ruby/prism/commit/e98ea15596
- 02:18 PM Revision 5df5eba4 (git): Change rb_gc_impl_get_measure_total_time to return a bool
- 01:29 PM Bug #20755 (Open): IO::Buffer#transfer transfers mutable reference to String's memory but not lock ownership
- `IO::Buffer.for` with a block yields a mutable IO::Buffer that shares underlying memory with a mutable String. While ...
- 12:14 PM Bug #20754: [doc] `Hash::new` is missing from rdoc for 3.4
- What a simple fix, now I know myself. Thank you!
- 12:06 PM Bug #20754 (Closed): [doc] `Hash::new` is missing from rdoc for 3.4
- Applied in changeset commit:git|f82618578666ee720bdc0ec8e4aeace541f2d953.
----------
[Bug #20754] Document in hash.rb - 11:40 AM Bug #20754 (Closed): [doc] `Hash::new` is missing from rdoc for 3.4
- I was interested in the `capacity` argument added in https://github.com/ruby/ruby/pull/10357 but found any reference ...
- 12:03 PM Revision f8261857 (git): [Bug #20754] Document in hash.rb
- 12:02 PM Misc #20717: DevMeeting-2024-10-03
- * [Feature #20750] Expose ruby_thread_has_gvl_p in ruby/thread.h (eregon)
* I think rb_thread_call_with_gvl() shoul... - 12:00 PM Feature #20750: Expose ruby_thread_has_gvl_p in ruby/thread.h
- OK the issue/bug is
https://github.com/ruby/ruby/blob/4797b0704ae49fb42c8ad9a45028efbe2298b5f5/thread.c#L1899
```
... - 11:56 AM Feature #20750: Expose ruby_thread_has_gvl_p in ruby/thread.h
- So what is the concrete issue if the pattern above is replaced by `rb_thread_call_with_gvl(method_call, &context);`?
... - 11:48 AM Bug #20745: IO::Buffer#copy triggers UB when src/dest buffers overlap
- I don't think we can legitimately expose an API that can lead to a crash if used incorrectly.
So yeah, I think we ... - 08:03 AM Bug #20745: IO::Buffer#copy triggers UB when src/dest buffers overlap
- If this is an intentional restriction to gain performance, I would like to propose adding documentation that the meth...
- 02:19 AM Bug #20745: IO::Buffer#copy triggers UB when src/dest buffers overlap
- Since the doc says "using `memcpy`", it may be intentionally undetermined/unsupported.
> Efficiently copy from a s... - 10:17 AM Bug #20753 (Open): [doc] IO::Buffer examples try to write into readonly buffer returned from IO::Buffer.for
- `IO::Buffer.for` without a block returns a readonly `IO::Buffer`. Some examples in the documentation for `IO::Buffer`...
- 10:00 AM Bug #20752: IO::Buffer#slice creates mutable IO::Buffer instance that points to readonly memory (e.g. fronzen String)
- It results in bus errors with 3.1 and 3.2.
```
$ ruby3.2 -e 'IO::Buffer.for(RUBY_DESCRIPTION).slice.set_string("p... - 09:38 AM Bug #20752 (Open): IO::Buffer#slice creates mutable IO::Buffer instance that points to readonly memory (e.g. fronzen String)
- ```irb
irb(main):001> RUBY_DESCRIPTION.frozen?
=> true
irb(main):002> IO::Buffer.for(RUBY_DESCRIPTION).set_string(... - 06:30 AM Feature #20309: Bundled gems for Ruby 3.5
- Eregon (Benoit Daloze) wrote in #note-38:
> vo.x (Vit Ondruch) wrote in #note-35:
> > I don't think it is bad idea ... - 02:16 AM Revision 4797b070 (git): Prevent a warning (retry)
- ```
test/ruby/test_case.rb:75: warning: 'when' clause on line 75 duplicates 'when' clause on line 75 and is ignored
``` - 12:59 AM Revision 94a17f32 (git): Detect existing Visual Studio instances using `vswhere.exe`
- https://learn.microsoft.com/en-us/visualstudio/install/tools-for-managing-visual-studio-instances?view=vs-2022#using-...
- 12:06 AM Revision 7c4b0284 (git): YJIT: Accept key for runtime_stats to return only that stat (#11536)
09/17/2024
- 11:49 PM Bug #20751 (Closed): Regression in Prism related to use of return in default argument values
- kddnewton (Kevin Newton) wrote in #note-2:
> I believe this was fixed this morning. Could you double-check that this... - 11:37 PM Bug #20751: Regression in Prism related to use of return in default argument values
- I believe this was fixed this morning. Could you double-check that this is still an issue?
- 11:19 PM Bug #20751 (Closed): Regression in Prism related to use of return in default argument values
- All versions of parse.y dating at least back to Ruby 1.8.7, and Prism in both Ruby 3.3.5 and 3.4.0preview1, correctly...
- 10:34 PM Feature #20750: Expose ruby_thread_has_gvl_p in ruby/thread.h
- Hello Benoit,
Thank you for your question.
Eregon (Benoit Daloze) wrote in #note-1:
> This seems like a strang... - 08:03 PM Feature #20750: Expose ruby_thread_has_gvl_p in ruby/thread.h
- Note that the majority of the search results are just CRuby using it, and GitHub not detecting it's effectively copie...
- 04:52 PM Feature #20750 (Open): Expose ruby_thread_has_gvl_p in ruby/thread.h
- Hello All,
I'm hoping we can make `ruby_thread_has_gvl_p` a public method and no longer experimental.
I saw the... - 10:12 PM Revision 39679d7f (git): [ruby/uri] Fix spelling of "cannot"
- https://github.com/ruby/uri/commit/77241d6508
- 08:35 PM Revision 5307c65c (git): Make rb_gc_impl_set_measure_total_time return void
- 08:09 PM Revision b203e667 (git): [rubygems/rubygems] Fix spelling, it's "cannot" rather than "can not"
- https://github.com/rubygems/rubygems/commit/3434f094a2
- 07:22 PM Revision dc61c7fc (git): Rename rb_gc_impl_get_profile_total_time to rb_gc_impl_get_total_time
- 07:22 PM Revision 2af080bd (git): Change rb_gc_impl_get_profile_total_time to return unsigned long long
- 07:22 PM Revision 5de7517b (git): Use unsigned long long for marking and sweeping time
- 06:47 PM Revision 748933aa (git): [ruby/prism] Accept "do" blocks in some parameter default values
- https://github.com/ruby/prism/commit/6d7b734dbe
- 02:39 PM Feature #20742: Trying to assign to a variable in statement modifier should emit a warning
- Earlopain (A S) wrote in #note-5:
> Should this just work? If I do:
>
> ```rb
> if a = 0.zero?
> p a
> end
... - 09:00 AM Feature #20742: Trying to assign to a variable in statement modifier should emit a warning
- Should this just work? If I do:
```rb
if a = 0.zero?
p a
end
```
it has no problem with it. I would expec... - 02:34 PM Revision 0160dafc (git): Replace all GC.disable with EnvUtil.without_gc
- 02:07 PM Revision 82151a86 (git): Fix a typo, sorry!
- 01:52 PM Revision fd5e5839 (git): Prevent two warnings
- ```
/home/chkbuild/chkbuild/tmp/build/20240917T123003Z/ruby/test/ruby/test_case.rb:73: warning: 'when' clause on line... - 12:40 PM Bug #20749: Error message not shown in output with prism
- This was an issue with the error_highlight gem. I made a PR here: https://github.com/ruby/error_highlight/pull/48
- 12:37 PM Feature #20309: Bundled gems for Ruby 3.5
- vo.x (Vit Ondruch) wrote in #note-35:
> I don't think it is bad idea to start using `bundle install --local`, i.e. us... - 09:40 AM Feature #20309: Bundled gems for Ruby 3.5
- > I don't think so. Bundler should provide that feature for like debug, stackprof and irb. I and @mame (Yusuke Endoh)...
- 08:53 AM Feature #20309: Bundled gems for Ruby 3.5
- >The fact that we want binding.irb to work regardless of being in a bundle exec context or not feels like a sign that...
- 11:10 AM Revision cf063c00 (git): [rubygems/rubygems] Bump rubies in CI to 3.3.5
- A spec needed changes because now loading the default `json` prints a
warning about `ostruct` getting loaded although... - 08:48 AM Bug #20734: Test failure at FreeBSD 14.1
- I could build 4ca588eede and `git clean -fxd`.
But Ruby CI is still stopped from Sep 5th.
https://rubyci.s3.am... - 08:37 AM Bug #20631: Build failure with Xcode 16 beta and macOS 15 (Sequoia) Beta
- `Process.daemon` is working fine at macOS 15.1 beta3 and Xcode 16 RC.
I enabled `TestProcess#test_daemon_noclose` ... - 07:16 AM Revision 1ecac5d4 (git): TestProcess#test_daemon_noclose is working fine with macOS 15.1 beta3 and Xcode 16 RC
- 06:44 AM Revision 95f08f2b (git): Skip failing examples related with https://github.com/ruby/ruby/commit/d81b0588bb3c97167d1f7e2d2a74185e0c19b68c
- 06:37 AM Revision c0116860 (git): Removed accidentally commit for snapshot file of prism
- 06:12 AM Revision d81b0588 (git): [ruby/strscan] Accept String as a pattern at non head
- (https://github.com/ruby/strscan/pull/106)
It supports non-head match cases such as StringScanner#scan_until.
If we... - 05:41 AM Revision 7d80c139 (git): Unlock parallel_tests
- 05:39 AM Revision 80e934c2 (git): [rubygems/rubygems] Fix `--local` hitting the network when default gems are included
- https://github.com/rubygems/rubygems/commit/b9a2d4d539
- 05:39 AM Revision 335d6309 (git): [rubygems/rubygems] Improve spec
- The behavior it's testing is independent from the bundle path being
used.
https://github.com/rubygems/rubygems/commi... - 05:39 AM Revision 166cde7d (git): [rubygems/rubygems] Fix spec to setup a default gem correctly
- Looking at the description is something that used to be done a long time
ago.
https://github.com/rubygems/rubygems/c... - 05:39 AM Revision 7428709d (git): [rubygems/rubygems] Inline a private method
- Removes an (in my opinion) excessive indirection and handles options
more consistently.
https://github.com/rubygems/... - 05:39 AM Revision 7e0934d3 (git): [rubygems/rubygems] Consistently access install options through symbol keys
- https://github.com/rubygems/rubygems/commit/7ddf1dc70a
- 05:15 AM Revision 70111fcc (git): Prevent a warning due to error recovery of prism
- 05:10 AM Revision d90da940 (git): Prevent warnings for RubyVM::AbstractSyntaxTree.parse in test_ast.rb
- 04:56 AM Revision d84b062b (git): Prevent warning: assigned but unused variable - message
- 03:54 AM Revision 4ca588ee (git): Bump github/codeql-action from 3.26.6 to 3.26.7
- Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.6 to 3.26.7.
- [Release notes](https:... - 03:52 AM Revision bb2d2473 (git): [DOC] Fix autoload method formatting
- 03:46 AM Revision bb7025b7 (git): Activate irb if irb is bundled gems
- 03:44 AM Revision 76d927f8 (git): Prevent prism warnings in syntax exhaustive tests
- [Bug #20736]
- 12:28 AM Revision 4e59e7d3 (git): [Bug #20737] Do not warn default gems to be promoted in Ruby 3.5 (#11613)
- 12:11 AM Bug #20723 (Closed): `IO#close` is broken on Ruby 3.3+ when using the Fiber scheduler.
- Applied in changeset commit:git|e08d5239b68ad61a731f4938cf963e37a5e88c25.
----------
Ensure fiber scheduler is woken... - 12:11 AM Revision e08d5239 (git): Ensure fiber scheduler is woken up when close interrupts read
- If one thread is reading and another closes that socket, the close
blocks waiting for the read to abort cleanly. This...
09/16/2024
- 08:35 PM Feature #20309: Bundled gems for Ruby 3.5
- Eregon (Benoit Daloze) wrote in #note-34:
> There is an additional issue with making fiddle a bundled gem: it means ... - 10:27 AM Feature #20309: Bundled gems for Ruby 3.5
- There is an additional issue with making fiddle a bundled gem: it means any usage now must have libffi headers availa...
- 07:58 PM Revision 50d4840b (git): Move desired_compaction_pages_i inside of GC_CAN_COMPILE_COMPACTION
- Fixes the following warning on WebAssembly:
gc/default.c:7306:1: warning: unused function 'desired_compaction_pa... - 07:55 PM Bug #20747 (Closed): [prism] regression in retry precedence
- 07:28 PM Bug #20747: [prism] regression in retry precedence
- I have opened a PR to fix this: https://github.com/ruby/prism/pull/3073.
- 08:26 AM Bug #20747 (Closed): [prism] regression in retry precedence
- Since prism has been made the default, our test suite now fail to boot with the following error:
```ruby
syntax e... - 07:55 PM Revision 7e2ae30f (git): [ruby/prism] Handle retry doubly nested under rescue
- Fixes [Bug #20747]
https://github.com/ruby/prism/commit/d3194715a9 - 06:58 PM Bug #20744 (Closed): syntax error found (SyntaxError) `UTF-8 mixed within US-ASCII source` reported Ruby with Prism parser
- Applied in changeset commit:git|2ea1950510003dbce5a761a712039ed69fa499f2.
----------
[ruby/prism] Do not leak explic... - 06:41 PM Bug #20744: syntax error found (SyntaxError) `UTF-8 mixed within US-ASCII source` reported Ruby with Prism parser
- I have opened a PR to fix this.
https://github.com/ruby/prism/pull/3071 - 12:49 PM Bug #20744: syntax error found (SyntaxError) `UTF-8 mixed within US-ASCII source` reported Ruby with Prism parser
- Thank you for the report, I will take a look.
- 07:07 AM Bug #20744: syntax error found (SyntaxError) `UTF-8 mixed within US-ASCII source` reported Ruby with Prism parser
- I'm unsure if this is the same case as Rails, but I found a reproduce code.
``` ruby
# encoding: US-ASCII
str ... - 04:33 AM Bug #20744 (Closed): syntax error found (SyntaxError) `UTF-8 mixed within US-ASCII source` reported Ruby with Prism parser
- I'm reporting this issue based on Rails Nightly CI against Ruby 3.4.0dev.
https://buildkite.com/rails/rails-nightly... - 06:57 PM Revision 2ea19505 (git): [ruby/prism] Do not leak explicit encoding
- Fixes [Bug #20744]
https://github.com/ruby/prism/commit/f1b8b1b2a2 - 06:38 PM Revision 1e53e462 (git): Don't export unnecessary string functions
- These functions are not used publicly, so we don't need to export them.
- 06:31 PM Bug #20741 (Closed): RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
- 03:04 PM Bug #20741: RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
- I have submitted a PR that will fix this https://github.com/ruby/ruby/pull/11632.
- 06:31 PM Revision 2beb4c6e (git): [PRISM] Assume an eval context for RubyVM::ISEQ compile
- Fixes [Bug #20741]
- 05:36 PM Revision 6c4ce726 (git): [ruby/irb] Use InstructionSequence#script_lines to get method source
- (https://github.com/ruby/irb/pull/1005)
It works with both prism and parse.y
https://github.com/ruby/irb/commit/bcf... - 04:33 PM Revision 1c3981cb (git): [DOC] Tweaks for Array#select!
- 04:33 PM Revision 4e17fa29 (git): Tweaks or Array#select
- 04:14 PM Misc #20717: DevMeeting-2024-10-03
- * [Misc #20728]: Add eileencodes as a core committer
* She's made many useful contributions
* She's currently h... - 08:05 AM Misc #20717: DevMeeting-2024-10-03
- * [Misc #20746] Request to migrate the `json` gem from `flori/json` repository to `ruby/json` (byroot)
* Current m... - 03:54 PM Feature #20742: Trying to assign to a variable in statement modifier should emit a warning
- Actually, the pattern is fairly common, I should have searched for `unless` usage in addition to `if`:
```
lib/rd... - 03:48 PM Feature #20742: Trying to assign to a variable in statement modifier should emit a warning
- Eregon (Benoit Daloze) wrote in #note-2:
> jeremyevans0 (Jeremy Evans) wrote in #note-1:
> > Assigning in post-cond... - 11:42 AM Feature #20742: Trying to assign to a variable in statement modifier should emit a warning
- jeremyevans0 (Jeremy Evans) wrote in #note-1:
> Assigning in post-conditionals is a fairly common in Ruby.
Is it?... - 03:54 PM Bug #20748 (Closed): Issue with defined? given method call with block in prism compiler
- Applied in changeset commit:git|1e52dde82af10f2a2ec648b34dce30bec4154245.
----------
[PRISM] Match defined behavior ... - 03:29 PM Bug #20748: Issue with defined? given method call with block in prism compiler
- I agree it's weird but it could cause an incompatibility I guess, `defined?()` is a weird one for sure.
- 03:16 PM Bug #20748: Issue with defined? given method call with block in prism compiler
- I have opened a PR for this to match the behavior exactly, but I will say I think Prism's behavior is actually correc...
- 01:59 PM Bug #20748 (Closed): Issue with defined? given method call with block in prism compiler
- test.rb
```ruby
puts defined?(undefined_method(){})
```
```
./ruby --parser=parse.y -I../ruby/lib -I. -I.ext/x... - 03:53 PM Revision 1e52dde8 (git): [PRISM] Match defined behavior for explicit block
- Fixes [Bug #20748]
- 02:41 PM Bug #20237 (Closed): Unable to unshare(CLONE_NEWUSER) in Linux because of timer thread
- 06:42 AM Bug #20237: Unable to unshare(CLONE_NEWUSER) in Linux because of timer thread
- Thank you @ko1 for sharing the current situation. I'm fine with closing this ticket as it is due to the design decisi...
- 02:16 PM Bug #20749 (Open): Error message not shown in output with prism
- test.rb:
```ruby
p = Proc.new
```
```
./ruby --parser=parse.y -I../ruby/lib -I. -I.ext/x86_64-linux -I.ext/com... - 01:27 PM Revision 50564f88 (git): ASAN unpoison whole heap page after adding to size pool
- 01:27 PM Revision 46ba3752 (git): Don't return inside of asan_unpoisoning_object
- 01:27 PM Revision c5a782df (git): Replace with asan_unpoisoning_object
- 01:13 PM Revision f4f46af9 (git): Complete spec
- Co-authored-by: Vít Ondruch <vondruch@redhat.com>
- 01:13 PM Revision 2bfeedc0 (git): [rubygems/rubygems] Simplify handling default gem caching
- By the time `cached_gem` is called, default gem cache has already been
handled. So no need to try redownload it again... - 12:44 PM Revision d57bc870 (git): [PRISM] Remove snapshot testing from Prism sync
- 11:38 AM Misc #20746: Request to migrate the json gem from flori/json repository to ruby/json
- +1, as I wrote in https://github.com/flori/json/issues/591 I think this is important for many reasons.
- 08:02 AM Misc #20746 (Open): Request to migrate the json gem from flori/json repository to ruby/json
- ### Context
The `json` gem, which is part of Ruby's default gems, is the only default gem (aside from `rubygems` i... - 11:37 AM Revision fab01b15 (git): [rubygems/rubygems] Remove temporary `.lock` files left around by gem installer
- https://github.com/rubygems/rubygems/commit/edbb2e3475
- 11:37 AM Revision 7411caa1 (git): [rubygems/rubygems] Make sure implementations of `Gem.open_file_with_flock` match
- https://github.com/rubygems/rubygems/commit/174a8e5284
- 06:51 AM Bug #20745: IO::Buffer#copy triggers UB when src/dest buffers overlap
- `#set_string` in combination with `.for` with a block has the same problem.
```shell-session
% docker run --platf... - 06:33 AM Bug #20745 (Open): IO::Buffer#copy triggers UB when src/dest buffers overlap
- The current implementation of `IO::Buffer#copy` uses `memcpy` to copy data between the two memory regions. `memcpy` h...
- 01:35 AM Feature #20738: Removing a specific entry from a hash literal
- It would be better to explain the motive. This is an appropriate code.
``` ruby
{
foo: 1
bar: 2
}
```
... - 01:19 AM Feature #20738: Removing a specific entry from a hash literal
- I would like to offer that as I used a simple grep pattern, I could only find simple examples. I wanted to show that ...
09/15/2024
- 07:15 PM Bug #20726: Issue with hash without braces when assigned to constant with ractor literals
- This problem was not reproduced with `--parser=prism`, but with `--parser=parse.y`.
```ruby
# shareable_constant_... - 06:07 PM Bug #20743: ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
- Apparently introduced in the following commit:
https://github.com/ruby/ruby/commit/5a4f997b2e8e819ed40731cd769826112... - 05:58 PM Bug #20743 (Open): ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
- ```
$ docker run --rm alpine:3.20.3 sh -euxc '
apk add git build-base autoconf ruby yaml-dev zlib-dev openssl-d... - 06:06 PM Feature #20738: Removing a specific entry from a hash literal
- > There are several Rails codes that can be improved with this feature.
As one of the maintainer of the code you ... - 04:32 PM Feature #20738: Removing a specific entry from a hash literal
- ursm (Keita Urashima) wrote in #note-9:
> There are several Rails codes that can be improved with this feature. In m... - 12:36 PM Feature #20738: Removing a specific entry from a hash literal
- Eregon (Benoit Daloze) wrote in #note-8:
> I don't think it's very frequent to need this to warrant a syntax change ... - 05:52 PM Feature #20742: Trying to assign to a variable in statement modifier should emit a warning
- Assigning in post-conditionals is a fairly common in Ruby. If this is to be a warning, it would have to be limited t...
- 05:42 PM Feature #20742 (Open): Trying to assign to a variable in statement modifier should emit a warning
- There is an example in Control Expressions documentation:
```
p a if a = 0.zero? # raises NameError “undefined lo... - 10:25 AM Bug #20736: prism emits wrong warnings in syntax-error code
- I think good error recovery is key to have helpful error messages when writing Ruby code.
Maybe one way here is to... - 12:51 AM Bug #20736: prism emits wrong warnings in syntax-error code
- https://github.com/ruby/ruby/pull/11626
- 12:46 AM Bug #20736: prism emits wrong warnings in syntax-error code
- I wonder if error recovery is needed in the interpreter's parser. It might be a benefit to be able to output almost a...
- 09:10 AM Bug #20741: RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
- > prism?
Yes:
```
$ ./miniruby --parser=parse.y -we 'p RubyVM::InstructionSequence.compile("42").eval'
42
$ ... - 01:05 AM Bug #20741 (Closed): RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
- ```
$ ./local/bin/ruby -we 'p RubyVM::InstructionSequence.compile("42").eval'
<compiled>:1: warning: possibly usele... - 01:06 AM Revision 532af89e (git): Prevent warnings: the block passed to ... may be ignored
- 01:05 AM Revision bc13ec73 (git): Prevent warnings: assigned but unused variable
09/14/2024
- 04:34 PM Feature #20738: Removing a specific entry from a hash literal
- I don't think it's OK to magically drop entries from a literal based on some value, it's way too surprising.
Notably ... - 05:24 AM Feature #20738: Removing a specific entry from a hash literal
- I believe that the following two points will prevent the same problems as in the past:
1. Use a value that is neve... - 04:53 AM Feature #20738: Removing a specific entry from a hash literal
- History. Long ago in Ruby, such a special value actually existed. It was `nil`.
```ruby
# ruby 1.4.6
h = { 1 => ... - 07:54 AM Bug #20730: LoadError if Rakefile has shebang
- `ruby` command handles a shebang, but it is not a part of the Ruby syntax.
Parsers should not consider shebang lines.
Also available in: Atom