Activity
From 08/25/2013 to 08/31/2013
08/31/2013
-
11:09 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- timeout の変更自体について特に意見はないのですが。
`rescue Exception` は timeout に限定した問題ではなく、
exit ができないとか、Ctrl-C が効かないとか、トラブルになりがちです。
大した理由もなくそういうことをしているライブラリには
ちゃんと対応してもらうべきだと思います。
また、throw にすれば万事解決というわけではないです。
ensure を使って例外を差し替えることで同じ現象を引き起こせます。
... -
10:45 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- すでに修正されているようなので蛇足気味ですが、
githubなどで公開されているソースコードを調べますと、
`rescue Exception` を使っているライブラリコードは広く散見され、
書籍などで紹介されている workaround はほとんど浸透していないようです。
この問題の厄介なところは、自分自身が書いたコードだけでなく、利用するライブラリの
コード中にも `rescue Exception` をしている箇所があると、大外に掛けた time... -
10:44 PM Bug #8847: opt_regexpmatch2 does not use method caching
- Ah! I was misunderstanding that this is a bug fix.
Sorry for bother you.
-
10:27 PM Bug #8847: opt_regexpmatch2 does not use method caching - nagachika: There's no incorrect behaviour that r42742 fixes - it is merely a performance improvement.
You can use the following benchmark script as a test:
require "benchmark"
puts Benchmark.measure {
1_000_000.ti... -
10:21 PM Bug #8847: opt_regexpmatch2 does not use method caching
- Hello, charlisome.
I think this fix should be backported to ruby_2_0_0.
Could you give me a testcase to cover this fix?
I'd like to confirm the same problem exists in ruby_2_0_0 branch. -
03:07 PM Bug #8847 (Closed): opt_regexpmatch2 does not use method caching - This issue was solved with changeset r42742.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c (NODE_MATCH3): pass CALL_INFO to opt_regexpmatch2
... -
02:56 PM Bug #8847 (Closed): opt_regexpmatch2 does not use method caching - The opt_regexpmatch2 instruction does not use method caching, instead it uses rb_funcall internally.
opt_regexpmatch2 is emitted by the compiler when a literal regexp is on the right hand side of the =~ operator.
This means a full ... -
10:34 PM Bug #8845 (Rejected): Timeout::ExitException が意図せずに rescue される事がある
- 削除はできないので、閉じますね。
(勘違いの勘違いか…)
-
10:30 PM Bug #8845: Timeout::ExitException が意図せずに rescue される事がある
- すみません、重複ですね。
自分で削除する権限が無いので、削除いただけるとありがたいです。 -
01:40 PM Bug #8845 (Open): Timeout::ExitException が意図せずに rescue される事がある
- おおっと、ごめんなさい。勘違いだったようです…
-
01:38 PM Bug #8845 (Rejected): Timeout::ExitException が意図せずに rescue される事がある
- https://bugs.ruby-lang.org/issues/8730 と重複しているように思えます
-
01:33 PM Bug #8845 (Rejected): Timeout::ExitException が意図せずに rescue される事がある
- timeout.rb の実装が内部的に利用している Timeout::ExitException の無名派生クラスが、
意図しないタイミングで rescue され、timeout処理が実行されないケースがある。
以下の例では、Timeout::Error が発生しない。
timeout 1 do
begin
sleep 10
rescue Exception
end
end -
10:21 PM Feature #8809 (Closed): Process.clock_getres
- This issue was solved with changeset r42744.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* process.c (rb_clock_getres): New method.
(timetick2dblnum_re... -
09:26 PM Feature #7292: Enumerable#to_h
- =begin
[omit verbose intro] suffice to say we can figure the most fitting definition for (({Enumerable#to_h})) is simply:
module Enumerable
def to_h
a = []
each_with_index.each { |e,i| a << i << e }
Has... -
01:38 PM Feature #7292 (Feedback): Enumerable#to_h
- What I wanted was coner case behavior of #to_h, e.g. what if elements are not 2 elements arrays.
What kind of checks do you want to do?
The simplest implementation in #6 may work, but I'm not sure whether kind of accidental behavior ... -
07:38 AM Feature #7292 (Open): Enumerable#to_h
- matz (Yukihiro Matsumoto) wrote:
> But I am not sure the following simple implementation works OK, e.g. what if an element is a object, or number, or anything not two-element array.
Agreed.
I believe we should only treat elements ... -
09:22 PM Feature #8842: Integer#[] with range
- > I take it that the use of '&&' operator in the first 2 corner cases is a typo.
Yes, sorry.
> ...
No, you are right.
> 15[-3..Float::INFINITY] #=> 120 (equivalent to 15 << 3)
is correct.
Also, the attached slide has a bu... -
07:24 PM Feature #8842: Integer#[] with range - I take it that the use of '&&' operator in the first 2 corner cases is a typo. But, pardon my ignorance,
in the 4th corner case, why 15[-3..Float::INFINITY] #=> 2 (equivalent to 1 << 3)?
1 << 3 is 8, and even if I assume a typo, 15 << ... -
02:25 PM Feature #8842: Integer#[] with range
- Accepted.
Matz.
-
10:48 AM Feature #8842 (Closed): Integer#[] with range
- =begin
I propose to extend Integer#[] accepting a range.
0b01001101[2, 4] == 0b0011
0bHGFEDCBA[2, 4] == 0bFEDC
== Use case
I believe that everyone has written a code like this:
if (n >> 2) & 0xf == 0x3
..... -
08:57 PM Feature #8748: Integer#popcount (Fixnum#popcount and Bignum#popcount)
- boris_stitnicky (Boris Stitnicky) wrote:
> The issue here seems to be, whether BitArray (like https://github.com/peterc/bitarray ) is desirable in stdlib or core.
+1 for something like BitArray in core (edit: or in stdlib).
-1 for usin... -
07:54 PM Feature #8748: Integer#popcount (Fixnum#popcount and Bignum#popcount) - The issue here seems to be, whether BitArray (like https://github.com/peterc/bitarray ) is desirable in stdlib or core.
-
03:51 PM Feature #8748 (Rejected): Integer#popcount (Fixnum#popcount and Bignum#popcount)
- I don't see the needs to add methods to use integers as bit-arrays.
Matz.
-
07:23 PM Feature #8840: Yielder#state
- On Sat, Aug 31, 2013 at 12:52 AM, marcandre (Marc-Andre Lafortune) <
ruby-core@marc-andre.ca> wrote:
> Defining an Enumerator that require a state is currently troublesome. For
> example, it is not really possible to define an ... -
01:54 PM Feature #8840 (Feedback): Yielder#state
- I understand the motivation, and how it works. It is very simple.
But I hesitate to introduce state easily in this age of functional programming.
Let me think for a while.
And tell me if anyone has better idea to address the issue.... -
07:52 AM Feature #8840 (Rejected): Yielder#state
- Defining an Enumerator that require a state is currently troublesome. For example, it is not really possible to define an equivalent of Lazy#drop in Ruby without making an assumption on the implementation.
To address this, I propose t... -
06:34 PM Revision 8bd7af67 (git): * bignum.c (bit_length): Renamed from bitsize.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:26 PM Feature #8839: Class and module should return the class or module that was opened - +1
-
03:34 AM Feature #8839: Class and module should return the class or module that was opened
- When thinking of potential incompatibilities, the only case I could think of where I'd ever used the result of `class` or `module` was:
~~~ruby
class << foo
self
end
~~~
Ironically, the proposed change would not introduce an ... -
02:57 AM Feature #8839 (Assigned): Class and module should return the class or module that was opened
- With the change for https://bugs.ruby-lang.org/issues/3753, "def" forms now return the symbolic name of the method defined. Because class and module bodies just return the last expression in their bodies, this means they will now usually...
-
06:17 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead) - I would also be interested in the answer to se8's question.
-
05:30 PM Feature #8849 (Rejected): Thread#throw
- Thread#raise と同様に、Threadのcontextでthrowする。
t = Thread.current
catch :foo do
Thread.new do
t.throw :foo
end
end
ユースケースとしては、Issue #8845 を修正するために raise の代わりに throw を使うことが考えられる。 -
05:29 PM Feature #8838 (Assigned): Enhancing Numeric#step
- =begin
[[DevelopersMeeting20130831Japan]]にてまつもとさんにOKをいただきましたので、近いうちに入れます。
=end
-
12:47 AM Feature #8838 (Closed): Enhancing Numeric#step
- DevelopersMeeting20130831Japan用に起票します。
ちょうど3年ほど前、 [ruby-dev:42194] で私が提案したのが以下の内容です。
> Numeric#step の仕様の拡張を提案します。
> ...
これについては、[ruby-dev:42204]にて「一晩考えた」まつもとさんにOKをい
ただきました。ただ、ここからC APIを設けようという方向に話が進みました。
> 一晩考えて、stepメソッドへの拡張そ... -
05:27 PM Feature #8696: Process.setproctitle
- プラットフォーム依存についてはすでに書いてありますが、
サポートされない環境でも例外は発生しない旨、追記しておきます。 -
03:10 PM Feature #8696: Process.setproctitle
- この提案そのものには賛成なんですが、プラットフォーム依存になりそうなので、環境依存、処理系依存が明記されれば。
まつもと ゆきひろ /:|)
-
05:18 PM Feature #8779: Binding#yourself
- Ruby開発社会議20130831での議論の結果、
Binding#receiver
ということに。 -
04:47 PM Bug #7716 (Feedback): Readdressing Autoload
- I understand your motivation.
But autoload is invoked asynchronously so hooking it may be dangerous sometimes especially under threading environment.
How do you think?
Matz.
-
04:44 PM Feature #8804 (Open): ONCE syntax - matz: Here's some code I wrote recently that would benefit from ONCE:
https://github.com/charliesome/better_errors/blob/master/lib/better_errors/stack_frame.rb#L30-42 -
04:42 PM Feature #8804 (Rejected): ONCE syntax
- I don't see any major use-case for the function.
Reopen if you (or anyone else) have.
Matz.
-
04:37 PM Misc #8843: ChangeLog のエンコーディングを UTF-8 に変更しませんか
- ラテン文字圏の (一部の) 新聞や雑誌、学実雑誌、書籍などは大体次のようにします。
ラテン文字の場合 (アクセントなど付も含む)、そのまま。
ラテン文字以外の場合、ラテン文字 (アクセントなど付も含む) に変更されたものと、都合に応じて元のもの (例えば括弧内)、場合によって逆。
Linux とかは分かりませんが、W3C ではそのような例は結構あります。
例: http://www.w3.org/TR/SVG/ の著者のリストの中に次の著者名があります:... -
11:46 AM Misc #8843: ChangeLog のエンコーディングを UTF-8 に変更しませんか
- 例えばアラビア文字の名前でも原語表記するんですかね?
もしそうなら一部のエディタで ChangeLog がメンテナンスできなくなりそうな気がしました。
英語圏の人は日本語人名も書いてほしくないだろうし、どこまで許すかという基準が決めづらいので、
「悪いけど ASCII 表記にしてね」というのはわかりやすく、一貫していて、世界的に受け入れられている解決方法ではないでしょうか。
「他プロジェクト (Linux とか) ではこうしてる」とか、Martin 先生... -
11:19 AM Misc #8843 (Rejected): ChangeLog のエンコーディングを UTF-8 に変更しませんか
- このチケットは [Bug #8819] からのforkです。
本日は開発者会議ということなので、ChangeLogのエンコーディングをUTF-8に変更することを
提案したいと思います。
-
03:59 PM Feature #8848 (Open): Syntax for binary strings
- In commit 37486, Yui (Naruse) added a String#b method as proposed in http://bugs.ruby-lang.org/issues/6767.
String#b was added to allow easy generation of binary strings; this became necessary in particular after the source file encod... -
03:57 PM Feature #8796: Use GMP to accelerate Bignum operations
- This is internal. So go ahead and experiment.
Matz.
-
03:52 PM Feature #8738 (Rejected): Integer#single_bit? (Actually Fixnum#single_bit? and Bignum#single_bit?)
- I don't see the needs to add methods to use integers as bit-arrays.
Matz. -
03:47 PM Feature #8700: Integer#bitsize (actually Fixnum#bitsize and Bignum#bitsize)
- Accepted. It should be work as 2's complement for negative numbers.
Matz.
-
03:21 PM Feature #8579: Frozen string syntax
- I accept the suffix idea ("frozen string"f), and string concatenation for frozen strings will be invalid ("foo"f "bar" would be syntax error).
Matz.
-
03:13 PM Feature #8657: Make Find.find respect the encodings of arguments
- 現在findのメンテナがいないようなのであわせて立候補します。
-
03:12 PM Revision 4ac5f571 (git): updated.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:09 PM Revision feb98062 (git): * 2013-09-01
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:09 PM Revision 89744e75 (git): * bignum.c (rb_big_bit_length): New method.
- (rb_fix_bit_length): Ditto.
[ruby-core:56247] [Feature #8700]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:06 PM Feature #8846: Publicize Module#include
- The basic motivation behind #include (and #prepend) being private is we didn't assume that kind of coding style.
As it turned out, that coding style became popular, I'd accept make them public.
Matz.
-
02:15 PM Feature #8846 (Closed): Publicize Module#include
- I propose changing Module#include to a public method.
* Background
Module#include is currently a private method.
However, the method is actually quite often used (particularly by gem library authors) for appending some features from... -
03:00 PM Feature #8026 (Feedback): Need Module#prepended_modules
- I basically accept the idea.
But according to the slide, the optional `include_ancestors` is true, but it does mean cherry-picking prepended modules from ancestor list. I cannot think of any use case of this behavior.
Matz.
-
08:29 AM Feature #8026: Need Module#prepended_modules
- Slide added. I'm also proposing an optional flag to search only the receiver and not the ancestors.
I didn't put in `prepend?` but it should also be added. On the other hand, `Array.prepend?(Enumerable)` should return false, no? -
02:46 PM Feature #7274 (Rejected): UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- It is due to implementation limitation of CRuby.
The structure of instances of subclass (TT_XXX) may be different from superclasses.
In that case, the C implemented methods would crash.
So we prohibit them conservatively.
Matz.... -
02:38 PM Feature #2509 (Rejected): Recursive freezing?
- `Object#deep_freeze` means you can freeze everything recursively, by definition.
But what if the target object accidentally refers objects that are not supposed to be frozen (e.g. classes)?
That would be disaster.
So, I'd rather pre... -
08:59 AM Feature #2509: Recursive freezing?
- Slide added for `deep_freeze`
-
01:29 PM Bug #8844 (Closed): Nested ParseError in rexml
- 以下のように不正なXMLをパースすると
require 'rexml/document'
REXML::Document.new("<a>foo</b>")
例外が発生し、以下のようなメッセージが表示されます(完全なものは添付したparseerror.txt)。
/home/ohai/.rbenv/versions/trunk-modified/lib/ruby/2.1.0/rexml/parsers/treeparser.rb:95:
in ... -
01:29 PM Feature #8726: Class#source_location
- 了解です。Timeoutのバグは別なissueにしますね。
-
01:25 PM Feature #6373: public #self
- I can accept `#itself`. I want to see it isn't conflict with existing methods.
Matz.
-
12:14 PM Feature #6373: public #self - marcandre: I think you made a mistake in your slide. It says "Returns the class of obj", but it should say "Returns obj"
-
06:59 AM Feature #6373: public #self
- Slide attached.
I hope to win the prize for simplest slide too. -
01:25 PM Revision a926a1f4 (git): mention that Process.clock_getres is a CRuby feature.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:21 PM Revision 23da5a78 (git): * process.c (rb_clock_getres): New method.
- (timetick2dblnum_reciprocal): New function.
* configure.in: Check clock_getres.
[ruby-core:56780] [Feature #8809] accepted at
DevelopersMeeting20130831Japan
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20130831Japan
... -
12:53 PM Misc #8835: Introducing a semantic versioning scheme and branching policy
- >> えっ。
>> いまのパッチレベルリリースはほとんどのケースでシンボルの追加があると思いますが。
>
> はい。意味を変えるという提案なので。仮に 2.0 系列に新しいスキームを適用
> していたとすると、パッチレベルリリースは半年ちょっと経ちましたがまだ2回
> だけなので現在 2.0.2 になっており、仮に年内にあと2回くらい機能追加を含
> むリリースを出したとして 2.0.4、そこで 2.1.0 が出て、前方互換性を改善す
> ... -
12:23 PM Misc #8835: Introducing a semantic versioning scheme and branching policy - At Fri, 30 Aug 2013 19:49:59 -0400,
KOSAKI Motohiro wrote:
> えっ。
> いまのパッチレベルリリースはほとんどのケースでシンボルの追加があると思いますが。
はい。意味を変えるという提案なので。仮に 2.0 系列に新しいスキームを適用
していたとすると、パッチレベルリリースは半年ちょっと経ちましたがまだ2回
だけなので現在 2.0.2 になっており、仮に年内にあと2回くらい機能追加... -
11:23 AM Misc #8835: Introducing a semantic versioning scheme and branching policy
- >> というわけで、カウンタープロポーサルとして、TEENYを0固定にして、パッチレベルはsymbol削減方向の非互換はしないが、symbol追加の非互換はあり(rb_,
>> ruby_ prefixの関数を自モジュールにつかう拡張が悪い)というRubyオレオレルールを継続することを提案します。
>
> 固定だったら無意味なので、パッチレベルを廃止してTEENYを上げてけばいいんじゃないですかね。
> バージョンを比較したければGem::Versio... -
09:53 AM Misc #8835: Introducing a semantic versioning scheme and branching policy
- (13/08/31 8:49), KOSAKI Motohiro wrote:
> というわけで、カウンタープロポーサルとして、TEENYを0固定にして、パッチレベルはsymbol削減方向の非互換はしないが、symbol追加の非互換はあり(rb_,
> ruby_ prefixの関数を自モジュールにつかう拡張が悪い)というRubyオレオレルールを継続することを提案します。
固定だったら無意味なので、パッチレベルを廃止してTEENYを上げてけばいいんじ... -
08:53 AM Misc #8835: Introducing a semantic versioning scheme and branching policy
- 2013/8/30 Akinori MUSHA <knu@idaemons.org>:
> At Fri, 30 Aug 2013 21:49:34 +0900,
> I wrote:
>> misc #8835: Introducing a semantic versioning scheme and branching policy
>> https://bugs.ruby-lang.org/issues/8835
>
> Develop... -
02:53 AM Misc #8835: Introducing a semantic versioning scheme and branching policy - At Fri, 30 Aug 2013 21:49:34 +0900,
I wrote:
> misc #8835: Introducing a semantic versioning scheme and branching policy
> https://bugs.ruby-lang.org/issues/8835
DevelopersMeeting20130831Japanでのプレゼンのために、[ruby-core:56878]
[... -
12:17 PM Revision 83a07091 (git): * bignum.c: Use GMP to accelerate big Bignum multiplication.
- (bary_mul_gmp): New function.
(bary_mul): Use bary_mul_gmp.
(bigsq): Use different threshold with GMP.
* configure.in: Detect GMP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Bug #8841 (Closed): Module#included_modules and prepended modules
- The documentation for Module#included_modules currently states "Returns the list of modules included in +mod+."
This was never perfectly accurate, as the list also contains modules included in +mod+'s ancestors.
It now also include... -
07:57 AM Bug #7696 (Closed): Lazy enumerators with state can't be rewound
- I created a new feature request #8840, so I'm closing this.
- 06:07 AM Revision d0d63cff (git): * compile.c (NODE_MATCH3): pass CALL_INFO to opt_regexpmatch2
- * insns.def (opt_regexpmatch2): use CALL_SIMPLE_METHOD to call =~ if
the receiver is not a T_STRING [Bug #8847] [ruby-core:56916]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:45 AM Revision e1fd7fa0 (git): * vm_insnhelper.h (CALL_SIMPLE_METHOD): change name of 'recv' argument
- so that other variable names may be used when calling this macro
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:07 AM Revision 7a4feec7 (git): * lib/securerandom.rb (random_bytes): Use Process.clock_gettime.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:30 AM Revision 9eb14119 (git): proc.c: preserve encodings
- * proc.c (mnew_from_me, rb_mod_define_method, umethod_bind),
(method_inspect): preserve class name encodings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:30 AM Revision bdbda951 (git): proc.c: local variable
- * proc.c (umethod_bind): extract a local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:30 AM Revision 378161fe (git): dir.c: reduce string object
- * dir.c (dir_each): get rid of allocate new string from UTF-8 string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:30 AM Revision 07bf69b0 (git): vm_method.c: [DOC] example of respond_to_missing?
- * vm_method.c (obj_respond_to_missing): [DOC] respond_to_missing? is
used in the example of BasicObject.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:20 AM Bug #7648 (Rejected): GServer does not close cleanly from signal interrupt context
- Holding mutex in trap is deadlockable. It is what ruby complained. The best workaround is to make new thread in trap handler and stop gserver asynchnorously, I think.
-
02:16 AM Feature #7918 (Assigned): Create Signal.in_trap?()
-
01:10 AM Feature #8793 (Feedback): Ruby 2.0 and Threads under HPUX
- Thank you, and does this patch work?
-
12:38 AM Feature #8426: Implement class hierarchy method caching - nobu: I see you've already fixed the problem. I've removed the commit that changes ruby/encoding.h from the pull request.
-
12:14 AM Feature #8426: Implement class hierarchy method caching
- Why do you remove prototype declarations in ruby/encoding.h, but add old K&R style declarations instead?
08/30/2013
-
11:38 PM Feature #8426: Implement class hierarchy method caching - ko1, have you had a chance to review https://github.com/ruby/ruby/pull/387 ?
Thanks -
11:32 PM Bug #8837: net/telnet: strange implementation
- Seems that it should be:
```ruby
if pt = buf.rindex(/\r\z/no)
buf, rest = buf[0 ... pt], buf[pt .. -1]
end
```
or
```ruby
if buf.chomp!("\r")
rest = "\r"... -
10:33 PM Bug #8837 (Rejected): net/telnet: strange implementation
- =begin
Net::Telnet#waitfor has IMHO a very strange line. See https://github.com/ruby/ruby/blob/trunk/lib/net/telnet.rb#L586.
As far as I can tell, this line always results in setting (({rest = ""})) due to the regular expression abov... -
10:13 PM Bug #8836 (Closed): [BUG] Bus Error with bundler on large Gemfile when resolving dependencies
- ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
rbenv -v
rbenv 0.4.0-49-g8b04303
bundle --version
Bundler version 1.3.5
gem -v
2.0.3
To reproduce run bundle install in test folder
Also i have other cras... -
09:49 PM Misc #8835 (Closed): Introducing a semantic versioning scheme and branching policy
- =begin
[This is a presentation for [[ruby:DevelopersMeeting20130831Japan]].]
Ruby's versioning scheme is currently not well defined or well
utilized.
First, RUBY_API_VERSION was introduced in 1.9.1, but has not been
properly m... -
08:53 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
- (13/08/30 15:26), Nobuyoshi Nakada wrote:
> (13/08/29 18:54), ko1 (Koichi Sasada) wrote:
>> Problems are
>> (a) miniruby can't require extension libraries
>> (b) rbinstall.rb is not invoked with -I option
>>
>> Easy way ... -
03:29 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
- (13/08/29 18:54), ko1 (Koichi Sasada) wrote:
> Problems are
> (a) miniruby can't require extension libraries
> (b) rbinstall.rb is not invoked with -I option
>
> Easy way to solve these problem is use rbinstall.rb by ./ru... -
02:53 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
- (2013/08/30 12:14), SASADA Koichi wrote:
> A patch for this approach:
http://www.atdot.net/sp/raw/m5xbsm
Note that last patch does not care about deadlock detection.
--
// SASADA Koichi at atdot dot net -
02:23 AM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
- "ko1 (Koichi Sasada)" <redmine@ruby-lang.org> wrote:
> Another solution is to embed thread.rb features (CV and Queue) as
> embeded classes.
I prefer this with no extra .so. Too many .so files hurts load time.
Just leave an e... - 03:25 PM Revision 9c53f65b (git): * 2013-08-31
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:25 PM Revision 6908e496 (git): encoding.h: fix conflicts
- * include/ruby/encoding.h (rb_{ascii8bit,utf8,usascii}_encindex): get
rid of conflict with macros defined in internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:53 PM Feature #8834: Kernel#load_relative
- (13/08/30 12:53), Joel VanderWerf wrote:
> On 08/29/2013 07:27 PM, sawa (Tsuyoshi Sawada) wrote:
>> It seems to me that people are using `Kernel#require_relative` when
>> they want to use a relative path, even in the context where... -
12:59 PM Feature #8834: Kernel#load_relative - On 08/29/2013 07:27 PM, sawa (Tsuyoshi Sawada) wrote:
> It seems to me that people are using `Kernel#require_relative` when
> they want to use a relative path, even in the context where they are
> supposed to use `load` because of... -
12:02 PM Feature #8834: Kernel#load_relative
- sawa (Tsuyoshi Sawada) wrote:
> > phluid61
> ...
I understand. I had a slightly different definition of "script" in my head. I'd forgotten that require doesn't need an extension (and can thus load any .rb, .so, etc. file), where load ... -
11:27 AM Feature #8834: Kernel#load_relative
- > phluid61
I think what you wrote is the other way around. The only-once feature is due to the division of labor, not the other way around. See this:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/21562 -
10:39 AM Feature #8834: Kernel#load_relative
- This is an unusual description of the "intended difference" between the methods. I understood the difference between the two was: #require loads the file only once, #load does it every time. Yes, this implies that #load is for project-r...
-
10:32 AM Feature #8834 (Open): Kernel#load_relative
- The intended difference between `Kernel#require` and `Kernel#load` is that the former is for external libraries and the latter is for Ruby scripts internal to the project. Considering this fact, `load` should be more likely than `require...
-
01:39 PM Revision 0328cdf9 (git): ChangeLog: fix commit miss
- * ChangeLog: remove duplicated commit logs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:37 PM Revision 93024c63 (git): thread_pthread.c: fill stack info by creator thread
- * thread_pthread.c (native_thread_init_stack): wait the creator thread
to fill machine stack info, if get_stack_of() is available.
* thread_pthread.c (native_thread_create): fill the created thread
stack info after starting, if get_s... -
01:37 PM Revision b59b1b9b (git): thread_pthread.c: define attr only if used
- * thread_pthread.c (native_thread_create): define attr only if it is
used, and merge pthread_create() calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:37 PM Revision 7703ba85 (git): thread_pthread.c: get_main_stack
- * thread_pthread.c (get_main_stack): separate function to get stack of
main thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:53 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- (2013/08/30 10:45), Tanaka Akira wrote:
> I think you should write toy example application.
For example:
def trap_in_thread(sig, &b)
q = Queue.new
Thread.new{
q.pop
b.call
}
trap(sig){
q.pus... -
10:53 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- 2013/8/29 ko1 (Koichi Sasada) <redmine@ruby-lang.org>:
> How about to permit Queue operation in trap handler with [ruby-trunk - Feature #3620], and use Queue#push to synchronize/communicate between other threads. This is Ruby-level... -
10:17 AM Bug #8831: test-all error: OpenSSL::SSL::SSLError: SSL_write: bad write retry
- FreeBSD also has failures:
4) Failure:
OpenSSL::TestPair#test_read_nonblock_no_exception [/home/chkbuild/build/20130830T000301Z/ruby/test/openssl/test_pair.rb:175]:
<nil> expected but was
<:wait_readable>.
5) Failure:
OpenS... - 01:26 AM Revision 51f09f15 (git): * 2013-08-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:26 AM Revision f8b3123e (git): thread_pthread.c: fix vps_pagesize
- * thread_pthread.c (hpux_attr_getstackaddr): vps_pagesize is defaulted
to 16 and in Kbytes. [ruby-core:56863]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/29/2013
-
08:09 PM Feature #8833 (Feedback): [PATCH] IPAddr#pred
- Add a IPAddr#pred method to return the predecessor of the ip address.
-
08:08 PM Feature #8793: Ruby 2.0 and Threads under HPUX
- On systems, I have a access to, the vps_pagesize is set to 16.
> /usr/sbin/kctune -v vps_pagesize
Tunable vps_pagesize
Description Default user page size (kBytes)
Module vm
Current Value 16 [... -
03:08 PM Feature #8793: Ruby 2.0 and Threads under HPUX
- Thank you.
I'm unsure about vps_pagesize and its default value, could you check it?
And, it might be better to use _pthread_stack_info_np(), but I couldn't find out its correct usage.
Don't you have any info, the signature, related ... -
07:07 PM Feature #8823 (Feedback): Run trap handler in an independent thread called "Signal thread"
- After discussion, I decide to reject this feature.
How about to permit Queue operation in trap handler with [ruby-trunk - Feature #3620], and use Queue#push to synchronize/communicate between other threads. This is Ruby-level alternat... -
04:53 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- >> If you mean, trap handler automatically disable nested trap, we
>> already do since 1.9.3.
>
> That's what I meant, oops :x
Yay, I was cool! :) -
03:28 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- > Alternatively, queue trap handler execution in VM and make them
> ...
Could you elaborate a bit more?
If you mean synchronize{} automatically disable interrupt, it doesn't work when using
cond-wait.
mutex.lock
cond.wait <- t... -
06:54 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
- I rewrite to use T_STRUCT instead of T_DATA (attached).
Matsushita-san:
Could you check it?
Issue:
With ext/thraed/thread.c instead of lib/thread.rb, we can't install ruby itself.
(1) rbinstall.rb is invoked with miniruby
(2)... -
02:43 PM Bug #8831 (Closed): test-all error: OpenSSL::SSL::SSLError: SSL_write: bad write retry
- There is a test-all error on some environments from r42695.
It seems depend on openssl's version.
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20130826T224700Z.diff.html.gz
+ <n>) Error:
+OpenSSL::TestPair#test_writ... -
01:06 PM Bug #8830 (Closed): Cannot Build Tk / Ruby 2.0.0 p247 on OSX (Mountain Lion)
-
09:40 AM Bug #8830 (Closed): Cannot Build Tk / Ruby 2.0.0 p247 on OSX (Mountain Lion)
- The file ext/tk/extconf.rb seems to contain a typo (misplaced parenthesis line 318; see output of 'diff -u ' below.
The issue was reported earlier (bug #8656) for ruby 1.9.7 p448 and is now closed, but the typo is still present in the... -
12:55 PM Revision a653ba0a (git): merge revision(s) 42720: [Backport #8829]
- * ext/zlib/zlib.c (zstream_run): Fix handling of deflate streams that
need a dictionary but are being decompressed by Zlib::Inflate.inflate
(which has no option to set a dictionary). Now Zlib::NeedDict is
... -
12:52 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- kosaki (Motohiro KOSAKI) wrote:
> > 具体的にはどのように解説されてどう利用されているんでしょうか。
> ...
なるほど。
> 次に出てくるのは逆に、デーモンなどで全部捕まえたいケースで、rescue Timeout::Error, StandardError =>e
> ...
Timeout.timeoutから抜けるときには(指定がなければ)Timeout::Errorを投げるので、影響はないですね。
> それで... -
01:53 AM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- > 具体的にはどのように解説されてどう利用されているんでしょうか。
残念ながら紙の書籍は手元にありませんが、
一番多いのは http://kwfsws.g.hatena.ne.jp/kiwofusi/20111231/1325314356 みたいに
rescue Exception => e とすると、意図せずタイムアウトも拾ってしまうので注意しましょうという記述。
これは "ruby timeout 例外" で検索すると似たような注意は何... -
12:50 PM Revision 6588ba87 (git): merge revision(s) 42724: [Backport #8238]
- * vm_insnhelper.c (vm_call_method): a method entry refers the based
class/module, so should search superclass from the origin i-class
where the entry belongs to, to get rid of infinite loop when zsuper
in a ... -
10:04 AM Bug #8656: Cannot Build Ruby-Tk
- backported to ruby_2_0_0 by r42370.
-
09:12 AM Revision 5da55dfc (git): * struct.c (rb_struct_define_without_accessor_under): added.
- This function is similar to rb_define_class_under() against
rb_define_class().
* include/ruby/intern.h: add a declaration of this function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:03 AM Revision 74b85189 (git): vm_insnhelper.c: fix zsuper in prepended
- * vm_insnhelper.c (vm_call_method): a method entry refers the based
class/module, so should search superclass from the origin i-class
where the entry belongs to, to get rid of infinite loop when zsuper
in a prepended class/module. ... -
06:14 AM Feature #8811: Counterpart to `Hash#key?` for `Array`
- phluid61 (Matthew Kerwin) wrote:
> matz (Yukihiro Matsumoto) wrote:
> ...
There are two ways of using #index with an array: with non-negaitve integers, and with negaitve integers. It does not seem to make much sense to have an #index? ... -
05:59 AM Feature #8827: A method that flips the receiver and the first argument
- I think this request is mostly a duplicate of #6721.
-
01:20 AM Revision 4cdb8fd7 (git): .gdbinit: improve for displaying class/module
- * .gdbinit (rp_class): show class name, if possible.
* .gdbinit (rb_ancestors): call rp_class directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:20 AM Revision 5c143c97 (git): .gdbinit: follow classname() change
- * .gdbinit (rb_classname): follow classname() change at r36584, which
hash second argument now. reported by 36584 via IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:54 AM Revision e1e46c05 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/28/2013
-
09:05 PM Feature #8793: Ruby 2.0 and Threads under HPUX
- Nobu, thank you for your effort. I am going to test trunk ruby soon and I will let you know.
-
05:20 PM Feature #8793 (Closed): Ruby 2.0 and Threads under HPUX
- This issue was solved with changeset r42716.
Michal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
thread_pthread.c: get_stack on HP-UX
* thread_pthread.c (hpux_... -
08:41 PM Bug #8828 (Rejected): regex matching not correct
- Your bug.
Lookbehind matches the preceding part, which matches \s* in your regexp.
-
05:25 PM Bug #8828 (Rejected): regex matching not correct
- str = " [1]: http://google.com/ "Google""
str =~ /\A\s*\[(.+)\]\:\ (\S+)\s*((?<=").+(?="))/
#=> nil
#then i replace this part '(?<=").+(?=")' with '.+'
str =~ /\A\s*\[(.+)\]\:\ (\S+)\s*(.... -
08:36 PM Revision 9f2f1fcb (git): * ext/zlib/zlib.c (zstream_run): Fix handling of deflate streams that
- need a dictionary but are being decompressed by Zlib::Inflate.inflate
(which has no option to set a dictionary). Now Zlib::NeedDict is
raised instead of crashing. [ruby-trunk - Bug #8829]
* test/zlib/test_zlib.rb (TestZlibInflate):... -
05:55 PM Revision c94b0e85 (git): backport Tempfile.create so psych tests will run outside ruby trunk
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:42 PM Revision 621c6dda (git): * 2013-08-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:42 PM Revision 48602d1d (git): * ext/psych/lib/psych/scalar_scanner.rb: invalid floats should be
- treated as strings.
[Fixes GH-156] https://github.com/tenderlove/psych/issues/156
* test/psych/test_string.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:48 PM Feature #8827: A method that flips the receiver and the first argument
- charliesome, that has the same problem as nobu's. It does not return the final result. It gives back the receiver.
-
01:38 PM Feature #8827: A method that flips the receiver and the first argument - =begin
some_chain_of_operations_that_ends_up_with_an_array.tap(&Hash.method(:[]))
=end -
01:35 PM Feature #8827: A method that flips the receiver and the first argument
- nobu, I think you mean `tap{|ary| break ...}`, etc. That does not look concise enough for me. It might look like a small difference, but it makes huge difference when you are in the middle of a chain. It saves you from thinking extra thi...
-
01:30 PM Feature #8827: A method that flips the receiver and the first argument
- =begin
You can write as:
some_chain_of_operations_that_ends_up_with_an_array.tap {|ary| Hash[ary]}
some_chain_of_operations_that_ends_up_with_a_string.tap {|path| File.read(path)}
some_chain_of_operations_that_ends_up_with_an_obje... -
01:18 PM Feature #8827 (Closed): A method that flips the receiver and the first argument
- =begin
If it often happens that we need to pass to a method an argument that is the result of a long chain of operations:
Hash[some_chain_of_operations_that_ends_up_with_an_array]
File.read(some_chain_of_operations_that_en... -
11:25 AM Bug #8792 (Closed): HP-UX needs sys/pstat.h for missing/setproctitle.c
- This issue was solved with changeset r42713.
Michal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
configure.in: check for sys/pstat.h
* configure.in (sys/pstat.... -
10:45 AM Feature #8825 (Feedback): Symbol Argument to any?
- =begin
Do you mean it is same as this?
foo.any? {|e| e.bar}
=end
-
02:54 AM Feature #8825 (Rejected): Symbol Argument to any?
- It would be nice if `any?` could take a symbol much like `map`. For example:
foo.any?(&:bar) -
08:20 AM Revision 806ddf67 (git): thread_pthread.c: get_stack on HP-UX
- * thread_pthread.c (hpux_attr_getstackaddr): basic support for the
get_stack() under HP-UX. based on the patch by michal@rokos.cz
(Michal Rokos) at [ruby-core:56645]. [Feature #8793]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru... -
08:20 AM Revision b7aa49b9 (git): thread_pthread.c: dup code
- * thread_pthread.c (get_stack): merge duplicated code split by ifdef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:59 AM Revision 50b17c70 (git): thread_pthread.c: simplify
- * thread_pthread.c (register_cached_thread_and_wait): simplify and
reduce branches.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:53 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- "ko1 (Koichi Sasada)" <redmine@ruby-lang.org> wrote:
> == Disadvantage:
> * There is a small compatibility issue because “Thread.current” on a
> trap handler is not a main thread.
This adds race conditions in existing code.
... -
03:43 AM Bug #8826 (Third Party's Issue): BigDecimal#div and #quo different behavior and inconsistencies
- BigDecimal's #div and #quo method behave differently despite the #div documentation says: "See BigDecimal#quo"
#div returns Fixnum if there is no precision argument for #div (this parameter is not documented):
```
2.0.0-p247 :018 ... -
03:36 AM Feature #8773: Binding#local_variables should work like #local_variable_set and #local_variable_get
- @ko1 do you have any thoughts about this?
-
02:25 AM Revision e6ece122 (git): configure.in: check for sys/pstat.h
- * configure.in (sys/pstat.h): fix missing header check for
missing/setproctitle.c on HP-UX. [ruby-core:56644] [Bug #8792]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:11 AM Bug #8815: Enumerable.drop_while returns an Enumerator. Calling next twice on the Enumerator raises StopIteration even if there are still items available
- Isn't that backwards?
>> [1, 2, 3].drop_while { nil }
=> [1, 2, 3]
>> [1, 2, 3].drop_while { false }
=> [1, 2, 3]
>> [1, 2, 3].drop_while { true }
=> []
-
12:07 AM Bug #6702: Date should be either required or not
- Just a short update from my side: Since my issue from comment #8 was mostly caused by bad .gemspec files from gems which didn't require 'date' before using it and most (all I know) have been fixed, I think this is not an issue any longer...
08/27/2013
-
09:23 PM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- 2013/8/27 SASADA Koichi <ko1@atdot.net>:
> I think this spec reduce incompatibility problems.
> What do you think about it?
I suspect that it causes race conditions.
The exception may be reached to the main thread with ... -
08:53 PM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- (2013/08/27 20:45), Tanaka Akira wrote:
> I suspect "raise RubyLex::TerminateLineInput" doesn't work as expected after
> your proposal is implemented because the current thread will be the
> signal thread.
I wrote a coutnerme... -
08:53 PM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- 2013/8/27 ko1 (Koichi Sasada) <redmine@ruby-lang.org>:
> Feature #8823: Run trap handler in an independent thread called "Signal thread"
> https://bugs.ruby-lang.org/issues/8823
> How about to make an "Signal thread" to run trap ha... -
08:52 PM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- I add an additonal implementation plan (called plan2) in attached PDF.
-
08:13 PM Feature #8823 (Rejected): Run trap handler in an independent thread called "Signal thread"
- = Abstract
How about to make an "Signal thread" to run trap handler?
= Problem
Now, all of thread synchronization methods are not permitted because there is a possibility of deadlock between trap handler and main thraed.
For ... - 07:54 PM Revision f26eceab (git): * 2013-08-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:54 PM Revision 00aff4d8 (git): * ext/openssl/ossl_ssl.c (ossl_ssl_read): Replace duplicate
- wait_writable with wait_readable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:11 PM Bug #8822: Incorrect encoding for ENV in Windows
- In Ruby 2.0 when assigning to ENV, seems it double encodes it.
But in Ruby 1.9 it's interesting that after assigning - it shows console's encoding, but that shouldn't be needed at all...
-
05:57 PM Bug #8822 (Closed): Incorrect encoding for ENV in Windows
- When reading `ENV` and if it contains non-ASCII - string won't have correct encoding.
In Ruby 2.0 we can force it to UTF8 (it doesn't matter what's windows encoding nor consoles) and it will be correct, but in Ruby 1.9 there's no way to... -
05:03 PM Bug #8767 (Closed): IO.copy_stream should write in binary mode.
- This issue was solved with changeset r42709.
Lin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io.c: copy in binary mode
* io.c (copy_stream_body): should write... -
04:46 PM Feature #8820 (Closed): Speed up Array#index
- This issue was solved with changeset r42704.
Thomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
array.c: optimized equality
* array.c (rb_ary_index, rb_ary_ri... -
08:19 AM Feature #8820: Speed up Array#index
- Yes, sorry. I meant to use a random index with each iteration, not `i`. But per the suggestion, I think `i % 100` would be better.
I changed and reran the benchmarks. But even so the comparison still comes out about the same ratio:
... -
06:59 AM Feature #8820: Speed up Array#index
- Joel VanderWerf <joelvanderwerf@gmail.com> wrote:
> On 08/26/2013 12:57 PM, Eric Wong wrote:
> >The performance of your code varies between runs because the
> >ordering is always different and index is O(n) _worst_ case.
> >call... -
05:23 AM Feature #8820: Speed up Array#index - On 08/26/2013 12:57 PM, Eric Wong wrote:
> "trans (Thomas Sawyer)" <redmine@ruby-lang.org> wrote:
>> def main
>> n = 10000000 # ten million
>> a = randPerm(100)
>>
>> t0 = Time.now
>>
>> ... -
04:59 AM Feature #8820: Speed up Array#index
- "trans (Thomas Sawyer)" <redmine@ruby-lang.org> wrote:
> def main
> n = 10000000 # ten million
> a = randPerm(100)
>
> t0 = Time.now
>
> n.times do |i|
> a.index(i)
> end
... -
02:31 AM Feature #8820 (Closed): Speed up Array#index
- I did a quick comparison:
In Ruby
def main
n = 10000000 # ten million
a = randPerm(100)
t0 = Time.now
n.times do |i|
a.index(i)
end
puts "%.5f" % [Time.now - t0]
en... -
04:45 PM Bug #8592: when outputing to console, it's encoding is ignored for Windows
- Raster fonts are also default for PowerShell and it does crash there too.
Is it just for my Win8 installation or everyone that raster fonts are default unless you change them?
-
04:28 PM Bug #8592: when outputing to console, it's encoding is ignored for Windows
- Is it some MinGW lib's fault for this?
It's still happening with ruby 1.9.3p448 and 2.0.0p247
seems very similar to #7758 maybe it's even same bug.
Those raster fonts acts really weird...
BTW, it does crash even if I launch rub... -
11:50 AM Bug #8641 (Closed): Enumerator size argument is either mis-documented or should accept any callable
- This issue was solved with changeset r42698.
Avdi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator.c: Allow Enumerator size argument to be any callable... -
10:43 AM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- 具体的にはどのように解説されてどう利用されているんでしょうか。
-
05:07 AM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- ちょっと待った。
現在の挙動は様々な書籍などでも解説されており広く共有されている挙動なので
NEWSも書かずに変えてしまうのは適切じゃないように思います。
そもそもどこで議論した結果?
-
10:21 AM Feature #8437: custom operators, unicode
- boris_stitnicky (Boris Stitnicky) wrote:
> EDIT: .... Can't take my mind of this ... that unsightly dot, as in
> ...
Sounds like you want a preprocessor, or even a syntax interpreter/translator. ;) -
09:04 AM Feature #8811: Counterpart to `Hash#key?` for `Array`
- matz (Yukihiro Matsumoto) wrote:
> Concrete use-case please? Besides that, I don't think #index? is a good name for the function.
> ...
I think the name is reasonable. Hash defines:
* #key(value) => key of value
* #key?(key) => tru... -
08:18 AM Revision ba572748 (git): timeout.rb: raise given exception
- * lib/timeout.rb (Timeout#timeout): skip rescue clause only when no
exception class is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:03 AM Revision 8ef01921 (git): io.c: copy in binary mode
- * io.c (copy_stream_body): should write in binary mode. based on a
patch by godfat (Lin Jen-Shin) at [ruby-core:56556].
[ruby-core:56518] [Bug #8767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42709 b2dd03c8-39d4-4d8f-98ff-... -
08:02 AM Revision 1e238c5a (git): io.c: common oflags
- * io.c (copy_stream_body): move common open flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:56 AM Revision 1af4196c (git): enumerator.c: rb_check_funcall
- * enumerator.c (enumerator_size): use rb_check_funcall() instead of
respond_to? and call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:56 AM Revision 9b4b5ad2 (git): enumerator.c: add comment
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:51 AM Revision a5f18c1f (git): enumerator.c: check arg size
- * enumerator.c (enumerator_each): ensure argument array size is int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:46 AM Revision f25daa25 (git): array.c: optimized equality
- * array.c (rb_ary_index, rb_ary_rindex): use optimized equality to
improve performance. [Feature #8820]
* vm_insnhelper.c (rb_equal_opt): optimized equality function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42704 b2dd03c8-... -
07:41 AM Feature #5138 (Closed): Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
- This issue was solved with changeset r42695.
Yehuda, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (io_read_nonblock): support non-blocking reads without r... -
07:11 AM Revision f01cef20 (git): vm_insnhelper.c: reduce duplication
- * vm_insnhelper.c (vm_search_method): reduce duplicated code for the
case cache does not hit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:11 AM Revision b3392daa (git): vm_insnhelper.h: RBASIC_CLASS
- * vm_insnhelper.c (opt_eq_func): use RBASIC_CLASS() instead of HEAP_CLASS_OF().
* insns.def (opt_plus, opt_minus, opt_mult, opt_div, opt_mod, opt_lt),
(opt_gt, opt_ltlt, opt_aref, opt_aset, opt_length, opt_size),
(opt_empty_p, opt_su... -
07:08 AM Revision 92d7cdc2 (git): vm_eval.c: constify
- * vm_eval.c (rb_check_funcall, rb_check_funcall_with_hook): constify
argv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:23 AM Feature #8726: Class#source_location
- > Timeoutのバグの本質は、timeoutブロック内で rescue Exception した場合に、timeoutの実装が
> 内部的に使っている Timeout::ExitException を拾ってしまうことのようです。
>
> Timeoutの例は一例でして、Class.source_location があれば無名クラスがどこで定義されたものか
> デバッグするのが容易になる、というのが趣旨でした。
これ、整理度合いが進化してま... -
06:15 AM Bug #8821 (Closed): Add documentation for Time#w3cdtf
- These monkey-patches on Time weren't documented inside of RSS. Now they are.
-
04:04 AM Revision 69c8ab25 (git): * ext/stringio/stringio.c (strio_read_nonblock): declare local
- variables at the first of function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:04 AM Bug #8819: ChangeLog includes non us-ascii character
- I would suggest to change an encoding of Changelog to UTF-8.
Please remember why we credit contributor's name in Changelog.
It is for thanking them. Incorrect name is not a polite way..... - 02:52 AM Revision 7c7b005a (git): Amend ChangeLog for r42698
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:50 AM Revision ca7f52a3 (git): * enumerator.c: Allow Enumerator size argument to be any callable.
- Patch by Avdi Grimm. [bug #8641] [ruby-core:56032] [fix GH-362]
* test/ruby/test_enumerator.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:49 AM Revision c4fe5260 (git): * gc.c (gc_profile_clear): do rest_sweep() before clearing
- profile.current_record.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/26/2013
-
10:50 PM Revision 0805d73f (git): update NEWS for read / write nonblock
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:41 PM Revision 988ca605 (git): * io.c (io_read_nonblock): support non-blocking reads without raising
- exceptions. As in: `io.read_nonblock(size, exception: false)`
[ruby-core:38666] [Feature #5138]
* ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): ditto
* ext/stringio/stringio.c (strio_sysread): ditto
* io.c (rb_io_write_nonblock): su... - 08:24 PM Revision eadad2c9 (git): * 2013-08-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:24 PM Revision e487a7f5 (git): * lib/rubygems: Import RubyGems 2.1.0 Release Candidate
- * test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:27 PM Feature #8793: Ruby 2.0 and Threads under HPUX
- Nope, pthread_attr_init() populates default values.
-
04:53 PM Bug #8792: HP-UX needs sys/pstat.h for missing/setproctitle.c
- Hello,
it seems that I forgot to include a patch for...
I am sorry for that.
Michal -
04:25 PM Feature #8699 (Closed): Feature request: Detect line encoding problems
- This issue was solved with changeset r42691.
Matthew, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
parse.y: warn CR
* parse.y (parser_nextc): warn carriage retu... -
01:27 PM Bug #8819 (Closed): ChangeLog includes non us-ascii character
- This issue was solved with changeset r42687.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ChangeLog: convert with `iconv -t us-ascii//translit'. [Bug ... -
10:13 AM Bug #8819 (Closed): ChangeLog includes non us-ascii character
- ChangeLog should be us-ascii because local variables for emacs set "coding: us-ascii".
% ruby -e 'ARGF.each_line{|line|p line.b unless line.force_encoding("us-ascii").valid_encoding?}' ChangeLog
"\t Patches by David Rodr\xC3\xADguez... -
01:23 PM Feature #8579: Frozen string syntax
- 24.08.2013 23:55 пользователь "kstephens (Kurt Stephens)" <
redmine@ruby-lang.org> написал:
>
>
> Issue #8579 has been updated by kstephens (Kurt Stephens).
>
>
> How about something more generic? A prefix operator that memoize... -
08:59 AM Revision cddd93a5 (git): fix typo of r42691
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:25 AM Revision a6a85a0c (git): parse.y: warn CR
- * parse.y (parser_nextc): warn carriage return in middle of line.
[ruby-core:56240] [Feature #8699]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:27 AM Revision 1a3bcf10 (git): timeout.rb: skip rescue
- * lib/timeout.rb (Timeout#timeout): should not be caught by rescue
clause. [Bug #8730]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:02 AM Revision c075b153 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:47 AM Revision ad0ef29d (git): * array.c (rb_ary_splice): use RARRAY_PTR_USE() without WB because
- there are not new relations.
* enum.c (enum_sort_by): ditto.
* struct.c (setup_struct): use RARRAY_RAWPTR().
* vm_eval.c (yield_under): ditto.
* ext/pathname/pathname.c (path_entries): use RARRAY_AREF().
* ext/pathname/pathname.c (path_s... -
04:27 AM Revision bf2a494e (git): ChangeLog: convert with `iconv -t us-ascii//translit'. [Bug #8819]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:13 AM Revision e86d9fe8 (git): * array.c (ary_ensure_room_for_push): fix typo in r42658.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:37 AM Revision 21d7cd39 (git): sizes.c.tmpl: autogenerate
- * template/sizes.c.tmpl: generate automatically by extracting
RUBY_CHECK_SIZEOF from configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:39 AM Revision c3ab2dc6 (git): * 2013-08-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:39 AM Revision ae5ac37f (git): fix typo
- * process.c (gcd_timetick_int): Renamed from gcd_timtick_int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/25/2013
-
11:24 PM Feature #8726: Class#source_location
- Timeoutのバグの本質は、timeoutブロック内で rescue Exception した場合に、timeoutの実装が
内部的に使っている Timeout::ExitExceptionの無名派生クラスを拾ってしまうことのようです。
Timeoutの例は一例でして、Class#source_location があれば無名クラスがどこで定義されたものか
デバッグするのが容易になる、というのが趣旨でした。 -
05:19 PM Bug #8816: Tempfile.new may return the same name for parallel calls
- Tempfile.create may help you to create unique file name, but it's your task to guarantee that it doesn't conflict.
-
04:23 AM Bug #8816: Tempfile.new may return the same name for parallel calls
- "akr (Akira Tanaka)" <akr@fsij.org> wrote:
> http://bogomips.org/kgio.git/tree/test/test_unix_connect.rb :
>
> class TestKgioUnixConnect < Test::Unit::TestCase
>
> def setup
> tmp = Tempfile.new('kgio_unix')
... -
12:23 AM Bug #8816 (Third Party's Issue): Tempfile.new may return the same name for parallel calls
- Tempfile.new creates a normal file, not unix socket.
So, your report is questionable.
Note that Tempfile uses O_EXCL to exclusive file creation.
If it doesn't work, it is a problem of kernel.
I checked kgio.
It seems the tempora... -
12:07 PM Revision dac8c1e5 (git): * sizes.c (Init_sizes): Define the size of clock_t.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:48 AM Revision 36c4a301 (git): * object.c: [DOC] remove comment about trust/untrust.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:29 AM Bug #8818 (Closed): BigDecimal#power
- =begin
Optional argument `prec' to BigDecimal#power does not alter result precision:
b=BigDecimal.new("1.034482758620689655172413793103448275862068965517241379310344827586206896551724"
=> #<BigDecimal:807a50,'0.1034482758 62068965... -
04:55 AM Feature #8579: Frozen string syntax
- How about something more generic? A prefix operator that memoizes and freezes any expression result in a thread-safe manner on first eval:
%f'a frozen string' #
%f"a frozen #{interpolated} string" #
%f{a: '... -
01:53 AM Bug #8817 (Closed): Method#owner on prepended classes is an instance rather than Class/Method
- rdoc indicates that Method#owner will return a class or module that defines a method. http://www.ruby-doc.org/core-2.0/Method.html#method-i-owner
For classes that have prepended modules, the owner is actually an instance.
Example c... -
12:35 AM Feature #6216: SystemStackError backtraces should not be reduced to one line
- I'm not sure @matz/@ko1 understood what @postmodern was trying to describe.
Given an `overlfow.rb` ruby program:
~~~ruby
200.times do |i|
eval <<-RUBY_EVAL, nil, __FILE__, __LINE__ + 1
def foo_#{i}(&block)
foo_#{i+1...