Project

General

Profile

Activity

From 10/23/2019 to 10/29/2019

10/29/2019

11:25 PM Revision c54635c0 (git): Update Unicode Emoji version from 12.0 to 12.1.
This update does not add any new codepoint assignments, it just
expands the range of emoji codepoint sequences recommended for
public interchange.
Depending on how emoji data files are cached, this commit may
require manual intervention...
duerst (Martin Dürst)
09:51 PM Feature #16276: For consideration: "private do...end" / "protected do...end"
Eregon (Benoit Daloze) wrote:
> Also worth noting that `private def` actually defines two methods, one public and then a copy of it as private, overriding the public one in the method table.
I don't think this is true. `private :met...
jeremyevans0 (Jeremy Evans)
09:17 PM Feature #16276: For consideration: "private do...end" / "protected do...end"
I kind of like this idea as it would make it clear which methods are private by indentation.
`private` alone is indeed hard to notice as soon as there are a few methods in the class.
OTOH, using this to change a method from private t...
Eregon (Benoit Daloze)
08:38 PM Feature #16276: For consideration: "private do...end" / "protected do...end"
shevegen (Robert A. Heiler) wrote:
> > As noted in the pseudocode above, we can clean up some of the issues around
> ...
Agree with all you said and appreciate the detailed feedback - but on this, and in many ways on the use of `send...
adh1003 (Andrew Hodgkinson)
06:28 PM Bug #16283 (Third Party's Issue): A fork in transaction of PG cause Segmentation fault
This looks like the Mac OS getaddrinfo bug. See the part of the C-level backtrace before the crash:
```
/usr/lib/system/libsystem_platform.dylib(_sigtramp+0x1d) [0x7fff7cbf8b5d]
/usr/lib/system/libsystem_trace.dylib(_os_log_preferen...
jeremyevans0 (Jeremy Evans)
09:42 AM Bug #16283: A fork in transaction of PG cause Segmentation fault
Pretty sure that's the OSX specific bug that got fixed in 2.6.4 or 2.6.5 (This one IIRC but I might be wrong https://bugs.ruby-lang.org/issues/15887).
Can you try with 2.6.5 ?
byroot (Jean Boussier)
03:55 AM Bug #16283 (Third Party's Issue): A fork in transaction of PG cause Segmentation fault
Call Kernel#fork in transaction of Postgres and call some Socket method in fork's block, then ruby on the child process abort with segmentation fault.
Conceptual code:
```
MGModel.connection.transaction do
# Do something
...
doloopwhile@gmail.com (健司 小本)
03:14 PM Revision 92c13380 (git): * 2019-10-30 [ci skip]
git[bot]
03:13 PM Revision 22dbbbeb (git): Compacting the heap can cause GC, so disable it
When we compact the heap, various st tables are updated, particularly
the table that contains the object id map. Updating an st table can
cause a GC to occur, and we need to prevent any GC from happening while
moving or updating referen...
tenderlovemaking (Aaron Patterson)
01:40 PM Revision fee5cde0 (git): Fix tests for CVE-2018-6914
Since the current working directory is not involved in `Tempfile`
and `Dir.mktmpdir` (except for the last resort), it is incorrect
to derive the traversal path from it. Also, since the rubyspec
temporary directory is created under the b...
nobu (Nobuyoshi Nakada)
11:05 AM Feature #16275: Revert `.:` syntax
Jeremy – I’m sorry for the overreach in that clumsy wording. Let me rephrase: what I saw here was a fair number of comments supporting the removal of an already-implemented feature of 2.7 that I felt had good potential and that I was per... timriley (Tim Riley)
07:38 AM Revision ad4da866 (git): Check for nonnull attribute in configure
nobu (Nobuyoshi Nakada)
07:05 AM Revision 9195ed18 (git): Revert "Check for nonnull attribute in configure"
This reverts commit 54eb51d72bc43f90b595f0d7ffb5069ebf1a56d9.
Windows build failure. See also https://github.com/ruby/ruby/runs/278718805
shyouhei (Shyouhei Urabe)
05:40 AM Revision 7bf51ced (git): test/rubygems/test_gem.rb: early failure when there is /tmp/Gemfile
Some test cases in rubygems assume that /tmp/Gemfile does not exist.
If it does, they fail with very difficult-to-understand message:
```
[ 149/2108] TestGemBundlerVersionFinder#test_bundler_version_with_bundle_update_bundler = 0.00
1...
mame (Yusuke Endoh)
04:16 AM Revision 79a7fd91 (git): Revert "Revert "[ruby/rdoc] Use omit of test-unit instead of skip of minitest""
This reverts commit ca5812fe4516a10cc687281f9e47e1a08449f1ab.
Now tool/lib/minitest provides "omit", so it should work.
mame (Yusuke Endoh)
04:15 AM Revision 1820aeee (git): tool/lib/minitest/unit.rb: add "omit" as an alias to "skip"
According to rdoc, test-unit provides omit instead of skip.
This is a compatibility layer to make it work with both test-unit and
tool/lib/minitest.
mame (Yusuke Endoh)
03:57 AM Revision ca5812fe (git): Revert "[ruby/rdoc] Use omit of test-unit instead of skip of minitest"
This reverts commit b4da6fc1c277190bbd10e795ebf3be45772038e8.
`make test-all` uses minitest, which led to "undefined method `omit'"
mame (Yusuke Endoh)
03:34 AM Revision 9525541d (git): [ruby/rdoc] Use Dir.glob to convert short path of Dir.tmpdir to long path
https://github.com/ruby/rdoc/commit/ba16e44572 aycabta (aycabta .)
03:34 AM Revision c8ce37d4 (git): [ruby/rdoc] Support different drive latters in include paths
https://github.com/ruby/rdoc/commit/946d2592e2 aycabta (aycabta .)
03:34 AM Revision b4da6fc1 (git): [ruby/rdoc] Use omit of test-unit instead of skip of minitest
https://github.com/ruby/rdoc/commit/1c5bf2ae1d aycabta (aycabta .)
03:12 AM Revision 54eb51d7 (git): Check for nonnull attribute in configure
nobu (Nobuyoshi Nakada)
03:07 AM Revision b86e5c9f (git): Clang can also use C call cache
Previously this was restricted to only gcc because of the
GCC_VERSION_SINCE check (which explicitly excludes clang).
GCC 3.3.0 is quite old so I feel relatively safe assuming that all
reasonable versions of clang support this.
jhawthorn (John Hawthorn)
02:32 AM Revision 85b88c1d (git): Let the arrays for the singleton and instance method reflection helpers be initialized to the methods count
methodmissing (Lourens Naudé)
02:32 AM Revision fecaa6e9 (git): Let the backtrace array constructed in backtrace_collect be initialized with the size already given
methodmissing (Lourens Naudé)
02:31 AM Revision 00953629 (git): Right size the vm_default_params hash
methodmissing (Lourens Naudé)
02:31 AM Revision 0e68913f (git): Right size the Enumerator internal lazy_use_super_method hash
methodmissing (Lourens Naudé)
02:31 AM Revision 4480d689 (git): Right size the compile option hash
methodmissing (Lourens Naudé)
02:30 AM Revision 65744fb1 (git): Right size the iseq coverage branches tmp array - initializes with 5 elements
methodmissing (Lourens Naudé)
01:35 AM Revision 05476277 (git): Version 0.0.4
aycabta (aycabta .)
12:01 AM Feature #16282: Add "call data" wrapper IMEMO object so inline cache can be updated
Actually, I think this makes performance worse because it removes the "define". So there will be only one. I will fix it to maintain the macro. tenderlovemaking (Aaron Patterson)

10/28/2019

11:58 PM Revision b4229c0a (git): Restore `in_kwarg` flag properly
nobu (Nobuyoshi Nakada)
11:26 PM Feature #16282 (Open): Add "call data" wrapper IMEMO object so inline cache can be updated
Hi,
Currently the compactor will invalidate all inline caches. I would like to update references in inline caches so we don't have to invalidate. Most inline caches are reachable from instruction sequences, but one cache is not:
...
tenderlovemaking (Aaron Patterson)
11:14 PM Revision da3774e5 (git): Revert "Protect finalizer references during execution"
This reverts commit 60a7f9f446604571f8a81499080c57c47baf0e6b.
We can't have Ruby objects pointing at T_ZOMBIE objects otherwise we get
an error in the GC. We need to find a different way to update
references.
tenderlovemaking (Aaron Patterson)
09:50 PM Revision 60a7f9f4 (git): Protect finalizer references during execution
When we run finalizers we have to copy all of the finalizers to a new
data structure because a finalizer could add another finalizer and we
need to keep draining the "real" finalizer table until it's empty.
We don't want Ruby programs to...
tenderlovemaking (Aaron Patterson)
08:09 PM Revision 6147fa82 (git): Fix continuation mark / compact
tenderlovemaking (Aaron Patterson)
07:15 PM Revision bbf3de22 (git): Pin labels during disassembly
We need to ensure that labels are pinned while disassembling. If the
compactor runs during disassembly, references to these labels could go
bad, so this commit just ensures that the labels can't move until we're
done.
tenderlovemaking (Aaron Patterson)
06:47 PM Revision 339a891c (git): Pin keys of this st_table
tenderlovemaking (Aaron Patterson)
06:19 PM Revision a51583b6 (git): * 2019-10-29 [ci skip]
git[bot]
06:18 PM Revision aec16b75 (git): Marshal is calling functions that should pin things
tenderlovemaking (Aaron Patterson)
01:05 PM Revision 6e0b40af (git): Try out-of-place build
nobu (Nobuyoshi Nakada)
12:59 PM Feature #16029: Expose fstring related APIs to C-extensions
> What about rb_str_fstring_lookup and rb_str_fstring_lookup_enc?
I don't think a lookup would be enough for what I'd like to do.
A typical use case would be a JSON document with lots of duplicated strings.
If we only lookup t...
byroot (Jean Boussier)
10:14 AM Revision 48f982ab (git): test-bundled-gems.rb: fixed for out-of-place build
nobu (Nobuyoshi Nakada)
09:15 AM Revision 07b5fec0 (git): Clean mjit and timestamp directories
nobu (Nobuyoshi Nakada)
07:53 AM Revision 3e83f1f0 (git): Add more matrix info to slack payload
znz (Kazuhiro NISHIYAMA)
05:38 AM Revision cc5580f1 (git): fix bug in keyword + protected combination
Test included for the situation formerly was not working. shyouhei (Shyouhei Urabe)
03:20 AM Revision a72cb6b1 (git): * 2019-10-28 [ci skip]
git[bot]
03:19 AM Revision d8d581bf (git): add assertion for mutex_lock.
After do_mutex_lock(mutex), the mutex should be owned by the current
thread. Adding an assertion for this assumption.
ko1 (Koichi Sasada)

10/27/2019

11:09 PM Bug #15834: Mutating the result of SortedSet.to_a mutates the original set, potentially violating the set's guarantees
Attached is a patch with a test for fixing this. jeremyevans0 (Jeremy Evans)
10:38 PM Bug #14325 (Closed): Set#reset raise RuntimeError instead of FrozenError
Fixed in commit:afd68cd87114fb49158462f1594cacfd2b765e9b. jeremyevans0 (Jeremy Evans)
10:32 PM Bug #16187 (Closed): Hash#replace no longer rehashes keys for small (array table) hashes
jeremyevans0 (Jeremy Evans)
10:30 PM Bug #16281: `irb -w` issues warning
Pull request submitted to fix this: https://github.com/ruby/reline/pull/62 jeremyevans0 (Jeremy Evans)
08:41 PM Bug #16278: Potential memory leak when an hash is used as a key for another hash
Thanks both @jeremyevans0 @alanwu for the rich and clear explanations! cristiangreco (Cristian Greco)
11:19 AM Revision 85d966af (git): Add ubuntu-16.04 to matrix of GitHub Actions
znz (Kazuhiro NISHIYAMA)
10:45 AM Feature #14145: Proposal: Better Method#inspect
This PR provides method parameters inspect: https://github.com/ruby/ruby/pull/2618
Implementation is most probably not optimal (to say the least), I am ready to fix it by comments. At least the tests and implementation should handle all...
zverok (Victor Shepelev)
10:41 AM Misc #16188: What are the performance implications of the new keyword arguments in 2.7 and 3.0?
I want to expand on my semantics concern, for the performance concern I should get some numbers first.
jeremyevans0 (Jeremy Evans) wrote:
> Technically, `**hash` automatically converts a positional hash to keywords. So I definitely ...
Eregon (Benoit Daloze)
09:57 AM Revision 417369e0 (git): Improve Enumerator.produce docs
* Add to NEWS;
* Add examples of while-alike cycles with practical tasks.
zverok (Victor Shepelev)
01:41 AM Revision aba23d83 (git): Fix documentation for Fiber#transfer [ci skip]
Fiber#transfer prevents calling Fiber#resume on the receiver of the
transfer method, not the fiber calling transfer.
Transfering back to a fiber does not allow later calling resume on
the fiber. Once transfer has been called on a fiber...
jeremyevans (Jeremy Evans)

10/26/2019

08:33 PM Revision 4fe89e08 (git): Add entry for Feature #13083 in NEWS
* Move Unicode changes under String / Unicode for consistency with the rest. Eregon (Benoit Daloze)
08:23 PM Feature #13083: Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
There are PRs to fix those: https://github.com/rails/rails/pull/37504 Eregon (Benoit Daloze)
06:53 PM Revision 664e96b1 (git): Update to ruby/spec@28a728b
Eregon (Benoit Daloze)
06:52 PM Revision 3eb0d50c (git): Update to ruby/mspec@e171725
Eregon (Benoit Daloze)
05:24 PM Revision 9c5a9623 (git): * 2019-10-27 [ci skip]
git[bot]
05:24 PM Revision 62212482 (git): Improve Net::HTTP docs:
* Make links from Net::GenericHTTPRequest work;
* Document +dest+ param of HTTPResponse#read_body;
* Slightly improve reference to particular response
classes from HTTPResponse class docs.
zverok (Victor Shepelev)
05:24 PM Revision f93cb690 (git): OptionParser: document into: argument
zverok (Victor Shepelev)
05:24 PM Revision a24bff46 (git): open-uri: change global docs to reflect that URI.open syntax is preferred
zverok (Victor Shepelev)
05:24 PM Revision de147bb7 (git): Net::FTP: fix formatting problems for #status method
zverok (Victor Shepelev)
05:24 PM Revision 4fe06f46 (git): IRB: Document command evaluation history.
zverok (Victor Shepelev)
05:24 PM Revision 2746fd5d (git): Update StringIO docs:
* More explanations/examples in class docs;
* Fix links to other methods (remove
zverok (Victor Shepelev)
05:24 PM Revision f6f1377a (git): Update ERB docs
* Actualize Notes about other templating engines;
* Document #location= method.
zverok (Victor Shepelev)
04:31 PM Bug #16278: Potential memory leak when an hash is used as a key for another hash
The GC scans the native stack for Ruby's C code to find values to retain.
Pointers to Ruby's heap objects can end up on the native stack for a variety
of reasons, and this is mostly up to the C compiler. Whether a pointer ends up
on t...
alanwu (Alan Wu)
03:23 PM Bug #16278 (Rejected): Potential memory leak when an hash is used as a key for another hash
cristiangreco (Cristian Greco) wrote:
> Hi Jeremy, thanks for these details!
> ...
It is eventually collected when Ruby's GC can no longer find a reference to it. The reason it may be retained even though there is no direct reference ...
jeremyevans0 (Jeremy Evans)
12:44 PM Bug #16278: Potential memory leak when an hash is used as a key for another hash
Hi Jeremy, thanks for these details!
I don’t know the details of ruby’s GC, seems to me it might behave unpredictably sometimes. I guess what confuses me now is that although that object is retained we don’t observe unbounded memory g...
cristiangreco (Cristian Greco)
04:13 AM Bug #16278: Potential memory leak when an hash is used as a key for another hash
Adding this method and calling it after `create` clears the output.
```ruby
def garbage
h1 = h2 = h3 = h4 = h5 = h6 = h7 = h8 = h9 = h10 = nil
end
```
So a “shadow” seems staying on the VM stack.
nobu (Nobuyoshi Nakada)
02:21 AM Bug #16278: Potential memory leak when an hash is used as a key for another hash
Here's a modified version of your script, fixing the issue where `$id_h4 = h3.object_id`, and showing the actual contents of the objects found with those ids:
```ruby
require 'objspace'
class Klass; end
def create
h1 = { :a ...
jeremyevans0 (Jeremy Evans)
12:42 PM Misc #16262: DevelopersMeeting20191128Japan
(Sorry for being over-active. On the bright side, it could be a final bunch from me)
Carry-over from tickets with feedback:
* [Feature #16122] `Struct::Value`: simple immutable value object. First version of the proposal was not clea...
zverok (Victor Shepelev)
12:09 PM Feature #16275: Revert `.:` syntax
> with several core team members agreeing on this
At the end of the day you only need to find pro/con arguments for matz. :)
Once a syntax is picked, though, it may be mutually exclusive to other syntax
and follow-up ideas buildin...
shevegen (Robert A. Heiler)
07:17 AM Feature #16275: Revert `.:` syntax
zverok (Victor Shepelev) wrote:
> OK, with several core team members agreeing on this (and even PR prepared), I believe this is already a lost cause, but I'd still like to put some perspective here, if just for reference and future disc...
nobu (Nobuyoshi Nakada)
07:02 AM Feature #16275: Revert `.:` syntax
timriley (Tim Riley) wrote:
> I’m opposed to this reversion. I was looking forward to using `.:` in 2.7. I felt I should say this as a representative of perhaps a “silent majority” of Ruby users.
If you think your opinion represents...
jeremyevans0 (Jeremy Evans)
02:44 AM Feature #16275: Revert `.:` syntax
matz (Yukihiro Matsumoto) wrote:
> I am for adding syntax sugar for method reference. But I don't like proposed syntax (e.g. ->).
> ...
So clearly the syntax sugar for method reference is something that we *will* have. Eventually if no...
Dan0042 (Daniel DeLorme)
11:54 AM Bug #15528: Bundler stdlib is not documented
https://github.com/bundler/bundler/pull/7394 zverok (Victor Shepelev)
09:09 AM Bug #8855: {Single}Forwardable#def_delegators が、Stringでメソッド名を渡された時だけ __id__ と __send__ が取り除かれる
merged into ruby core at d00551a7bb1d5dbabb0a8c95d6bd2d9d4e86934a nagachika (Tomoyuki Chikanaga)
07:27 AM Revision ad9c7137 (git): Make `(#methodname)` a link with --hyperlink-all option
aycabta (aycabta .)
06:48 AM Revision d70fdeed (git): Make `(#methodname)` a link
nobu (Nobuyoshi Nakada)
06:35 AM Revision 5aacb304 (git): refactor assign variables
For readability. Requested by ko1.
See: https://github.com/ruby/ruby/commit/356e203a3acd4d3d20ba12f956fd22e17b6363e9#r35661401
shyouhei (Shyouhei Urabe)
05:58 AM Revision bddb31bb (git): Documentation improvements for Ruby core
* Top-level `return`;
* Documentation for comments syntax;
* `rescue` inside blocks;
* Enhance `Object#to_enum` docs;
* Make `chomp:` option more obvious for `String#each_line` and
`#lines`;
* Enhance `Proc#>>` and `#<<` docs;
* Enhanc...
zverok (Victor Shepelev)
03:52 AM Revision cf934413 (git): Raise on end-exclusive ranges [Feature #14784]
Raises an error on end-exclusive ranges unless endless, regardless
the receiver.
nobu (Nobuyoshi Nakada)
12:26 AM Revision f14b7541 (git): [ruby/forwardable] Use Gemfile instead of Gem::Specification#add_development_dependency.
https://github.com/ruby/forwardable/commit/1e7123a81b hsbt (Hiroshi SHIBATA)
12:25 AM Revision f625a4be (git): [ruby/forwardable] Fix NoMethodError on ruby 2.4 or earlier
https://github.com/ruby/forwardable/runs/242918994#step:5:12
```
Error: test_obj_single_delegators_send_id(TestForwardable): NoMethodError: private method `attr_reader' called for #<Class:#<Object:0x00005605af501f58>>
```
https://github...
znz (Kazuhiro NISHIYAMA)
12:25 AM Revision 00989770 (git): [ruby/forwardable] Remove string allocation in def_{instance,single}_delegators
https://github.com/ruby/forwardable/commit/1a994c90e1 jeremyevans (Jeremy Evans)
12:25 AM Revision d00551a7 (git): [ruby/forwardable] Make def_{instance,single}_delegators skip :__send__ and :__id__
Previously, __send__ and __id__ were skipped if provided as strings,
but not skipped if provided as symbols.
Fixes Ruby Bug 8855.
https://github.com/ruby/forwardable/commit/2e61c8c66c
jeremyevans (Jeremy Evans)
12:25 AM Revision b15e0983 (git): [ruby/forwardable] Update spec.files
https://github.com/ruby/forwardable/commit/1b6991e589 hsbt (Hiroshi SHIBATA)
12:24 AM Revision b25ab383 (git): [ruby/forwardable] Extracted VERSION constant for gemspec
https://github.com/ruby/forwardable/commit/387758d45a hsbt (Hiroshi SHIBATA)

10/25/2019

11:28 PM Feature #16275: Revert `.:` syntax
I’m opposed to this reversion. I was looking forward to using `.:` in 2.7. I felt I should say this as a representative of perhaps a “silent majority” of Ruby users.
I think that some of the additional ideas this feature was spawning...
timriley (Tim Riley)
06:37 PM Feature #16275: Revert `.:` syntax
@zverok I really feel your pain, I had the same reaction when some of my ideas were ignored or rejected; that never feels good, especially so if you strongly believe to be right. Just take a bit of distance, don't take it personally, rem... Dan0042 (Daniel DeLorme)
02:42 PM Feature #16275: Revert `.:` syntax
OK, with several core team members agreeing on this (and even PR prepared), I believe this is already a lost cause, but I'd still like to put some perspective here, if just for reference and future discussion.
> Disclaimer: This matte...
zverok (Victor Shepelev)
10:53 PM Bug #16278: Potential memory leak when an hash is used as a key for another hash
jeremyevans0 (Jeremy Evans) wrote:
> `object_id` is only unique for the life of the object. After the object is garbage collected, the same `object_id` could be used for a different object. So measuring using `object_id` is not a go...
cristiangreco (Cristian Greco)
09:31 PM Bug #16278: Potential memory leak when an hash is used as a key for another hash
cristiangreco (Cristian Greco) wrote:
> Using each store I found that the 3 labels hashes are retained after garbage collection (all the stores use a similar pattern of storing labels hashes within another hash).
> ...
`object_id` is o...
jeremyevans0 (Jeremy Evans)
09:18 PM Bug #16278: Potential memory leak when an hash is used as a key for another hash
ko1 (Koichi Sasada) wrote:
> > If an application exercises this pattern very frequently during lifetime and across multiple processes then it’s definitely going to bloat memory, at the very least. As a real-world example, this is causin...
cristiangreco (Cristian Greco)
06:07 AM Bug #16278: Potential memory leak when an hash is used as a key for another hash
> If an application exercises this pattern very frequently during lifetime and across multiple processes then it’s definitely going to bloat memory, at the very least. As a real-world example, this is causing high memory usage for the Pr... ko1 (Koichi Sasada)
10:03 PM Revision 0c579b0a (git): [ruby/dbm] Remove taint support
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.
https://github.com/ruby/dbm/commit/1f0ff0bce1
jeremyevans (Jeremy Evans)
08:39 PM Bug #16281 (Closed): `irb -w` issues warning
```
$ irb -w
.rvm/rubies/ruby-head/lib/ruby/2.7.0/reline.rb:322: warning: instance variable @ambiguous_width not initialized
```
(Since f13db4adde532)
marcandre (Marc-Andre Lafortune)
08:19 PM Misc #15739 (Rejected): Improvements needed to documentation of Hash#dig, Array#dig and OpenStruct#dig
I find the documentation clear, and all three classes include mixed examples as in your example above. marcandre (Marc-Andre Lafortune)
07:22 PM Feature #15869 (Closed): Add abs to Matrix
marcandre (Marc-Andre Lafortune)
05:56 PM Revision 41d52945 (git): * 2019-10-26 [ci skip]
git[bot]
05:54 PM Revision 84b69c52 (git): Edit vm_opts.h for VM options
Revert 46f175ed5c8560b3c9da5ab7b4fa73287f1eb1c5 partially.
Also tool/ruby_vm scripts refer the options in vm_opts.h.
nobu (Nobuyoshi Nakada)
03:39 PM Bug #16277: UNIXServer#listen fails with Errno::EADDRINUSE error under Windows 10 / WSL Ubuntu 18.04
Would something like the following yield an equivalent object?
```ruby
require 'socket'
sock = Socket.new :UNIX, :STREAM
sock.bind Addrinfo.unix('tmp.sock', :STREAM)
sock.listen 1024
puts sock.local_address.unix?
```
MSP-Greg (Greg L)
02:30 PM Revision 42c652d1 (git): Fixed range argument condition [Feature #14784]
Allows a beginless/endless range, and an end-exclusive range
unless the receiver is smaller than its end.
nobu (Nobuyoshi Nakada)
02:27 PM Feature #14784: Comparable#clamp with a range
> 1.clamp(0...3) #=> 1
> ...
I don't think it's a good idea for the error to depend on the value being clamped. When Matz said "It should raise an error on end-exclusive ranges" I'm pretty sure it was supposed to mean a simple argument ...
Dan0042 (Daniel DeLorme)
01:30 PM Feature #14784: Comparable#clamp with a range
Sounds reasonable, and matz says “an error on end-exclusive ranges” at https://bugs.ruby-lang.org/issues/14784#change-81254 and ditto in the log of 20190829 dev meeting, but nothing about beginless/endless ranges.
Seems I had been confu...
nobu (Nobuyoshi Nakada)
06:48 AM Feature #14784: Comparable#clamp with a range
@nobu is there any chance you can reconsider your implementation?
The important justification for the proposal was using `#clamp` with open ranges (begin- and end-less), but your implementation just rejects them all (with misleading e...
zverok (Victor Shepelev)
10:38 AM Bug #16280 (Third Party's Issue): FFI Illegal instruction
Perhaps, it is an issue of sassc. Could you please ask them first?
I'm unsure but it looks related to https://github.com/sass/sassc-ruby/issues/146
mame (Yusuke Endoh)
10:13 AM Bug #16280 (Third Party's Issue): FFI Illegal instruction
After calling bundle exec rails c -e production I'm getting the following output:
../bundle/ruby/2.5.0/gems/ffi-1.11.1/lib/ffi/library.rb:112: [BUG] Illegal instruction at 0x00007f76fa252980
ruby 2.5.1p57 (2018-03-29 revision 63029) ...
birkart (Roman Ustuantsev)
08:58 AM Revision 88135845 (git): enable assertion for debug.
http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2340856 ko1 (Koichi Sasada)
07:44 AM Revision f3f1d89d (git): skip tests that do not work on GC.stress
These tests rely on GC.stat and GC.last_gc_info, which are not
stable when GC.stress is true. Skip them for that case.
shyouhei (Shyouhei Urabe)
06:58 AM Bug #16236 (Third Party's Issue): Cannot handle logrotate on Windows when one file is written from multi process/thread
duerst (Martin Dürst)
06:53 AM Bug #16236: Cannot handle logrotate on Windows when one file is written from multi process/thread
Fluentd side patch: https://github.com/fluent/fluentd/pull/2663
Fluentd side issue: https://github.com/fluent/fluentd/issues/2446
cosmo0920 (Hiroshi Hatake)
06:52 AM Bug #16236: Cannot handle logrotate on Windows when one file is written from multi process/thread
Thanks for the information.
This issue should be Fluentd logging mechanism issue not Ruby core logger library.
Fluentd side logrotate issue is fixed.
So, it can be closed.
cosmo0920 (Hiroshi Hatake)
03:43 AM Bug #16279 (Closed): Backport 463092b8
hsbt (Hiroshi SHIBATA)
03:32 AM Bug #16279 (Closed): Backport 463092b8
Please backport the rake 12.3.3 update into the stable releases
rev: 463092b84da7933f307cc8747f948f68ef19f5fd
This patch resolves a public disclosed minor security issue: https://hackerone.com/reports/651518
And causes the curr...
twk3 (DJ Mountney)
03:24 AM Revision 356e203a (git): more on struct rb_call_data
Replacing adjacent struct rb_call_info and struct rb_call_cache
into a struct rb_call_data.
shyouhei (Shyouhei Urabe)
02:10 AM Bug #16161 (Closed): tailcall_optimization may be disabled after r67315
Thank you to merge https://github.com/ruby/ruby/pull/2529 on 4ff2c58f919153b9a47f69f855a0b9d2bb0e0bbe.
I confirmed this issue is fixed now.
```
$ ./miniruby -v -e 'iseq = RubyVM::InstructionSequence.compile("def foo(n, s = 0);return...
wanabe (_ wanabe)
01:45 AM Revision a7ec88ad (git): Add `shell: cmd`
Use cmd instead of new default shell for `call`.
https://github.blog/changelog/2019-10-17-github-actions-default-shell-on-windows-runners-is-changing-to-powershell/
https://github.com/ruby/ruby/commit/7bcc639c720b59eb2199601963bcfa72016...
znz (Kazuhiro NISHIYAMA)
01:07 AM Revision 7bcc639c (git): Rename old var name with new name
aycabta (aycabta .)
12:29 AM Revision 09936d1d (git): [ruby/tracer] Use Gemfile instead of Gem::Specification#add_development_dependency.
https://github.com/ruby/tracer/commit/9df7d7937b hsbt (Hiroshi SHIBATA)
12:25 AM Revision fb15e794 (git): Handle case where ruby2_keywords method splats to ruby2_keywords method
Previously, the keyword hash was duped (which results in a regular
hash), but the dup was not marked as a keyword hash, causing the
hash not to be marked as keyword hash even though it should be.
jeremyevans (Jeremy Evans)

10/24/2019

11:54 PM Revision 5040eea9 (git): Do not show progress at chocolatey
nobu (Nobuyoshi Nakada)
10:46 PM Misc #16188: What are the performance implications of the new keyword arguments in 2.7 and 3.0?
Eregon (Benoit Daloze) wrote:
> jeremyevans0 (Jeremy Evans) wrote:
> ...
As we discussed, here is a link to the benchmark: https://pastebin.com/raw/inwr6GvW
You'll want to compare the master branch with a branch that removes `ruby2_...
jeremyevans0 (Jeremy Evans)
07:40 PM Revision 4ff2c58f (git): retry tailcall optimization (#2529)
Sorry, f62f90367fc3bce6714e7c34cbd040e14e43fe07 is push miss. wanabe (_ wanabe)
07:39 PM Revision 58b363bf (git): respect `param.flags.ruby2_keywords` at to_binary.
`param.flags.ruby2_keywords` is not store/load correctly at to_binary
so restore this flag correctly.
ko1 (Koichi Sasada)
07:35 PM Revision d6a2507e (git): Duplicate hash when converting keyword hash to keywords
This mirrors the behavior when manually splatting a hash. This
mirrors the changes made in setup_parameters_complex in
6081ddd6e6f2297862b3c7e898d28a76b8f9240b, so that splatting to a
non-iseq method works the same as splatting to an is...
jeremyevans (Jeremy Evans)
07:34 PM Revision 8c59b925 (git): Update date specs
Allow Date.new spec to run on 2.7.
Separate Date.valid_jd? specs, since 2.7 is now stricter and
requires numeric value for the first argument.
jeremyevans (Jeremy Evans)
07:34 PM Revision 5fe8943f (git): Fix typo causing Date.new(year, month) to fail
Add a test for this case. jeremyevans (Jeremy Evans)
07:01 PM Revision e8f90e73 (git): check T_ICLASS for Method#inspect.
METHOD::klass can contain T_ICLASS so inspect should respect it. ko1 (Koichi Sasada)
06:45 PM Feature #16275: Revert `.:` syntax
`p obj.:hoge` can output source location of `#hoge` (with [#14145](https://bugs.ruby-lang.org/issues/14145)).
```ruby
p obj.:hoge
# => #<Method: X#hoge ../ruby/test.rb:4>
```
I was looking forward to seeing this because it is ve...
osyo (manga osyo)
02:09 PM Feature #16275: Revert `.:` syntax
mame (Yusuke Endoh) wrote:
> I'm currently thinking that the following design is preferable.
> ...
I agree with all the above. And if you can get Matz to reconsider #16120 nothing could make me happier :-)
But since I prefer `map(&:to...
Dan0042 (Daniel DeLorme)
11:26 AM Feature #16275: Revert `.:` syntax
+1 as well, it feels ad-hoc to me and rather not easy to read, and is less general than numbered parameters.
And it makes extra allocations of Method objects when there is no need.
Eregon (Benoit Daloze)
06:03 AM Feature #16275: Revert `.:` syntax
> `?> erb`
`?>` is a character literal.
znz (Kazuhiro NISHIYAMA)
01:33 AM Feature #16275: Revert `.:` syntax
I've already fallen into using ` .:` in 2.7. I'd personally miss `.:` since it feels super natural to me. shan (Shannon Skipper)
05:31 PM Revision b7c8874b (git): Install openssl with chocolatey
OpenSSL in chocolatey is 1.1.1d but outdated 1.0.2s is in vcpkg. nobu (Nobuyoshi Nakada)
05:24 PM Revision 826bbf98 (git): Split by `&&`
nobu (Nobuyoshi Nakada)
05:08 PM Revision 967b924a (git): Expanded an environment variable
PowerShell does not expand by `%varname%` syntax. nobu (Nobuyoshi Nakada)
05:04 PM Revision b86af95c (git): Get rid of control flow by cmd.exe
Github workflow stopped using cmd.exe suddenly, and `||` and `&&`
seem not working in PowerShell.
nobu (Nobuyoshi Nakada)
04:16 PM Revision b609bdeb (git): Define arguments forwarding as `ruby2_keywords` style
Get rid of these redundant and useless warnings.
```
$ ruby -e 'def bar(a) a; end; def foo(...) bar(...) end; foo({})'
-e:1: warning: The last argument is used as the keyword parameter
-e:1: warning: for `foo' defined here
-e:1: warning...
nobu (Nobuyoshi Nakada)
04:07 PM Revision 4b3e007e (git): Assert no-kwrest case
nobu (Nobuyoshi Nakada)
03:56 PM Revision ed65e2d5 (git): Assert no-block case
nobu (Nobuyoshi Nakada)
03:54 PM Revision 8d0c5eb8 (git): Set method locations
nobu (Nobuyoshi Nakada)
03:16 PM Revision 2ea69896 (git): * 2019-10-25 [ci skip]
git[bot]
03:15 PM Revision 6279e45c (git): Arguments forwarding is not allowed in lambda [Feature #16253]
nobu (Nobuyoshi Nakada)
02:50 PM Bug #9876 (Closed): IRB::Context output_method is not used
This is fixed by commit:1fb4584825. aycabta (aycabta .)
02:47 PM Revision 1fb45848 (git): Remove unsused output_method argument
Fixes Ruby Bug 9876. jeremyevans (Jeremy Evans)
02:38 PM Revision 8439caab (git): Refined `rp` output [ci skip]
So that the result structure can be accessed as `$number`
variables, not a mere `VALUE`.
nobu (Nobuyoshi Nakada)
11:58 AM Revision dc44ab29 (git): Revert "[ruby/fiddle] Fix a failing test (#13)"
This reverts commit 5ebb0d50f6560b35bc03deb79341a115c5f782ee. hsbt (Hiroshi SHIBATA)
11:58 AM Revision de5ee47c (git): Revert "[ruby/fiddle] test: use env Hash"
This reverts commit 4d844cbaed518743776594fa5ae33b86fe176ad1. hsbt (Hiroshi SHIBATA)
11:58 AM Revision efd641ff (git): Revert "[ruby/fiddle] Use ffi_closure_free by default. (#20)"
This reverts commit ce6caade7c57a505f73086ccd7b33c14f7715f22. hsbt (Hiroshi SHIBATA)
10:47 AM Revision f126d80b (git): [ruby/webrick] Don't check tainting in access log escaping
Only untaint result on Ruby <2.7, as taint support is deprecated
in Ruby 2.7+ and no longer has an effect.
https://github.com/ruby/webrick/commit/4c430f9410
jeremyevans (Jeremy Evans)
10:47 AM Revision c28d50a7 (git): [ruby/webrick] Support literal IPv6 addresses in X-Forwarded-Host
https://github.com/ruby/webrick/commit/6b6990ec81 jeremyevans (Jeremy Evans)
10:47 AM Revision 37c266aa (git): [ruby/webrick] Remove the squishing of whitespace in header values
While the stripping of header values is required by RFC 2616 4.2 and
RFC 7230 3.2.4, the squishing is not and can break things, such as
when one header contains an HMAC of another header.
Fixes Ruby Bug 7021.
https://github.com/ruby/we...
jeremyevans (Jeremy Evans)
10:47 AM Revision 84ed4c3d (git): [ruby/webrick] bump version to 1.5.0
https://github.com/ruby/webrick/commit/00c281caa7 hsbt (Hiroshi SHIBATA)
10:46 AM Revision 8189d496 (git): [ruby/webrick] Remove Webrick::HTTPResponse#to_s
It is currently broken, and even if it worked, it can cause problems
when debugging. See Ruby Bug 10715.
https://github.com/ruby/webrick/commit/575dea8656
jeremyevans (Jeremy Evans)
10:46 AM Revision f0452574 (git): [ruby/webrick] after ruby-2.6.0, set Net::HTTP#write_timeout
https://github.com/ruby/webrick/commit/3b51f6b4d2 thekuwayama (tomoya kuwayama)
10:34 AM Revision b8097848 (git): [ruby/fiddle] Remove taint support (#21)
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.
https://github.com/ruby/fiddle/commit/18d6fb6915
jeremyevans (Jeremy Evans)
10:34 AM Revision ce6caade (git): [ruby/fiddle] Use ffi_closure_free by default. (#20)
* Use ffi_closure_free unconditionally.
The current conditionals reflect historic heritage of FFI. Usage of
ffi_closure_free should be better default nowadays, because libffi 3.0.5
fixing issues of ffi_closure_free should be widely avai...
vo.x (Vit Ondruch)
10:34 AM Revision 30d46966 (git): [ruby/fiddle] Use RbConfig::SIZEOF (#19)
https://github.com/ruby/fiddle/commit/ea06b28db8 nobu (Nobuyoshi Nakada)
10:34 AM Revision 4d844cba (git): [ruby/fiddle] test: use env Hash
https://github.com/ruby/fiddle/commit/a01a962342 Sutou Kouhei
10:34 AM Revision 5ebb0d50 (git): [ruby/fiddle] Fix a failing test (#13)
* Fix a failing test
This commit fixes the following failure:
```
1) Failure:
Fiddle::TestImport#test_no_message_with_debug [/Users/mrkn/src/github.com/ruby/fiddle/test/fiddle/test_import.rb:152]:
1. [2/2] Assertion for "stderr"
...
Kenta Murata
10:34 AM Revision 7733db66 (git): [ruby/fiddle] Fiddle::Function must maintain a reference to the closure
If the first parameter to Fiddle::Function is a closure object (rather
than an interger), `rb_Integer` will cast it to an integer but not
maintain a reference to the closure. Then if the closure gets GC'd, we
have a segv. This commit k...
Aaron Patterson
09:50 AM Revision 70ca56de (git): Temporarily skipped with upstream changes of Date library.
hsbt (Hiroshi SHIBATA)
09:39 AM Revision 487d96c6 (git): [ruby/date] Use Gemfile instead of Gem::Specification#add_development_dependency.
https://github.com/ruby/date/commit/13c94362c2 hsbt (Hiroshi SHIBATA)
09:39 AM Revision 9d3a4ab0 (git): [ruby/date] Update docs
https://github.com/ruby/date/commit/8c02586a98 zverok (Victor Shepelev)
09:39 AM Revision 913807bd (git): [ruby/date] Simplify #inspect
https://github.com/ruby/date/commit/af01edd7d8 zverok (Victor Shepelev)
09:39 AM Revision 2e37c196 (git): [ruby/date] Remove taint support
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous versions.
https://github.com/ruby/date/commit/519470dc3b
jeremyevans (Jeremy Evans)
09:39 AM Revision fc0e8d00 (git): [ruby/date] Support -Float::INFINITY...date ranges
Fixes Ruby Bug 12961
https://github.com/ruby/date/commit/7f533c2552
jeremyevans (Jeremy Evans)
09:39 AM Revision 4e40ca30 (git): [ruby/date] Check for numeric arguments in constructors
Previously, the type of these arguments were not checked, leading to
NoMethodErrors in some cases, and TypeErrors in other cases, but not
showing what field was having the problems. This change makes it so
the field with the problem is ...
jeremyevans (Jeremy Evans)
09:39 AM Revision 9eb798a3 (git): [ruby/date] Make julian dates roundtrip through to_time.to_date
Previously, julian dates would not round trip through to_time.to_date,
because Time is always considered gregorian. This converts the Date
instance from julian to gregorian before converting to Time, ensuring
that an equal date object w...
jeremyevans (Jeremy Evans)
09:04 AM Misc #16258 (Closed): [PATCH] Combine call info and cache to speed up method invocation
Applied in changeset commit:git|89e7997622038f82115f34dbb4ea382e02bed163.
----------
Combine call info and cache to speed up method invocation
To perform a regular method call, the VM needs two structs,
`rb_call_info` and `rb_call_cach...
alanwu (Alan Wu)
09:03 AM Revision f1de4383 (git): Use CPDEBUG for debug code
alanwu (Alan Wu)
09:03 AM Revision 89e79976 (git): Combine call info and cache to speed up method invocation
To perform a regular method call, the VM needs two structs,
`rb_call_info` and `rb_call_cache`. At the moment, we allocate these two
structures in separate buffers. In the worst case, the CPU needs to read
4 cache lines to complete a met...
alanwu (Alan Wu)
08:17 AM Bug #12555 (Rejected): Cannot resume a fiber that was earlier transferred from, then transferred back to, and then yielded
see https://bugs.ruby-lang.org/issues/9664#note-6 ko1 (Koichi Sasada)
08:17 AM Bug #9664 (Rejected): cannot resume transferred Fiber even if it should resume
The reported behavior is intentional.
Fibers are separated to two categories:
(1) Semi-coroutine: transition by resume/yiled. There is a "parent/child" relationship like function call (caller/callee).
(2) Coroutine: transition by ...
ko1 (Koichi Sasada)
07:55 AM Bug #16278 (Open): Potential memory leak when an hash is used as a key for another hash
mame (Yusuke Endoh) wrote:
> This code uses constant memory. If it caused memory leak, the memory usage would continue to increase.
Thank for your answer!
If an application exercises this pattern very frequently during lifetime...
cristiangreco (Cristian Greco)
07:46 AM Revision 38e931fa (git): show "transferred" attribute on Fiber#to_s
If a fiber is invoked with transfer method (such as "f.transfer"),
then the invoked fiber ("f") is labeled as "transferred" and this
fiber can not be invoked with Fiber#resume. This patch adds
transferred attribute for "Fiber#to_s" (and ...
ko1 (Koichi Sasada)
07:46 AM Revision 4c3e3b80 (git): Revert "Fix Fiber#transfer"
This reverts commit fa8ac91e957a076f6df1adaecad7896817138009.
Previous behavior is intentional.
ko1 (Koichi Sasada)
07:17 AM Revision 65e82679 (git): Revert "Fixed the require path for e2mmap version file."
This reverts commit ff953a003e03f5f070112ececefab4c07ff4cb0e. hsbt (Hiroshi SHIBATA)
07:12 AM Revision ff953a00 (git): Fixed the require path for e2mmap version file.
hsbt (Hiroshi SHIBATA)
07:11 AM Revision 2791989a (git): Fixed sync path of e2mmap structure for gemspec.
hsbt (Hiroshi SHIBATA)
06:29 AM Feature #16276: For consideration: "private do...end" / "protected do...end"
FWIW, my personal style has evolved to using `private` inline:
```
class Foo
def public
end
private def some_private_instance_method
puts "I'm private"
end
private def also_some_private_instance_method
pu...
marcandre (Marc-Andre Lafortune)
02:19 AM Feature #16276: For consideration: "private do...end" / "protected do...end"
- C++: There are `private`, but no `private {}`
- Java: There are `private`, but no `private {}`
- Scala: There are `private`, but no `private {}`
- Kotlin: There are `private`, but no `private {}`
- Rust: Everything are private by d...
shyouhei (Shyouhei Urabe)
01:58 AM Feature #16276: For consideration: "private do...end" / "protected do...end"
shevegen (Robert A. Heiler) wrote:
> Actually I should clarify some of my statements a bit more; I'll do it in a terse add-on.
> ...
This simply is sloppy coding.
> I believe in these cases, the suggestion here may possibly be of le...
duerst (Martin Dürst)
02:37 AM Bug #16251: Evaluation in binding differs from ruby execution
This is a simpler example of the behavior:
```
$ ruby -e 'p x; x = 6'
Traceback (most recent call last):
-e:1:in `<main>': undefined local variable or method `x' for main:Object (NameError)
$ ruby -e 'p eval("x"); x = 6'
nil
$ r...
kernigh (George Koehler)
01:49 AM Bug #16277: UNIXServer#listen fails with Errno::EADDRINUSE error under Windows 10 / WSL Ubuntu 18.04
This is very nuanced. I'm not sure who is in charge of the exception.
`UNIXServer.new`'s return value socket is already listened inside of the method. Calling `listen` again on a socket that is already listening, might or might not ...
shyouhei (Shyouhei Urabe)

10/23/2019

11:43 PM Bug #16278 (Rejected): Potential memory leak when an hash is used as a key for another hash
Ruby uses so-called conservative GC, which is inexact. It is not guaranteed that an object is collected when it becomes unreachable.
You can confirm that it does not cause leak by the following code:
```ruby
def create
h = {{:...
mame (Yusuke Endoh)
11:25 PM Bug #16278 (Rejected): Potential memory leak when an hash is used as a key for another hash
Hi,
I've been hitting what seems to be a memory leak.
When an hash is used as key for another hash, the former object will be retained even after multiple GC runs.
The following code snippet demonstrates how the hash `{:a => 1}`...
cristiangreco (Cristian Greco)
11:30 PM Revision 281f7541 (git): include/ruby/backward/cxxanyargs.hpp: call `va_end` before return
Coverity Scan complains it. mame (Yusuke Endoh)
11:19 PM Feature #16275: Revert `.:` syntax
+1 for the removal of `.:`.
> Originally it was to extract the exact method even if obj.method was overridden.
I think that it was just one of the motivations of that. Anyway, people will mainly (ab)use it like `.map(&JSON.:parse)...
mame (Yusuke Endoh)
06:29 PM Feature #16275: Revert `.:` syntax
I'm also in favor of removing `.:` until a better "whole picture" is formed. Besides, that syntax encourages the idea that symbols are closely related to functional objects. And it looks like cuneiform.
For example, if we consider tha...
Dan0042 (Daniel DeLorme)
06:04 PM Feature #16275: Revert `.:` syntax
I am in favor of removing `.:`. It was introduced before numbered parameters, but I think using numbered parameters is better than using `.:` for solving the same problems `.:` is designed to solve:
```ruby
%w'file1 file2'.map(&File...
jeremyevans0 (Jeremy Evans)
05:37 PM Feature #16275: Revert `.:` syntax
Personally what I dislike about .: is mostly that I have to look carefully at the code
and think.
> It is not just for “the functional programming style”.
> ...
I think that the idea behind .: is ok but syntax-wise I am not sure if ...
shevegen (Robert A. Heiler)
04:51 PM Feature #16275: Revert `.:` syntax
Forgot the URL to revert: https://github.com/nobu/ruby/pull/new/feature/16275-revert-methref nobu (Nobuyoshi Nakada)
04:50 PM Feature #16275: Revert `.:` syntax
It is not just for “the functional programming style”.
Originally it was to extract the exact method even if `obj.method` was overridden.
nobu (Nobuyoshi Nakada)
03:26 PM Feature #16275 (Closed): Revert `.:` syntax
`obj.:method` is introduced at r66667 by #12125 and #13581.
It encourages the functional programming style in Ruby.
But this shorthand syntax is just for methods of `self` without arguments.
It causes another feature requests like #...
naruse (Yui NARUSE)
11:04 PM Revision f26f0f41 (git): hash.c: Do not use Unicode double-quotes
It made rdoc fail.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1804/ruby-master/log/20191023T183005Z.fail.html.gz
```
RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.
The internal error was:
...
mame (Yusuke Endoh)
09:44 PM Feature #16276: For consideration: "private do...end" / "protected do...end"
Actually I should clarify some of my statements a bit more; I'll do it in a terse add-on.
- I believe that many ruby users may actually NOT indent when using private/public.
They may write code like this:
class Foo
...
shevegen (Robert A. Heiler)
09:17 PM Feature #16276: For consideration: "private do...end" / "protected do...end"
In general I agree with the proposal, or at the least with the basic gist of it, e. g.:
private {
do_stuff
}
public {
do_stuff
}
I do not know how old private/public distinction is in ruby but I t...
shevegen (Robert A. Heiler)
07:49 PM Feature #16276 (Open): For consideration: "private do...end" / "protected do...end"
Private or protected declarations in Ruby classes are problematic. The single, standalone `public`, `private` or `protected` statements cause all following methods - *except* "private" class methods, notably - to have that protection lev... adh1003 (Andrew Hodgkinson)
08:20 PM Bug #16277 (Closed): UNIXServer#listen fails with Errno::EADDRINUSE error under Windows 10 / WSL Ubuntu 18.04
When running the following script under Windows 10 / WSL Ubuntu 18.04, an Errno::EADDRINUSE error is thrown. Expected result is that the script would run and simply exit.
``` ruby
#!/usr/bin/env ruby
# This script establishes a UN...
bradland (Brad Landers)
07:46 PM Feature #16274: Transform hash keys by a hash
Personally I have had a need to transform keys (and values) in a hash quite a bit. We
also have strange thingies such as HashWithIndifferentAccess so that may be indicative
of people wondering about strings/symbols as keys for a hash i...
shevegen (Robert A. Heiler)
09:37 AM Feature #16274: Transform hash keys by a hash
`String#gsub` also can take a block or a hash. Using a hash for `String#gsub` isn't possible in Perl or Python, but can be extremely handy. Maybe the behavior when there's both a block and a hash could be the same as for `String#gsub`? duerst (Martin Dürst)
09:20 AM Feature #16274: Transform hash keys by a hash
shyouhei (Shyouhei Urabe) wrote:
> Understand the motivation (maybe that of #slice can be separated into another request).
> ...
Actually, I just came up with an additional idea regarding that exact point. Updated the issue.
sawa (Tsuyoshi Sawada)
09:16 AM Feature #16274: Transform hash keys by a hash
Understand the motivation (maybe that of #slice can be separated into another request).
One quick question: what should happen if _both_ a block and an argument are passed at once?
shyouhei (Shyouhei Urabe)
09:09 AM Feature #16274 (Closed): Transform hash keys by a hash
We have `Hash#transform_keys` and its bang version to change the keys of a hash, but that requires passing a block, which assumes that the mapping from the old keys to the new keys follows some rule. But in reality, we frequently want to... sawa (Tsuyoshi Sawada)
07:37 PM Feature #4539: Array#zip_with
Martin added this to the next developer meeting. I have not yet commented on
this issue so I may briefly do so.
matz asked back then between zip_with, or zip with symbol. I think zip_with may
be better than zip with symbol from a us...
shevegen (Robert A. Heiler)
06:12 PM Revision df91896f (git): More rdoc for ENV#[] and ENV#fetch
burdettelamar (Burdette Lamar)
05:59 PM Feature #14183: "Real" keyword argument
The original intent seems to have been to separate named args from hashes and make them a distinct language feature with more consistent, easier to understand syntax and semantics. However, how does the following fit with that goal:
`...
bughit (bug hit)
05:58 PM Feature #15198: Array#intersect?
I tried setting that up here: https://github.com/ruby/ruby/pull/2598
I ignored infinite ranges for now
c4am95 (Travis Hunter)
05:49 PM Revision 6df6611c (git): Treat only left alt key as meta-key on Windows
On German keyboard, right alt key acts as like shift key.
Ex. right-alt-8 is just "[". This input doesn't have meta-key statement.
aycabta (aycabta .)
04:42 PM Revision f1d4216b (git): Added refresh-gems
Refreshes bundled gems to the latest version, and extracts them. nobu (Nobuyoshi Nakada)
04:18 PM Revision 7391db4a (git): Updated minitest to 5.12.2
nobu (Nobuyoshi Nakada)
04:05 PM Misc #16188: What are the performance implications of the new keyword arguments in 2.7 and 3.0?
jeremyevans0 (Jeremy Evans) wrote:
> You shouldn't even take your word, as you haven't implemented it yet. I'll post a benchmark, and I ask you to do the same.
Fair enough, I'll try to benchmark this soon in TruffleRuby then.
If I ...
Eregon (Benoit Daloze)
11:35 AM Misc #16188: What are the performance implications of the new keyword arguments in 2.7 and 3.0?
@NuriYuri Thank you for your comment, but this ticket is not a good place to discuss it. Please add it to #14183 or create a new ticket. mame (Yusuke Endoh)
02:50 AM Misc #16188: What are the performance implications of the new keyword arguments in 2.7 and 3.0?
Eregon (Benoit Daloze) wrote:
> jeremyevans0 (Jeremy Evans) wrote:
> ...
As I stated last time, it's not that inefficient in CRuby. I'll try to benchmark to compare it tomorrow, but I expect it would make only a small difference in a ...
jeremyevans0 (Jeremy Evans)
03:53 PM Feature #16264: Real "callable instance method" object.
> is `.:hoge` a `:hoge.to_proc` syntax sugar?
No, and that's a core of the proposal. `:hoge.to_proc` produces regular `Proc` (which is different internally, but conceals this fact). `.:hoge` is meant to produce new core object.
> ....
zverok (Victor Shepelev)
02:02 PM Feature #16264: Real "callable instance method" object.
Is `.:hoge` a `:hoge.to_proc` syntax sugar?
And, is `map(&self.:hoge)` and `map(&.:hoge)` different in meaning?
In Ruby, `self.hoge` and` hoge` without `self` often have the same meaning
But, it looks very strange that `map(&self.:hog...
osyo (manga osyo)
08:09 AM Feature #16264: Real "callable instance method" object.
Updated description significantly to clarify intentions. zverok (Victor Shepelev)
03:12 PM Revision 7bc787fa (git): Support forced enter insertion by Ctrl+Enter on Windows
aycabta (aycabta .)
03:00 PM Revision 659f7c0a (git): * 2019-10-24 [ci skip]
git[bot]
02:59 PM Revision 039faecd (git): Suppress duplicated "require 'reline'"
aycabta (aycabta .)
11:20 AM Bug #16271 (Closed): Cannot build taglib-ruby gem on ruby-2.7.0-preview2
Applied in changeset commit:git|1d91feaf13e0ffe04b2dabc6e77e4101b6d0bb07.
----------
Limit strict RUBY_METHOD_FUNC in C++
Limit strict function signature check with RUBY_METHOD_FUNC in C++
to bundled libraries only. [Bug #16271]
nobu (Nobuyoshi Nakada)
04:21 AM Bug #16271: Cannot build taglib-ruby gem on ruby-2.7.0-preview2
shyouhei (Shyouhei Urabe) wrote:
> So yes, the API change _revealed_ an arity mismatch here. `SWIG_ruby_failed` is getting more arguments than it expects, which is dangerous depending on machine ABI. It has to be fixed. I believe it'...
jeremyevans0 (Jeremy Evans)
03:25 AM Bug #16271: Cannot build taglib-ruby gem on ruby-2.7.0-preview2
jeremyevans0 (Jeremy Evans) wrote:
> Attempting to build the taglib-ruby gem on ruby-2.7.0-preview2 fails with error messages such as:
> ...
Well, it seems the function called `SWIG_ruby_failed` is prototyped as `VALUE SWIG_ruby_failed...
shyouhei (Shyouhei Urabe)
11:18 AM Revision 1d91feaf (git): Limit strict RUBY_METHOD_FUNC in C++
Limit strict function signature check with RUBY_METHOD_FUNC in C++
to bundled libraries only. [Bug #16271]
nobu (Nobuyoshi Nakada)
10:57 AM Revision 8bb716ab (git): Fix indent...
aycabta (aycabta .)
08:05 AM Bug #16268 (Closed): Consistent segfault with ObjectSpace.count_imemo_objects
nagachika (Tomoyuki Chikanaga)
07:50 AM Feature #16273: Proposal: Shorthand operator for "#instance_method"
Funnily enough (and not completely intentionally) the problem is "solved" with #16264:
```ruby
.:zip.call(*arrays)
# or even... for those who likes to cry "code golf!"
.:zip.(*arrays)
```
Currently, you also can
```ruby
:zip.to...
zverok (Victor Shepelev)
07:12 AM Feature #16273: Proposal: Shorthand operator for "#instance_method"
I don't think the first examples are messy.
On the contrary, the second examples using `bind_call` are quite messy than the first.
mrkn (Kenta Murata)
06:49 AM Feature #16273: Proposal: Shorthand operator for "#instance_method"
I don't think `Array.instance_method(:zip).bind_call(*arrays)` should be recommended, and worth adding shorthand operator. naruse (Yui NARUSE)
06:45 AM Feature #16273: Proposal: Shorthand operator for "#instance_method"
I don't think using `#` acceptable, and have thought `.::`. nobu (Nobuyoshi Nakada)
12:47 AM Feature #16273 (Open): Proposal: Shorthand operator for "#instance_method"
hi, created issues to discuss shorthand for "#instance_method"
## Overview
Ruby 2.7 adds a `#method` shorthand `.:` operator.
* [Feature #12125: Proposal: Shorthand operator for Object#method - Ruby master - Ruby Issue Tracking ...
osyo (manga osyo)
07:33 AM Feature #16261: Enumerable#each_splat and Enumerator#splat
@duerst
> What you want to do here is in many other languages done with `zip_with`
I used `zip` only as a simplest way to construct an example. In our current codebase we have a fare share of internal methods defined with two pairs...
zverok (Victor Shepelev)
06:11 AM Revision 67f010af (git): name2ctype.h depends on also Emoji data
nobu (Nobuyoshi Nakada)
04:23 AM Revision cbec5336 (git): Add gem names [ci skip]
znz (Kazuhiro NISHIYAMA)
04:18 AM Revision 5d7aef20 (git): Trivial fixes [ci skip]
znz (Kazuhiro NISHIYAMA)
03:00 AM Revision 959ddf44 (git): Fix typos [ci skip]
znz (Kazuhiro NISHIYAMA)
 

Also available in: Atom