[#47253] unexpected dependencies such as ext/-test-/num2int/depend describes num2int.o depends on numeric.c — Tanaka Akira <akr@...>
気がついたんですが、ext/-test-/num2int/depend など、
3 messages
2013/04/12
[#47269] [ruby-trunk - Bug #8292][Open] README.EXT.ja の Data_Wrap_Struct の所の文章がコード片と一致しない (patch) — "metanest (Makoto Kishimoto)" <redmine@...>
4 messages
2013/04/19
[#47310] RubySource.com からのインタビュー — Yusuke Endoh <mame@...>
遠藤です。ご無沙汰してます。
6 messages
2013/04/30
[#47326] Re: RubySource.com からのインタビュー
— Yusuke Endoh <mame@...>
2013/05/07
遠藤です。
[ruby-dev:47226] [ruby-trunk - Feature #7877] E::Lazy#with_index needed
From:
duerst (Martin Dürst) <duerst@...>
Date:
2013-04-05 04:21:43 UTC
List:
ruby-dev #47226
Issue #7877 has been updated by duerst (Martin D端rst).
zzak (Zachary Scott) wrote:
> Propose to move this to next major?
Do you mean because of "potential incompatibility" (https://bugs.ruby-lang.org/issues/7877#note-4)? What exactly would this incompatibility be? To me, it seems that lazy.with_index would just work, so we should just fix it. Next major seems way too long to wait.
----------------------------------------
Feature #7877: E::Lazy#with_index needed
https://bugs.ruby-lang.org/issues/7877#change-38252
Author: shyouhei (Shyouhei Urabe)
Status: Assigned
Priority: Normal
Assignee: yhara (Yutaka HARA)
Category: core
Target version: next minor
=begin
So I wanted some real benefit of being lazy. I wrote a Leibniz formula:
def leibniz(n)
(0..Float::INFINITY).lazy.with_index {|i, j| (-1 ** j) / (2*i+1).to_f }.take(n).reduce(:+)
end
But it doesn't work (well, it does, indeed. It just doesn't stop working). I got frustrated.
How about it? Don't you feel it nifty?
Of course I can wait for the release next to 2.0.0.
=end
--
http://bugs.ruby-lang.org/