Activity
From 01/23/2022 to 01/29/2022
01/29/2022
-
08:34 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Right, I have an update -- I worked out that `syntax` was also a gem :) so in the end I added:
```
gem "middleman... -
08:16 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- mame (Yusuke Endoh) wrote in #note-9:
> anthonyaykut (Anthony Aykut) wrote in #note-8:
> > and then... `bundle inst... -
05:24 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- anthonyaykut (Anthony Aykut) wrote in #note-8:
> and then... `bundle install`:
>
> ```
...
> Using ffi 1.15.5
... -
07:30 PM Bug #17629: macOS, readline compiled with libedit: adding entries to history doesn't work unless Readline.readline is called before populating it
- Can someone close this ticket? I don't see a possibility to do it myself.
-
07:28 PM Bug #18558 (Closed): Numbered arguments + eval
- ```ruby
def yield_2_args
yield 1, 2
end
yield_2_args { p [eval("_1"), _2] }
```
Running with ruby 2.7.2, ... -
08:36 AM Misc #18557 (Closed): DevMeeting-2022-02-17
- # The next dev meeting
**Date: 2022/02/17 13:00-17:00** (JST)
Log: https://github.com/ruby/dev-meeting-log/blob/m... -
08:36 AM Misc #18399 (Closed): DevMeeting-2022-01-13
-
08:32 AM Feature #18370: Call Exception#full_message to print exceptions reaching the top-level
- Discussed on the dev-meeting.
#18367 was accepted, so @matz said "give it a try". Need to create a PR. -
08:31 AM Feature #16122: Data: simple immutable value object
- Discussed on the dev-meeting.
@matz is now negative to allow settings. Having various semantics in one Struct clas... -
08:29 AM Feature #16806 (Closed): Struct#initialize accepts keyword arguments too by default
- @nobu already committed the last step at commit:c956f979e5d05900315d2753d5c3b1389af8dae4. Closing.
-
08:10 AM Feature #18438: Add `Exception#additional_message` to show additional error information
- @matz accepted the name `detailed_message`. I'll update and improve my PR (or volunteer is welcome)
Note: the rdoc... -
08:02 AM Feature #18285: NoMethodError#message uses a lot of CPU/is really expensive to call
- Discussed at the dev-meeting but no conclusion.
@akr said the part `0xXXXXXXXXXXXXXXXX` is almost useless, and rou... -
07:28 AM Bug #18556: error: use of undeclared identifier 'MAP_ANONYMOUS'
- https://github.com/ruby/ruby/pull/5506
-
03:08 AM Bug #18556 (Closed): error: use of undeclared identifier 'MAP_ANONYMOUS'
- ruby 3.1.0 fails to build on older versions of macOS such as OS X 10.10.5:
```
gc.c:11141:88: error: use of undec... -
07:07 AM Bug #18512: MacOS 12.1 Monterey Bug
- I'm unsure but you failed to recompile ffi gem because the size of ffi_c.bundle did not change.
Before:
```
{
"... -
12:08 AM Bug #18512: MacOS 12.1 Monterey Bug
- IPS Report:
```
oucl5976@ck1 cf-zendesk % cat ~/Library/Logs/DiagnosticReports/ruby-2022-01-29-000341.ips
{"app_... -
12:06 AM Bug #18512: MacOS 12.1 Monterey Bug
- ```
oucl5976@ck1 ~ % gem uninstall ffi
You have request... -
06:08 AM Bug #18514: ruby 2.6.9's Date#jisx0301 does not support Reiwa
- > Can you confirm with date-2.0.3 ?
Thank you so much.
I tried it, then I get good result!
-
03:01 AM Feature #18490: MakeMakefile.pkg_config should accept multiple options
- Accepted.
Matz.
01/28/2022
-
11:51 PM Bug #18512: MacOS 12.1 Monterey Bug
- [email protected] (Paul Liu) wrote in #note-4:
> gem install ffi --enable-libffi-alloc
> ERROR: While executing g... -
11:39 PM Bug #18512: MacOS 12.1 Monterey Bug
- gem install ffi --enable-libffi-alloc
ERROR: While executing gem ... (Gem::OptionParser::InvalidOption)
invali... -
11:13 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
- Eregon (Benoit Daloze) wrote in #note-1:
> OTOH Range operations that work differently for numerics tend to make Ran... -
04:16 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
- Yes, this is a useful change. Although wouldn't it be better to prevent `#to_a` instead of only `#reverse_each` ?
... -
01:12 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
- I checked the PR, seems a useful change to me.
-
01:11 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
- There is no Range#reverse_each currently, only Enumerable#reverse_each, and Enumerable can't know about this.
But ma... -
11:02 PM Feature #18515: Add Range#reverse_each implementation
- In general, I think it would be better to improve `#reverse_each` by using `#pred` (predecessor; the inverse of `#suc...
-
08:04 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- mame (Yusuke Endoh) wrote in #note-7:
> If you are using bundler, try the second one.
>
> ```
> bundle config bu... -
07:51 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- If you are using bundler, try the second one.
```
bundle config build.ffi --enable-libffi-alloc
bundle install
... -
02:02 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- mame (Yusuke Endoh) wrote in #note-5:
> Ah, maybe it is a typo. Could you try `gem install ffi -- --enable-libffi-al... -
07:41 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Ah, maybe it is a typo. Could you try `gem install ffi -- --enable-libffi-alloc`?
-
04:04 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- mame (Yusuke Endoh) wrote in #note-3:
> Could you try this? https://github.com/ffi/ffi/issues/800#issuecomment-10083... -
02:18 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Could you try this? https://github.com/ffi/ffi/issues/800#issuecomment-1008308614
-
01:51 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Attaching my `gem env` output
-
01:47 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- By the way, I have noticed that running
`ruby -e 'require "rbconfig"; pp RbConfig::CONFIG' | grep "cpu"`
gives ... -
01:37 AM Bug #18555 (Closed): Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Hi All,
First of all, I am not a programmer or coder so I am having great difficulty solving this puzzle.
Since... -
03:26 PM Bug #18511: ruby in infinite loop consuming 100% CPU
- > could someone look into the core dump ? Is there any possibility to upload a 55MB file ?
I can't guarantee that ... -
09:47 AM Bug #18511: ruby in infinite loop consuming 100% CPU
- > Depending on your needs, maybe the pure Ruby [json_pure] gem is good enough. If you have performance requirements, ...
-
01:40 PM Bug #18518: NoMemoryError + [FATAL] failed to allocate memory for twice 1 << large
- From this log it's clear this issue happens on 3.1.0 macOS:
https://github.com/eregon/rubyspec/runs/4981235909?check... -
01:29 PM Bug #18518: NoMemoryError + [FATAL] failed to allocate memory for twice 1 << large
- Actually I'm not sure this is properly fixed on 3.1.0, it looks brittle, for instance it fails in GitHub Actions on m...
-
09:43 AM Feature #18552 (Closed): Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- Nevermind, on first read I didn't notice that these were two distinct function. That's good enough I think, no need t...
-
09:33 AM Feature #18554: Move unicode_normalize to a default gem
- Just a few comments, not sure I have thought everything through completely.
One of the motivations for implementin... -
01:03 AM Feature #18554: Move unicode_normalize to a default gem
- Just leaving my :+1: to this idea; not sure how difficult though.
-
06:23 AM Feature #18136: take_while_after
- In today's developer meeting, Matz said the only acceptable name so far was "drop_after" (if he had to choose). He's...
01/27/2022
-
10:42 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- > The name rb_singleton_class_get() doesn't seem great though.
Yeah, it could definitely be expose under another n... -
09:15 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- A new function seems better than that flag check (which doesn't work on TruffleRuby currently, will always return `fa...
-
05:22 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- > Which does seem very clean.
I of course meant "doesn't". Oops.
> In this case, it's exposing yet another oper... -
05:12 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- > `!SPECIAL_CONST(obj) && FL_TEST(RBASIC(obj)->klass, FL_SINGLETON);`
> Which does seem very clean.
Beyond cleanl... -
11:57 AM Feature #18552 (Closed): Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- Right now the only way to check wether an object has a singleton class is to do something akin to:
```c
!SPECIAL_... -
04:49 PM Feature #18554 (Open): Move unicode_normalize to a default gem
- Could we move the rest of unicode_normalize to a default gem?
The recent updates were mostly updating the Unicode ... -
04:22 PM Feature #18339: GVL instrumentation API
- I opened a draft for it: https://github.com/ruby/ruby/pull/5500
@ko1 if you'd like to have a look. -
02:30 PM Bug #18553 (Closed): Memory leak on compiling method call with kwargs
- The following code produces a memory leak:
```ruby
p(foo: 1)
```
It comes from the allocation in `compile.c`:... -
09:11 AM Bug #18516: Memory leak on aliasing method to itself
- I took the liberty to set the backport field.
I was able to repro on 2.6, 2.7,3.0 and 3.1. However 2.6 is security... -
06:46 AM Bug #18516 (Closed): Memory leak on aliasing method to itself
- Applied in changeset commit:git|e89d80702bd98a8276243a7fcaa2a158b3bfb659.
----------
Fix memory leak at the same nam... -
05:58 AM Feature #18551 (Closed): Make `Range#reverse_each` to raise an exception if endless
- https://github.com/ruby/ruby/pull/5498
Currently, `Range#reverse_each` for an endless range never returns.
```
... -
05:00 AM Bug #18517 (Closed): 0 << (2**40) is NoMemoryError but 0 << (2**80) is 0
- Applied in changeset commit:git|6a6227e0168b059c3ed34c9f0ace2e5dc2364221.
----------
Shifting zero always results in... -
04:51 AM Bug #18514: ruby 2.6.9's Date#jisx0301 does not support Reiwa
- I released date-2.0.3 with Reiwa support.
@kouji Can you confirm with [date-2.0.3](https://rubygems.org/gems/date/... -
01:52 AM Feature #18513: Hide patchlevel from `ruby -v`
- https://github.com/ruby/ruby/pull/5496
01/26/2022
-
08:56 PM Feature #13110: Byte-based operations for String
- Seems reasonable to me.
-
01:46 AM Feature #13110: Byte-based operations for String
- Are there any objections to introduce only byteindex and byteoffset?
-
07:42 PM Bug #18511: ruby in infinite loop consuming 100% CPU
- @shenningz
> Is there any way to replace the yajl-ruby C extension with another json extension?
Depending on y... -
07:07 PM Feature #18408: Allow pattern match to set instance variables
- Eregon (Benoit Daloze) wrote in #note-17:
> In practice it should rarely matter because if a clause isn't matched th... -
04:29 PM Bug #18389 (Closed): `binding.irb` can fail in some classes that implement `context` and `print` methods.
- Applied in changeset commit:git|b6b2e489f10bfc771beae8fa0ee5237613acd18f.
----------
[ruby/irb] Changed to call Kern... -
04:03 PM Bug #18517: 0 << (2**40) is NoMemoryError but 0 << (2**80) is 0
- https://github.com/ruby/ruby/pull/5494
-
03:21 PM Bug #18517 (Closed): 0 << (2**40) is NoMemoryError but 0 << (2**80) is 0
- I've been looking at Integer#{<<,>>} with RHS bignum and long and there are several issues.
This seems a clear bug... -
03:44 PM Bug #18516: Memory leak on aliasing method to itself
- https://github.com/ruby/ruby/pull/5493
-
03:20 PM Bug #18516: Memory leak on aliasing method to itself
- ibylich (Ilya Bylich) wrote in #note-1:
> but if we stop increment `alias_count` on `alias foo foo` the warning appe... -
02:30 PM Bug #18516: Memory leak on aliasing method to itself
- As @nobu mentioned the following code gives no warnings (in verbose mode):
```ruby
class A
def foo; end
ali... -
01:22 PM Bug #18516 (Closed): Memory leak on aliasing method to itself
- The following code produces a memory leak:
```ruby
class A
1.upto(Float::INFINITY) do |i|
define_method(:... -
03:30 PM Bug #18518 (Rejected): NoMemoryError + [FATAL] failed to allocate memory for twice 1 << large
- Repro:
```ruby
exp = 2**40 # also fails with bignum e.g. 2**64
def exc
begin
yield
rescue NoMemoryErr... -
07:52 AM Bug #18501: [BUG] try to mark T_NONE object in RubyVM::InstructionSequence. load_from_binary
- Thanks @tenderlove, your explanation makes sense to me.
From your description we should be able to reproduce with... -
05:57 AM Feature #18515 (Closed): Add Range#reverse_each implementation
- PR is ~~https://github.com/ruby/ruby/pull/5489~~ https://github.com/ruby/ruby/pull/8525
Current `Range#reverse_eac... -
03:07 AM Bug #18514: ruby 2.6.9's Date#jisx0301 does not support Reiwa
- I prepared to fix this regression.
https://github.com/ruby/date/pull/47
I will release date-2.0.3 for Ruby 2.6 ... -
02:11 AM Bug #18514 (Closed): ruby 2.6.9's Date#jisx0301 does not support Reiwa
-
01:45 AM Bug #18514 (Closed): ruby 2.6.9's Date#jisx0301 does not support Reiwa
- In ruby 2.6.9 (ruby 2.6.9p207 (2021-11-24 revision 67954) [x86_64-darwin20]).
$ ruby -rdate -e 'p Date.new(2019, 5, ... -
01:52 AM Feature #18513: Hide patchlevel from `ruby -v`
- :+1:, patch levels no longer serves us very well.
01/25/2022
-
11:57 PM Bug #18501: [BUG] try to mark T_NONE object in RubyVM::InstructionSequence. load_from_binary
- ## Hash is writing T_NONE references
I think it's possible that T_NONE objects are being written in to a hash. Ba... -
12:39 PM Feature #18513 (Closed): Hide patchlevel from `ruby -v`
- We still show patch-level like `3.1.0p0` with `ruby -v`. But it has no benefit for users.
In fact, I heard "What ... -
11:29 AM Bug #18512 (Feedback): MacOS 12.1 Monterey Bug
- Could you try this? https://github.com/ffi/ffi/issues/800#issuecomment-1008308614
-
11:20 AM Bug #18512: MacOS 12.1 Monterey Bug
- I guess this is related to #18496, and maybe the cause is FFI with M1.
-
10:41 AM Bug #18512 (Third Party's Issue): MacOS 12.1 Monterey Bug
- Steps to Reproduce
1. Create an Zendesk App: https://developer.zendesk.com/documentation/apps/app-developer-guide/za... -
08:57 AM Bug #18507: Incorrect target_os detection in configure script
In case 'arm-unknown-linux-gnueabihf' GNU Autotools recognizes target_os as 'linux-gnueabihf' (and 'linux-gnu' if '...-
07:44 AM Feature #18483 (Closed): `RUBY_ON_BUG` feature for ruby release version
- Applied in changeset commit:git|a51e1cd682daeb76f201e62eaedcf6d51a18cffe.
----------
enable `RUBY_ON_BUG` on release... -
07:33 AM Feature #18181: Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
- Another name proposal:
When I write `array.min_with_value { foo }`, I mean "minimize foo with an element in array"... -
02:15 AM Feature #18490: MakeMakefile.pkg_config should accept multiple options
- @nobu, I wanted to check if there was any other feedback on this feature? Thank you again for your time.
-
12:33 AM Bug #18437 (Closed): 3.1.0 install stucks on FreeBSD & NFS
-
12:23 AM Bug #18437: 3.1.0 install stucks on FreeBSD & NFS
- Oh, I see. Thanks for the fix.
I think this issue has been resolved.
# 自分で Issue 閉じれないんですね……。
01/24/2022
-
11:41 PM Feature #18253 (Closed): `ID` in `rb_id_table_foreach_with_replace`
- Applied in changeset commit:git|530e485265dac6e2aea1d587a4a79a314cc772cf.
----------
`ID` in `rb_id_table_foreach_wi... -
10:40 PM Feature #18273: Class#subclasses
- I see, and tend to agree—to some extent, at least!
Not sure how much can be done here—some amount of "semantically... -
03:45 PM Feature #18273: Class#subclasses
- More than the existence of a real collection (which is a private implementation detail), it is the existence of a cle...
-
02:53 PM Feature #18273: Class#subclasses
- @zverok Sorry, we were typing at the same time.
Exactly! That is my point of view! -
02:52 PM Feature #18273: Class#subclasses
- @zverok I think our disagreement is clear. Perhaps your position is also the one of @byroot.
To me, `Class#subclas... -
02:52 PM Feature #18273: Class#subclasses
- @fxn You know what?
I think I actually got your point:
* `Class#ancestors` represent a "really existing thing", ... -
02:11 PM Feature #18273: Class#subclasses
- > In the sense that, as a programmer, if I do not change the collection, it should stay the same.
Of course, removin... -
01:55 PM Feature #18273: Class#subclasses
- @zverok sure!
I see your point, it works as it is supposed to be.
My point is, `Class#subclasses` should be det... -
01:48 PM Feature #18273: Class#subclasses
- We are going in circles here :( It is "non-deterministic" all right, but also reflects the reality.
It is more or ... -
01:38 PM Feature #18273: Class#subclasses
- @zverok one thing is "subclasses can vanish", because the language is dynamic (like ancestors can change), and a diff...
-
01:26 PM Feature #18273: Class#subclasses
- TBH, I still fail to see the point of how the API clearly reflecting the reality should be considered a "broken windo...
-
12:19 PM Feature #18273: Class#subclasses
- Hmm, now that I think, maybe you don't see how this affects Zeitwerk directly.
In Zeitwerk, "reloading" means issuin... -
11:19 AM Feature #18273: Class#subclasses
- @zverok Absolutely, the API of a dynamic language should be dynamic.
For example, take this:
```ruby
C = Class... -
10:38 AM Feature #18273: Class#subclasses
- @fxn Isn't it an inherent property of a dynamic language, that whatever you can introspect about the code structure, ...
-
10:31 AM Feature #18273: Class#subclasses
- To me, this feature makes sense in a language where subclasses cannot disappear once created. In Ruby, they are regul...
-
10:28 AM Feature #18273: Class#subclasses
- > Sure, and you are entitled to it, I just don't understand how you reconcile it with the existence of weak reference...
-
10:20 AM Feature #18273: Class#subclasses
- Sure, and you are entitled to it, I just don't understand how you reconcile it with the existence of weak references.
-
10:18 AM Feature #18273: Class#subclasses
- That is, _since_ objects are not gced as soon as they are unreachable, this implementation of `Class#subclasses` is n...
-
10:17 AM Feature #18273: Class#subclasses
- To me it behave just like weak references do:
```ruby
weakmap = ObjectSpace::WeakMap.new
weakmap[Object.new] = O... -
10:13 AM Feature #18273: Class#subclasses
- What I mean is that `Class#subclasses` is effectively a cache that does not have proper invalidation.
The red flag... -
10:07 AM Feature #18273: Class#subclasses
- I don't think I understand what your issue is. `subclasses` returns all the *live object* (not yet GCed) that are dir...
-
10:01 AM Feature #18273: Class#subclasses
- > This is perfectly fine, Ruby isn't concerned about wether a Class is still present in the constant table or not
... -
08:26 AM Feature #18273: Class#subclasses
- > In my view, this method does not play well with object lifetime, semantically.
This is perfectly fine, Ruby isn'... -
12:32 AM Feature #18273: Class#subclasses
- Said in a different way:
```ruby
C = Class.new
-> { Class.new(C); 1 }.call
pp C.subclasses
pp C.subclasses
``... -
12:15 AM Feature #18273: Class#subclasses
- In my view, this method does not play well with object lifetime, semantically.
Take for example:
```ruby
C = Class.... -
07:57 PM Bug #18511: ruby in infinite loop consuming 100% CPU
- Right now we cannot reproduce this systematically, it just occurs with our Fluentd workload sooner or later.
Fluentd... -
04:06 PM Bug #18511 (Feedback): ruby in infinite loop consuming 100% CPU
- This happens inside the yajl-ruby C extension. Can you reproduce this without yajl-ruby?
-
02:13 PM Bug #18511 (Closed): ruby in infinite loop consuming 100% CPU
- After running Fluentd (Td-agent) workload for several hours or days, Ruby hangs in an infinite loop.
gdb stack tra...
01/23/2022
-
02:57 PM Feature #18481: Porting YJIT to Rust (request for feedback)
- Numba uses llvmlite https://github.com/numba/llvmlite for its JIT, but seems to need many patches. They also primaril...
-
02:53 PM Bug #18510 (Open): Unexpected waiting for console when starting ruby on windows
- # ruby version
C:\Ruby31-x64\bin>"c:\Ruby31-x64\bin\ruby.exe" -v
ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x64... -
02:34 PM Bug #18437: 3.1.0 install stucks on FreeBSD & NFS
- That's great to hear. Yes, we fixed this differently by avoiding flock on non Windows platforms, since it didn't seem...
-
08:22 AM Bug #18437: 3.1.0 install stucks on FreeBSD & NFS
- I tried installing the latest development version of Ruby and RubyGems, and successfully completed it.
```
% rben... -
11:51 AM Bug #18501: [BUG] try to mark T_NONE object in RubyVM::InstructionSequence. load_from_binary
- I sent the core files to Aaron privately.