Project

General

Profile

Activity

From 06/26/2022 to 07/02/2022

07/02/2022

11:42 PM Feature #18894 (Open): Object#make_shareable
I'm proposing a callback method for when one calls `Ractor.make_shareable(obj)`, the same way `Marshal.dump(obj)` cal... chucke (Tiago Cardoso)
11:02 PM Bug #18893 (Closed): Don't redefine memcpy(3)
It is Undefined Behavior, by any standard ever issued.
See what I have in my system right now:
```
alx@asu...
alx (Alejandro Colomar)
02:17 PM Misc #18891: Expand tabs in C code
One more solution would be:
4. Do not use broken editors.
¯\\\_(ツ)\_/¯
Should be at least listed here as an option.
graywolf (Gray Wolf)
05:57 AM Misc #18891 (Closed): Expand tabs in C code
# Problem
There's no way to handle tab/space-mixed indentation of CRuby's C code properly in VSCode. It impacts the ...
k0kubun (Takashi Kokubun)
06:11 AM Bug #18892 (Closed): ARGF.lineno starts from 2 when the file has shebang
Since ruby 3.0, `ARGF.lineno` starts from 2 if the file has shebang.
Following example has `#!/usr/bin/env ruby`, ...
znz (Kazuhiro NISHIYAMA)
05:01 AM Feature #17753: Add Module#namespace
@ioquatix (Samuel Williams)
The non-negative part of your code looks pretty much convoluted. To simplify your code (...
sawa (Tsuyoshi Sawada)
12:03 AM Feature #17753: Add Module#namespace
```ruby
class Class
def name(offset = nil)
return super() unless offset
parts = super().split('::')
i...
ioquatix (Samuel Williams)
01:48 AM Bug #18890 (Closed): parse.y: pattern label is newline-sensitive if it is dynamic
The two patterns in the code below behave differently:
```ruby
def f(obj)
case obj
in foo:
0
true...
qnighy (Masaki Hara)

07/01/2022

04:13 PM Feature #17753: Add Module#namespace
ioquatix (Samuel Williams) wrote in #note-21:
> ```ruby
> class A::B::C::MyClass; end
>
> A::B::C::MyClass.name(0) #...
sawa (Tsuyoshi Sawada)
06:52 AM Feature #17753: Add Module#namespace
@tenderlovemaking what about some kind of "uplevel" concept for name:
```ruby
class A::B::C::MyClass; end
A::B...
ioquatix (Samuel Williams)
11:52 AM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
Actually, `NEED_NEWLINE_DECORATOR_ON_READ_CHECK()` and `do_writeconv()` set `O_TEXT` or `O_BINARY` always on each I/O. nobu (Nobuyoshi Nakada)
11:47 AM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
alanwu (Alan Wu) wrote in #note-9:
> So potentially, someone could use Fiddle or some C extension
> to call `_set_f...
nobu (Nobuyoshi Nakada)

06/30/2022

09:20 PM Bug #18794: Windows - intermittent SEGV TestObjSpace#test_reachable_objects_during_iteration
This test is still causing intermittent failures. I tried it locally, and (of course) it did not SEGV.
I modified t...
MSP-Greg (Greg L)
09:14 PM Misc #18888: Migrate ruby-lang.org mail services to Google Domains and Google Workspace
Thanks for the information.
We are not going to use Google Domains to send emails, but we may reconsider it.
shugo (Shugo Maeda)
08:31 PM Misc #18888: Migrate ruby-lang.org mail services to Google Domains and Google Workspace
Not sure if this applies to your situation, but a very quick warning based on my own experience: we use a Google Doma... Dan0042 (Daniel DeLorme)
03:22 AM Misc #18888 (Closed): Migrate ruby-lang.org mail services to Google Domains and Google Workspace
Currently mail services of ruby-lang.org including mailing lists are running on an aged server, and we have to replac... shugo (Shugo Maeda)
02:54 PM Bug #18889 (Third Party's Issue): Segmentation fault in sequel/adapters/odbc.rb
This isn't a Ruby bug, or a Sequel bug, the crash is in `libiodbc.2.dylib` according to the backtrace. You probably ... jeremyevans0 (Jeremy Evans)
11:53 AM Bug #18889 (Third Party's Issue): Segmentation fault in sequel/adapters/odbc.rb
https://github.com/jeremyevans/sequel/issues/1888
It appeared after upgrade the OS to
Darwin 21.5.0 Darwin Ker...
krocodl (Victor Alekseev)
01:20 PM Misc #18691: An option to build Ruby with build only flags not propagated to `rbconfig.rb`.
I just renamed this ticket's title from "An option to run `make rbconfig.rb` in a different directory" to "An option ... jaruga (Jun Aruga)
08:37 AM Misc #18691: An option to build Ruby with build only flags not propagated to `rbconfig.rb`.
nobu (Nobuyoshi Nakada) wrote in #note-12:
> jaruga (Jun Aruga) wrote in #note-10:
> > I tested. And I see that the...
jaruga (Jun Aruga)
10:58 AM Feature #18814: Ractor: add method to query incoming message queue size

I created a PR for this issue: https://github.com/ruby/ruby/pull/5973
phigrofi (Philipp Großelfinger)
10:49 AM Feature #17679: Ractor incoming channel can consume unlimited resources
Thanks @phigrofi for the hint! Definitely looks like an interesting way out of this. ivoanjo (Ivo Anjo)
10:44 AM Feature #17679: Ractor incoming channel can consume unlimited resources
I created a different issue, which would help to query to incoming queue size from outside of a ractor: https://bugs.... phigrofi (Philipp Großelfinger)
09:27 AM Feature #18885: End of boot advisory API for RubyVM
Another possible optimization I just found:
Strings have a lazily computed `coderange` attribute in their flags. S...
byroot (Jean Boussier)
07:32 AM Bug #18877 (Closed): parse.y: escaped space inconsistently allowed after assignment
Applied in changeset commit:git|982cda9a3e908c7ab49632c46f4b1e3c0219f9f2.
----------
[Bug #18877] Let `lex_ctxt` not...
nobu (Nobuyoshi Nakada)
03:26 AM Misc #18836: DevMeeting-2022-07-21
* [Misc #18888] Migrate ruby-lang.org mail services to Google Domains and Google Workspace
* We are planning to ...
shugo (Shugo Maeda)

06/29/2022

12:26 PM Bug #18881: IO#read_nonblock raises IOError when called following buffered character IO
There needs to be documentation to cover the corner cases no matter what. Wouldn't it be better to document the curr... javanthropus (Jeremy Bopp)
08:02 AM Bug #18881: IO#read_nonblock raises IOError when called following buffered character IO
Basically yes. Some edge cases can be considered though (e.g. IO#flush could also reset this, IO#pread could be spec... shyouhei (Shyouhei Urabe)
07:39 AM Bug #18881: IO#read_nonblock raises IOError when called following buffered character IO
Do you mean that once character oriented methods are called, all byte oriented methods always fail?
(Possibly reset ...
nobu (Nobuyoshi Nakada)
06:09 AM Bug #18881: IO#read_nonblock raises IOError when called following buffered character IO
nobu (Nobuyoshi Nakada) wrote in #note-4:
> @shyouhei Even without any conversion?
Yes. "Byte oriented and chara...
shyouhei (Shyouhei Urabe)
05:21 AM Bug #18881: IO#read_nonblock raises IOError when called following buffered character IO
@shyouhei Even without any conversion?
This is an example on macOS.
```shell
$ ruby -v -e 'r, w = IO.pipe; r.set...
nobu (Nobuyoshi Nakada)
05:12 AM Bug #18881: IO#read_nonblock raises IOError when called following buffered character IO
@nobu Yes but wouldn't it be nice if IO#read_nonblock also raises on Linux? shyouhei (Shyouhei Urabe)
05:07 AM Bug #18881 (Rejected): IO#read_nonblock raises IOError when called following buffered character IO
It is an expected behavior.
On Windows, text/binary conversion is used by default, and `ungetc` pushes back the char...
nobu (Nobuyoshi Nakada)
10:03 AM Misc #18691: An option to build Ruby with build only flags not propagated to `rbconfig.rb`.
jaruga (Jun Aruga) wrote in #note-10:
> I tested. And I see that the `make install` also needs the `ARCH_FLAG` to bu...
nobu (Nobuyoshi Nakada)
08:08 AM Bug #18887 (Closed): documentation for protected methods
I think it is correct before the change.
Which is correct?
https://github.com/ruby/ruby/commit/962a3247b1b7677093...
znz (Kazuhiro NISHIYAMA)
06:05 AM Bug #18886: Struct aref and aset don't trigger any tracepoints.
With some minor changes the best performance I could get is around 20% cost:
```
| |compare...
ioquatix (Samuel Williams)
03:23 AM Bug #18886: Struct aref and aset don't trigger any tracepoints.
Here is my performance comparison:
Firstly, with no changes (should be identical, shows some variance).
```
> ...
ioquatix (Samuel Williams)
02:19 AM Bug #18886 (Closed): Struct aref and aset don't trigger any tracepoints.
Given the following program, `thing.name` and `thing.shape` don't trigger `c_call` trace points (or any trace points ... ioquatix (Samuel Williams)
05:13 AM Bug #18884 (Closed): parse.y: inconsistent parsing of "if" after "class"
Applied in changeset commit:git|685efac05983dee44ce2d96c24f2fcb96a0aebe2.
----------
[Bug #18884] `class` cannot be ...
nobu (Nobuyoshi Nakada)
01:03 AM Misc #18834: Significant change in loop speeds (regressing using while loop on ARM chips)
Attached are both the Intel and ARM rbconfigs.
**Note:** both have the ruby version installed through ASDF and run...
tarellel (Brandon Hicks)

06/28/2022

01:21 PM Feature #18885 (Closed): End of boot advisory API for RubyVM
### Context
Many optimizations in the Ruby VM rely on lazily computed caches: Strings coderange, constant caches, ...
byroot (Jean Boussier)
12:21 PM Feature #18559: Allocation tracing: Objects created by the parser are attributed to Kernel.require
So I tried adding a `frame` before the ISeq is compiled: https://github.com/ruby/ruby/pull/5998
It somewhat works ...
byroot (Jean Boussier)
07:25 AM Bug #18883: parse.y: trailing comma cannot coexist with star
As far as I understand, trailing comma is an equivalent of `*_` (unpack the rest and drop it):
```ruby
x, = [1, 2, ...
zverok (Victor Shepelev)
03:44 AM Bug #18883 (Rejected): parse.y: trailing comma cannot coexist with star
The following code is a syntax error:
```ruby
*x, y, = 1, 2 # syntax error, unexpected '='
```
although the f...
qnighy (Masaki Hara)
03:54 AM Bug #18884 (Closed): parse.y: inconsistent parsing of "if" after "class"
There is a corner case where `if` inconsistently causes a syntax error:
```ruby
# syntax error, unexpected `if' ...
qnighy (Masaki Hara)
03:38 AM Bug #18878: parse.y: Foo::Bar {} is inconsistently rejected
> Is there a more descriptive error message, or is `SyntaxError` the only output provided?
This is the actual erro...
qnighy (Masaki Hara)
02:09 AM Bug #18882 (Rejected): File.read cuts off a text file with special characters when reading it on MS Windows
You can use `File.binread`. nobu (Nobuyoshi Nakada)
12:17 AM Bug #18876 (Closed): OpenSSL fails to autoload in --with-static-linked-ext builds
hsbt (Hiroshi SHIBATA)

06/27/2022

04:48 PM Bug #18878: parse.y: Foo::Bar {} is inconsistently rejected
Is there a more descriptive error message, or is `SyntaxError` the only output provided? lhmzhou (Linda Zhou)
04:40 PM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
Huh, Ruby might be exposing a C runtime behavior here.
Assuming I'm reading the call graph right, and there
isn't som...
alanwu (Alan Wu)
03:10 PM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
magynhard (Matthäus Johannes Beyrle) wrote in #note-7:
> alanwu (Alan Wu) wrote in #note-5:
> Might be nice if File...
austin (Austin Ziegler)
02:46 PM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
alanwu (Alan Wu) wrote in #note-5:
> `File.read` (actually `IO.read`) interprets the file based on the
> external e...
magynhard (Matthäus Johannes Beyrle)
02:30 PM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
alanwu (Alan Wu) wrote in #note-5:
> `File.read` (actually `IO.read`) interprets the file based on the
> external e...
austin (Austin Ziegler)
02:19 PM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
`File.read` (actually `IO.read`) interprets the file based on the
external encoding, which is a function of the plat...
alanwu (Alan Wu)
02:14 PM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
> it behaves correctly on Linux, i expect not to need to use binary mode
I think binary mode is a no-op on Linux t...
chrisseaton (Chris Seaton)
02:02 PM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
This is Windows-specific, and there is not an error condition to check for reporting on this.
The distinction betwee...
austin (Austin Ziegler)
01:44 PM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
chrisseaton (Chris Seaton) wrote in #note-1:
> Don't you need to use binary mode to read these characters?
As it ...
magynhard (Matthäus Johannes Beyrle)
12:47 PM Bug #18882: File.read cuts off a text file with special characters when reading it on MS Windows
Don't you need to use binary mode to read these characters? chrisseaton (Chris Seaton)
11:12 AM Bug #18882 (Rejected): File.read cuts off a text file with special characters when reading it on MS Windows
When using File.read to read a text file (in this case a javascript file) with special characters, the content is cut... magynhard (Matthäus Johannes Beyrle)
06:59 AM Bug #18876: OpenSSL fails to autoload in --with-static-linked-ext builds
i install cocoapods succeed, tks.
so i only need update opessl.rb file in `destroot/bundle/lib/ruby/site_ruby/3.1...
Gloomy_meng (Gloomy Meng)
03:36 AM Bug #18876: OpenSSL fails to autoload in --with-static-linked-ext builds
Try the patch I posted on:
/Users/didi/Documents/CocoaPods-app/destroot/bundle/lib/ruby/site_ruby/3.1.0/rubyge...
alanwu (Alan Wu)
03:25 AM Bug #18876: OpenSSL fails to autoload in --with-static-linked-ext builds
and [11:01:21] [rubygems-update-3.3.15] Patching: destroot/bundle/bin/gem is replace `#!/Users/didi/Documents/CocoaPo... Gloomy_meng (Gloomy Meng)
03:17 AM Bug #18876: OpenSSL fails to autoload in --with-static-linked-ext builds
ruby version changed to 3.1.2 still error ~
Here is the file I refer to, https://github.com/CocoaPods/CocoaPods-ap...
Gloomy_meng (Gloomy Meng)
02:31 AM Bug #18876 (Open): OpenSSL fails to autoload in --with-static-linked-ext builds
I had some [issues](https://github.com/ruby/openssl/pull/520) building OpenSSL
and the Ruby wrapper, but I was able ...
alanwu (Alan Wu)
12:28 AM Bug #14246: Inconsistent C source code indentation
ioquatix (Samuel Williams) wrote in #note-16:
> Does this policy apply to the formatting of default gems too?
I d...
shyouhei (Shyouhei Urabe)
12:21 AM Bug #18881: IO#read_nonblock raises IOError when called following buffered character IO
Not looking at the implementation but sounds like an issue of Linux side to me. The error message seems intentional. shyouhei (Shyouhei Urabe)

06/26/2022

04:35 PM Bug #18881 (Rejected): IO#read_nonblock raises IOError when called following buffered character IO
The following example code works as expected on Linux but raises an `IOError` on Windows:
``` ruby
r, w = IO.pipe...
javanthropus (Jeremy Bopp)
04:26 PM Bug #18880 (Closed): IO#sysread on Windows does not validate arguments
When passing an invalid number of bytes to read, such as `-1` , to `IO#sysread` on Linux, an `ArgumentError` is raise... javanthropus (Jeremy Bopp)
04:09 PM Bug #18879 (Closed): missing linker flag "-framework Security" for macOS 10.7 .. 10.9
Applied in changeset commit:git|fc8020c68eb9f640185a1bce322eba6605bde151.
----------
[Bug #18879] Fix macOS version ...
nobu (Nobuyoshi Nakada)
01:19 PM Bug #18879 (Closed): missing linker flag "-framework Security" for macOS 10.7 .. 10.9
it looks target OS version detection in ./configure fails. (10.7 <= ver < 10.10)
macOS's AvailabilityMacros.h does...
kimuraw (Wataru Kimura)
01:06 PM Bug #18878 (Assigned): parse.y: Foo::Bar {} is inconsistently rejected
The following source doesn't parse:
```ruby
Foo::Bar {}
```
despite the following:
```ruby
bar ...
qnighy (Masaki Hara)
12:57 PM Bug #18877 (Closed): parse.y: escaped space inconsistently allowed after assignment
The following source inconsistently parses:
```ruby
x = \ 42
```
though this one not:
```ruby
\ 42
```
...
qnighy (Masaki Hara)
 

Also available in: Atom