Project

General

Profile

Activity

From 12/25/2011 to 12/31/2011

12/31/2011

11:48 PM Feature #5820: Merge Onigmo to Ruby 2.0
POSIX 文字クラスを ASCII に限定しないオプションの追加と、大文字小文字問題の修正パッチを作成しました。
特に問題なければ、Onigmo本体に反映したいと思います。
k_takata (Ken Takata)
09:22 PM Feature #2340: Removing YAML/Syck
Zeno Davatz wrote:
> Please take good care when you introduce a new default YAML engine to Ruby 1.9.3 so people who have been using syck for 10 years will not be waked by an avalanche of changes. Currently using Psych as a drop-in repla...
alexeymuranov (Alexey Muranov)
06:31 PM Feature #2340: Removing YAML/Syck
Please take good care when you introduce a new default YAML engine to Ruby 1.9.3 so people who have been using syck for 10 years will not be waked by an avalanche of changes. Currently using Psych as a drop-in replacement for syck will _... zdavatz (Zeno Davatz)
05:55 PM Bug #5830 (Rejected): "".byteslice(0) != "".byteslice(0, 0)
It's spec.
It follows String#slice's behavior; it returns "" for str.slice(str.length, 0).
irb(main):005:0> ["a".slice(1), "a".slice(1, 0)]
=> [nil, ""]
naruse (Yui NARUSE)
05:32 PM Bug #5830 (Rejected): "".byteslice(0) != "".byteslice(0, 0)
Is this a bug?
See https://github.com/ruby/ruby/blob/069f7ec90a6ef/string.c#L4091 vs https://github.com/ruby/ruby/blob/069f7ec90a6ef/string.c#L4035-4036
Thanks,
Brian
brixen (Brian Shirai)
03:26 PM Feature #5825: Sweet instance var assignment in the object initializer
I liked this 1.8-specific trick:
~~~ruby
define_method(:intialize){|@foo, @bar|}
~~~
but it was abondoned for any reason.
shyouhei (Shyouhei Urabe)
02:25 AM Feature #5825: Sweet instance var assignment in the object initializer
+1 - too common use case rosenfeld (Rodrigo Rosenfeld Rosas)
02:20 AM Feature #5825: Sweet instance var assignment in the object initializer
Would be nice, and should be able to coexist with normal parameters:
~~~ruby
def foo(bar, @baz, quux = @moomin)

