Project

General

Profile

Activity

From 08/18/2019 to 08/24/2019

08/24/2019

09:51 PM Misc #16125: Remove the reserved member from rb_data_type_t as the addition of the compactor callback pushed it over a single cache line
methodmissing (Lourens Naudé) wrote:
> I'm wondering what the `reserved` member was originally intended for, given introducing the `dcompact` member basically already broke binary compatibility by changing the struct size from `64` -> `...
nobu (Nobuyoshi Nakada)
12:45 PM Misc #16125 (Rejected): Remove the reserved member from rb_data_type_t as the addition of the compactor callback pushed it over a single cache line
References PR https://github.com/ruby/ruby/pull/2396
I noticed that since the introduction of the `GC.compact` API, struct `rb_data_type_t` spans multiple cache lines with the introduction of the `dcompact` function pointer / callback...
methodmissing (Lourens Naudé)
09:08 PM Misc #16126 (Closed): Fix small docs inconsistencies
Applied in changeset commit:git|04735c48ab44c97cbfd5a5cd37f9a1696e2f5a2b.
----------
Minor documentation fixes [ci skip]
From zverok (Victor Shepelev)
Fixes [Misc #16126]
jeremyevans (Jeremy Evans)
09:07 PM Misc #16126: Fix small docs inconsistencies
Thanks for the patch, I will merge it shortly. jeremyevans0 (Jeremy Evans)
05:35 PM Misc #16126 (Closed): Fix small docs inconsistencies
The patch with some small-ish fixes:
* Enumerator refers to `#enum_for`/`#to_enum` under `Kernel`, while in fact they are documented under `Object`;
* `Kernel#warn` has outdated call sequence;
* `ClosedQueueError` is not mentioned in ...
zverok (Victor Shepelev)
09:05 PM Revision 04735c48 (git): Minor documentation fixes [ci skip]
From zverok (Victor Shepelev)
Fixes [Misc #16126]
jeremyevans (Jeremy Evans)
04:09 PM Revision e1c991f8 (git): Move Object#hash rdoc to hash.c [ci skip]
This gets RDoc to pick up the documentation correctly.
Problem pointed out by zverok (Victor Shepelev).
jeremyevans (Jeremy Evans)
03:51 PM Revision cf5516de (git): * 2019-08-25 [ci skip]
git[bot]
03:50 PM Revision 03ee12a3 (git): Add workaround (2nd try)
https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190824T153002Z.fail.html.gz
```
/home/gentoo/chkbuild/tmp/build/20190824T153002Z/ruby/tool/lib/vcs.rb:577:in `export_changelog': cannot find the beginning revision ...
znz (Kazuhiro NISHIYAMA)
03:04 PM Misc #16124 (Assigned): Let the transient heap belong to objspace
mame (Yusuke Endoh)
12:43 PM Misc #16124: Let the transient heap belong to objspace
The global method cache note references PR https://github.com/ruby/ruby/pull/2302 methodmissing (Lourens Naudé)
12:41 PM Misc #16124 (Rejected): Let the transient heap belong to objspace
As per comment from Nobu in https://github.com/ruby/ruby/pull/2303#issuecomment-523248875 , I took an initial stab @ a tighter integration between objspace and the transient heap in https://github.com/ruby/ruby/pull/2400
### Benefits
...
methodmissing (Lourens Naudé)
02:56 PM Bug #13102: Confusing method name: Set#delete?
Eregon (Benoit Daloze) wrote:
> This is at least inconsistent with Array#delete, which could be used for the same case as above but doesn't end with a `?`.
This is not exactly true, as `Set#delete?` returns self and not the item if d...
jeremyevans0 (Jeremy Evans)
06:45 AM Bug #13102: Confusing method name: Set#delete?
This is at least inconsistent with Array#delete, which could be used for the same case as above but doesn't end with a `?`.
I don't think there are many good examples for predicates with side effects, is it?
A good part of the Set AP...
Eregon (Benoit Daloze)
03:27 AM Bug #13102 (Rejected): Confusing method name: Set#delete?
I don't think this is a bug, I believe it is intentional. Using `?` for mutating methods is uncommon, but not wrong. You can use these like predicate methods, which is probably why they end in `?`:
```ruby
if set.delete?(object)
...
jeremyevans0 (Jeremy Evans)
02:17 PM Revision df348310 (git): Add workaround for some CIs
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-master/log/20190824T093005Z.fail.html.gz
```
branches:
* trunk
remotes/origin/trunk
```
and
```
fatal: Remote branch master not found in upstream origin
```
znz (Kazuhiro NISHIYAMA)
12:26 PM Revision 5d5502dc (git): Fix typos
znz (Kazuhiro NISHIYAMA)
11:31 AM Revision 571ffcd6 (git): ext/psych/yaml/api.c: Suppress a "variable set but not used" warning
```
compiling ../.././ext/psych/yaml/api.c
../.././ext/psych/yaml/api.c: In function 'yaml_document_delete':
../.././ext/psych/yaml/api.c:1122:7: warning: variable 'context' set but not used [-Wunused-but-set-variable]
} context;
...
mame (Yusuke Endoh)
10:57 AM Feature #16113: Partial application
> If `#curry` gets support for keyword arguments, would it suffice for this case
I don't think so, unfortunately.
1. Of my examples, it covers only `JSON.parse`
* It doesn't cover non-keyword arguments, which, I believe, it sho...
zverok (Victor Shepelev)
10:37 AM Feature #16122: Data: simple immutable value object
> What would a simple implementation of `Struct::Value.new` look like in Ruby code?
Oh, I've probably answered the wrong question... But I am not quite sure I understand yours.
Theoretically, it is just something like this (ignorin...
zverok (Victor Shepelev)
10:17 AM Feature #16122: Data: simple immutable value object
@Eregon, here is rendered version of class' docs: https://zverok.github.io/ruby-rdoc/Struct-Value.html
Basically, it is what is said on the tin: like Struct, just leaner.
zverok (Victor Shepelev)
06:55 AM Feature #16122: Data: simple immutable value object
This sounds interesting to me.
What would a simple implementation of Struct::Value.new look like in Ruby code?
I'm not quite sure what the available API is since it's all described as Struct - some methods.
Eregon (Benoit Daloze)
07:22 AM Revision 97ad7862 (git): Add debug print
matser branch not found on some CIs
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190824T063005Z.fail.html.gz
```
fatal: Remote branch master not found in upstream origin
```
znz (Kazuhiro NISHIYAMA)
06:14 AM Bug #13948 (Closed): Segfault instead of recursion depth error
jeremyevans0 (Jeremy Evans)
05:10 AM Feature #12093: Eval InstructionSequence with binding
> does this suffice your use case?
Interesting, I'll need to investigate this - it certainly has potential.
My use case is for experimental tracing work, and I basically want to be
able to pre-compile original source with added in...
dalehamel (Dale Hamel)
03:21 AM Bug #12702 (Rejected): DRb client fails when calling out-of-process remote method with a block
This is a bug in your code, you are not calling `DRb.start_service` in the client program. The client program needs a DRb server running in order to handle the sending-block-to-remote-method case. See the example in the "Client code" s... jeremyevans0 (Jeremy Evans)
02:36 AM Bug #12649 (Third Party's Issue): DateTime method calls hang
jeremyevans0 (Jeremy Evans)
02:35 AM Bug #12615 (Closed): Pathname#rename does not work across filesystem boundaries.
jeremyevans0 (Jeremy Evans)
02:34 AM Bug #12494 (Closed): win32/resolv.rb may add outdated nameservers
jeremyevans0 (Jeremy Evans)
02:28 AM Bug #12453 (Closed): 2.3.1p112 version running demo of array methods about 3x slower than running it with 2.2.0p0 version
jeremyevans0 (Jeremy Evans)
01:57 AM Feature #16120: Omitted block argument if block starts with dot-method call
Hi,
> So I strongly believe all these feature requests should to be considered together in order to make a decision.
Agreed. And, #15723 (a numbered parameter) is only one proposal that is all-purpose, though I don't like it so mu...
mame (Yusuke Endoh)
12:59 AM Feature #16120: Omitted block argument if block starts with dot-method call
I think there's a misunderstanding because this proposal doesn't collide with existing parser behavior. `[].each{ .method }` is currently a SyntaxError.
@osyo wrote:
> However, I think it is difficult to parse in the following cases....
Dan0042 (Daniel DeLorme)
01:20 AM Revision fe83ed47 (git): Try to fix `make dist` error on chkbuild
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190823T213004Z.fail.html.gz
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-master/log/20190824T003006Z.fail.html.gz
znz (Kazuhiro NISHIYAMA)
12:30 AM Feature #16123: Allow calling a private method with `self.`
Here is a script to help demonstrate the inconsistency, where `self.bar = 123` is allowed by `self.bar` is not.
```ruby
class Foo
def foo
self.bar = 123 # allowed
self.bar # raises
end
private
attr_accessor ...
dylants (Dylan Thacker-Smith)

08/23/2019

11:51 PM Feature #16113: Partial application
I like Hanmac's idea.
``` ruby
Klass.:meth.curry.()
```
Seems very close to:
``` ruby
Klass.:meth.w()
```

I know it has previously been said that `#curry` is a bit of an easter egg. Would it be acceptable to add keyword...
shan (Shannon Skipper)
11:42 PM Feature #16120: Omitted block argument if block starts with dot-method call
A bit of an aside, but it's often just as fast to do two iterations with small collections, since the shorthand parses faster.
posts.map(&:author).map(&:name)
I agree with osyo that it seems this proposal collides with existing...
shan (Shannon Skipper)
03:36 PM Feature #16120: Omitted block argument if block starts with dot-method call
hi.
Its soo good idea.
However, I think it is difficult to parse in the following cases.
```ruby
[10, 20, 30].map{
# 42.to_s(16)
# or
# pp 42
# argument1.to_s(16)
pp 42
.to_s(16)
}
```
osyo (manga osyo)
03:22 PM Feature #16120 (Rejected): Omitted block argument if block starts with dot-method call
How about considering this syntax for implicit block parameter:
```
[10, 20, 30].map{ .to_s(16) } #=> ["a", "14", "1e"]
```
Infinite thanks to @maedi for [the idea](https://bugs.ruby-lang.org/issues/15723#note-19)
This proposal i...
Dan0042 (Daniel DeLorme)
11:06 PM Feature #16123: Allow calling a private method with `self.`
I may not completely understand the issue description. What is the inconsistency? (That is a honest
question, by the way; I am not fully understanding the issue domain.)
I am not even entirely sure what a private attribute writer is ...
shevegen (Robert A. Heiler)
09:03 PM Feature #16123 (Closed): Allow calling a private method with `self.`
## Problem
There is an inconsistency between calling a private attribute writer being allowed with `self.value =` syntax and `self.value` not being allowed on a private attribute writer.
Calling a private method in this way can be ...
dylants (Dylan Thacker-Smith)
10:41 PM Feature #15815: Add option to raise NoMethodError for OpenStruct
Personally I found the proposed signature confusing, more when taking in account that OpenStruct calls:
```ruby
os = OpenStruct.new(a: 1, exception: true)
# vs
os = OpenStruct.new({a: 1}, exception: true)
```
> I'd like t...
esparta (Espartaco Palma)
10:35 PM Bug #12356 (Assigned): Vector covector incorrect multiplication with another vector.
I don't think this is a bug, but I'll let marcandre make the determination. `Vector` can't be multipled with `Vector`, you get an error. You can multiple a `Vector` by a `Matrix` and vice-versa by design, and `Vector#covector` returns ... jeremyevans0 (Jeremy Evans)
10:10 PM Bug #12353 (Closed): Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
jeremyevans0 (Jeremy Evans)
10:06 PM Bug #12123 (Open): FileUtils.ln_s create a '.symlink' file not a symbolic link on windows
This is still a bug in master. I have filed a pull request upstream to fix it: https://github.com/ruby/fileutils/pull/39. jeremyevans0 (Jeremy Evans)
08:52 PM Bug #12112 (Closed): Resolv.getname with IPv6 noop
jeremyevans0 (Jeremy Evans)
08:47 PM Bug #11935 (Closed): Date.new returns inconsistent errors when passed invalid arguments
jeremyevans0 (Jeremy Evans)
08:47 PM Misc #15298 (Closed): Inconsistent date errors
jeremyevans0 (Jeremy Evans)
08:42 PM Bug #11667 (Closed): Ruby process crashes when TracePoint.new(:raise) is enabled and SystemStackError is raised
jeremyevans0 (Jeremy Evans)
08:16 PM Bug #16121: Stop making a redundant hash copy in Hash#dup
I split up the patch into the 4 attached patches, because I realized there were a few changes that could be emphasized independently, each with their own description of the change. Hopefully that will make the optimization itself in the... dylants (Dylan Thacker-Smith)
05:11 PM Bug #16121 (Closed): Stop making a redundant hash copy in Hash#dup
## Problem
I noticed while profiling object allocations that Hash#dup was allocating 2 objects instead of only 1 as expected. I looked for alternatives for comparison and found that `Hash[hash]` created a copy with only a single obje...
dylants (Dylan Thacker-Smith)
05:43 PM Misc #15996: DevelopersMeeting20190829Japan
* [Feature #16113] Partial application: `fetch(urls).map(&JSON.:parse.w(symbolize_names: true))`
* [Feature #16122] `Struct::Value`: simple immutable value object
zverok (Victor Shepelev)
09:13 AM Misc #15996: DevelopersMeeting20190829Japan
* [Feature #15991] Allow questionmarks in variable names
* Proposal: Allow `?` in variable names
* In #5781, matz is explicitly against an instance variable that ends with `?`
* How about allowing only local variables ?
osyo (manga osyo)
02:44 AM Misc #15996: DevelopersMeeting20190829Japan
* [Feature #15955] UnboundMethod#apply
* The ticket proposes a shortcut to `unbound_method.bind(obj).call(args...)` without allocation of a Method object. There are some use cases, and looks reasonable to me. What do you think?
mame (Yusuke Endoh)
12:56 AM Misc #15996: DevelopersMeeting20190829Japan
* [Feature #16115] Keyword arguments from method calls or ignore extra hash keys in splat
* It proposes a triple splat (`foo(***opt)`) to pass a keyword hash with filtering out unknown keywords. What do you think?
mame (Yusuke Endoh)
05:40 PM Feature #16122 (Closed): Data: simple immutable value object
## Intro (original theoretical part of the proposal)
**Value Object** is a useful concept, introduced by Martin Fowler ([his post](https://martinfowler.com/bliki/ValueObject.html), [Wikipedia Entry](https://en.wikipedia.org/wiki/Value...
zverok (Victor Shepelev)
04:41 PM Revision b38ab0a3 (git): * 2019-08-24 [ci skip]
git[bot]
04:10 PM Revision d5b917d5 (git): Named numbered parameter indexes
nobu (Nobuyoshi Nakada)
03:38 PM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
Hanmac (Hans Mackowiak) wrote:
> i see in your patch that you not only check for `Array` but for `to_ary` too, which is nice
Right, but that is just preserving the current behaviour. So the `ary.flatten! if ary.any?(Array)` workarou...
dylants (Dylan Thacker-Smith)
03:32 PM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
duerst (Martin Dürst) wrote:
> However, I expect this to be slower on arrays that are 'almost flat', i.e.
> ...
The optimization handles this case by doing a quick `ary_memcpy` of everything up to the first nested array to avoid redund...
dylants (Dylan Thacker-Smith)
07:41 AM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
i see in your patch that you not only check for `Array` but for `to_ary` too, which is nice
@shevegen :
instead of `[input]` i would use `Array(input)` that doesn't create an extra array if input is already one
Hanmac (Hans Mackowiak)
06:31 AM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
I use .flatten and .flatten! quite a lot in my ruby code, often setting the
initial input from ARGV but also from other sources, such as used from other
ruby classes, w hen I need to have an array - often something like:
def foo...
shevegen (Robert A. Heiler)
02:02 AM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
I was afraid that this would be an optimization for flat arrays, but increase time for nested arrays. But that's not the case, because at the bottom, there will be flat arrays, and flattening these will be faster.
However, I expect th...
duerst (Martin Dürst)
03:21 PM Feature #15915: `@1` cannot be achieved in meta-programming
I'm negative to add `ID_NUMPARAM`.
As `rb_is_numparam_id` is not used, and `rb_is_numparam_name` can be implemented without `rb_symname_type`.
nobu (Nobuyoshi Nakada)
04:41 AM Feature #15915: `@1` cannot be achieved in meta-programming
Here is an experimental patch. mame (Yusuke Endoh)
11:52 AM Revision 2e28b367 (git): [ruby/stringio] Fixed a typo
https://github.com/ruby/stringio/commit/b249631c433f800c979be2705bf63555075db2fc#commitcomment-34804150
https://github.com/ruby/stringio/commit/998d6257fb
nobu (Nobuyoshi Nakada)
09:05 AM Revision d9b73dcc (git): Remove github_action_linux tag from bundler examples.
Maybe it has fixed at 5a384e2c08704dc7af9d8d3bdfc475eb8c0723aa hsbt (Hiroshi SHIBATA)
08:20 AM Revision 3b55394b (git): Ensure all default gems have an gem folder
Even if they don't ship with any executables. This makes rbinstall
behaviour consistent with rubygems `gem install --default` command.
deivid (David Rodríguez)
07:54 AM Bug #16117: ruby2.6.3(x86) use fiddle faild to load dll in windows7
Problem solved:
the dll i used compiled by MinGW, the dll need libstdc++-6.dll, after I add **-static-libgcc -static-libstdc++** compile flag to the dll, problem solved!
whdukewu (Kewu DU)
04:57 AM Revision 1c5a2682 (git): Simplify expand_tabs.rb file selection
k0kubun (Takashi Kokubun)
04:00 AM Revision a5b809e9 (git): Check metadata a bit more
nobu (Nobuyoshi Nakada)
03:28 AM Feature #15955: UnboundMethod#apply
Here is a benchmark:
```
class Foo
def foo
end
end
meth = Foo.instance_method(:foo)
obj = Foo.new
10000000.times { meth.bind(obj).call } # 1.84 sec
10000000.times { meth.apply(obj) } # 1.04 sec
```
mame (Yusuke Endoh)
02:40 AM Feature #15955: UnboundMethod#apply
Hi @nelhage and @darkdimius :-)
I'm attaching a patch for `UnboundMethod#apply(obj, *args, &blk)` as a shortcut to `.bind(obj).call(*args, &blk)` without allocation of a Method object.
I have heard the same situation as Sorbet for ...
mame (Yusuke Endoh)
03:27 AM Revision 650cd245 (git): Hoisted out get_digest_obj_metadata
nobu (Nobuyoshi Nakada)
01:11 AM Bug #11466 (Closed): Memory leak in win32 fill_random_bytes_syscall
If `fill_random_bytes_syscall` were to leak memory, then this Ruby code should show the leak:
```ruby
i = 0; while true; puts i if (i+=1) % 10000000; SecureRandom.bytes(1) end
```
As this shows no leak even with with 600000000 it...
jeremyevans0 (Jeremy Evans)
12:53 AM Feature #16115: Keyword arguments from method calls or ignore extra hash keys in splat
Thank you for proposing ideas. They are interesting to me.
As you said in your second example, it is only possible in callee side: changing the method definition to accept a dummy `**` argument.
```
def hello(who:, **)
end
he...
mame (Yusuke Endoh)
12:47 AM Feature #11322: OpenUri: RuntimeError: HTTP redirection loop
I don't think this is a bug. As 0x0dea (D.E. Akers) pointed out, other programs work the same way. However, I think cookie handling in open_uri could be a useful feature. Attached is a patch that implements the necessary support.
I...
jeremyevans0 (Jeremy Evans)
12:46 AM Revision 9ffb0548 (git): * 2019-08-23 [ci skip]
git[bot]
12:45 AM Revision 1d6a31f3 (git): Make AppVeyor notification similar to Travis
k0kubun (Takashi Kokubun)

08/22/2019

11:58 PM Feature #16119 (Closed): Optimize Array#flatten and flatten! for already flattened arrays
## Problem
When doing an object profile from stackprof, I noticed object allocations being made from `Array#flatten!` which was unlike other in-place methods like `Array#uniq!` and `Array#compact!`. In this case, I wanted to optimize...
dylants (Dylan Thacker-Smith)
08:26 PM Feature #16118 (Open): Array .difference allow custom comparison
Hello!
I wanted to know if there's any plan to implement the ability to define comparison between individual items in arrays.
Here is where I originally asked the question on Stack Overflow: https://stackoverflow.com/questions/5731...
ngomez (Nancy Gomez)
07:56 PM Feature #16115: Keyword arguments from method calls or ignore extra hash keys in splat
> I think this could open up some possibilities (or a can of worms).
Some can call it a feature, other may call it a bug. :-)
In regards to keyword arguments, though, I would wait a bit and see
how/if https://bugs.ruby-lang.org/is...
shevegen (Robert A. Heiler)
12:01 PM Feature #16115 (Open): Keyword arguments from method calls or ignore extra hash keys in splat
Just a thought, feel free to insta-close as stupid.
Currently you can do this:
```
def hello(who:)
puts "Hello, #{who}"
end
opts = { who: 'world' }
hello(who)
```
Or:
```
def hello(who:, **_extra_opts) # without e...
kke (Kimmo Lehto)
03:32 PM Bug #11152 (Closed): Resolv::DNS should use Search Domains provided in /etc/resolv.conf by default
jeremyevans0 (Jeremy Evans)
03:27 PM Bug #10965 (Feedback): logger.rb may not daily rotate
jeremyevans0 (Jeremy Evans)
02:10 PM Revision fd20b321 (git): Make GitHub Actions Slack notification consistent
with Travis, rather than AppVeyor.
Formerly it was made similar to AppVeyor to provide some normal set of
CI failure notification. But for some reason people preferred a shorter
variant and introduced a1d606c079f6c3d1779d885e0bf2e399125...
k0kubun (Takashi Kokubun)
01:47 PM Revision efc89703 (git): * expand tabs. [ci skip]
Tabs are expanded because previously the file did not have any tab indentation.
Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook.
git[bot]
01:46 PM Revision a4d389d8 (git): Improve the description of MJIT cancel-all [ci skip]
k0kubun (Takashi Kokubun)
01:13 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
This ticket was resolved with commit:15eaedf805fb2727c79a6c59af6d5f6c2a6d634b.
In addition to that, since people have often objected to "expand tabs" against files which are not related to VM / MJIT (debugging MJIT needs to see prepro...
k0kubun (Takashi Kokubun)
12:30 PM Misc #16112 (Closed): Reduce the possibility of "expand tabs" commit occurrences
Applied in changeset commit:git|15eaedf805fb2727c79a6c59af6d5f6c2a6d634b.
----------
Add misc/expand_tabs.rb ported from auto-style.rb
This is implemented to close [Misc #16112] because all other options got
at least one objection, and...
k0kubun (Takashi Kokubun)
11:24 AM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
> I like option 3 because it is optional and something I would use. I don't personally like using tabs.
Okay, I'm going to implement this one because nobody has objected to it and all other options had objections from somebody.
> ....
k0kubun (Takashi Kokubun)
05:03 AM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
k0kubun (Takashi Kokubun) wrote:
> * It would reduce the number of problems for editors like Sublime Text, VSCode, and Atom.
I'm surprised some of the currently most popular editors can't handle such situations. I'm not using one o...
duerst (Martin Dürst)
12:24 PM Revision 15eaedf8 (git): Add misc/expand_tabs.rb ported from auto-style.rb
This is implemented to close [Misc #16112] because all other options got
at least one objection, and nobody has objected to this solution.
This code is a little complicated for the purpose, but that's just
because it includes some histo...
k0kubun (Takashi Kokubun)
12:22 PM Bug #16117: ruby2.6.3(x86) use fiddle faild to load dll in windows7
**testmml_win.rb code:**
```ruby
require 'fiddle'
require 'fiddle/import'
if ARGV.length < 1
puts "Missing libPath argument..."
puts "Usage: ruby HostTest2.rb libPath"
puts "Sample: ruby HostTest2.rb /home/Protocol...
whdukewu (Kewu DU)
12:21 PM Bug #16117 (Rejected): ruby2.6.3(x86) use fiddle faild to load dll in windows7
I have a dll build by MinGW32 in windows7, in ruby2.2, I could use fiddle dlload this dll success, but in the same system, use 2.6.3 failed to dlload this dll, always report No such file or direcoty.
**///////// Ruby2.2 success load t...
whdukewu (Kewu DU)
12:01 PM Bug #16116 (Closed): ruby2.6.3(x86/x64) use win32ole could not new Object, return 0x80070057
I build a RubyTest.dll by C#, In ruby2.2, I could use WIN32OLE.new to create ole object, but in the same system under ruby2.6.3, it failed to create ole object by WIN32OLE.new, is there any different between ruby 2.2 and ruby 2.6.3 in WI... whdukewu (Kewu DU)
11:59 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
I have the same issue running ruby 2.6.3 on MacOS 10.14.6 while using guard on a rails project:
```
13:43:07 - INFO - Running: spec/features/foo_spec.rb
Running via Spring preloader in process 17829
Randomized with seed 57737
Ca...
fa11enangel (Konstantin Filtschew)
11:39 AM Revision 0a74fac9 (git): merge revision(s) fd0e3bd2497d4e796b719c7b7154dc3c945f87b1: [Backport #14834]
fix VC 2013 compile error
It seems the compiler does not support VLAs.
See also: https://ci.appveyor.com/project/ruby/ruby/builds/26392589/job/px6nuiuw4e78weg1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2...
nagachika (Tomoyuki Chikanaga)
11:28 AM Bug #15992: An exception breaks monitor state and cause deadlock
ruby_2_6 r67749 merged revision(s) 9557069299ac3b96691040a541afa65761a724ad. nagachika (Tomoyuki Chikanaga)
11:28 AM Revision fbb96f1b (git): merge revision(s) 9557069299ac3b96691040a541afa65761a724ad: [Backport #15992]
Avoid creating Hash objects per each mon_synchronize call (#2393)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
08:04 AM Misc #16114: Naming of "beginless range"
This shows that there are only two real problems in computer science:
- Giving things proper names
- Documenting code after the code has been written
- Off by one errors
:P
From the candidates, I somewhat like mrkn's suggestio...
shevegen (Robert A. Heiler)
04:58 AM Misc #16114: Naming of "beginless range"
duerst (Martin Dürst) wrote:
> mrkn (Kenta Murata) wrote:
> ...
Oops! The correct candidates are "a range unbounded below" and "a range unbounded above".
Thanks.
mrkn (Kenta Murata)
03:49 AM Misc #16114: Naming of "beginless range"
mrkn (Kenta Murata) wrote:
> Other candidates from mathematics:
> ...
Shouldn't this be "a range not bounded below"?
> - lower-unbounded range
> ...
Same thing here.
duerst (Martin Dürst)
12:01 AM Misc #16114: Naming of "beginless range"
I know that it is an awkward word, but it came from `Range#begin` and `Range#end`. IMO, you can call it as you like. mame (Yusuke Endoh)
07:36 AM Feature #15864: Proposal: Add methods to determine if it is an infinite range
> Having `begin?` and `end?` instead of `beginless?` and `endless?` would be more natural, and easy to comprehend.
Agreed. Moreover, `Range#begin` and `#end` just work.
mame (Yusuke Endoh)
03:23 AM Feature #15864: Proposal: Add methods to determine if it is an infinite range
Having negative meaning in the method name would make it complicated. Having `begin?` and `end?` instead of `beginless?` and `endless?` would be more natural, and easy to comprehend.
In fact, the given use case:
```ruby
def search...
sawa (Tsuyoshi Sawada)
12:07 AM Feature #15864: Proposal: Add methods to determine if it is an infinite range
Other candidates from mathematical terms:
- `unbounded?` for checking whether `begin` or `end` is `nil`
- `lower_unbounded?`, `left_unbounded?`, or `unbounded_below?` for checking whether `begin` is `nil`
- `upper_unbounded?`, `righ...
mrkn (Kenta Murata)
12:47 AM Misc #15996: DevelopersMeeting20190829Japan
* [Feature#14183] "Real" keyword argument
* Jeremy and I agreed with Jeremy's proposal. I'd like to ask for matz's final confirmation.
mame (Yusuke Endoh)
12:09 AM Misc #15996: DevelopersMeeting20190829Japan
- [Feature #15864] Proposal: Add methods to determine if it is an infinite range
- I proposed some candidates from mathematical terms
mrkn (Kenta Murata)
12:24 AM Revision d8d8015b (git): Remove footer from message to Slack
aycabta (aycabta .)

08/21/2019

11:58 PM Misc #16114: Naming of "beginless range"
Other candidates from mathematics:
- a range bounded below
- lower-unbounded range
- left-unbounded range
If we use "unbounded" for the minimum value of a range, we should rephrase "endless" with the following candidates:
- a ...
mrkn (Kenta Murata)
11:34 PM Misc #16114 (Open): Naming of "beginless range"
#14799 introduces a "beginless range" to complement the already existing "endless range". However, "beginless" isn't an existing word in English. Since the term for something without a beginning is "beginingless", I'd propose renaming "... pwim (Paul McMahon)
11:06 PM Bug #10520 (Closed): Resolv fails on additional resources when quering address records
This should be fixed by commit:2b2450ba4bee563e33af0325b7fde8cb1bfd6899. jeremyevans0 (Jeremy Evans)
10:57 PM Revision a1d606c0 (git): Show short message to Slack
aycabta (aycabta .)
10:21 PM Revision 1940347f (git): Use () instead of {} for nmake
hsbt (Hiroshi SHIBATA)
10:03 PM Revision 2d8d6345 (git): `--fomart progress` is default. It's duplicated.
hsbt (Hiroshi SHIBATA)
10:02 PM Revision 0b0fedad (git): Introduce test-bundler-parallel task.
hsbt (Hiroshi SHIBATA)
09:15 PM Bug #11636: super in instance_eval in a method defined in a module is invoked with a wrong receiver
This is still a bug in the master branch. Attached is a patch that
fixes it, making the behavior for super in instance_eval in method
in module the same as super in `instance_eval` in method in class,
raising a `TypeError`.
This i...
jeremyevans0 (Jeremy Evans)
09:02 PM Revision 80082183 (git): Always check multiline termination
aycabta (aycabta .)
08:36 PM Revision 8d804e41 (git): Add abs to Matrix (#2199)
Fernando Wolf Bona
08:09 PM Revision 48fdc37a (git): IRB's multiline history is enable only when Reidline mode
aycabta (aycabta .)
03:55 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
k0kubun (Takashi Kokubun) wrote:
> Thanks for your comment, Jeremy. Your opinion makes sense except:
> ...
Basically, I am in favor of removing the "expand tabs" commits (stop trying to enforce whitespace). However, if we do keep the ...
jeremyevans0 (Jeremy Evans)
03:18 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
Thanks for your comment, Jeremy. Your opinion makes sense except:
> 2) I'm against this. If we do keep the "expand tabs", then it should be applied to modified lines as well as new lines, so that we move in the direction of fewer tabs...
k0kubun (Takashi Kokubun)
02:51 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
Here are my opinions on the options:
0) I'm in favor of this. I certainly encourage the use of spaces over tabs, but auto commits for indentation changes are unnecessary and I don't think the benefit outweighs the cost.
1) I'm aga...
jeremyevans0 (Jeremy Evans)
01:59 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
There's Option 5; altering commits in pre-receive hook on server side. But I think successful `git push` should never make future `git pull` fail. It is a very surprising behavior and would confuse committers. So I'm rejecting this optio... k0kubun (Takashi Kokubun)
01:12 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
> I would love it if (1) can happen.
> ...
However, it's something worth considering.
>
> ...
Despite the Vim's default behavior which shows the mixed indentation well, my Vim configuration had shown it weirdly (well, I couldn't find ...
k0kubun (Takashi Kokubun)
03:20 PM Revision 6bdb65c0 (git): * 2019-08-22 [ci skip]
git[bot]
03:19 PM Revision a9638511 (git): Hoisted out rb_id_metadata
nobu (Nobuyoshi Nakada)
03:19 PM Revision 74c6662a (git): Hoisted out rb_digest_namespace
nobu (Nobuyoshi Nakada)
02:13 PM Revision c030cec7 (git): Debug GitHub context on broken notification
sometimes Slack notification footer becomes just " at ".
It seems like `github.event.head_commit` is missing. Let me debug the
context.
k0kubun (Takashi Kokubun)
02:06 PM Misc #15996: DevelopersMeeting20190829Japan
* ~~[Misc #16112] Reduce the possibility of "expand tabs" commit occurrences~~
* Never mind. Resolved before the MTG thanks to @jeremyevans's comment.
k0kubun (Takashi Kokubun)
09:51 AM Bug #15992: An exception breaks monitor state and cause deadlock
9557069299ac3b96691040a541afa65761a724ad is a follow up commit to ease memory consumption impact of f91879a7b548284c93743168acfd11e3d2aeefac. I think it should be backported too. nagachika (Tomoyuki Chikanaga)
07:20 AM Revision 3df9f3cc (git): Separated initializing IDs
nobu (Nobuyoshi Nakada)
05:14 AM Bug #10471 (Closed): Still DST bug in logger
From some testing, it appears this issue no longer occurs in the current version of logger. If you can reproduce this issue with the current version of logger, please post a self contained example showing the problem. jeremyevans0 (Jeremy Evans)
04:31 AM Revision 4419b5db (git): The investigation is going on...
nobu (Nobuyoshi Nakada)
04:26 AM Revision 81dfe3c4 (git): Enable more Time TZ tests on OpenBSD
jeremyevans (Jeremy Evans)
03:52 AM Bug #10460 (Closed): Segfault instead of stack level too deep
This appears to have been fixed between 2.4 and 2.5, as the example no longer has a segfault on 2.5, 2.6, 2.7.0-preview1, or the master branch. jeremyevans0 (Jeremy Evans)
03:49 AM Bug #10436: ruby -c and ripper inconsistency: m(&nil) {}
This bug still occurs in the master branch. Attached is a patch that fixes the problem by overriding `Ripper::SexpBuilder#on_method_add_block`. This isn't a very clean way to fix it, but I was not able to figure out a way to fix it by ... jeremyevans0 (Jeremy Evans)

08/20/2019

11:25 PM Feature #14915: Deprecate String#crypt
Okay, it is considered deprecated, but the removal won't happen in the near future. Thank you, I see! mame (Yusuke Endoh)
03:10 AM Feature #14915: Deprecate String#crypt
I believe the current documentation and code is intentional. I think it is best to consider `String#crypt` deprecated even if we are not emitting warnings for it and we do not have immediate plans to remove it. I would still like to rem... jeremyevans0 (Jeremy Evans)
02:57 AM Feature #14915: Deprecate String#crypt
@jeremyevans0 Let me confirm the state of this ticket. The current rdoc says:
```
Please do
not use this method any longer. It is legacy; provided only for
backward compatibility with ruby scripts in earlier days.
...
If fo...
mame (Yusuke Endoh)
11:10 PM Revision a230e65e (git): [bundler/bundler] Freeze time to avoid failures at midnight
Specify just a string
set @built_at as nil before testing
https://github.com/bundler/bundler/commit/578ec96c9c
lolwut
11:10 PM Revision 1c277452 (git): [bundler/bundler] Share test fixtures with parallel_tests
https://github.com/bundler/bundler/commit/a38161c5be hsbt (Hiroshi SHIBATA)
11:10 PM Revision 10011f43 (git): [bundler/bundler] Try to use RunTimeLogger for parallel_tests
https://github.com/bundler/bundler/commit/faccc522d1 hsbt (Hiroshi SHIBATA)
11:10 PM Revision ace88852 (git): [bundler/bundler] Parallelize test suite
https://github.com/bundler/bundler/commit/23007cb107 deivid (David Rodríguez)
10:58 PM Revision ede77d82 (git): [bundler/bundler] Fix a couple of typos
https://github.com/bundler/bundler/commit/52b6b94068 deivid (David Rodríguez)
10:58 PM Revision 1120bacd (git): [bundler/bundler] Remove the :ruby exclusion tag
Our current set of specs is the same for all supported rubies, and we
should keep it that way.
https://github.com/bundler/bundler/commit/c9dc0f6f2c
deivid (David Rodríguez)
10:58 PM Revision bcc4ac92 (git): [bundler/bundler] Remove another 1.8.7 specific bit
https://github.com/bundler/bundler/commit/8c7942d2c6 deivid (David Rodríguez)
10:58 PM Revision 5ea08883 (git): [bundler/bundler] Remove old rubies stuff no longer needed
https://github.com/bundler/bundler/commit/36fb3287f4 deivid (David Rodríguez)
09:16 PM Bug #10419 (Closed): ruby 2.1.3 kackes during IO.readlines of huge file
I was able to reproduce this on `ruby 1.9.3p551 (2014-11-13) [i386-mingw32]`, but not on any `[x64-mingw32]` compiled Ruby. I installed ruby `2.6.3p62 (2019-04-16 revision 67580) [i386-mingw32]` and was no longer able to reproduce the e... jeremyevans0 (Jeremy Evans)
08:40 PM Bug #10407 (Closed): Update gc stack marking for m68k
This appears to have been fixed in commit:c0766464e9ef13418cc719acd674f363b79db29a. jeremyevans0 (Jeremy Evans)
08:33 PM Bug #10388: Operator precedence problem in multiple assignment (massign)
I tried working on this a couple weeks ago and I don't believe the current LALR(1) parser can support it. Attempting to modify the parser to support the behavior you desire leads to many shift/reduce or reduce/reduce conflicts. It is p... jeremyevans0 (Jeremy Evans)
08:20 PM Bug #10290 (Closed): segfault when calling a lambda recursively after rescuing SystemStackError
I was able to reproduce the segfault in ruby 2.3 and 2.4, but not in 2.5, 2.6, 2.7.0-preview1, or the master branch, so I think this problem is fixed. If this problem still occurs for you, please reply with your environment details. jeremyevans0 (Jeremy Evans)
08:11 PM Bug #10126 (Closed): Dir.home encoding is incorrect on Windows
jeremyevans0 (Jeremy Evans)
07:40 PM Feature #14183: "Real" keyword argument
I've completed work on my keyword-argument-separation branch, and now `make check` passes without any emitted warnings in my environment. To get some early CI testing of this, I have submitted it as a GitHub pull request: https://github... jeremyevans0 (Jeremy Evans)
04:26 PM Bug #16111 (Closed): Combining default positional and keyword arguments is resulting in a `to_hash` method call
jeremyevans0 (Jeremy Evans)
02:26 PM Bug #16111: Combining default positional and keyword arguments is resulting in a `to_hash` method call
Ok, the situation with keyword parameters is now making more sense, despite not being ideal. Since ruby 3 should implement a fix (backwards compatible or not) I am happy for this issue to be closed.
Thanks to those who commented to b...
mtelford (Michael Telford)
04:04 PM Revision 864f23a4 (git): * 2019-08-21 [ci skip]
git[bot]
04:04 PM Revision 88b1f2da (git): `rp(obj)` shows func, file and line. (#2394)
rp() macro for debug also shows file location and function name
such as:
[OBJ_INFO:rb_call_inits@inits.c:73] 0x000056147741b248 ...
ko1 (Koichi Sasada)
03:21 PM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
Hi,
I am having same issue while running seed data (ruby 2.6.3). I am having it while uplaoding attachments.
```
/Users/myuser/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0.rc2/lib/active_support/core_ext/securerandom.rb:39:in `bas...
michalsamluk (Michał Samluk)
02:58 PM Revision d10e28b8 (git): Skip tests on Actions if [ci skip]
It seems that we cannot easily apply job-level [ci skip].
Therefore this commit skips only Tests step if it's [ci skip].
k0kubun (Takashi Kokubun)
01:33 PM Revision 235d810c (git): Deprecate alerting multiple channels
Some CIs report to two channels, and some others report to only one.
This makes it consistent. Only alert channel should be alerted.
k0kubun (Takashi Kokubun)
01:08 PM Revision 95570692 (git): Avoid creating Hash objects per each mon_synchronize call (#2393)
matsuda (Akira Matsuda)
12:47 PM Bug #9115: Logger traps all exceptions; breaks Timeout
There're also rescue-clauses for `check_shift_log` and `@dev.write(message)`.
They may raise various exceptions and logger.rb never knows that.
Explicitly passing those exceptions are general way, but are there any exceptions other t...
naruse (Yui NARUSE)
06:45 AM Bug #9115: Logger traps all exceptions; breaks Timeout
See the code again before discuss.
```ruby
def write(message)
begin
synchronize do
if @shift_age and @dev.respond_to?(:stat)
begin
check_shift_log
rescue
...
naruse (Yui NARUSE)
10:29 AM Revision af121720 (git): Removed unused literal assignments [ci skip]
nobu (Nobuyoshi Nakada)
10:29 AM Revision 7a07c54b (git): Subjects may contain a comma [ci skip]
nobu (Nobuyoshi Nakada)
08:26 AM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
I second what Alan said, editing Ruby source with my editor is a nightmare.
On another note, the main objection for getting rid of tabs once and for all seem to be `git blame`, so I wonder wether `git filter-branch` was considered.
...
byroot (Jean Boussier)
08:00 AM Revision 73af1c4d (git): [rubygems/rubygems] Use `RbConfig::CONFIG['rubylibprefix']`
It is defined since ruby 1.9.2.
https://github.com/rubygems/rubygems/commit/84981ca908
nobu (Nobuyoshi Nakada)
07:07 AM Revision dd58c4ba (git): Investigation of a sporadic error at Github Actions
nobu (Nobuyoshi Nakada)
01:28 AM Feature #16113: Partial application
An aside, but I took a stab at a pure Ruby implementation of keyword argument currying: https://gist.github.com/havenwood/db041566abeac894602c188c77374040
``` ruby
['{"aim":true}', '{"impossible":false}'].map &JSON.:parse.curry.(symb...
shan (Shannon Skipper)
12:46 AM Revision 5a384e2c (git): Fix some bundler specs (#2380)
* These seem to consistenly pass already
* Show actual command when running `make test-bundler`
Current the setup command that installs the necessary gems for testing
bundler was printed, but not the actual command that runs the tests....
deivid (David Rodríguez)

08/19/2019

11:55 PM Bug #15989: irb-1.1.0.pre.1 crashes on using arrow up, home and delete
@maciej.mensfeld In latest revisions of IRB and Reline, this problem can't be reproduced. Maybe it's fixed. aycabta (aycabta .)
11:31 PM Revision aa03de8b (git): Treat two types "do" correctly
A "do" what has followed a token what has EXPR_CMDARG is for a block,
and in other cases "do" is for "while", "until" or "for".
aycabta (aycabta .)
07:45 PM Bug #16098 (Closed): SEGV with RUBY_ISEQ_DUMP_DEBUG=to_binary make check
Applied in changeset commit:git|dc0e45e39b37556af8abf6cdb0180e2973041931.
----------
Update moved objects in original_iseq
Without doing this, enabling a TracePoint on a method could lead to use
of moved objects. This was found by runn...
alanwu (Alan Wu)
07:44 PM Revision dc0e45e3 (git): Update moved objects in original_iseq
Without doing this, enabling a TracePoint on a method could lead to use
of moved objects. This was found by running
`env RUBY_ISEQ_DUMP_DEBUG=to_binary make test-all`, which sets
orignal_iseq then runs the compaction tests and the tracep...
alanwu (Alan Wu)
06:46 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
I would love it if (1) can happen. Editors like Sublime Text, VSCode and Atom cannot
distinguish between indent size and tab size, so they have trouble handling the
current style. I use Sublime and have to set my indentation size to 8 ...
alanwu (Alan Wu)
09:12 AM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
Option 4 is not a lethal tab killer, but nevertheless a good thing to have. shyouhei (Shyouhei Urabe)
08:42 AM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
My (weak) vote goes to 1, or 0 (just drop "expand tabs" :-). mame (Yusuke Endoh)
08:09 AM Misc #16112 (Closed): Reduce the possibility of "expand tabs" commit occurrences
## Problem
* While we agreed to use only spaces for indentation of C code in [Bug #14246], we sometimes hit "expand tabs" commit when we just edit a part of existing lines with hard tab indentation.
* "expand tabs" commit bothers peopl...
k0kubun (Takashi Kokubun)
05:14 PM Revision 19b0161b (git): Check whether syscall(2) is deprecated by actual warnings
nobu (Nobuyoshi Nakada)
05:14 PM Revision 588b74e8 (git): Check for minimum required OSX version earlier
nobu (Nobuyoshi Nakada)
05:14 PM Revision 9ee770a2 (git): Bail out if unsupported old MacOSX is required
nobu (Nobuyoshi Nakada)
05:14 PM Revision af2c8d28 (git): Fixed the check for OSX version
Should compare minimum required version, and with the particular
macro defined for each version. Also made the error messages
consistent.
nobu (Nobuyoshi Nakada)
05:05 PM Revision e6b72e8c (git): retrieve current path on macOS
David Carlier
04:45 PM Bug #16111: Combining default positional and keyword arguments is resulting in a `to_hash` method call
I think that either way, resolving it may not be trivial/simple right now; if you
look at mame's linked in issue above at #14183, it mentions 19 (somewhat) related
issues concerning keyword arguments. Jeremy also pointed out some bugs ...
shevegen (Robert A. Heiler)
08:22 AM Bug #16111: Combining default positional and keyword arguments is resulting in a `to_hash` method call
Ok, thanks for the reply. That now makes more sense. I understand why the last positional argument is type-checked but surely trying to convert it using `param#to_hash` is a step too far? Doing so basically means that the last positional... mtelford (Michael Telford)
06:13 AM Bug #16111: Combining default positional and keyword arguments is resulting in a `to_hash` method call
> I would like to know why the method to_hash is being called
A method call that accepts keywords checks if the last argument is a Hash or not. The check includes attempting to convert it by using `to_hash`. This is the behavior you...
mame (Yusuke Endoh)
05:47 AM Bug #16111 (Closed): Combining default positional and keyword arguments is resulting in a `to_hash` method call
Combining default positional and keyword arguments is resulting in a `to_hash` method call when I don't believe it should be. It's affecting some code I am writing. The full details of the behaviour I'm describing can be seen in the atta... mtelford (Michael Telford)
04:24 PM Feature #15982: Remove y2racc and racc2y
Yes, the stable racc has them, but
1. They were never shipped in Ruby, so if they won't be shipped, nobody should miss them.
2. It is not clear if they outputs are useful or reliable, so why to ship them if you can't tell they are us...
vo.x (Vit Ondruch)
03:21 PM Revision 1408f159 (git): * 2019-08-20 [ci skip]
git[bot]
03:17 PM Revision 8df25214 (git): io.c: make ioctl_req_t int in Android
The second argument of ioctl seems to be int in Android.
Android is not a supported platform, but this one-line change allows
ruby to build by Android NDK r20.
mame (Yusuke Endoh)
02:28 PM Bug #16110: Doesn't detect deadlock on Ruby 2.4 and 2.5 on Windows
Is this specific to 32 bit builds of 2.4 & 2.5? I think 64 bit builds all function as expected... MSP-Greg (Greg L)
12:23 PM Feature #16113: Partial application
the Devs should maybe look at `#curry` for this, currently it doesn't support a way to curry keyword arguments Hanmac (Hans Mackowiak)
11:11 AM Feature #16113: Partial application
Personally I dislike this proposal primarily due to the name alone. I don't think
a method named .m is good in this context.
We do have short named methods here and there, of course, such as "p" or "pp",
but I feel that these cases ...
shevegen (Robert A. Heiler)
10:07 AM Feature #16113 (Open): Partial application
**Preface:** One of the main "microstructures" of the code we use is chaining methods-with-blocks; and we really love to keep those blocks DRY when they are simple. Currently, for DRY-ing up simple blocks, we have:
* `foo(&:symbol)`
...
zverok (Victor Shepelev)
10:37 AM Revision 45bed285 (git): Reduce sub-shell and use `&&` instead of `;`
znz (Kazuhiro NISHIYAMA)
09:43 AM Revision 8882986d (git): Drop duplicated sample code (#2389) [ci skip]
* Drop duplicated sample code
* Drop another style sample
https://github.com/ruby/ruby/pull/2389#issuecomment-522489520
* Update sample list
kachick (Kenichi Kamiya)
09:37 AM Revision 209ea85b (git): Make portable for standalone test-unit gem.
* It can invoke test-unit with envutil.rb
* refute_match of test-unit couldn't handle String instance.
hsbt (Hiroshi SHIBATA)
09:16 AM Revision 9b330200 (git): Remove unused variable to suppress warning (#2388) [ci skip]
```
sample/observ.rb:30: warning: assigned but unused variable - clock
```
kachick (Kenichi Kamiya)
09:13 AM Revision 97c377e2 (git): Mark Travis osx cron-only
because it has often hanged like
https://travis-ci.org/ruby/ruby/jobs/573691637,
and we also have almost the same test suite on GitHub Actions now, which
seems to be stable in `make check` so far.
k0kubun (Takashi Kokubun)
09:00 AM Revision cda86644 (git): Update a sample code (#2387)
Kernel#inspect does not call #to_s now
To follow https://github.com/ruby/ruby/commit/fd7dc23d281f38a71fa7f9c32812cd468c4b1788
kachick (Kenichi Kamiya)
08:52 AM Revision 355acbaf (git): Update the canonical repository url
hsbt (Hiroshi SHIBATA)
08:36 AM Revision 6dd9736c (git): crash report on mac little update
displaying vm info as Linux and FreeBSD.
checking libproc as it is present only from 10.5 version.
https://github.com/ruby/ruby/pull/2384
David CARLIER
08:30 AM Revision 605d2ce9 (git): Accurate a sample to show having some ext (#2385)
kachick (Kenichi Kamiya)
07:39 AM Revision 45454bdb (git): Prefer Regexp#=~ to Regexp#match when the RHS may be nil
nobu (Nobuyoshi Nakada)
07:32 AM Revision b4daa442 (git): Use modifier for pid_t
nobu (Nobuyoshi Nakada)
07:18 AM Revision 8108594f (git): unsigned int should have enough bits for rb_thread_shield_waiting
nobu (Nobuyoshi Nakada)
07:09 AM Misc #16109 (Closed): Normalize legacy tag names
And this is the current `git ls-remote`. Now it looks more consistent.
## after
```
$ git ls-remote origin
1bd60c66d385142d08f678f8a9563c311cfc3fe8 HEAD
1bd60c66d385142d08f678f8a9563c311cfc3fe8 refs/heads/master
ab6...
k0kubun (Takashi Kokubun)
07:08 AM Misc #16109: Normalize legacy tag names
Done. Here's the full operation log:
```
$ git push origin :v1_3_1_
remote: To git@github.com:ruby/ruby.git
remote: - [deleted] v1_3_1_
To git.ruby-lang.org:ruby.git
- [deleted] v1_3_1_
$ git push origi...
k0kubun (Takashi Kokubun)
06:39 AM Misc #16109: Normalize legacy tag names
I'm going to apply this. I captured the current status of git.ruby-lang.org/ruby.git.
## before
```
$ git ls-remote origin
c5db4c28f9349eb296a360dc08d6b88be66916d1 HEAD
c5db4c28f9349eb296a360dc08d6b88be66916d1 refs...
k0kubun (Takashi Kokubun)
06:55 AM Revision 1bd60c66 (git): Fix FL_USER19
* include/ruby/ruby.h: cast via `unsigned int` explicitly, to get
rid of signed extension by implicit integer promotion.
nobu (Nobuyoshi Nakada)
06:37 AM Revision 4515bcc9 (git): Omit version.h when merging
U.Nakamura
06:35 AM Bug #15793: Please backport 7b7043e5da8589e01b94575d4ed647e909e5c875
ruby_2_5 r67748 merged revision(s) f4fe2a76b0564e8e572936dec3bd724ac22b7a44. usa (Usaku NAKAMURA)
06:35 AM Revision bad64833 (git): merge revision(s) f4fe2a76b0564e8e572936dec3bd724ac22b7a44: [Backport #15793]
merge revision(s) 7b7043e5da8589e01b94575d4ed647e909e5c875: [Backport
#15793]
eliminate use of freed memory
rb_io_fptr_finalize_internal frees the memory region.
===============...
U.Nakamura
06:01 AM Revision c5db4c28 (git): cont.c: remove unused STACK_GROW_DIR_DETECTION
to suppress a waring for "unused variable" mame (Yusuke Endoh)
05:59 AM Revision 6c2aa868 (git): Roughly retry `brew update`
as it failed randomly https://github.com/ruby/ruby/runs/196712109 k0kubun (Takashi Kokubun)
05:51 AM Feature #15743 (Closed): RubyVM should be renamed to CRuby
Applied in changeset commit:git|39a43d9cd09f8c880d0a70d9cb8ede6d7e6ef583.
----------
Make it as clear as possible that RubyVM is MRI-specific and only exists on MRI (#2113) [ci skip]
* Make it clear as possible that RubyVM is MRI-speci...
Eregon (Benoit Daloze)
05:51 AM Revision 39a43d9c (git): Make it as clear as possible that RubyVM is MRI-specific and only exists on MRI (#2113) [ci skip]
* Make it clear as possible that RubyVM is MRI-specific and only exists on MRI
* See [Bug #15743].
* Use "CRuby VM" instead of "Ruby VM" for clarity.
* Use YARV rather than "CRuby VM" for documenting RubyVM::InstructionSequence
* Avoi...
Eregon (Benoit Daloze)
05:43 AM Revision d76be10d (git): missing/memcmp.c: suppress a `-Wparentheses` warning
mame (Yusuke Endoh)
05:34 AM Revision 1f3f50fb (git): * expand tabs. [ci skip]
git[bot]
05:34 AM Revision 574a9edf (git): Set flag to allow unprivileged users to create symlinks (#2381)
* [Win32] set flag to allow unprivileged users to create symlinks nobu (Nobuyoshi Nakada)
01:44 AM Feature #15215: HTTPS server name indication (SNI): explicit server_name in Net::HTTP
aspettl (Aaron Spettl) wrote:
> I still like to have this feature. Any opinion on this? Especially @naruse as a maintainer of lib/net/http(s).rb?
> ...
+1 as well
waf (felix wong)
01:17 AM Bug #16108 (Rejected): gsub gives wrong results with regex backreferencing and triple backslash
This is a designed behaviour. A backslash character is first cooked by the ruby interpreter (to handle `\'` etc), then cooked again by gsub's own preprocessor (to handle `\1` etc). You have to understand exactly what is going on to pla... shyouhei (Shyouhei Urabe)
01:07 AM Revision bc1e2271 (git): lib/rdoc/markup/parser.rb: remove a unused variable initialization
mame (Yusuke Endoh)
12:47 AM Revision 4c133689 (git): Make AppVeyor notification colors consistent
It was using the same one as original AppVeyor's notification, but it's
just inconsistent with others like Travis and GitHub Actions.
k0kubun (Takashi Kokubun)
12:41 AM Revision d106f082 (git): Stop reporting test-bundled-gems results
by marking continue-on-error.
I dropped it to test Slack notification, and I finished to test it.
k0kubun (Takashi Kokubun)

08/18/2019

08:09 PM Bug #16110 (Closed): Doesn't detect deadlock on Ruby 2.4 and 2.5 on Windows
The following code is detected as a deadlock, except in Ruby 2.4 and 2.5 on Windows:
``` sh
ruby -r thread -ve 'Thread.new { Queue.new.shift }.join'
```
You can see it run in this code: https://github.com/JoshCheek/childprocess_e...
josh.cheek (Josh Cheek)
06:40 PM Revision c100e385 (git): Workaround errors on multi-line commit message
by using toJson with fields. k0kubun (Takashi Kokubun)
06:14 PM Revision e139d277 (git): Make Slack notification available
for macOS / Windows as well.
Docker-based GitHub Action does not work on these OSes.
k0kubun (Takashi Kokubun)
04:50 PM Revision aa5fbb5a (git): * 2019-08-19 [ci skip]
git[bot]
04:49 PM Revision 2f6c8ed2 (git): Implement Slack notification for Actions
k0kubun (Takashi Kokubun)
02:32 PM Revision e4c43207 (git): Revert "Try notifying Slack from Actions"
This reverts commit d8807e8b1a9d09ee1543e18618b4ef7e8203c616.
We'd need more features. Reverting to customize this later.
k0kubun (Takashi Kokubun)
02:19 PM Revision d8807e8b (git): Try notifying Slack from Actions
https://github.com/8398a7/action-slack
https://github.com/marketplace/actions/action-slack
k0kubun (Takashi Kokubun)
11:10 AM Misc #16109: Normalize legacy tag names
Yeah, I personally like vX.Y.Z rather than vX_Y_Z too, especially because it's closer to what `rake release` does by default.
However, newer tags are also tagged as vX_Y_Z, and renaming the new tags would be disruptive unlike renaming...
k0kubun (Takashi Kokubun)
10:43 AM Misc #16109: Normalize legacy tag names
Sorry for the off-track comment from me - quite an epic task. :)
It would be kind of cool if we'd have not only a "time travel" history of all
of ruby in general, including the very old ruby releases by matz (like in the
1990s or so...
shevegen (Robert A. Heiler)
09:18 AM Misc #16109 (Closed): Normalize legacy tag names
There are tags with inconsistent names. To browse the history more easily, I propose the following normalization.
**Before and after the renames, I'm going to record `git ls-remote` in this ticket. By doing so, we'd be able to revert t...
k0kubun (Takashi Kokubun)
10:10 AM Revision 829b800c (git): Reoder Travis matrix.include
to clarify what's running for every commit. k0kubun (Takashi Kokubun)
09:08 AM Revision 51edcbad (git): Use master branch instead of trunk.
hsbt (Hiroshi SHIBATA)
09:08 AM Revision 91321539 (git): Ignore tags on default gems from ruby core repository.
hsbt (Hiroshi SHIBATA)
07:22 AM Bug #16105: heap-use-after-free in String#sub!
ruby_2_6 r67747 merged revision(s) d5c33364e3c0efb15e11df417c925afee2cdb9c9. nagachika (Tomoyuki Chikanaga)
07:22 AM Revision a2da0c2a (git): merge revision(s) d5c33364e3c0efb15e11df417c925afee2cdb9c9: [Backport #16105]
Fixed heap-use-after-free
* string.c (rb_str_sub_bang): retrieves a pointer to the
replacement string buffer just before using it, for the case of
replacement with the receiver string itself. [Bug #16105]
g...
nagachika (Tomoyuki Chikanaga)
06:55 AM Feature #15171 (Closed): [patch] Use OpenSSL 1.1.1 for Appveyor MinGW build
Closing https://github.com/ruby/ruby/pull/1998#issuecomment-437700528 k0kubun (Takashi Kokubun)
06:54 AM Bug #15235 (Closed): [patch] appveyor.yml - remove MinGW dll's from mswin testing PATH
Closing as requested at https://github.com/ruby/ruby/pull/1998#issuecomment-437700528 k0kubun (Takashi Kokubun)
06:53 AM Bug #16099: UTF-16LE BOM followed by '\0' is missed
ruby_2_6 r67746 merged revision(s) 5b1bf8dd2d08ae7371ecf025967376bb794ed651. nagachika (Tomoyuki Chikanaga)
06:53 AM Revision 1ea42115 (git): merge revision(s) 5b1bf8dd2d08ae7371ecf025967376bb794ed651: [Backport #16099]
UTF LE is fixed at least the first 2 bytes
* io.c (io_strip_bom): if the first 2 bytes are 0xFF0xFE, it
should be a little-endian UTF, 16 or 32. [Bug #16099]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_...
nagachika (Tomoyuki Chikanaga)
06:50 AM Revision ad0ea708 (git): Drop before_test for mswin too
for consistency. In the pull request, `before_test` was dropped only for
msys2 to fix msys2-only failure. But there's no need to keep it
inconsistent now.
k0kubun (Takashi Kokubun)
06:47 AM Revision cba8166c (git): Appveyor - vc120 use OpenSSL 1.0.2, vc140 use 1.1.1 (#1998)
* appveyor.yml - OpenSSL vc120 -> 1.0.2, vc140 -> 1.1.1
* Try just using build_script
MSP-Greg (Greg L)
06:39 AM Revision 6b42b0c6 (git): Fix document of `GC.start` (#2382)
pocke (Masataka Kuwabara)
06:10 AM Bug #14834: rb_profile_frames SEGV when PC adjusted on IFUNC
ruby_2_6 r67745 merged revision(s) 5d33f787169bcc3594d2264726695d58c4a06899,8b162ce9d1003e4e469d8f48cb9a2076fd45b47c. nagachika (Tomoyuki Chikanaga)
06:10 AM Revision e1d3b318 (git): merge revision(s) 5d33f787169bcc3594d2264726695d58c4a06899,8b162ce9d1003e4e469d8f48cb9a2076fd45b47c: [Backport #14834]
fix tracepoint + backtrace SEGV
PC modification in gc_event_hook_body was careless. There are (so
to say) abnormal iseqs stored in the cfp. We have to check sanity
before we touch the PC.
This has not ...
nagachika (Tomoyuki Chikanaga)
06:02 AM Revision d3da1d57 (git): Skip open_spec.rb:L95 because ruby repo doesn't have json as default gems.
hsbt (Hiroshi SHIBATA)
05:21 AM Bug #16019: please backport df317151a5b4e0c5a30fcc321a9dc6abad63f7ed
ruby_2_6 r67744 merged revision(s) df317151a5b4e0c5a30fcc321a9dc6abad63f7ed. nagachika (Tomoyuki Chikanaga)
05:21 AM Revision fb8c28d3 (git): merge revision(s) df317151a5b4e0c5a30fcc321a9dc6abad63f7ed: [Backport #16019]
should not free local hook_list here.
exec_hooks_postcheck() clean executed hook_list if it is needed.
list_exec is freed if there are no events and this list is local
event (connected to specific iseq). However,...
nagachika (Tomoyuki Chikanaga)
05:17 AM Feature #10098: [PATCH] Timing-safe string comparison for OpenSSL::HMAC
New patch over at https://github.com/ruby/openssl/pull/269 bdewater (Bart de Water)
05:07 AM Bug #16024: String#split with block. cannot use Regexp in the block.
ruby_2_6 r67743 merged revision(s) f1b76ea63ce40670071a857f408a4747c571f1e9,1d1f98d49c9908f4e3928e582d31fd2e9f252f92. nagachika (Tomoyuki Chikanaga)
05:07 AM Revision 54a470d0 (git): merge revision(s) f1b76ea63ce40670071a857f408a4747c571f1e9,1d1f98d49c9908f4e3928e582d31fd2e9f252f92: [Backport #16024]
Occupy match data
* string.c (rb_str_split_m): occupy match data not to be modified
during yielding the block. [Bug #16024]
Reuse match data
* string.c (rb_str_split_m): reuse occupied match data. [...
nagachika (Tomoyuki Chikanaga)
04:45 AM Revision a77b3b44 (git): [bundler/bundler] Remove unnecessary require
https://github.com/bundler/bundler/commit/8ef571ed4e deivid (David Rodríguez)
04:45 AM Revision 683f9e1d (git): [bundler/bundler] No need to activate the `fileutils` default gem
The version we're vendoring actually relaxed this restriction back to
2.3.0+, so we can always use the vendored version.
https://github.com/bundler/bundler/commit/d366cbfe5d
deivid (David Rodríguez)
04:45 AM Revision 4756c5f7 (git): [bundler/bundler] Remove unnecessary rubygems monkeypatch
Instead, make sure we always load the local copy of bundler during
specs, and never end up using the default copy.
https://github.com/bundler/bundler/commit/ac655ffeda
deivid (David Rodríguez)
04:45 AM Revision 5a69a23a (git): [bundler/bundler] Don't use system bundler on this spec
If we use system bundler, when booting the "outermost" bundler process,
bundler will save the path to the system bundler in BUNDLE_BIN_PATH, and
use it again when booting the "innermost" bundler process (`bundle exec
echo foo`).
That me...
deivid (David Rodríguez)
04:45 AM Revision 0653d8c6 (git): [bundler/bundler] Fix spec using the deprecated `bundle config` mode
https://github.com/bundler/bundler/commit/789dd1864f deivid (David Rodríguez)
04:45 AM Revision c50c2354 (git): [bundler/bundler] Require relatively from exe/ when possible
https://github.com/bundler/bundler/commit/e4cbb91b7d deivid (David Rodríguez)
04:44 AM Revision 99820488 (git): [bundler/bundler] Last relative requires
https://github.com/bundler/bundler/commit/fb587b9ebb deivid (David Rodríguez)
04:44 AM Revision f7539616 (git): [bundler/bundler] Remove a bunch of unneeded rubygems requires
https://github.com/bundler/bundler/commit/f9cb39e614 deivid (David Rodríguez)
04:44 AM Revision 7659f00a (git): [bundler/bundler] Move local variable to only branch where it's used
https://github.com/bundler/bundler/commit/3995b3345d deivid (David Rodríguez)
04:44 AM Revision d80f5399 (git): [bundler/bundler] Fix open default gem error
https://github.com/bundler/bundler/commit/792d724752 Zehan Zhao
04:44 AM Revision 98841b2b (git): [bundler/bundler] Wrap `open` specs with a context
So I can add another context that doesn't run the `before` block.
https://github.com/bundler/bundler/commit/06d0acc45a
deivid (David Rodríguez)
04:44 AM Revision e6e8d2d8 (git): [bundler/bundler] Prefer `before` to `before :each`
https://github.com/bundler/bundler/commit/6678747fae deivid (David Rodríguez)
04:44 AM Revision cc644c71 (git): [bundler/bundler] Fix `bundle doctor` command
Previously `bundle doctor` would fail on any bundle that does not
include git gems or plugins. This is because the previously used
`Bundler.home` does not exist unless the bundle includes git gems or
plugins. For example, with `bundle co...
deivid (David Rodríguez)
04:43 AM Revision a02dbcec (git): [bundler/bundler] Bundler displays a duplicate gem entries warning even if gems only appear once per group
https://github.com/bundler/bundler/commit/d18a83109e David Stosik
04:40 AM Feature #9925 (Closed): rsock_addrinfo uses DNS family AF_UNSPEC for lookup causing high IPv6 AAAA volume
jeremyevans0 (Jeremy Evans)
04:33 AM Bug #15992: An exception breaks monitor state and cause deadlock
ruby_2_6 r67742 merged revision(s) f91879a7b548284c93743168acfd11e3d2aeefac. nagachika (Tomoyuki Chikanaga)
04:32 AM Revision 9ab43c7a (git): merge revision(s) f91879a7b548284c93743168acfd11e3d2aeefac: [Backport #15992]
handle_interrupt to defend monitor state [Bug #15992]
If an exception is raised from another thread for example Timeout
and this thread is just after `mon_exit`'s `@mon_owner = nil`,
the exception breaks the stat...
nagachika (Tomoyuki Chikanaga)
04:25 AM Revision 3ecb5125 (git): Gem::ConfigMap is deprecated now
hsbt (Hiroshi SHIBATA)
12:30 AM Revision a0e80c7c (git): Drop continue-on-error for make check
Like macos.yml, we don't need to ignore `make check` failure. k0kubun (Takashi Kokubun)
 

Also available in: Atom