[#61822] Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...>
I would like to request developers meeting around April 17 or 18 in this mo=
14 messages
2014/04/03
[#61825] Re: Plan Developers Meeting Japan April 2014
— Urabe Shyouhei <shyouhei@...>
2014/04/03
It's good if we have a meeting then.
[#61826] Re: Plan Developers Meeting Japan April 2014
— Zachary Scott <e@...>
2014/04/03
Regarding openssl issues, I=E2=80=99ve discussed possible meeting time with=
[#61833] Re: Plan Developers Meeting Japan April 2014
— Martin Bo煬et <martin.bosslet@...>
2014/04/03
Hi,
[#61847] Re: Plan Developers Meeting Japan April 2014
— Eric Wong <normalperson@...>
2014/04/03
Martin Boテ殕et <martin.bosslet@gmail.com> wrote:
[#61849] Re: Plan Developers Meeting Japan April 2014
— Zachary Scott <e@...>
2014/04/04
I will post summary of meeting on Google docs after the meeting.
[#61852] Re: Plan Developers Meeting Japan April 2014
— Eric Wong <normalperson@...>
2014/04/04
Zachary Scott <e@zzak.io> wrote:
[#61860] Re: Plan Developers Meeting Japan April 2014
— Zachary Scott <e@...>
2014/04/04
I=E2=80=99m ok with redmine, thanks for bringing up your concern!
[#62076] Candidacy to 2.1 branch maintainer. — Tomoyuki Chikanaga <nagachika00@...>
Hello,
7 messages
2014/04/17
[#62078] Re: Candidacy to 2.1 branch maintainer.
— SHIBATA Hiroshi <shibata.hiroshi@...>
2014/04/17
> And does anyone have counter proposal for 2.1 maintenance?
[ruby-core:61947] [ruby-trunk - Bug #9723] [Rejected] #size does not trigger evaluation of lazy enumerator.
From:
ruby-core@...
Date:
2014-04-10 14:41:21 UTC
List:
ruby-core #61947
Issue #9723 has been updated by Marc-Andre Lafortune.
Status changed from Open to Rejected
Assignee set to Marc-Andre Lafortune
The purpose of `size` is to return the number of elements yielded by an Enumerator without consuming it, i.e. without iterating it.
If `enum.size` returns an integer, than `enum.size == enum.to_a.size` must be true.
In your first example, `size` would have to return 2, which is not possible to do lazily. Use `count` to do an actual count.
----------------------------------------
Bug #9723: #size does not trigger evaluation of lazy enumerator.
https://bugs.ruby-lang.org/issues/9723#change-46145
* Author: Zeke Fast
* Status: Rejected
* Priority: Normal
* Assignee: Marc-Andre Lafortune
* Category: core
* Target version:
* ruby -v: 2.1.1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Here is the code which shows weird behariour
### Steps to reproduce
`$ irb
2.1.1 :001 > [1, 2, 3].lazy.select{ |e| e%2 == 1}.size
=> nil
2.1.1 :002 > [1, 2, 3].lazy.select{ |e| e%2 == 1}.to_a
=> [1, 3]
2.1.1 :003 > [1, 2, 3].lazy.size
=> 3`
### Expected
`[1, 2, 3].lazy.select{ |e| e%2 == 1}.size`
to return number of elements like `[1, 2, 3].lazy.size` did.
### Actual
`[1, 2, 3].lazy.select{ |e| e%2 == 1}.size` returns **nil**.
### Environment
Ruby: ruby 2.0.0p457 (2014-03-03) [x86_64-linux-gnu]
RVM: rvm 1.25.22 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
OS: Linux xxxxxx 3.13-1-amd64 #1 SMP Debian 3.13.7-1 (2014-03-25) x86_64 GNU/Linux
--
https://bugs.ruby-lang.org/