[#71815] [Ruby trunk - Bug #11768] [Open] Add a polymorphic inline cache — tenderlove@...
Issue #11768 has been reported by Aaron Patterson.
[email protected] wrote:
On Thu, Dec 03, 2015 at 10:51:08PM +0000, Eric Wong wrote:
Aaron Patterson <[email protected]> wrote:
[#71818] [Ruby trunk - Feature #11769] [Open] optimize case / when for `nil` — tenderlove@...
Issue #11769 has been reported by Aaron Patterson.
[email protected] wrote:
[#71931] [Ruby trunk - Feature #11786] [Open] [PATCH] micro-optimize case dispatch even harder — normalperson@...
Issue #11786 has been reported by Eric Wong.
Oops, I forgot to free the table when iseq is destroyed :x
On 2015/12/08 12:43, Eric Wong wrote:
SASADA Koichi <[email protected]> wrote:
On 2015/12/08 13:53, Eric Wong wrote:
[#72028] [Ruby trunk - Feature #11405] [Assigned] [PATCH] hash.c: minor speedups to int/fixnum keys — mame@...
Issue #11405 has been updated by Yusuke Endoh.
[email protected] wrote:
[#72045] Ruby 2.3.0-preview2 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 2.3.0-preview2.
Please add your optimizations before RC1.
SASADA Koichi <[email protected]> wrote:
On 2015/12/11 18:06, Eric Wong wrote:
SASADA Koichi <[email protected]> wrote:
[#72069] [Ruby trunk - Feature #11405] [PATCH] hash.c: minor speedups to int/fixnum keys — mame@...
Issue #11405 has been updated by Yusuke Endoh.
[#72115] Re: [ruby-cvs:60264] duerst:r53112 (trunk): * enc/ebcdic.h: new dummy encoding EBCDIC-US — "U.NAKAMURA" <usa@...>
Hi,
On 2015/12/14 22:34, U.NAKAMURA wrote:
Hi,
[ruby-core:72247] [Ruby trunk - Feature #11737] Pass in expression to then block in `case expression`
Joseph Jones liked your message with Boxer. On December 2, 2015 at 21:07:= 58 MST, s.wanabe=40gmail.com wrote:Issue =2311737 has been updated by =5F= wanabe.Nobuyoshi Nakada wrote:> It reminded me a rejected proposal:> > =7E= =7E=7Eruby> case expr> when matcher =3D> result> ...> end> =7E=7E=7EIs th= e proposal =5Bruby-dev:17615=5D=3FOr other=3F----------------------------= ------------=46eature =2311737: Pass in expression to then block in =60ca= se expression=60https://bugs.ruby-lang.org/issues/11737=23change-55214* A= uthor: Daniel P. Clark* Status: Open* Priority: Normal* Assignee: -------= ---------------------------------Ruby's =60case =60 scenario allows the e= xpression to be tested in the =60when=60 test with =60:=3D=3D=3D=60, but = in the then block the expression is not accessible. Only if the expressio= n has been assigned to a variable beforehand can it be checked.=7E=7E=7Er= ubycase 4when ->i=7B puts :when; true=7D ->i=7B puts i=7Delse :fooend=23 = when=23 =3D> =23 case 4when ->i=7B puts :when; true=7D puts =5Felse :fooe= nd=23 when=23 =23=23 =3D> nil case 4when 4then =5Fend=23 =3D> nilcase 4wh= en 4then ->i=7Bputs i=7Dend=23 =3D> =23 =7E=7E=7EIf some one wanted to gi= ve an expression after case that wasn't assigned to a variable then there= is no access to it in the then block.I suggest assigning the expression = to the =60=5F=60 variable during a case/when/then scenario. Here's a rath= er contrived example use case.=7E=7E=7Erubycase Enumerator.new do =7Cy=7C= y when ->e=7B 2.times e.next; true=7Dthen =5F.peekend =3D=3D 3=7E=7E=7E-= - https://bugs.ruby-lang.org/