Misc #16454
closedDevelopersMeeting20200116Japan
Added by mame (Yusuke Endoh) almost 5 years ago. Updated almost 5 years ago.
Description
The next dev meeting¶
Date: 2020/01/16 13:00-17:00
Place/Sign-up/Agenda/Log: https://docs.google.com/document/d/1NxNMc7tlt-olPRyRQDhAjZWw30Atr6a-rfQxQ9BRXfY
- Dev meeting IS NOT a decision-making place. All decisions should be done at the bug tracker.
- Dev meeting is a place we can ask Matz, nobu, nurse and other developers directly.
- Matz is a very busy person. Take this opportunity to ask him. If you can not attend, other attendees can ask instead of you (if attendees can understand your issue).
- We will write a log about the discussion to a file or to each ticket in English.
- All activities are best-effort (keep in mind that most of us are volunteer developers).
- The date, time and place are scheduled according to when/where we can reserve Matz's time.
- DO NOT discuss then on this ticket, please.
Call for agenda items¶
If you have a ticket that you want matz and committers to discuss, please post it into this ticket in the following format:
* [Ticket ref] Ticket title (your name)
* Comment (A summary of the ticket, why you put this ticket here, what point should be discussed, etc.)
Example:
* [Feature #14609] `Kernel#p` without args shows the receiver (ko1)
* I feel this feature is very useful and some people say :+1: so let discuss this feature.
- Comment deadline: 2020/01/09 (one week before the meeting)
- The format is strict. We'll use this script to automatically create an markdown-style agenda. We may ignore a comment that does not follow the format.
- Your comment is mandatory. We cannot read all discussion of the ticket in a limited time.
Updated by mame (Yusuke Endoh) almost 5 years ago
- Related to Misc #14770: [META] DevelopersMeeting added
Updated by mame (Yusuke Endoh) almost 5 years ago
I'd like to set the comment deadline for the agenda. Please add a ticket number by one week ago about the meeting date. (I'll go through the tickets before the meeting.)
Updated by mame (Yusuke Endoh) almost 5 years ago
Carry-over:
-
[Bug #8841] Module#included_modules and prepended modules (mame)
- Module#include? and Module#included_modules regard prepended modules as included (not well documented); Module#included is not called when the module is prepended. Is this right?
- IMO, changing the behavior is no longer acceptable (without any actual trouble). How about just changing the document?
-
[Feature #8026] Need Module#prepended_modules (mame)
- It is accepted six years ago, but not implemented yet. I've never heard any actual trouble, but should we still add the feature?
-
[Bug #9815] attr_reader doesn't warn on a uninitialized instance variable (mame)
- A reader method defined by attr_reader :foo is not warned as "instance variable @foo not initialized". Is it intentional?
-
[Bug #10388] Operator precedence problem in multiple assignment (massign) (mame)
- "
a, b = c = 1, 2
is currently taken asa, b = (c = 1), 2
; I'd expect it to be taken asa, b = (c = 1, 2)
." Jeremy gave a try to implement but seemed difficult due to the limitation of LALR(1) parser. Let's give up.
- "
-
[Bug #10475] Array#flatten should not accept a nil argument (mame)
- Should we add a document that Array#flatten accepts nil? Negative argument too?
-
[Bug #10929] NilClass#to_proc and & don't mix? (mame)
- I think it is not worth adding.
-
[Bug #11014] String#partition doesn't return correct result on zero-width match (mame)
- I'd like to confirm if the current behavior is inteneded.
-
[Feature #16432] Using _1 inside binding.irb will cause unintended behavior (osyo)
- Calling binding.irb in a block that uses _1 and using _1 in irb will cause unintended behavior.
- Should it be a runtime error?
Updated by duerst (Martin Dürst) almost 5 years ago
mame (Yusuke Endoh) wrote:
Please add a ticket number by one week ago about the meeting date.
Do you mean "by one week before the meeting date"? In English, "ago" can only be used for the past, not for the future.
Updated by zverok (Victor Shepelev) almost 5 years ago
(I honestly promised to stop doing this...)
- [Feature #16441] Enumerable#take_while_after (zverok)
- Just like
take_while
, but also returns the matched element; practical examples are shown
- Just like
- [Feature #16435] Array#to_proc (zverok)
- Make
map(&[:foo])
it just a shortcut formap { |hash| hash[:foo] }
. Ambitious, but justified. Two alternative approaches proposed (dig
and just[]
)
- Make
Updated by mame (Yusuke Endoh) almost 5 years ago
duerst (Martin Dürst) wrote:
mame (Yusuke Endoh) wrote:
Please add a ticket number by one week ago about the meeting date.
Do you mean "by one week before the meeting date"? In English, "ago" can only be used for the past, not for the future.
Yes, I meant 2020/01/09. Thanks :-)
Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago
- [Bug #16383] TracePoint does not report calls to attribute reader methods (jeremyevans0)
- Do we want to support this?
- [Feature #5321] Introducing Numeric#exact? and Numeric#inexact? (jeremyevans0)
- Can we add Numeric#exact? ? This is necessary to fix Bug #5179.
- [Bug #9790] Zlib::GzipReader only decompressed the first of concatenated files (jeremyevans0)
- Can we implement Zlib::GzipReader.each_file using the patch?
Updated by mame (Yusuke Endoh) almost 5 years ago
- [Bug #16486]
Hash.ruby2_keywords?(hash)
andHash.ruby2_keywords!(hash)
(mame)- It turned out that we sometimes need to deal with ruby2_keywords flag explicitly. I'd like to add the feature as class methods. (@naruse (Yui NARUSE) says that backport to 2.7.1 is okay)
Updated by Eregon (Benoit Daloze) almost 5 years ago
- [Feature #16463] Fixing *args-delegation in Ruby 2.7: ruby2_keywords semantics by default in 2.7.1 (eregon)
- This would be a way to make transition to Ruby 2.7 a lot simpler. Advantages are: easier migration (no explicit
ruby2_keywords
, no confusing warnings, useful delegation warnings when migrating), better debugging, more compatible. - Right now it's confusing warnings, forcing most gems to use
ruby2_keywords
which is just a workaround and the code will need to change again. - What do you think?
- I think if we don't do it, it will delay Ruby 2.7 adoption very significantly. I'd also think Rubyists will get a very negative opinion about the keyword arguments change due to
ruby2_keywords
and delegation issues, when there is no need and we can make it easier. - The only drawback (sometimes treating kwargs as kwargs instead of positional, very rare) can easily be worked around by using
foo(1, {a: 1})
instead offoo(1, a: 1)
.
- This would be a way to make transition to Ruby 2.7 a lot simpler. Advantages are: easier migration (no explicit
Updated by alanwu (Alan Wu) almost 5 years ago
- [Misc #16487] Potential for SIMD usage in ruby-core (alanwu)
- It would be great if we can come up with a stance on this and document it. It doesn't have to be permanent; we can revise it later, but I think the policy can be very helpful to new contributors.
- Related, I think we can put something in the Github pull request template to help guide new contributors. I think Sorbet's repo uses this to good effects.
- [Feature #16461] Proc#using (alanwu)
- This looks like a serious change worth discussing.
Updated by mame (Yusuke Endoh) almost 5 years ago
alanwu (Alan Wu) wrote:
- [Misc #16487] Potential for SIMD usage in ruby-core (alanwu)
- It would be great if we can come up with a stance on this and document it. It doesn't have to be permanent; we can revise it later, but I think the policy can be very helpful to new contributors.
- Related, I think we can put something in the Github pull request template to help guide new contributors. I think Sorbet's repo uses this to good effects.
I'm unsure what topic should be discussed. Do you want us to discuss not the issue itself but a policy for feature request? I think it would be good to create another ticket for that; and a draft would be very helpful.
Updated by zverok (Victor Shepelev) almost 5 years ago
- [Feature #16494] Allow hash unpacking in non-lambda Proc
- allow
map { |foo:, bar:| ... }
just like array unpacking tomap { |foo, bar| ... }
is allowed. The ticket contains pragmatic examples.
- allow
Updated by Eregon (Benoit Daloze) almost 5 years ago
@mame (Yusuke Endoh) Here is an updated version of the script which also works if there is no (author)
at the end of a comment:
https://gist.github.com/eregon/b4aa78dca42e4204e3a276c922205ade
This seems a common mistake, both zverok (in comment 15) and I made it.
Could you adopt it?
Updated by mame (Yusuke Endoh) almost 5 years ago
Okay updated.
Updated by alanwu (Alan Wu) almost 5 years ago
mame (Yusuke Endoh) wrote:
alanwu (Alan Wu) wrote:
- [Misc #16487] Potential for SIMD usage in ruby-core (alanwu)
- It would be great if we can come up with a stance on this and document it. It doesn't have to be permanent; we can revise it later, but I think the policy can be very helpful to new contributors.
- Related, I think we can put something in the Github pull request template to help guide new contributors. I think Sorbet's repo uses this to good effects.
I'm unsure what topic should be discussed. Do you want us to discuss not the issue itself but a policy for feature request? I think it would be good to create another ticket for that; and a draft would be very helpful.
I would like to see discussion about [Misc #16487] itself. My notes are a bit of an aside, but I think the outcome of #16487 will set a precedent at least. I can make tickets about additional documentations later if appropriate.
Updated by mame (Yusuke Endoh) almost 5 years ago
alanwu (Alan Wu) wrote:
I would like to see discussion about [Misc #16487] itself. My notes are a bit of an aside, but I think the outcome of #16487 will set a precedent at least. I can make tickets about additional documentations later if appropriate.
I see. I'd appreciate if you write your (non-meta) opinion about that ticket.
Note that we have only about a few minutes to discuss each ticket. (The meeting is about 200 minutes long, and we have about 20 tickets on the agenda.) We can discuss only one topic for each ticket, so I'd like you to make it clear the point that you want us to discuss. And usually, I look over all tickets in advance of the meeting and explain them to the attendees; your short summary is very useful for me to understand each ticket.
Thank you for your cooperation.
Updated by mame (Yusuke Endoh) almost 5 years ago
- [Feature #16495] Inconsistant Quotes in Error Messages (mame)
- This is the third time that we receive a ticket about the backtick and quote in error messages: #12321 for inconvenience in Slack, #13589 for weird appearance and inconvenience in syntax highlighting, this ticket for weird appearance.
- I know that it is an old-school custom and think that it is hard to change, but I'd like just to hear matz's feelings.
Updated by Eregon (Benoit Daloze) almost 5 years ago
- [Feature #8709] Dir.glob should return sorted file list (eregon)
- It causes non-determinism on e.g., Linux, which causes complex bugs (which are not worth investigating)
- Many other languages seem to sort by default (C's glob(3), bash, perl, gmake, ...)
- TruffleRuby already sorts Dir.glob to avoid this issue
- Quite a few people supporting this idea: https://twitter.com/eregontp/status/1217036685059461120
Updated by hsbt (Hiroshi SHIBATA) almost 5 years ago
- [Feature #16484] Remove xmlrpc and net-telnet from bundled gems
- Does anyone have an objection?
Updated by ko1 (Koichi Sasada) almost 5 years ago
Comment deadline: 2020/01/09 (one week before the meeting)
So the following issues are optional (candidates for carry over):
- [Feature #15973] Let Kernel#lambda always return a lambda (ko1)
- How about to prohibit passing Proc for
lambda
to solve this issue completely? - Or how about to obsolete
lambda
because we already have->
?
- How about to prohibit passing Proc for
- [Feature #16499] define_method(non_lambda) should not the semantics of the given Proc (ko1)
- I have no strong opinion, but we need to check as related issue of #15973.
Updated by mame (Yusuke Endoh) almost 5 years ago
I'm sorry but let me insert my two proposals since they should be determined before 2.7.1.
-
[Feature #16501] Support marshaling of ruby2_keywords flag
- Marshal.dump and load do not support ruby2_keywords flag, so serializing and desalinizing a flagged Hash drops the flag.
- This is not critical because AFAIK there is no real application that requires this feature. It would be helpful to make drb support the separation, but if #16486 is accepted, drb can work around the issue.
- But if we introduce it, it should be into 2.7.1.
-
[Feature #16466]
*args -> *args
delegation should be warned when the last hash has aruby2_keywords
flag- In 2.7.0, no warnings are displayed at second and later stages of multi-stage delegation. It looks a bug.
- I think it is not critical, but in principle, it should be warned. I'd like to determine it before 2.7.1.
Updated by Dan0042 (Daniel DeLorme) almost 5 years ago
Updated by sawa (Tsuyoshi Sawada) almost 5 years ago
The linked log https://docs.google.com/document/d/1NxNMc7tlt-olPRyRQDhAjZWw30Atr6a-rfQxQ9BRXfY is not updated. Can I ask for it to be updated?
Updated by mame (Yusuke Endoh) almost 5 years ago
- Status changed from Open to Closed
Published. Closing.