Project

General

Profile

Activity

From 06/08/2019 to 06/14/2019

06/14/2019

11:59 PM Feature #15923: New independent string without memcpy
puchuu (Andrew Aladjev) wrote:
> Is it possible to create independent string from source string without memcpy that ...
shyouhei (Shyouhei Urabe)
01:51 PM Feature #15923 (Rejected): New independent string without memcpy
Hello. I've just tried to implement extension for ruby that will provide large binary strings.
I've inspected late...
puchuu (Andrew Aladjev)
11:12 PM Feature #15799: pipeline operator
Matz:
Ruby being a "Lisp-2" means that the pipeline operator couldn't be implemented like a "normal" operator (all...
dgutov (Dmitry Gutov)
07:30 PM Feature #15799: pipeline operator
rogeriochaves (Rogerio Chaves) wrote:
> May I give yet another suggestion? What about :., it would keep the visual e...
konsolebox (K B)
04:56 PM Feature #15799: pipeline operator
@cichol Agreed! Here is a working proof of concept for an "operator-less" pipe operator which feels more natural in R... shuber (Sean Huber)
01:15 PM Feature #15799: pipeline operator
Hi,
I want to introduce a way to pipeline method calls in Ruby.
I imagined that the Ruby-styled pipelined calls...
cichol (Renxiang Cai)
11:03 AM Feature #15799: pipeline operator