end
~~~
And so on. What about splat- and block arguments? It gets a little ugly:
~~~ruby
def foo(bar, *@baz, ...
rue (Eero Saynatkari)
02:32 PM Bug #5829: /dl/test_cptr.rb Segmentation fault on Ruby 1.9.3 P0
mkmf log of dl raylinn@gmail.com (ray linn)
02:31 PM Bug #5829 (Closed): /dl/test_cptr.rb Segmentation fault on Ruby 1.9.3 P0
Hi Sir,
I compiled Ruby 1.9.3 P0 with MinGW64 (GCC 4.6.1) under Windows 64, and when running test-all ,the Segmentation fault occurs again on test dl:
.........C:/msys/1.0/home/beta/ruby-1.9.3-p0/test/dl/test_cptr.rb:84: [BUG] Segm...
raylinn@gmail.com (ray linn)
10:06 AM Bug #5828 (Closed): Non anonymous classes can't be frozen, cloned and then inspected
=begin
If you assign a class to a constant (that is, it isn't anonymous), and you freeze it and then clone it, you can't call to_s on it.
MyClass = Class.new ; MyClass.freeze.clone.to_s
RuntimeError: can't modify frozen Clas...
agrimm (Andrew Grimm)
08:04 AM Revision 069f7ec9 (git): Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
03:46 AM Bug #5390: YAML.load が、正しく解析できないエンコーディングの文字列も受け付けてしまう

YAML::ENGINE.yamler が syck のみ再現します。
ruby1.9.2 をお使いの場合は require 'yaml' する前に require 'psych' するか YAML::ENGINE.yamler = 'psych' すると以下のようにPsych::SyntaxErrorとなります。
---- ruby 2.0.0dev
$ cat bug_5390.rb
# coding: Shift_JIS
require...
ayumin (Ayumu AIZAWA)
01:23 AM Feature #5361: Lice?
$B$"$$$6$o$G$9!#(B

byteslice$B$H$$$&%a%=%C%IL>$@$H(Bbytes lice$B$HFI$a$F$7$^$C$F%$%1$F$J$$$H$$$&$3$H$N$h$&$G$9$,!"(B
alias$B$G(Bbyte_slice$B$H$$$&%a%=%C%I$rMQ0U$9$k$N$O$$$+$,$G$7$g$&$+!#(B
$BF1$8$h$&$JM}M3$GL>A0$,JQ$...
ayumin (Ayumu AIZAWA)
01:06 AM Feature #5361: Lice?
I'm proposing patch on [ruby-dev:45068]
ayumin (Ayumu AIZAWA)
12:23 AM Feature #5826 (Closed): When the RUBY API_VERSION will be increased?
I think RUBY_API_VERSION should be 2.0.0 for Ruby2.0.0.
In other hand, some people might think it should stay 1.9.1 becouse Ruby2.0.0 will have backward compatibility with 1.9.
ayumin (Ayumu AIZAWA)

12/30/2011

11:39 PM Feature #5820: Merge Onigmo to Ruby 2.0
すみません。大文字小文字の問題は、Onigmo 5.11.4でcase-insensitiveなBM法を
導入したときに混入したバグと判明しました。(どう修正すべきかまだ分かっていませんが。)
これが修正できれば、/a で POSIX 文字クラスを ASCII に限定しないオプションと合わせることで、
非互換点は解決できそうです。
k_takata (Ken Takata)
11:03 PM Feature #5820: Merge Onigmo to Ruby 2.0
Yui NARUSE wrote:
> この状況は鬼雲でも変わりませんから、そのような形態に移行するのは不可能なんじゃないかと思います。
同意見です。エンコーディング周りの変更もそう簡単にはマージできそうにないですし。
> ...
Rubyのビルドすらしたことのない人がコミッタになるのは互いの不幸の元ではないかと。
> 既定路線では 2.0 では非互換を導入しないという予定ですので、変更されない場合は 2.0 ではマージできない、
> ...
なる...
k_takata (Ken Takata)
07:41 PM Feature #5820: Merge Onigmo to Ruby 2.0
Motohiro KOSAKI wrote:
> ただ将来的には libonigmo.so を動的にリンクするだけで済むような形態に移行できたらなあと
> ...
Ruby は Ruby 文法挙動オプション(コンパイルオプション)を指定した鬼車を用いているので、
普通のバイナリではたとえソースが一致していてもダメです。
この状況は鬼雲でも変わりませんから、そのような形態に移行するのは不可能なんじゃないかと思います。
> k-takataさんと
> ......
naruse (Yui NARUSE)
03:37 PM Feature #5820: Merge Onigmo to Ruby 2.0
POSIXブラケットは、Perlでは/a指定時にはASCII範囲に限定されるので、Onigmoではそれに合わせてあります。
個人的にはあまり変更したくないのですが、変更すべきでしょうか。
変更するとしたら、挙動オプションを1つ追加して、Ruby文法の場合はそれを有効にすることになると思いますが。
残りの問題は未調査です。
k_takata (Ken Takata)
11:07 PM Feature #5825: Sweet instance var assignment in the object initializer
I like it. No stupid assigns. lisovskyvlad (Vlad Lisosvky)
10:49 PM Feature #5825 (Assigned): Sweet instance var assignment in the object initializer
I'm very excited about this feature in CoffeeScript, and think it might be a nice-to-have thing in Ruby 2.0.
That's how I think it would look like:
~~~ruby
class Me
def initialize(@name, @age, @location); end
end
~~~
So we...
goshakkk (Gosha Arinich)
10:25 PM Revision e4513cbe (git): * 2011-12-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:25 PM Revision 82ab1e18 (git): * thread.c (rb_barrier_waiting): save the number of waiting threads
in RBASIC()->flags. [ruby-dev:45002] [Bug #5768]
* thread.c (rb_barrier_wait): increment and decrement around
rb_mutex_lock, and use rb_barrier_waiting().
* thread.c (rb_barrier_release): use rb_barrier_waiting().
* thread.c (rb_bar...
naruse (Yui NARUSE)
10:25 PM Revision 035e4949 (git): * vm.c (vm_exec): add guard to prevent optimization for LLVM clang.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:51 PM Bug #5824: Interpreter Crashes when using OmniAuth
To setup Google, you'll need to go to the following URL:
https://code.google.com/apis/console
To setup Twitter, you'll need to go to the following URL:
http://developer.twitter.com
To setup FaceBook, you'll need to fo to the followin...
Anonymous
08:13 PM Bug #5824 (Third Party's Issue): Interpreter Crashes when using OmniAuth
Ruby interpreter is crashing when using the OmniAuth with Google, Twitter, and Facebook. This can be reproduced with Ruby 1.9.3p6. However, things work as expected using Ruby 1.9.2p312. I'm attaching a sample Rails project as well as ... Anonymous
08:21 PM Bug #5401: Ruby 1.9.3 interpreter crash
Kenta Murata wrote:
> I cannot reproduce this issue because therubyracer isn't able to install on my environment, Mac OS X 10.7 with Xcode 4.1.
> ...
Kenta, I was able to install the therubyracer successfully using Xcode 4.2 when I log...
Anonymous
08:15 PM Bug #5401: Ruby 1.9.3 interpreter crash
Shota Fukumori wrote:
> are you using openssl which bundled with OSX? if not, please tell what (like: installed by macports, homebrew, etc)
I'm using OpenSSL installed from MacPorts.
Anonymous
05:18 PM Bug #5355: Sync_mにBug #5195やBug #5258と同様のバグ
スレッドまわりは振ってくれていいですよ。ほかに誰も見てくれなさそうだし。ただあからさまに優先度低そうなやつは暇なときかリリース近いときしか作業できませぬ
kosaki (Motohiro KOSAKI)
05:10 PM Bug #5355: Sync_mにBug #5195やBug #5258と同様のバグ
#5258 とおなじく小崎さんにAssignしますよ ayumin (Ayumu AIZAWA)
05:07 PM Bug #5125 (Closed): obj.send() documentation issue
This issue was solved with changeset r34161.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_eval.c (rb_f_send): fix [Bug #5125] [ruby-core:38633]
ayumin (Ayumu AIZAWA)
08:07 AM Revision 85bc3bdb (git): * vm_eval.c (rb_f_send): fix [Bug #5125] [ruby-core:38633]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
06:04 AM Revision b906a46e (git): * lib/matrix.rb (symmetric?): Trivial optimization
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:56 AM Revision cae12e5d (git): * 2011-12-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:56 AM Revision 52a70d99 (git): * vm_core.h: Fix comment about arg_opts of iseq and some typos
* doc/re.rdoc: Rdoc small fixes
* iseq.c: Fix comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:55 AM Revision f965d513 (git): * 2011-12-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:55 AM Revision 6c38e611 (git): * vm_core.h: Fix comment about arg_opts of iseq and some typos
* doc/re.rdoc: Rdoc small fixes
* iseq.c: Fix comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune

12/29/2011

10:42 PM Bug #5822 (Closed): testunit に -j オプションを渡すと稀にテストを実行せずに終了する
This issue was solved with changeset r34155.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels...
nagachika (Tomoyuki Chikanaga)
01:08 PM Bug #5822 (Closed): testunit に -j オプションを渡すと稀にテストを実行せずに終了する
make test-all TESTS="-j2 ruby/test_require.rb"
のように test-all の引数に -j と1ファイルだけ与えると、稀にテストをひとつも実行せずに終了することがあります。
@tasks が空になった瞬間に worker が全て :prepare または :ready だと実行中の worker が居ないと判断して終了してしまうようです。
以下のような変更で一応発生しなくなりました。一応というのは status...
nagachika (Tomoyuki Chikanaga)
01:42 PM Revision 59130ced (git): * lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels): fix
premature exit when all workers' status are :ready or :prepare.
[ruby-dev:45061] [Bug #5822]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
12:03 PM Feature #5663: Combined map/select method
=begin
Nobuyoshi Nakada wrote:
> What about:
> (1..10).grep(->(i){i.even?}){|i|i+1}
> or
> (1..10).grep(:even?.to_proc){|i|i+1}
This looks smart. One can also write it as
(1..10).grep((proc &:even?), &:succ)
but that ...
kernigh (George Koehler)
10:38 AM Bug #5819 (Assigned): Windowsで空のドライブのルートディレクトリに対するFile.stat が失敗する
naruse (Yui NARUSE)
02:21 AM Bug #5819 (Closed): Windowsで空のドライブのルートディレクトリに対するFile.stat が失敗する
Windows Vista32bit版上の 1.9.3-p0,1.9.2-p290,1.8.7-p330で
File.statが失敗します。(すべてActiveScriptRubyパッケージで確認)
また、Vista 32bit + ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mingw32]
では成功しました。
ここでF:ドライブは ファイル/サブディレクトリが一切無い空っぽのFAT16の
USBドライブ(エ...
yamaminami (Masateru OKAMOTO)
04:23 AM Feature #5820: Merge Onigmo to Ruby 2.0
> Ruby 1.9 では正規表現エンジンや M17N の基盤として Oniguruma を用いています。
> ...
現状 onigurumaのupstreamは活動が止まっているという認識なので乗り換え自体は賛成です。
ただ将来的には libonigmo.so を動的にリンクするだけで済むような形態に移行できたらなあと
思っており(実際にディストリからそういう要望をつい最近受けたばかりであるし)、k-takataさんと
今後どのような形態で協力していくのか一回お話し...
kosaki (Motohiro KOSAKI)
02:44 AM Feature #5820: Merge Onigmo to Ruby 2.0
= 現状の非互換について
Rubyへの取り込み方:
cd Onigmo
cp reg{comp,enc,error,exec,parse,syntax}.c reg{enc,int,parse}.h ~/ruby
cp oniguruma.h ~/ruby/include/ruby/
Onigmo: edf9df1cefc28472085a857116153529253ffab5 (tmp/ruby-2.0.x)
Ruby: r34150
> ...
naruse (Yui NARUSE)
02:42 AM Feature #5820 (Closed): Merge Onigmo to Ruby 2.0
Ruby 1.9 では正規表現エンジンや M17N の基盤として Oniguruma を用いています。
これを 2.0 では Oniguruma の改造版である、k-takata さんの Onigmo に置き換えようという話です。
https://github.com/k-takata/Onigmo/tree/tmp/ruby-2.0.x
この取り込みによる影響は以下の通りです。
* 100%互換 (既存のテストが全て無修正で通る)
* いくつかの新機能 ...
naruse (Yui NARUSE)
02:22 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Any update on the status of this request being accepted into Ruby trunk? Thanks. sunaku (Suraj Kurapati)

12/28/2011

07:32 PM Feature #5809: Benchmark#bm: remove the label_width parameter
If your suggestion is to provide easy way to pretty enough benchmark method, how about following:
IMPLEMENTATION:
def Benchmark(tbl)
len = tbl.keys.map(&:size).max + 1
total = ">total:"
avg = ">avg:"
len = [len, total.l...
naruse (Yui NARUSE)
06:52 PM Feature #5789: Optimize st_table
Another approach to st_table optimization: use lightweight pool allocator for st_table, st_table_entry and bins of smallest size.
http://bugs.ruby-lang.org/attachments/2352/st_pool_alloc.patch
funny_falcon (Yura Sokolov)
04:56 PM Revision de5c0b83 (git): * 2011-12-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:56 PM Revision 98696bd2 (git): * include/ruby/ruby.h: fix #error pragma. LLP64 platform is supported.
* include/ruby/st.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
12:53 PM Feature #4970: FileUtils refactored
Hi,

In message "Re: [ruby-core:41834] [ruby-trunk - Feature #4970] FileUtils refactored"
on Wed, 28 Dec 2011 11:54:52 +0900, Thomas Sawyer <transfire@gmail.com> writes:

|Is current trunk destined to be 2.0? If so, can th...
matz (Yukihiro Matsumoto)
11:54 AM Feature #4970: FileUtils refactored
Is current trunk destined to be 2.0? If so, can this get a review and merge if ok? trans (Thomas Sawyer)
12:47 PM Revision e19bd3ea (git): -This line, and those below, will be ignored--
M ruby_1_8_7/ChangeLog
M ruby_1_8_7/inits.c
M ruby_1_8_7/version.h
M ruby_1_8_7/string.c
M ruby_1_8_7/st.c
M ruby_1_8_7/test/ruby/test_string.rb
M ruby_1_8_7/random.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra...
shyouhei (Shyouhei Urabe)
12:40 PM Feature #5818: Feature: Raiseable
Separate the proposal into two: (a) allow non-Exception object to be raised. (b) Raiseable. And I will refuse (b). Currently, I see no good reason for (a), but you can try to persuade me.
Matz.
matz (Yukihiro Matsumoto)
08:21 AM Feature #5818: Feature: Raiseable
git branch: https://github.com/kstephens/ruby/tree/trunk-raiseable
kstephens (Kurt Stephens)
08:17 AM Feature #5818 (Rejected): Feature: Raiseable
= Proposal
The ability to raise any object that is a Raiseable.
= Problem
* The Exception subclass hierarchy is well-established.
* CRuby does not allow any object that behaves as an Exception to be raised, it must be a subclas...
kstephens (Kurt Stephens)
11:22 AM Bug #5817 (Closed): [mingw] ruby/test_file.rb error in test_chmod_m17n(TestFile)
This issue was solved with changeset r34146.
Jon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/fileutils.rb (FileUtils::Entry_#entries): use utility method...
nobu (Nobuyoshi Nakada)
04:41 AM Bug #5817 (Closed): [mingw] ruby/test_file.rb error in test_chmod_m17n(TestFile)
I cannot read #5671 to determine if this is a duplicate, but based upon the info below, the error doesn't appear to be caused by `File.chmod` but by m17n issues.
The following is from a RubyInstaller-based build of trunk on a Win7 32b...
jonforums (Jon Forums)
09:13 AM Revision d5c889cf (git): fix indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:40 AM Revision 8b75c2fc (git): * doc/ChangeLog-1.9.3, test/gdbm/test_gdbm.rb: fixed mingw typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@34149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:40 AM Revision b2f45483 (git): * doc/ChangeLog-1.9.3, test/gdbm/test_gdbm.rb: fixed mingw typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:40 AM Revision 15fb1619 (git): * doc/ChangeLog-1.9.3, test/gdbm/test_gdbm.rb: fixed mingw typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:23 AM Revision 9a75b919 (git): * 2011-12-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:23 AM Revision 554397bc (git): * 2011-12-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@34147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:22 AM Revision 6a6c314f (git): * lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
instead of typoed regexp. [ruby-core:41829] [Bug #5817]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:22 AM Revision b4491375 (git): * lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
instead of typoed regexp. [ruby-core:41829] [Bug #5817]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:22 AM Revision 31b097ca (git): * lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
instead of typoed regexp. [ruby-core:41829] [Bug #5817]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

12/27/2011

10:43 PM Bug #5816 (Closed): Add documentation for profiler
Add documentation for profiler Nerian (Gonzalo Rodríguez)
08:53 PM Feature #5788: Thread#at_exit
2011/12/27 Eric Wong <normalperson@yhbt.net>:
> Motohiro KOSAKI <kosaki.motohiro@gmail.com> wrote:
>> I don't think ruby impl w/o GVL can implement this feature.
>
> pthread_key_create() can be used to register a destructor func...
kosaki (Motohiro KOSAKI)
05:23 PM Feature #5788: Thread#at_exit
Motohiro KOSAKI <kosaki.motohiro@gmail.com> wrote:
> I don't think ruby impl w/o GVL can implement this feature.

pthread_key_create() can be used to register a destructor function.
I don't know about other thread APIs, though.
normalperson (Eric Wong)
04:23 PM Feature #5788: Thread#at_exit
=begin
Calling (({rb_gc_mark()})) only once at the hook definition makes no sense.
You have to mark it in (({rb_thread_mark()})).
=end
nobu (Nobuyoshi Nakada)
05:19 PM Revision ddec35cf (git): * ChangeLog: fix some typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:12 PM Revision ec5483c3 (git): * 2011-12-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:12 PM Revision 0d971069 (git): * vm_insnhelper.c (unknown_keyword_error): add GC guard to prevent
intermediate object from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:38 PM Bug #5804 (Closed): Cannot cross compile trunk using Ruby 1.9.3 as BASERUBY
Fixed at r34131. nobu (Nobuyoshi Nakada)
03:53 PM Feature #5474: keyword argument
Hi,

In message "Re: [ruby-core:41815] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Mon, 26 Dec 2011 23:36:38 +0900, Yusuke Endoh <mame@tsg.ne.jp> writes:
|
|Hello, Matz
|
|What do you think about Ma...
matz (Yukihiro Matsumoto)
12:53 PM Feature #5474: keyword argument
Hello, matz

2011/12/27, Yukihiro Matsumoto <matz@ruby-lang.org>:
> In message "Re: [ruby-core:41814] Re: [ruby-trunk - Feature #5474][Assigned]
> keyword argument"
> on Mon, 26 Dec 2011 23:28:36 +0900, Yusuke Endoh <mame@...
mame (Yusuke Endoh)
06:59 AM Feature #5474: keyword argument
Hi,

In message "Re: [ruby-core:41814] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Mon, 26 Dec 2011 23:28:36 +0900, Yusuke Endoh <mame@tsg.ne.jp> writes:

|Oh yeah, I understand the use case.
|
|I'l...
matz (Yukihiro Matsumoto)
02:56 PM Bug #5813 (Closed): net/http's EOFError and Keep-Alive
[ruby-dev:39421] describes exceptions thrown by open-uri, and raise a question why net/http raises EOFError.
net/http sometimes raises EOFError.
I recently find it is because of Keep-Alive.
On HTTP/1.1, connections are Keep-Alive an...
naruse (Yui NARUSE)
01:37 PM Revision 2828593e (git): * lib/test/unit.rb (Worker#close): "closing IO if IO is closed"
should be "closing IO if IO isn't closed"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
01:04 PM Revision 2f6d8bdc (git): * st.c (st_update): new function to lookup the given key and
update the value. [ruby-dev:44998]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:17 PM Revision 7f649d10 (git): * 2011-12-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:17 PM Revision 731e4521 (git): * node.h (rb_args_info): change pre_args_num and post_args_num as
int, to match with rb_iseq_t.
* parse.y (new_args_gen): check overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:23 AM Bug #5790: net/http の EOFError と Keep-Alive
(2011/12/22 18:49), Yui NARUSE wrote:
> HTTP/1.1 は、冪等なメソッドの場合には確認なしにリトライすべきと言っているので、
> そのようにするパッチを添付します。
> 冪等でないメソッドの場合にどうするべきかは悩ましいところです。
> http://tools.ietf.org/html/rfc2616#section-8.1.4
> http://tools.ietf.org/html/draft-ietf-h...
Anonymous
09:13 AM Bug #5812 (Closed): test-all is stuck on Windows
以下の2つのテストがWindowsで刺さります。
test/ruby/test_thread.rb TestThreadGroup#test_thread_timer_and_interrupt
test/thread/test_queue.rb TestQueue#test_thr_kill
要するにIO#read中にThread#killしても終わらないことがあるというわけですが、
しばらく頑張ってみたものの(thread_pthread.cからsign...
usa (Usaku NAKAMURA)
07:15 AM Feature #5809: Benchmark#bm: remove the label_width parameter
Thomas Sawyer wrote:
> All makes very good sense. But I would avoid complexity. Sometimes things need to change, people have to adjust. I'm not sure I ever even knew that #report returned the time, and I imagine you are right, it was ra...
Eregon (Benoit Daloze)
12:56 AM Feature #5809: Benchmark#bm: remove the label_width parameter

All makes very good sense. But I would avoid complexity. Sometimes things need to change, people have to adjust. I'm not sure I ever even knew that #report returned the time, and I imagine you are right, it was rarely used, so I don't ...
trans (Thomas Sawyer)
03:42 AM Bug #5811 (Closed): Ruby Process Deadlocks With Fork on Mac OS X Lion
=begin
Given a Ruby process that acts like the following:
* Spawn new thread that initializes a TCPSocket
* Execute script using backticks in main thread
there is a chance that it will deadlock on Lion. The GDB traces for the th...
netshade (Chris Zelenak)

12/26/2011

11:53 PM Feature #5474: keyword argument
Hello, Matz

What do you think about Marc-Andre's alternative syntax for
keyword arguments and mechanism?


2011/12/22, Marc-Andre Lafortune <ruby-core-mailing-list@marc-andre.ca>:
> I haven't given much thought, but here'...
mame (Yusuke Endoh)
11:29 PM Feature #5474: keyword argument
Hello, Marc-Andre

2011/12/22, Marc-Andre Lafortune <ruby-core-mailing-list@marc-andre.ca>:
> While having fun testing your patch, I encountered an issue with more
> than 2 rest arguments:
>
> def foo(*rest, b: 0, **opti...
mame (Yusuke Endoh)
11:27 PM Feature #5474: keyword argument
Hello,
I've committed my patches for keyword arguments, with fixes for
some problems reported during this discussion.
Please try it and let me know if you find any problem.
This feature still requires discussion, so I'm leaving t...
mame (Yusuke Endoh)
07:37 PM Feature #5809 (Closed): Benchmark#bm: remove the label_width parameter
Hello,
I would like to keep on improving the benchmark library.
Feature #4197 was mostly a clean-up, this intend to improve the existing methods.
First, I would like to make Benchmark#bm smarter.
I think than having to specify th...
Eregon (Benoit Daloze)
05:01 PM Bug #5796 (Closed): main.c is not compiled during cross compilation
This issue was solved with changeset r34131.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* common.mk (LIBRUBY_A): depends on main.o since r33774.
[ruby-...
nobu (Nobuyoshi Nakada)
03:09 PM Bug #5808: "a = []; a << a; puts JSON.dump(a)" aborted
うーん、よろしくは無いと思うんですが、これは速度のために意図的にやっているように思います。
循環参照をチェックしたい場合は、JSON.dump ではなく、JSON() を使ってください。
naruse (Yui NARUSE)
02:02 PM Bug #5808 (Assigned): "a = []; a << a; puts JSON.dump(a)" aborted
naruse (Yui NARUSE)
12:45 PM Bug #5808 (Closed): "a = []; a << a; puts JSON.dump(a)" aborted
ふと a = []; a << a; puts JSON.dump(a) としてみたら、abort しました。
% ./ruby -rjson -ve 'a = []; a << a; puts JSON.dump(a)'
ruby 2.0.0dev (2011-12-26 trunk 34127) [x86_64-linux]
/home/ruby/tcstate/lib/ruby/1.9.1/json/common.rb:216: stack level ...
akr (Akira Tanaka)
02:20 PM Revision c5e372ff (git): * vm_insnhelper.c (unknown_keyword_error): make it kind a error message when unknown keyword is given. It require more work. See [ruby-core:40518] and [ruby-core:40541] in detail.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
02:20 PM Revision d0baa0dd (git): * vm_core.h (struct rb_iseq_struct), compile.c (iseq_set_arguments), iseq.c (rb_iseq_parameters), vm_insnhelper.c (vm_callee_setup_arg_complex): support Method#parameters for keyword arguments. The provisional spec is what Benoit Daloze proposed. [ruby-core:40518]
* test/ruby/test_keyword.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
02:20 PM Revision a0a2c144 (git): * vm_core.h (struct rb_iseq_struct), compile.c (iseq_set_arguments, iseq_compile_each), vm_insnhelper.c (vm_callee_setup_arg_complex): implement keyword arguments. See [ruby-core:40290] The feature is promised to be included in 2.0, but the detail spec is still under discussion; this commit is a springboard for further discussion. Please try it and give us feedback. This commit includes fixes for some problems reported by Benoit Daloze <eregontp AT gmail.com> [ruby-core:40518] and Marc-Andre Lafortune <ruby-core-mailing-list AT marc-andre.ca> [ruby-core:41772].
* iseq.c (iseq_free, prepare_iseq_build): bookkeeping.
* test/ruby/test_keyword.rb: add tests for keyword arguments.
* test/ripper/dummyparser.rb (class DummyParser): temporal fix for
ripper test.
git-svn-id: svn+ssh://ci.ruby-lang....
mame (Yusuke Endoh)
02:20 PM Revision 1ab3974b (git): * node.h, node.c, parse.y: implement a parser part for keyword arguments. This is a preparation for keyword argument (see [ruby-core:40290]).
* gc.c (gc_mark_children): bookkeeping.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
02:19 PM Revision afb10c62 (git): * node.h, parse.y (new_args_gen), compile.c (iseq_set_arguments): use struct rb_args_info instead of NODEs. This is a preparation for keyword argument (see [ruby-core:40290]).
* node.c (dump_node), gc.c (gc_mark_children, obj_free): bookkeeping.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
02:19 PM Revision 90b1afa3 (git): * node.h, parse.y (lambda, f_larglist): remove NEW_LAMBDA hack. This is a preparation for keyword argument (see [ruby-core:40290]).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
01:49 PM Revision 68fde444 (git): * io.c (rb_sys_fail_path): move the definition.
Move above for using it in set_binary_mode_with_seek_cur().
* io.c (set_binary_mode_with_seek_cur): fix improper seek cursor.
Seeking file cursor with setting binary mode has possibility to
cause infinite loop. Fixed the bug and ref...
h.shirosaki (Hiroshi Shirosaki)
09:52 AM Feature #5805: object_hexid
> My last ditch approach will be to bind Kernel#inspect InstanceMethod to the current object and extract the hex id from it's output. It should work, but it's definitely a hack. In the future I'd much rather just ask Ruby for it!
You...
nobu (Nobuyoshi Nakada)
08:01 AM Revision fb37a14a (git): * common.mk (LIBRUBY_A): depends on main.o since r33774.
[ruby-core:41786] [Bug #5796]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:33 AM Revision 8f37f68c (git): * ChangeLog: fix miss; testcase is test file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e sorah (Sorah Fukumori)
04:21 AM Revision bec52ad7 (git): * test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn't
accept the block argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:08 AM Revision 48053fe6 (git): * lib/test/unit.rb: Avoid zombie processes on "--separate" option
added at r34121.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)

12/25/2011

11:42 PM Feature #5805: object_hexid
On 2011年12月25日 14:38, Nobuyoshi Nakada wrote:
> In 1.9.3 or later
> ...
Hmm.. this seems to pad two extra zeros.
"0x00000000014100e0"
instead of
"0x000000014100e0"
Is Urabe correct? Does `sprintf` work just as well...
trans (Thomas Sawyer)
11:27 PM Feature #5805: object_hexid
Thank you for 1.9.3+ definition, I will add that. Do you happen to know definition for 1.8.7? I am not worried about anything older than that.
> Even if the method were added, it would never affect 1.9 or earlier, so it changes nothin...
trans (Thomas Sawyer)
06:23 PM Feature #5805: object_hexid
On 2011年12月25日 14:38, Nobuyoshi Nakada wrote:
> In 1.9.3 or later
> ```ruby
> module Kernel
> def object_hexid
> "0x"+[object_id<<1].pack("L>!").unpack("H*")[0]
> end
> end

I prefer to use `sprintf()...
shyouhei (Shyouhei Urabe)
02:38 PM Feature #5805 (Feedback): object_hexid
Hi,
(11/12/25 0:22), Thomas Sawyer wrote:
> By default Ruby will show this id when using #inspect.
> ...
In 1.9.3 or later
```ruby
module Kernel
def object_hexid
"0x"+[object_id<<1].pack("L>!").unpack("H*")[0]
...
nobu (Nobuyoshi Nakada)
12:57 PM Feature #5805: object_hexid
I think this seems like a simple proposal. shevegen (Robert A. Heiler)
12:22 AM Feature #5805 (Feedback): object_hexid
I would like to see #object_hexid added to Ruby to return an object's id in hexidecimal form.
By default Ruby will show this id when using #inspect.
Object.new.inspect
=> "#<Object:0x000000023cadf0>"
I, for one, have often ...
trans (Thomas Sawyer)
11:17 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
I updated the patch while waiting for the response.
Cleanups
* remove unnecessary parentheses of `fptr`
* use return value of setmode() which returns the previous translation mode if successful
http://msdn.microsoft.com/en-us/libr...
h.shirosaki (Hiroshi Shirosaki)
10:05 PM Feature #5798: Range#include? needs some optimization
I agree that the behavior you point out seems inconsistent, because
(0..1).include?(0.5)
=> true
alexeymuranov (Alexey Muranov)
08:47 PM Revision 7a9b2cad (git): * ext/openssl/ossl_cipher.c: Fix more typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
08:09 PM Revision 91785eca (git): * ext/openssl/ossl_cipher.c: Fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
07:02 PM Revision 16558749 (git): * ext/openssl/ossl_cipher.c: Update and complete documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
06:53 PM Revision 684d7b8e (git): * 2011-12-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:53 PM Revision 976aba43 (git): git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
02:17 PM Revision 38ade501 (git): * test/testunit/test_parallel.rb (test_separate): Test for "--separate"
option (r34121)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
01:47 PM Revision 60da7a36 (git): * lib/test/unit.rb (_run_parallel):
New option "--separate" for test/unit; when running tests with this
option, a job process will be restarted after one testcase has done.
This means all testcases will run with separated process.
* lib/test/unit/parallel.rb: Fix for ...
sorah (Sorah Fukumori)
12:42 AM Feature #5788: Thread#at_exit
=begin
Nakada-san, thank you for your reviewing.
I improved the patch at some points.
* th->at_exit is to be marked.
* If the thread is dead, Thread#at_exit returns nil.
* The thread is passed to the hooks(including hooks on main th...
Glass_saga (Masaki Matsushita)
 

Also available in: Atom