May I give yet another suggestion? What about :., it would keep the visual effect
```ruby
1 + 1
:. to_s 2
:. ...
rogeriochaves (Rogerio Chaves)
10:30 AM Feature #15799: pipeline operator
From my perspective, the |> operator exists because in functional programming languages you have these increasingly n... d-snp (Tinco Andringa)
08:27 AM Feature #15799: pipeline operator
I wonder if it would be possible to get method objects somehow. `.:` was capable of doing this off of objects, but do... baweaver (Brandon Weaver)
07:45 AM Feature #15799: pipeline operator
Unlike JavaScript and Python (Lisp-1 like languages), Ruby is a Lisp-2 like language, in which methods and variable h... matz (Yukihiro Matsumoto)
06:15 AM Feature #15799: pipeline operator
That's a very fair point @jeremyevans0, it would introduce two lookup chains even under the most ideal of circumstanc... baweaver (Brandon Weaver)
05:42 AM Feature #15799: pipeline operator
I think one big issue here is simply the choice of symbols for this thing. If it were any other symbols, I suspect a ... shioyama (Chris Salzberg)
03:18 AM Feature #15799: pipeline operator
baweaver (Brandon Weaver) wrote:
> But in summary, I believe this feature could be substantially more expressive an...
jeremyevans0 (Jeremy Evans)
03:00 AM Feature #15799: pipeline operator
@inopinatus We are working on the right side assignment operator. Combine pipelines with it.
Matz.
matz (Yukihiro Matsumoto)
02:51 AM Feature #15799: pipeline operator
I have written on my opinions here: https://dev.to/baweaver/ruby-2-7-the-pipeline-operator-1b2d
But in summary, I ...
baweaver (Brandon Weaver)
02:01 AM Feature #15799: pipeline operator
Please consider adjusting the precedence of the pipeline operator to be above that of assignment. I was surprised by ... inopinatus (Joshua GOODALL)
12:12 AM Feature #15799: pipeline operator
Responses to this change:
- Twitter: https://twitter.com/a_matsuda/status/1139110957450375168
- Reddit: https://w...
shioyama (Chris Salzberg)
09:45 PM Feature #15903: Move RubyVM.resolve_feature_path to Kernel.resolve_feature_path
Thanks for discussing the issue at the meeting.
I think having singleton-only methods on `Kernel` would be OK, and...
Eregon (Benoit Daloze)
02:51 AM Feature #15903: Move RubyVM.resolve_feature_path to Kernel.resolve_feature_path
This ticket was discussed at yesterday dev meeting. Currently there is no singleton method to `Kernel`, so some peop... mame (Yusuke Endoh)
09:28 PM Feature #15897: `it` as a default block parameter
shugo (Shugo Maeda) wrote:
> > I think we should never purposefully introduce something ugly in the language.
>
>...
Eregon (Benoit Daloze)
02:54 AM Feature #15897: `it` as a default block parameter
Eregon (Benoit Daloze) wrote:
> shugo (Shugo Maeda) wrote:
> > I don't like both proposals, but I prefer `@1` to `i...
shugo (Shugo Maeda)
08:58 PM Bug #13220: Enhance support of Unicode strings manipulation
Most of these test failures are caused by Ruby operating on code points, not grapheme clusters. There are more and mo... mihao (Michał Kosek)
02:53 PM Feature #15899: String#before and String#after
sawa is right. Just use `partition` and `rpartition`. marcandre (Marc-Andre Lafortune)
07:30 AM Feature #15899: String#before and String#after
How about `first` and `last`?
```ruby
'hello world'.first(2)
=> 'he'
'hello world'.last(2)
=> 'ld'
'hello w...
kke (Kimmo Lehto)
12:27 PM Feature #15921: R-assign (rightward-assignment) operator
This has lower precedence, so the latter. nobu (Nobuyoshi Nakada)
10:49 AM Feature #15921: R-assign (rightward-assignment) operator
where does the rightward assign works and where it is blocked? `y => x` might be treated as Hash Parameter
like `m...
Hanmac (Hans Mackowiak)
03:08 AM Feature #15921 (Closed): R-assign (rightward-assignment) operator
From https://bugs.ruby-lang.org/issues/15799#change-78465, proposal of the rightward-assignment operator by `=>`.
...
nobu (Nobuyoshi Nakada)
12:25 PM Feature #15920: Check frozen state of ENV
I don't think this behavior a bug.
`ENV` is an interface to the system environment variables, so freezing it doesn't...
nobu (Nobuyoshi Nakada)
06:35 AM Feature #15920: Check frozen state of ENV
Agree - looks like a bug to me as well. shevegen (Robert A. Heiler)
02:27 AM Feature #15920: Check frozen state of ENV
I didn't know `assert_separately`, thank you! kachick (Kenichi Kamiya)
12:16 PM Feature #14912: Introduce pattern matching syntax
I've intentionally focused on use-cases because: I wanted to make clear why Ruby should to support this; and I've inc... pitr.ch (Petr Chalupa)
09:17 AM Revision d365fd5a (git): An operator is not allowed just after `|>`
https://twitter.com/yukihiro_matz/status/1139454774640726019 nobu (Nobuyoshi Nakada)
08:30 AM Revision d780c366 (git): Pipeline operator is experimental [ci skip]
znz (Kazuhiro NISHIYAMA)
06:31 AM Revision aa32465a (git): irb.rb: [DOC] the default prompt includes :PROMPT_N [ci skip]
nobu (Nobuyoshi Nakada)
03:40 AM Feature #15922 (Open): Enumerable#partition(pattern)
* `any?` `all?` `one?` `none?` already can take pattern argument. ref: https://bugs.ruby-lang.org/issues/11286
* `se...
kachick (Kenichi Kamiya)
01:02 AM Bug #15857: <=> の右辺が <=> を実装していない場合の振る舞い
> > @jeremyevans0 Thank you for your comment. About Complex, I agree with most of v2 patch, but I have some comments.... shuujii (Shuji KOBAYASHI)

06/13/2019

11:46 PM Revision 50bb8b60 (git): Use Exception#full_message for traceback
nobu (Nobuyoshi Nakada)
11:45 PM Revision 9402d019 (git): Remove debug print
aycabta (aycabta .)
11:45 PM Revision d0e55641 (git): Set allow_escape_code for prompt
aycabta (aycabta .)
11:26 PM Revision f80771f0 (git): Use Reline.prompt_proc in IRB
aycabta (aycabta .)
10:46 PM Revision 3757e492 (git): * 2019-06-14
git[bot]
10:42 PM Revision 64310b25 (git): Add Reline.prompt_proc
aycabta (aycabta .)
10:03 PM Feature #15901: Enumerator::Lazy#eager
zverok (Victor Shepelev) wrote:
> > How about this style?
>
> ```ruby
> [0, 1, 2].lazy {|e| e.map {|n| n + 1 }.m...
marcandre (Marc-Andre Lafortune)
09:01 AM Feature #15901: Enumerator::Lazy#eager
I'd rather keep this issue simple. We can talk about it later in another issue. knu (Akinori MUSHA)
07:14 AM Feature #15901: Enumerator::Lazy#eager
> How about this style?
```ruby
[0, 1, 2].lazy {|e| e.map {|n| n + 1 }.map {|n| n.to_s } }
#=> an Enumerator con...
zverok (Victor Shepelev)
07:05 AM Feature #15901: Enumerator::Lazy#eager
mame (Yusuke Endoh) wrote:
> How about this style?
>
> ```
> [0, 1, 2].lazy {|e| e.map {|n| n + 1 }.map {|n| n.t...
knu (Akinori MUSHA)
08:44 PM Bug #15916: Memory leak in Regexp literal interpolation
I can confirm this is still an issue on the master branch, and it appears to be leaking ~178 bytes/regexp. It occurs... jeremyevans0 (Jeremy Evans)
07:49 PM Feature #15920: Check frozen state of ENV
I think this is a bug and we should fix it. I took a slightly differently approach in the attached patch, using `rb_... jeremyevans0 (Jeremy Evans)
10:56 AM Feature #15920 (Closed): Check frozen state of ENV
github: https://github.com/ruby/ruby/pull/2234
Is this an intentional behavior?
``` ruby
ENV.freeze
ENV.clear...
kachick (Kenichi Kamiya)
07:30 PM Feature #15919: Offset parameter for `Integer#times`
`Numeric#step` does something similar:
``` ruby
> 3.step(to: 10, by: 2) { |a| p a }
3
5
7
9
```
ibylich (Ilya Bylich)
07:06 PM Feature #15919: Offset parameter for `Integer#times`
It took me a moment to understand the proposal (I am not sure why I am having a hard time understanding
proposals la...
shevegen (Robert A. Heiler)
12:22 PM Feature #15919: Offset parameter for `Integer#times`
I like the idea. It could also be a Hash and appart from `offset`, we could have `step` as well:
```
5.times(offs...
ana06 (Ana Maria Martinez Gomez)
09:37 AM Feature #15919: Offset parameter for `Integer#times`
Could be confusing. "5 times 3" is 15. phluid61 (Matthew Kerwin)
09:18 AM Feature #15919 (Rejected): Offset parameter for `Integer#times`
I request an optional argument on `Integer#times` to set the offset at start, just like `Enumerator#with_index`.
`...
sawa (Tsuyoshi Sawada)
06:22 PM Bug #15442 (Closed): irb behaves strange in Ruby 2.6
jeremyevans0 (Jeremy Evans)
12:27 PM Bug #15442: irb behaves strange in Ruby 2.6
this can be closed ana06 (Ana Maria Martinez Gomez)
06:08 PM Bug #15436 (Closed): Tests failing in `make check`
The openssl issue was fixed by commit:b8af33e63bd286308e5e1b20c182ec50e0f194de
The second issue was fixed earlier ...
jeremyevans0 (Jeremy Evans)
12:27 PM Bug #15436: Tests failing in `make check`
this can be closed ana06 (Ana Maria Martinez Gomez)
02:09 PM Feature #15799: pipeline operator
> a topic of "ruby committers vs the world" in RubyKaigi 2019.
Link to video of discussion Nobu referenced: https:...
ttilberg (Tim Tilberg)
01:23 PM Feature #15799: pipeline operator
"I don't have to use it" doesn't work in the real world where you have projects with multiple contributors, dependenc... dgutov (Dmitry Gutov)
11:43 AM Feature #15799: pipeline operator
I assume matz approved it. I don't think it is good to want to reason
against a change since the decision making is ...
shevegen (Robert A. Heiler)
10:00 AM Feature #15799: pipeline operator
Why was this accepted? I cannot see anyone really supporting this idea in this issue's comments.
As everyone said, i...
Eregon (Benoit Daloze)
09:48 AM Feature #15799 (Closed): pipeline operator
Applied in changeset commit:git|f169043d81524b5b529f2c1e9c35437ba5bc3a7a.
----------
Add pipeline operator [Feature ...
nobu (Nobuyoshi Nakada)
02:04 PM Revision 56d59519 (git): test/webrick/test_ssl_server.rb: Use EnvUtil.timeout for timeout scale factor
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190613T091708Z.fail.html.gz
https://ruby...
mame (Yusuke Endoh)
01:44 PM Revision e75c2781 (git): test/lib/test/unit/assertions.rb (assert_cpu_usage_low): tweak the wait
It still fails randomly.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/amazon2/ruby-master/log/20190613T093003Z.fa...
mame (Yusuke Endoh)
01:19 PM Revision aa721183 (git): Continue to the next line beginning with a pipeline
nobu (Nobuyoshi Nakada)
01:03 PM Revision 043f010c (git): parse.y: moved pipeline to expr
To allow arguments without parentheses. nobu (Nobuyoshi Nakada)
12:24 PM Bug #15793: Please backport 7b7043e5da8589e01b94575d4ed647e909e5c875
Backported into ruby_2_6 at r67710. nagachika (Tomoyuki Chikanaga)
12:23 PM Revision f4fe2a76 (git): merge revision(s) 7b7043e5da8589e01b94575d4ed647e909e5c875: [Backport #15793]
eliminate use of freed memory
rb_io_fptr_finalize_internal frees the memory region.
===============...
nagachika (Tomoyuki Chikanaga)
09:44 AM Revision f169043d (git): Add pipeline operator [Feature #15799]
nobu (Nobuyoshi Nakada)
09:33 AM Feature #15903: Move RubyVM.resolve_feature_path to Kernel.resolve_feature_path
nobu (Nobuyoshi Nakada) wrote:
> How about `$LOAD_PATH.resolve_feature_path`?
As a singleton method, and because ...
Eregon (Benoit Daloze)
08:24 AM Feature #15903: Move RubyVM.resolve_feature_path to Kernel.resolve_feature_path
How about `$LOAD_PATH.resolve_feature_path`? nobu (Nobuyoshi Nakada)
09:16 AM Bug #15210 (Closed): UTF-8 BOM should be removed from String in internal representation
Applied in changeset commit:git|e717d6faa8463c70407e6aaf116c6b6181f30be6.
----------
IO#set_encoding_by_bom
* io.c ...
nobu (Nobuyoshi Nakada)
08:36 AM Bug #15210: UTF-8 BOM should be removed from String in internal representation
Renamed and an exception at unexpected condition.
https://github.com/nobu/ruby/pull/new/feature/15210-set_encoding_b...
nobu (Nobuyoshi Nakada)
07:24 AM Bug #15210: UTF-8 BOM should be removed from String in internal representation
https://github.com/nobu/ruby/pull/new/feature/15210-detect_bom nobu (Nobuyoshi Nakada)
09:13 AM Revision e717d6fa (git): IO#set_encoding_by_bom
* io.c (rb_io_set_encoding_by_bom): IO#set_encoding_by_bom to set
the encoding by BOM if exists. [Bug #15210]
nobu (Nobuyoshi Nakada)
09:07 AM Revision bdc8b378 (git): * expand tabs.
git[bot]
09:05 AM Revision 02b1a853 (git): remove 2 redundant calls to rb_str_dup
Because `rb_class_path` calls `rb_str_dup` already.
Closes: https://github.com/ruby/ruby/pull/2232
luke-gru (Luke Gruber)
08:08 AM Feature #15563: #dig that throws an exception if a key doesn't exist
I thought adding an optional block to dig could be an idea.
```ruby
obj.dig(*keys) { |dug_keys, rest_keys|
# r...
knu (Akinori MUSHA)
07:42 AM Revision 69509df2 (git): squeeze space [ci skip]
znz (Kazuhiro NISHIYAMA)
06:41 AM Feature #15725: Proposal: Add Array#reverse_sort, #revert_sort!, #reverse_sort_by, and #reverse_sort_by!
Clarified that .reverse! can/should be used for reverse order with commit 2a26c1ea24..7f79a86d8b. duerst (Martin Dürst)
05:54 AM Feature #15725 (Rejected): Proposal: Add Array#reverse_sort, #revert_sort!, #reverse_sort_by, and #reverse_sort_by!
Those methods do not make me feel 'spark joy'. If you really care about the performance, use `reverse!` after `sort!`... matz (Yukihiro Matsumoto)
06:30 AM Revision 7f79a86d (git): add comments to mention sort.reverse!
For array.c (Array#sort) and enum.c (Enumerable#sort_by),
add comments mentioning that sort.reverse! / sort_by { ... ...
duerst (Martin Dürst)
06:12 AM Feature #15836 (Rejected): [Proposal] Make Module#name and Symbol#to_s return their internal fstrings
The compatibility breakage from changing those methods (especially `Symbol#to_s`) is too big. Sorry.
Maybe we should...
matz (Yukihiro Matsumoto)
06:05 AM Feature #15836: [Proposal] Make Module#name and Symbol#to_s return their internal fstrings
Isn't one main purpose of converting a Symbol to a String that you want to change the symbol string? This proposal wo... duerst (Martin Dürst)
05:59 AM Feature #15777: autoload?(cname, inherit=true)
Changing the signature of `rb_autoload_p` could break API compatibility.
I think we'll need another function for it....
nobu (Nobuyoshi Nakada)
05:57 AM Bug #15733 (Rejected): Inconsistent __FILE__ and Kernel#__dir__
`__FILE__` and `__LINE__` are inherited from C preprocessor. Others aren't. I am not going to pursue consistency here... matz (Yukihiro Matsumoto)
05:44 AM Feature #14145: Proposal: Better Method#inspect
ko1 (Koichi Sasada) wrote:
> ```patch
> + VALUE loc_str = rb_sprintf("@%"PRIsVALUE":%"PRIsVALUE" ",
> +...
nobu (Nobuyoshi Nakada)
05:41 AM Feature #14111: ArgumentErrorが発生した時メソッドのプロトタイプをメッセージに含む
Currently, some methods (especially C defined methods) lack method parameter information to provide this kind of desc... matz (Yukihiro Matsumoto)
05:00 AM Bug #15826: Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
Off topic a little, I think this code is wrong.
```ruby
case [0].pack('L!').size
when 4
# 32-bit ruby
...
nobu (Nobuyoshi Nakada)
03:16 AM Bug #15826 (Third Party's Issue): Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
mrkn (Kenta Murata)
03:14 AM Bug #15826: Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
Could you please make a pull-request for [ruby/fiddle repository](https://github.com/ruby/fiddle/pulls)?
mrkn (Kenta Murata)
03:16 AM Bug #15913: Segmentation fault in using RubyVM::InstructionSequence#to_binary.
I didn't know this problem already fixed. Thanks. Anonymous
01:45 AM Bug #15432: Float の NaN のみを含む配列比較のテスト
I agree that keeping this spec does not make sense. If nobody objects within the next week, I will delete the spec. jeremyevans0 (Jeremy Evans)

06/12/2019

10:54 PM Bug #15467 (Closed): Creating a class with a Cyrillic first symbol in the name leads to a SyntaxError in IRB
This issue was fixed before 2.7.0-preview1:
```
$ irb27
irb(main):001:0> class Класс
irb(main):001:0> end
=> n...
jeremyevans0 (Jeremy Evans)
10:44 PM Bug #15572 (Closed): `RubyVM::InstructionSequence` doesn't work with `extend`.
As wanabe pointed out, this isn't a bug. `load_iseq` is `undef` in the singleton class, which occurs before extended... jeremyevans0 (Jeremy Evans)
10:18 PM Feature #15881: Optimize deconstruct in pattern matching
marcandre (Marc-Andre Lafortune) wrote:
> mame (Yusuke Endoh) wrote:
> > I talked with ktsj, the author of pattern ...
mame (Yusuke Endoh)
01:23 PM Feature #15881: Optimize deconstruct in pattern matching
mame (Yusuke Endoh) wrote:
> I talked with ktsj, the author of pattern matching. He had actually considered caching...
marcandre (Marc-Andre Lafortune)
12:56 PM Feature #15881: Optimize deconstruct in pattern matching
I talked with ktsj, the author of pattern matching. He had actually considered caching the result of deconstruct, bu... mame (Yusuke Endoh)
08:44 PM Bug #15913 (Closed): Segmentation fault in using RubyVM::InstructionSequence#to_binary.
I've tested and confirmed this is fixed by commit:484cc6b3bc828a0bb62aebefd7fdc2c86cab4f57. Please update to ruby 2.... jeremyevans0 (Jeremy Evans)
03:24 PM Bug #15913: Segmentation fault in using RubyVM::InstructionSequence#to_binary.
Maybe [Bug #14553]? nobu (Nobuyoshi Nakada)
09:51 AM Bug #15913: Segmentation fault in using RubyVM::InstructionSequence#to_binary.
### This problem occured the crash with just using `if false` statement pattern.
```ruby
# good
# do not use `...
Anonymous
08:52 AM Bug #15913: Segmentation fault in using RubyVM::InstructionSequence#to_binary.
## Crash log
```
$ ruby -e "RubyVM::InstructionSequence.compile('{}.each {|this| if false; Hash.try_convert({id:...
Anonymous
08:41 AM Bug #15913 (Closed): Segmentation fault in using RubyVM::InstructionSequence#to_binary.
Occur Segmentation fault when the ruby code is class methods with hash argument in if false statement in iteration me... Anonymous
03:41 PM Revision 2a26c1ea (git): Clarify the Ruby version support status in IRB more
k0kubun (Takashi Kokubun)
03:32 PM Revision 8d84e119 (git): * 2019-06-13
git[bot]
03:32 PM Revision 18080290 (git): make sync-default-gems GEM=irb
Upgrade IRB to https://github.com/ruby/irb/commit/41ea43a4a732e094acfa1b0fc1473fdcda9e6227
Mostly backport changes.
k0kubun (Takashi Kokubun)
02:58 PM Feature #15918: Pattern matching for Set
Sets are supposed to be unordered (any ordering is an implementation detail). If `Set[1, 2, 3]` matches in your exam... jeremyevans0 (Jeremy Evans)
02:20 PM Feature #15918: Pattern matching for Set
Eregon (Benoit Daloze) wrote:
> Did you mean `in Set[1, 2, 3]` ?
I didn't, but it should match too; it's the same...
marcandre (Marc-Andre Lafortune)
02:02 PM Feature #15918: Pattern matching for Set
Did you mean `in Set[1, 2, 3]` ? Eregon (Benoit Daloze)
01:44 PM Feature #15918 (Assigned): Pattern matching for Set
Currently, `Set` does not respond to `deconstruct`. Shouldn't we implement it using `to_a`?
```
require 'set'
ca...
marcandre (Marc-Andre Lafortune)
01:41 PM Feature #15917 (Closed): Pattern matching for Struct
`Struct`s respond to `deconstruct`, not to `deconstruct_keys`. Shouldn't we also implement it?
```
A = Struct.new...
marcandre (Marc-Andre Lafortune)
01:35 PM Feature #15799: pipeline operator
@nobu Awesome. I don't know what other's would think, but from my perspective, the feature now becomes consistent wit... zverok (Victor Shepelev)
06:36 AM Feature #15799: pipeline operator
zverok (Victor Shepelev) wrote:
> But **if** "...and now put it into a variable" is necessary, why not reuse `=>`? I...
nobu (Nobuyoshi Nakada)
01:33 PM Bug #15916: Memory leak in Regexp literal interpolation
Simplified the test case. mltsy (Joe Marty)
01:23 PM Bug #15916 (Closed): Memory leak in Regexp literal interpolation
When interpolating a string inside a Regexp literal, if the string contains a multibyte character loaded from a file ... mltsy (Joe Marty)
01:20 PM Misc #15874: DevelopersMeeting20190613Japan
* [Feature #15563] #dig that throws an exception if an key doesn't exist
* Previously [Matz said](https://bugs.rub...
k0kubun (Takashi Kokubun)
06:22 AM Misc #15874: DevelopersMeeting20190613Japan
* [Feature #15897] `it` as a default block parameter
* A keyword `it` has never been seriously considered because ...
mame (Yusuke Endoh)
12:13 PM Feature #15915: `@1` cannot be achieved in meta-programming
> What is the use case?
OP says a debugger. The motivation looks reasonable to me.
> And how do you want it to...
mame (Yusuke Endoh)
09:55 AM Feature #15915: `@1` cannot be achieved in meta-programming
What is the use case? And how do you want it to be made possible? sawa (Tsuyoshi Sawada)
08:55 AM Feature #15915 (Closed): `@1` cannot be achieved in meta-programming
I cannot think of any way to get `@1` in meta-programming, so it is hard to inspect it in a debugger.
~~~
% ruby ...
znz (Kazuhiro NISHIYAMA)
11:44 AM Bug #14451 (Third Party's Issue): HTTP responses with Content-Length: 0 cause a failure
duerst (Martin Dürst)
08:47 AM Bug #14451: HTTP responses with Content-Length: 0 cause a failure
Hello, thanks for report. REST Client is actually not part of Ruby, feel free to move the report there: https://githu... lzap (Lukas Zapletal)
09:37 AM Feature #15914: mkmf without libruby
It took me a moment to understand what you mean; I first misread it as "not
depending on mkmf".
I guess the inten...
shevegen (Robert A. Heiler)
08:54 AM Feature #15914 (Open): mkmf without libruby
It would be nice to be able to use `mkmf` without `libruby`.
Motivating use-case:
Many gems provide Ruby bindings...
glebm (Gleb Mazovetskiy)
08:22 AM Feature #15901: Enumerator::Lazy#eager
+1 for the feature. I'm not a fan for the notation `.lazy. ... .eager`, though.
How about this style?
```
[0,...
mame (Yusuke Endoh)
06:30 AM Revision 88411d35 (git): Another incomplete string case
nobu (Nobuyoshi Nakada)
06:25 AM Revision 9593e76a (git): Ripper::Lexer: fallback parse error token to the previous one
nobu (Nobuyoshi Nakada)
02:00 AM Revision 8354cfd0 (git): Treat "begin rescue end" correctly
aycabta (aycabta .)
12:07 AM Bug #15664: File.executable returns incorrect results in Windows 10
I agree on the documentation fix, but I guess that `Gem.bin_path` should return the proper stub file path in this case. nobu (Nobuyoshi Nakada)

06/11/2019

10:54 PM Bug #15360 (Closed): "ThreadError: deadlock; recursive locking" error when recursive lock shouldn't be possible
Fix committed at commit:c1d78a7f0ece2004822193a0c1f1fd3dc38c2fdf jeremyevans0 (Jeremy Evans)
10:52 PM Bug #15508 (Closed): Mutex recursive lock error when combined with Thread#raise
Fix committed at commit:c1d78a7f0ece2004822193a0c1f1fd3dc38c2fdf jeremyevans0 (Jeremy Evans)
10:51 PM Bug #15645 (Closed): It is possible to escape `Mutex#synchronize` without releasing the mutex
Fix committed at commit:c1d78a7f0ece2004822193a0c1f1fd3dc38c2fdf jeremyevans0 (Jeremy Evans)
08:27 PM Bug #15645: It is possible to escape `Mutex#synchronize` without releasing the mutex
Eregon (Benoit Daloze) wrote:
> @jeremyevans0 The patch looks wrong, `rb_mutex_lock` should be changed, not `rb_mute...
jeremyevans0 (Jeremy Evans)
08:23 PM Bug #15645: It is possible to escape `Mutex#synchronize` without releasing the mutex
@jeremyevans0 The patch looks wrong, `rb_mutex_lock` should be changed, not `rb_mutex_unlock`. Eregon (Benoit Daloze)
07:40 PM Bug #15645: It is possible to escape `Mutex#synchronize` without releasing the mutex
lexi.lambda (Alexis King) wrote:
> Therefore, the solution seems simple: **instead of using `rb_mutex_lock` inside o...
jeremyevans0 (Jeremy Evans)
10:44 PM Revision c1d78a7f (git): do_mutex_lock: release mutex before checking for interrupts (fixes issue 15360)
nbh (nbh _)
08:21 PM Bug #15533 (Third Party's Issue): Segmentation fault: mysql2 client
This appears to be an issue in the mysql2 library, probably the same issue as https://github.com/brianmario/mysql2/is... jeremyevans0 (Jeremy Evans)
08:05 PM Bug #15596 (Rejected): Kernel.warn without arguments should do the same as Kernel.warn(nil)
As nobu stated, the current behavior is expected in regards to not printing a newline if no arguments are given, and ... jeremyevans0 (Jeremy Evans)
07:07 PM Bug #15664: File.executable returns incorrect results in Windows 10
Unlike Unix, Windows doesn't support execute permissions separately. If the path is a regular file, Ruby currently us... jeremyevans0 (Jeremy Evans)
05:53 PM Bug #15671 (Third Party's Issue): Segfault
This doesn't appear to be a ruby or ffi issue. The segfault occurs `multi_cleanup`, which is a libcurl method wrappe... jeremyevans0 (Jeremy Evans)
05:45 PM Misc #15874: DevelopersMeeting20190613Japan
* [Feature #15797] Use realpath(3) instead of custom realpath implementation if available (jeremyevans0)
* Is this...
jeremyevans0 (Jeremy Evans)
05:18 PM Bug #15857: <=> の右辺が <=> を実装していない場合の振る舞い
shuujii (Shuji KOBAYASHI) wrote:
> @jeremyevans0 Thank you for your comment. About `Complex`, I agree with most of v...
jeremyevans0 (Jeremy Evans)
02:09 PM Bug #15857: <=> の右辺が <=> を実装していない場合の振る舞い
@jeremyevans0 Thank you for your comment. About `Complex`, I agree with most of v2 patch, but I have some comments.
...
shuujii (Shuji KOBAYASHI)
04:45 PM Bug #15720 (Closed): SystemStackError when referencing a refinement in a module that isn't used
Applied in changeset commit:git|5e018214e7435030727a97ac49db038d96438e74.
----------
Fix SystemStackError when calli...
jeremyevans (Jeremy Evans)
09:03 AM Bug #15720: SystemStackError when referencing a refinement in a module that isn't used
Seems fine.
Just rename `test_refining_module_repeatedly` which redefines an existing method.
nobu (Nobuyoshi Nakada)
04:43 PM Revision 5e018214 (git): Fix SystemStackError when calling a method in an unused refinement
Fixes [Bug #15720] jeremyevans (Jeremy Evans)
04:16 PM Revision 4f9e7c95 (git): * 2019-06-12
git[bot]
04:16 PM Revision 23e3c170 (git): * expand tabs.
git[bot]
04:16 PM Revision 6db2d6d8 (git): Add compaction support for more types.
This commit adds compaction support for:
* Fibers
* Continuations
* Autoload Constants
tenderlovemaking (Aaron Patterson)
02:55 PM Bug #15490: socket.rb - recurring segmentation faults
I have been experiencing this issue as well, but only on a computer running OSX 10.14.5. I can't seem to recreate thi... mylesgearon (Myles Gearon)
02:15 PM Revision c4cbaef2 (git): assert_cpu_usage_low with timeout scale
* test/lib/test/unit/assertions.rb (assert_cpu_usage_low): apply
the timeout scale to measuring period. this asser...
nobu (Nobuyoshi Nakada)
02:15 PM Revision 42f0a8fd (git): MIN_HZ and MIN_MEASURABLE constants
* test/lib/test/unit/assertions.rb (Test::Unit::Assertions):
promoted MIN_HZ and MIN_MEASURABLE as constants, which...
nobu (Nobuyoshi Nakada)
02:15 PM Revision eb016d83 (git): Generalize timeout_scale
* test/lib/test/unit.rb (Test::Unit::TimeoutOption): renamed
SubprocessOption.
* test/lib/test/unit.rb (Test::Unit...
nobu (Nobuyoshi Nakada)
01:31 PM Revision 39ae88ad (git): Refined syntax error messages
nobu (Nobuyoshi Nakada)
01:25 PM Feature #15912 (Closed): Allow some reentrancy during TracePoint events
I got a report in byebug about byebug being incompatible with zeitwerk. This one: https://github.com/deivid-rodriguez... deivid (David Rodríguez)
12:55 PM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
Quite a long old discussion. I checked before replying, to make sure I don't comment too often
in one particular iss...
shevegen (Robert A. Heiler)
10:08 AM Bug #15911 (Closed): Missing TracePoint return event for ||=
Thank you for your report.
I can reproduce the issue at ruby 2.6.3, and cannot do at master branch. It looks like...
mame (Yusuke Endoh)
08:00 AM Bug #15911 (Closed): Missing TracePoint return event for ||=
While updating ruby-prof, I ran into an issue while profiling rails that caused ruby-prof to show an incorrect method... cfis (Charlie Savage)
06:22 AM Revision 140b8117 (git): &. is not allowed inside LHS of massign
https://hackerone.com/reports/605262 nobu (Nobuyoshi Nakada)
03:33 AM Revision 42ac8890 (git): Fail test if load ~/.irbrc
znz (Kazuhiro NISHIYAMA)
03:16 AM Revision e4364dbf (git): Fixed the code-style with the upstream rule.
hsbt (Hiroshi SHIBATA)

06/10/2019

11:27 PM Bug #15720 (Assigned): SystemStackError when referencing a refinement in a module that isn't used
I can confirm this issue. I believe it stems from the fact that in `vm_call_method_each_type`, `cc->me` is getting o... jeremyevans0 (Jeremy Evans)
10:17 PM Revision 4adc6f07 (git): test/lib/test/unit/assertions.rb (assert_cpu_usage_low): Relax the limit
CPU usage 1% causes occesional test failure. Try to use 5%.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/...
mame (Yusuke Endoh)
09:56 PM Revision fe9701ee (git): * expand tabs.
git[bot]
09:53 PM Revision de4b2930 (git): ext/socket/ipsocket.c: Use SO_REUSEADDR for local_host/port
Sometimes ruby/spec fails when trying to specify local_host and
local_port for TCPSocket.open.
https://rubyci.org/lo...
mame (Yusuke Endoh)
09:45 PM Revision 6096baea (git): test/net/http/test_http.rb: Extend the timeout
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190610T071910Z.log.html.gz mame (Yusuke Endoh)
08:41 PM Bug #15910 (Rejected): $. doesn't hold the linenumber anymore when reading a CSV-file using the CSV class
CSV implementation was changed to improve performance. The new implementation reads data as chunk (`$stdin.gets(nil, ... kou (Kouhei Sutou)
08:40 PM Bug #15910: $. doesn't hold the linenumber anymore when reading a CSV-file using the CSV class
I can confirm the behavior change. I bisected it to https://github.com/ruby/csv/commit/8505ff0900a4789dce0740ab23e92... jeremyevans0 (Jeremy Evans)
11:15 AM Bug #15910 (Rejected): $. doesn't hold the linenumber anymore when reading a CSV-file using the CSV class
Example program:
```
require 'csv'
IFS=';'
CSV_OPTIONS = { col_sep: IFS, external_encoding: Encoding::ISO_8859_...
rovf (Ronald Fischer)
03:25 PM Revision d7e7e998 (git): * 2019-06-11
git[bot]
03:20 PM Revision be6b4624 (git): Use checktype for performance
ktsj (Kazuki Tsujimoto)
02:31 PM Revision f0bfa71a (git): Use UTC for file2lastrev timezone
02155da7bad37bd1c8adadd486d2d16eac7af43b got a claim about sacrificing
ability to compare arbitrary `RUBY_DESCRIPTION...
k0kubun (Takashi Kokubun)
01:35 PM Revision 02155da7 (git): Make file2lastrev timezone consistent with git log
Using the same timezone for all commits is convenient when just looking
dates in RUBY_DESCRIPTION, but usually we als...
k0kubun (Takashi Kokubun)
01:04 PM Revision caa90202 (git): Make sure to suppress .irbrc on benchmark
By the way, this is already improved by nobu:
```
$ benchmark-driver benchmark/irb_exec.yml --rbenv '2.6.3;2.7.0-pre...
k0kubun (Takashi Kokubun)
12:45 PM Revision 880204cf (git): irb/cmd/help.rb: return nil after the redefinition
nobu (Nobuyoshi Nakada)
12:38 PM Feature #5400: Remove flip-flops in 2.0
judofyr (Magnus Holm) wrote:
> Nobody knows them. Nobody uses them. Let's just get rid of flip-flops, shall we?
I...
scub8040 (Saverio M.)
12:18 PM Revision 976c689a (git): irb: defer requiring rdoc to improve the start up time
nobu (Nobuyoshi Nakada)
12:13 PM Revision 973fd18f (git): Add a benchmark of irb boot time
```
$ benchmark-driver benchmark/irb_exec.yml --rbenv '2.6.3;2.7.0-preview1'
Calculating ----------------------------...
k0kubun (Takashi Kokubun)
10:48 AM Revision b9996b7b (git): * 2019-06-10
git[bot]
10:47 AM Revision 626ae5a9 (git): Resolv specs should pass on Windows now
Eregon (Benoit Daloze)
10:45 AM Revision 60af6fef (git): Fix Resolv specs to not depend on a system /etc/hosts file
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/archlinux/ruby-master/log/20190609T153804Z.fail.html.gz
* Thanks @n...
Eregon (Benoit Daloze)

06/09/2019

10:35 PM Bug #15907 (Closed): gem bin stub commands are failing
hsbt (Hiroshi SHIBATA)
04:11 PM Bug #15732 (Closed): Strict mode
jeremyevans0 (Jeremy Evans)
04:37 AM Bug #15763: Segmentation fault in timeout.rb / sleep
I think mame is correct that this is related to Mac OS X getaddrinfo. We have at least 5 separate bug reports for ve... jeremyevans0 (Jeremy Evans)
04:25 AM Revision 614154bb (git): Added missing dependency for rake examples.
hsbt (Hiroshi SHIBATA)
04:22 AM Feature #15236: add support for hash shorthand
PR for alternative syntax `{ a: }`: https://github.com/ruby/ruby/pull/2231 ignatiusreza (Ignatius Reza Lesmana)
03:11 AM Feature #15236: add support for hash shorthand
I was reading the presentation slide for the experimental feature for syntax matching.. in which, there's support for... ignatiusreza (Ignatius Reza Lesmana)
03:44 AM Revision 2c59c58a (git): Fixed wrong BUNDLE_BIN_PATH for ruby core.
hsbt (Hiroshi SHIBATA)
03:44 AM Revision 44f7f093 (git): Added the condition for ruby_core repository.
hsbt (Hiroshi SHIBATA)
03:44 AM Revision 57ccea62 (git): Revert to change for filelist of bundler gemspec.
hsbt (Hiroshi SHIBATA)
03:44 AM Revision 8f376295 (git): Merge bundler master from upstream.
Pick from 8dd59e3ba97eb80a599f8149f31bf40773b69dc0 hsbt (Hiroshi SHIBATA)
03:32 AM Bug #15900 (Closed): Resolv::DNS#each_name doesn't accept Resolv::IPv{4,6} against documents
Applied in changeset commit:git|66508992483ae5d77b56a98427c50c772341c0ac.
----------
Make Resolv::DNS#each_name acce...
jeremyevans (Jeremy Evans)
03:27 AM Bug #15900: Resolv::DNS#each_name doesn't accept Resolv::IPv{4,6} against documents
Thank you for the report. I was able to confirm the issue and that your patch fixes it. I will apply your patch sho... jeremyevans0 (Jeremy Evans)
03:31 AM Revision 66508992 (git): Make Resolv::DNS#each_name accept Resolv::IPv{4,6} arguments
These arguments were previously documented as supported, but not
actually supported.
Patch from Toru Iwase
Fixes [B...
jeremyevans (Jeremy Evans)
03:30 AM Revision a432c014 (git): * 2019-06-09
git[bot]
03:27 AM Revision 562c0bfe (git): Split test_strip_bom for each encoding
nobu (Nobuyoshi Nakada)
02:11 AM Revision a8ef498d (git): Add tests of the encoding with BOM
nobu (Nobuyoshi Nakada)
12:43 AM Feature #14912: Introduce pattern matching syntax
@pitr.ch
Please briefly summarize your proposal first. Use case is important, but explaining a proposal by use case...
mame (Yusuke Endoh)
12:05 AM Feature #15909 (Open): Improve Thread#exit documentation
Whilst writing some low-level threading code, I came across a couple of unexpected (though useful) behaviours of `Thr... womble (Matt Palmer)

06/08/2019

01:20 PM Bug #15907: gem bin stub commands are failing
Hiroshi,
Good evening. A ruby-loco CRON job just happened to run on 3776c48cf4, and it passed.
Thank you, and ...
MSP-Greg (Greg L)
04:55 AM Bug #15907 (Assigned): gem bin stub commands are failing
Hi, Greg.
Thanks to your report. I reverted b76630f73e for another reason. Can you try with the current master as ...
hsbt (Hiroshi SHIBATA)
04:46 AM Bug #15907: gem bin stub commands are failing
Sorry for forgetting (to many hours coding today).
One should be able to repo this by copying the lib/rubygems fol...
MSP-Greg (Greg L)
04:40 AM Bug #15907 (Closed): gem bin stub commands are failing
Commands like
```ruby
bundle version
irb --version
rake --version
rdoc --version
```
are failing. All failure...
MSP-Greg (Greg L)
12:58 PM Misc #15874: DevelopersMeeting20190613Japan
* [Feature #14912] Introduce pattern matching syntax ([pitr.ch](https://twitter.com/pitr_ch))
* Could the pattern ...
pitr.ch (Petr Chalupa)
12:46 PM Misc #15874: DevelopersMeeting20190613Japan
* [Bug #15908] Detecting BOM with non-UTF encoding nobu (Nobuyoshi Nakada)
12:44 PM Bug #15908 (Closed): Detecting BOM with non-UTF encoding
Currently, "bom|" encoding prefix to `File.open` is ignored if the encoding name is not a UTF.
But one usage of BOM ...
nobu (Nobuyoshi Nakada)
12:17 PM Bug #15857: <=> の右辺が <=> を実装していない場合の振る舞い
The patch looks good to me. Eregon (Benoit Daloze)
11:56 AM Feature #14912: Introduce pattern matching syntax
Hi, I am really looking forward to this feature. Looks great!
However I'd like to make few suggestions which I be...
pitr.ch (Petr Chalupa)
11:08 AM Revision f42588f7 (git): Make RUBY_RELEASE_DATE full on development
I cannot tell the order just by commit hashes. nobu (Nobuyoshi Nakada)
10:46 AM Revision 1ca03dc4 (git): Suppress warnings by gcc 9.1
nobu (Nobuyoshi Nakada)
10:40 AM Revision 27a59ca2 (git): file.c: fix compile error with MacPorts gcc
With the SDK of Xcode 10.2.1, `API_AVAILABLE` and so on macros are
not defined in <os/availability.h> when using a co...
nobu (Nobuyoshi Nakada)
09:44 AM Revision 5a840517 (git): Fix broken `gem unpack`
* lib/rubygems/commands/unpack_command.rb: 'rubygems/package' is
required here, to fix broken `gem unpack` command.
nobu (Nobuyoshi Nakada)
09:44 AM Revision 21de4a57 (git): io.c: fold very very long lines
nobu (Nobuyoshi Nakada)
05:24 AM Bug #15807: Range#minmax is slow and never returns for endless ranges
I think this is a bug we should fix, even if it breaks code relying on this bug ("all bug fixes are incompatibilities... jeremyevans0 (Jeremy Evans)
04:49 AM Revision 3776c48c (git): Revert "require rubygems/package where used"
This reverts commit b76630f73e8362d3072bfa7178471ddc5d21c235.
It fails with `make test-bundler BUNDLER_SPECS=runti...
hsbt (Hiroshi SHIBATA)
12:42 AM Feature #15665: Cannot compile socket extension on Mojave
@nobu This should be a bug, not feature. Please mark it as a bug and backport it into 2.6 branch. franklinyu (Franklin Yu)
 

Also available in: Atom