Project

General

Profile

Activity

From 12/12/2012 to 12/18/2012

12/18/2012

11:43 PM Feature #7548: Load and Require Callbacks
=begin
@charliesome That doesn't quite fix the problem.
# foo/require_relative.rb
alias_method :require_relative_without_callback, :require_relative
def require_relative(feature)
result = require_relative_without_cal...
trans (Thomas Sawyer)
01:58 PM Feature #7548: Load and Require Callbacks
=begin
You can use (({Kernel#caller})) to obtain the filename of the caller
=end
Anonymous
01:57 PM Feature #7548: Load and Require Callbacks
=begin
Ran into a little snag with implementation of this as a simple Ruby library. It is not possible to override (({#require_relative})) to add the callback b/c it is lexically scoped (is that the right term for this?). In other words...
trans (Thomas Sawyer)
11:40 PM Bug #7344: gem pristine bigdecimal が失敗してしまう
> The installed version of bigdecimal and the default gem version are the same, so the installed version can't be used:
> ...
Umm... It is difficult... OK. It's a bug in RubyGems. We can fix it by the following change:
Index: specifi...
kou (Kouhei Sutou)
12:40 AM Bug #7344 (Feedback): gem pristine bigdecimal が失敗してしまう
I think we need more precise information to reproduce the issue that `gem install bigdecimal` is still failed on trunk.
mrkn (Kenta Murata)
11:19 PM Bug #5993 (Open): Thread.new{ Fiber.new { Thread.exit }.resume }.join で例外
すみません、やっぱり r38414 ではちゃんと修正できていませんでした。
例外は発生しなくなりましたが、Thread.exit が Fiber を終了したところで無視されて Thread は動き続けてしまっていました。
Thread.start{
Fiber.new{ Thread.exit }.resume
p :unreachable # <- 実行されてしまう
}.join
async_errinfo_queue に...
nagachika (Tomoyuki Chikanaga)
11:03 PM Bug #7570 (Closed): rb_fatal() in Fiber don't terminate process
Thank you for your review.
I've committed at r38441.
nagachika (Tomoyuki Chikanaga)
05:47 AM Bug #7570: rb_fatal() in Fiber don't terminate process
Thank you for your report.
Your patch seems good and passed test-all on my environment.
Could you commit it?
ko1 (Koichi Sasada)
07:37 PM Bug #7579: TestGemExtCmakeBuilder#test_self_build failed in ja_JP.UTF-8 locale
I confirmed this issue fixed.
Thank you.
znz (Kazuhiro NISHIYAMA)
12:16 PM Bug #7579 (Closed): TestGemExtCmakeBuilder#test_self_build failed in ja_JP.UTF-8 locale
This issue was solved with changeset r38438.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rubygems/specification.rb: Fixed ruby output of requir...
drbrain (Eric Hodel)
06:41 PM Bug #7586 (Closed): Useless sourceline in DTrace parse__begin and parse__end probes
I am not 100% sure, but isn't the 'parser->parser_ruby_sourceline' at https://github.com/ruby/ruby/blob/trunk/parse.y#L5322 always '1'? Does it make sense to pass this information to DTrace parse__begin(const char *, int) and parse__end... vo.x (Vit Ondruch)
06:14 PM Bug #7585 (Closed): DTrace probes are inconsistent
These are DTrace probes available in Ruby:
process("./libruby.so").mark("find__require__entry") $arg1:long $arg2:long $arg3:long
process("./libruby.so").mark("find__require__return") $arg1:long $arg2:long $arg3:long
process("./libru...
vo.x (Vit Ondruch)
05:06 PM Revision b32f9edd (git): * ChangeLog: fix a typo for r38452.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:04 PM Revision 26221584 (git): * vm.c (rb_vm_jump_tag_but_local_jump): remove unnessesary 2nd
argument.
* load.c (rb_load_internal): ditto.
* eval_intern.h (rb_vm_jump_tag_but_local_jump): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:29 PM Revision ba6a2e7f (git): * 2012-12-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:29 PM Revision 157bfdcf (git): fix typos and styles
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:05 PM Bug #5073 (Closed): Ruby 1.9.2 may fail to build ri data when an RDoc plugin is installed
drbrain (Eric Hodel)
03:05 PM Bug #5073: Ruby 1.9.2 may fail to build ri data when an RDoc plugin is installed
This seems fixed in latest rdoc. drbrain (Eric Hodel)
02:44 PM Bug #5420 (Closed): RubyGems misleading error message for "update -l"
drbrain (Eric Hodel)
02:43 PM Bug #5420: RubyGems misleading error message for "update -l"
=begin
It seems this has been fixed.
$ GEM_HOME=~/tmp/gems/ GEM_PATH= ruby20 -Ilib bin/gem update -l builder
Updating installed gems
Updating builder
Fetching: builder-3.1.4.gem (100%)
Successfully installed builder-3.1...
drbrain (Eric Hodel)
02:34 PM Bug #6702: Date should be either required or not
I am not clever enough to solve this problem.
As I said before, tool/rbinstall.rb cannot load extensions. If I try to lazy-load Date in lib/rubygems/specification.rb tool/rbinstall.rb obviously, tool/rbinstall.rb fails.
I cannot f...
drbrain (Eric Hodel)
02:02 PM Revision c2834e3c (git): * ChangeLog: add ML and ticket ref for r38441.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
12:59 PM Bug #7575: Struct のメンバーをアクセサで参照できない事がある
まつもと ゆきひろです

In message "Re: [ruby-dev:46756] [ruby-trunk - Bug #7575] Struct のメンバーをアクセサで参照できない事がある"
on Tue, 18 Dec 2012 11:58:51 +0900, "Glass_saga (Masaki Matsushita)" <glass.saga@gmail.com> writes:

|調べてみましたが、"b\000"をin...
Anonymous
11:58 AM Bug #7575: Struct のメンバーをアクセサで参照できない事がある
調べてみましたが、"b\000"をinternするとID_JUNKなIDになってしまう為に、make_struct()で"b\000"に対応するメソッドが定義されないようです。
"b\000"にはis_identchar()でない文字が含まれているので、internするとjunkであると判定されます。
従って、internするとjunkなIDとなるような名前のメンバの存在を許すかどうかという問題だと思われます。
ちなみにdefine_methodでは、junk...
Glass_saga (Masaki Matsushita)
11:33 AM Bug #7197: Error: test_tls_v1_2(OpenSSL::TestSSL)
I applied the workaround proposed by Shugo. Thanks a lot for investigating!! MartinBosslet (Martin Bosslet)
11:32 AM Bug #7197 (Closed): Error: test_tls_v1_2(OpenSSL::TestSSL)
This issue was solved with changeset r38436.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in...
Anonymous
11:09 AM Bug #7581: DTrace test should be executed against RUNRUBY
vo.x (Vit Ondruch) wrote:
> Thank you for the fix.
> ...
Sorry, I don't know.
naruse (Yui NARUSE)
01:04 AM Bug #7581: DTrace test should be executed against RUNRUBY
Thank you for the fix.
Just wondering, if will it work with dynamically linked ruby as well? I am testing the functionality on Linux with dynamic linking and SystemTap and there I have to specify path to the library. Not sure if DTrac...
vo.x (Vit Ondruch)
11:02 AM Bug #5353 (Closed): TLS v1.0 and less - Attack on CBC mode
This issue was solved with changeset r38433.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/lib/ssl.rb: Enable insertion of empty fragments a...
Anonymous
10:07 AM Revision 06dcf784 (git): * io.c (rb_io_wait_writable): don't use rb_thread_wait_fd()
because it is for waiting until io readable.
* io.c (rb_io_wait_writable): always use rb_thread_fd_writable()
instaed of bare rb_wait_for_single_fd(). we shouldn't ignore
return value.
* io.c (rb_io_wait_readable): ditto. always use...
kosaki (Motohiro KOSAKI)
10:07 AM Revision 005db82d (git): * thread.c (rb_thread_wait_fd_rw): fix infinite loop bug.
rb_wait_for_single_fd() never return positive number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:24 AM Revision dff59f6c (git): * lib/rdoc/encoding.rb: Do not remove #! line from document when
setting encoding. This allows ruby executables to be parsed as ruby
files.
* test/rdoc/test_rdoc_encoding.rb: Test for above.
* lib/rdoc/parser.rb: Set the parser file name of ruby executables
correctly.
* test/rdoc/test_rdoc_par...
drbrain (Eric Hodel)
07:46 AM Revision aa233d3f (git): * doc/syntax/literals.rdoc: Used simplified heredoc example that
doesn't include method definition. Added heredoc with backticks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:39 AM Revision 69dfd5e0 (git): * lib/rdoc/store.rb: Work around RDoc stores from older versions of
RDoc.
* test/rdoc/test_rdoc_store.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:31 AM Revision 2e881bd5 (git): * lib/rdoc/ruby_lex.rb: Return a TkHEREDOC instead of a TkSTRING when
the heredoc identifier is followed by a line-end. This allows proper
display of some HEREDOCs in source view.
* lib/rdoc/ruby_token.rb: Added TkHEREDOC
* test/rdoc/test_rdoc_ruby_lex.rb: Test for above.
git-svn-id: svn+ssh://ci.ru...
drbrain (Eric Hodel)
05:28 AM Bug #7554 (Closed): TracePoint#defined_class doesn't return Class or Module
This issue was solved with changeset r38430.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_trace.c (fill_id_and_klass): TracePoint#defined_class retu...
ko1 (Koichi Sasada)
04:35 AM Feature #7414: Now that const_get supports "Foo::Bar" syntax, so should const_defined?.
I have been working on a patch, but I have some questions about expected behavior.
In the case when the parent is missing, for example:
# Foo is missing
Object.const_defined?("Foo::Bar")
should it return false? Or raise...
benolee (Ben Holley)
04:31 AM Revision 84e3e844 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:30 AM Revision 606b66db (git): * vm.c (rb_vm_make_jump_tag_but_local_jump): take care of the case
TAG_JUMP() with TAG_FATAL (ex. rb_fatal()).
* test/ruby/test_fiber.rb (test_fatal_in_fiber): add a test for above.
* ext/-test-/fatal/extconf.rb, ext/-test-/fatal/rb_fatal.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38...
nagachika (Tomoyuki Chikanaga)
04:26 AM Bug #7584 (Closed): Ruby hangs when shutting down an ssl connection in gc finalization
It appears that during garbage collection ruby will sometimes attempt to shutdown an ssl connection that has already been shutdown. At least in certain cases this causes the SSL_shutdown call to block forever.
(gdb) bt
#0 0xb76fa424...
bpot (Bob Potter)
04:18 AM Revision ec3226d8 (git): * vm_trace.c (tracepoint_attr_defined_class): Clean up rdoc for
TracePoint#defined_class
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:16 AM Revision dbc8565f (git): typos in changelog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:59 AM Feature #7549: A Ruby Design Process
=begin
@headius @naruse Regardless of what might be thought of my idea, at least this much should be clear. Directly from the Rubinius home page:
((*"A large aspect of popular languages such as C and Java is that the majority of the ...
trans (Thomas Sawyer)
03:44 AM Feature #7549: A Ruby Design Process
Right now, the easiest way to change ruby is to change ruby, without asking anything.
Almost all feature requests are silently ignored. Others are explicitly rejected. I don't think a feature request sequence like matz says works. ...
shyouhei (Shyouhei Urabe)
03:16 AM Revision b06dfe59 (git): * lib/rubygems/specification.rb: Fixed ruby output of requirements
with multiple version specifiers.
* test/rubygems/test_gem_ext_cmake_builder.rb: Only look for specific
lines in cmake output. Should fix [ruby-trunk - Bug #7579]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38438 b2dd03c8-39d...
drbrain (Eric Hodel)
02:48 AM Revision 87f099d0 (git): * doc/syntax/literals.rdoc: Added 0o octal integers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
02:44 AM Bug #7504 (Closed): Rdoc for OptionParser (remove "developer documentation" from Rdoc output)
This issue was solved with changeset r38428.
Marcus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/optparse.rb: Remove 'developer documentation' section fro...
zzak (zzak _)
02:37 AM Bug #7582 (Closed): a mistake in Matrix#lup RDoc
This issue was solved with changeset r38425.
py, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/matrix.rb (#dup): typo in example [ruby-core:50946][Bug #7582]
zzak (zzak _)
01:15 AM Bug #7582 (Closed): a mistake in Matrix#lup RDoc
http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/38300/entry/lib/matrix.rb#L1203
> # l * u == a * p # => true
http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/38300/entry/lib/matrix/lup_deco...
pypypy567 (py _)
02:33 AM Bug #7564: r38175 introduces incompatibility
mame-san, how about this ticket?
ko1 (Koichi Sasada)
02:32 AM Revision 831af844 (git): * test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in
test_tls_v1_2 to prevent upstream bug.
[Bug #7197] [ruby-dev:46240]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
02:06 AM Revision c2606d23 (git): Show $LOAD_PATH and RUBYLIB to debug easier
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:04 AM Revision e814e2ff (git): * test/openssl/test_ssl.rb: Improve my grammar.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
02:02 AM Revision 84f1dae9 (git): * ext/openssl/lib/ssl.rb: Enable insertion of empty fragments as a
countermeasure for the BEAST attack by default. The default options
of OpenSSL::SSL:SSLContext are now:
OpenSSL::SSL::OP_ALL & ~OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS
[Bug #5353] [ruby-core:39673]
* test/openssl/test_ssl.rb:...
MartinBosslet (Martin Bosslet)
01:34 AM Bug #7583 (Closed): Update DTrace probes description in Wiki
The wiki [1] seems to be outdated. There are missing several probes descriptions, as discussed in [ruby-core:46870]
[1] http://bugs.ruby-lang.org/projects/ruby/wiki/DTraceProbes
vo.x (Vit Ondruch)

12/17/2012

11:00 PM Bug #7572 (Assigned): クラス定義においてスーパークラスとしてクラスでないものを指定してもエラーにならない事がある
前田です。
tadf (tadayoshi funaba) wrote:
> クラス定義においてスーパークラスとしてクラスでないものを指定してもエラーにならない事がある。
> ...
以下のように、コンパイルすると'class Foo; end'と'class Foo < nil; end'が同じ命令列に
なってしまうためのようです。
$ cat defineclass.rb
ary = RubyVM::InstructionSequence.co...
shugo (Shugo Maeda)
10:08 PM Revision f5a32acb (git): fix ChangeLog comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:04 PM Revision 256c5f25 (git): * method.h: remove `VM_METHOD_TYPE_CFUNC_FRAMELESS' method type.
This method type is for optimized CFUNC such as Fixnum#+ and so on.
This feature is half-baked and no way to use them.
[Background]
Now, VM has opt_plus instructions to optimize `+' methods for
some Classes (such as Fixnum, Float...
ko1 (Koichi Sasada)
09:48 PM Bug #7581 (Closed): DTrace test should be executed against RUNRUBY
This issue was solved with changeset r38424.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Use EnvUtil.rubybin instead of Gem.ruby
[ruby-core:50943] [Bug #7...
naruse (Yui NARUSE)
08:24 PM Bug #7581 (Closed): DTrace test should be executed against RUNRUBY
Currently, the DTrace tests are executed using system Ruby [1], which is apparently wrong, since system Ruby might be of different version or may not be available. The tests should be executed against RUNRUBY, which were just build.
[...
vo.x (Vit Ondruch)
08:28 PM Revision 6247099f (git): * vm_trace.c (fill_id_and_klass): TracePoint#defined_class returns
singleton class. `set_trace_func' passed attached class (which is
attached/modified by singleton class) by 6th block parameter if it
is singleton class. Previous behavior follows this spec.
However, this method named `defined_class...
ko1 (Koichi Sasada)
08:25 PM Bug #7569 (Closed): siphash.c / endian.h
This issue is marked as duplicate of #7347 and #7470.
If you find Solaris 11 and/or Solaris x86 specific problems, please submit another report.
ngoto (Naohisa Goto)
01:50 PM Bug #7569: siphash.c / endian.h
You are right, and I should have searched more thoroughly. orban (Tuples Arefun)
01:25 PM Bug #7569 (Feedback): siphash.c / endian.h
It seems it is the same as #7470. Please try the following solution.
In [ruby-core:50377] [Backport93 - Backport #7470], usa (Usaku NAKAMURA) wrote:
It's already fixed on the repository, but not released yet.
Check out r37593 or l...
ngoto (Naohisa Goto)
08:06 PM Bug #7579 (Assigned): TestGemExtCmakeBuilder#test_self_build failed in ja_JP.UTF-8 locale
luislavena (Luis Lavena)
07:25 AM Bug #7579 (Closed): TestGemExtCmakeBuilder#test_self_build failed in ja_JP.UTF-8 locale
TestGemExtCmakeBuilder#test_self_build failed in ja_JP.UTF-8 locale.
It should set locale C before invoking make.
Attached patch will revolve this issue.
1) Failure:
test_self_build(TestGemExtCmakeBuilder) [.../ruby/test/rubygems...
znz (Kazuhiro NISHIYAMA)
06:49 PM Bug #7107 (Closed): Ruby can no longer find constants in methods in anonymous modules
This issue was solved with changeset r38423.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* class.c (rewrite_cref_stack, clone_method): rewrite a method's ...
Anonymous
06:04 PM Revision 4654d75e (git): * ext/psych/lib/psych/visitors/to_ruby.rb: speed up node mapping so
common cases are evaluated first. Thanks Kevin Menard!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
05:44 PM Revision c60e45f1 (git): * lib/optparse.rb: Remove 'developer documentation' section from rdoc
Patch by Marcus Stollsteimer [ruby-core:50526][Bug #7504]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:37 PM Revision 08d59967 (git): typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:37 PM Revision b02141ad (git): * 2012-12-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:36 PM Revision f2a997d8 (git): * lib/matrix.rb (#dup): typo in example [ruby-core:50946][Bug #7582]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:14 PM Feature #7580 (Assigned): Range translation
charliesome (Charlie Somerville) wrote:
> Do you propose that (({Range#<<})) would use (({#-})) and (({Range#>>})) would use (({#+})), or would it be a different method call internally?
Don't use +/- and use <</>> or Range#shift().
...
naruse (Yui NARUSE)
03:03 PM Feature #7580: Range translation
I would normally agree that 'shift' would be the proper term except that it's used in Array already which could cause a bit of confusion. dummey (Ricky Ng)
03:02 PM Feature #7580: Range translation
=begin
Do you propose that (({Range#<<})) would use (({#-})) and (({Range#>>})) would use (({#+})), or would it be a different method call internally?
I am happy with both alternatives, I just want nice convenience methods for this o...
Anonymous
02:57 PM Feature #7580: Range translation
I think such arithmetic is not addition/subtraction, but shift. naruse (Yui NARUSE)
02:43 PM Feature #7580 (Assigned): Range translation
=begin
I would like to propose the (({#+})) and (({#-})) methods on (({Range})).
These would be useful for translating ranges - for example, given a range where the endpoints are 1-indexed, the range could be translated by 1 in the n...
Anonymous
04:13 PM Feature #7549: A Ruby Design Process
@brixen I feel that your proposed process is requesting too many changes all at once. We need to take small steps.
I humbly suggest that we rely on prior works. Let's borrow from our neighbours, by adapting the processes other langua...
nathany (Nathan Youngman)
01:42 PM Feature #7548: Load and Require Callbacks
> It seems that you are shaping and changing your suggestion with each new post,
> ...
Sorry. It's a process and discussion sort of request, which is why I presented it first with a question.
> But the way I see it, your suggestions bel...
trans (Thomas Sawyer)
02:49 AM Feature #7548: Load and Require Callbacks
It seems that you are shaping and changing your suggestion with each new post,
so it is a bit hard to react. But the way I see it, your suggestions belong
somewhere to Std-lib 'debug'. Perhaps it might be possible to change stdlib
'de...
Anonymous
01:28 AM Feature #7548: Load and Require Callbacks
=begin
Some additional thoughts on this. It occurs to me that #prepend would make this a ((*little*)) easier now. One could do:
module LoadCallbacks
def load(*args)
super(*args)
$stderr.puts "load: %s" % [args.in...
trans (Thomas Sawyer)
12:48 PM Revision 8dcc5ec8 (git): Use EnvUtil.rubybin instead of Gem.ruby
[ruby-core:50943] [Bug #7581]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:49 AM Bug #7566: Escape (\u{}) forms in Regexp literals
brixen (Brian Ford) wrote:
> Are you saying you can represent \b as a \u{} escape sequence in a Regexp?
No.
(1) \b (word boundary), \s (spaces and tabs) and so on are can't expressed as bytes
(2) so escapes are not converted to byt...
naruse (Yui NARUSE)
11:38 AM Bug #7566: Escape (\u{}) forms in Regexp literals
Are you saying you can represent \b as a \u{} escape sequence in a Regexp? brixen (Brian Shirai)
11:12 AM Bug #7566 (Rejected): Escape (\u{}) forms in Regexp literals
Because Regexp Literals are not String Literals, and escapes in them have different meanings.
For example \b, it is word boundary in Regexp but BEL in String.
People will need to distingish word boundary from BEL, so \b must be showed ...
naruse (Yui NARUSE)
09:49 AM Revision a70bb888 (git): * class.c (rewrite_cref_stack, clone_method): rewrite a method's cref
stack when cloning into a new class to allow lexical const lookup to
work as expected [ruby-core:47834] [Bug #7107]
* test/ruby/test_class.rb (class TestClass): related test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38423 b2dd...
Charlie Somerville
06:56 AM Feature #7436: Allow for a "granularity" flag for backtrace_locations
A flag that's enabled at runtime would not really work, since optimizations might already have happened. There needs to be a way to specify that optimizations should be off. In JRuby, the simplest way to do that is to turn off the compil... headius (Charles Nutter)
05:47 AM Feature #6762: Control interrupt timing
Could someone write up a summary of the current status on the wiki? I'm having trouble sorting out what has been implemented and what's just proposed at this point. headius (Charles Nutter)
05:04 AM Revision 6d8ad6c4 (git): * io.c (io_flush_buffer_sync2): avoid to return 0. because
rb_thread_call_without_gvl2 uses 0 internally.
* io.c (io_flush_buffer_async2): adapt the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
03:05 AM Revision 73b244d0 (git): * doc/syntax/methods.rdoc: Added a description of singleton methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
02:36 AM Revision 85d3d572 (git): * doc/.document: Added doc/syntax
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
02:26 AM Revision 29fd5934 (git): * doc/syntax.rdoc: Added syntax guide table of contents
* doc/syntax/exceptions.rdoc: Syntax guide for exceptions
* doc/syntax/literals.rdoc: Syntax guide for literals
* doc/syntax/methods.rdoc: Syntax guide for methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38419 b2dd03c8-39d...
drbrain (Eric Hodel)

12/16/2012

11:56 PM Bug #953: 深い入れ子の配列の取り扱いで落ちる
[ruby-dev:46721]の詳細は以下のようになります。
1. rb_exec_recursive等により一回マシンスタックを突き破ってSIGSEGVが発生。
(ちなみに、このときのメモリレイアウトをhttps://gist.github.com/4249318の「#953のnest.rb実行時にSystemStackErrorとなった際の例」にまとめています)

2. sigsegv関数が呼ばれるがその処理の中でaltstackを突き...
ktsj (Kazuki Tsujimoto)
11:11 PM Bug #953: 深い入れ子の配列の取り扱いで落ちる
うーん、r38409はSIGSEGVが起きた「後」、もう一回SIGSEGしてしまってバックトレースが正しく採取できない問題に対するパッチなのでSIGSEGVを起きなくさせる効果はないはずなんですが・・・・ kosaki (Motohiro KOSAKI)
10:35 AM Bug #953 (Closed): 深い入れ子の配列の取り扱いで落ちる
r38409にて問題が修正されたことを確認できたのでクローズしておきます。(Ubuntu 11.10/12.06 x64)
成瀬さんの環境で直っていないようであれば、再オープンしていただけますか。
ktsj (Kazuki Tsujimoto)
11:07 PM Revision 81000829 (git): * lib/rdoc.rb: Updated VERSION.
* lib/rdoc/markup/attribute_manager.rb: Removed useless empty check.
* lib/rdoc/markup/to_markdown.rb: Support links from other formats.
* lib/rdoc/markup/formatter.rb: ditto.
* lib/rdoc/markup/to_html.rb: di...
drbrain (Eric Hodel)
11:00 PM Revision 10295ab2 (git): * 2012-12-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:00 PM Revision 92443fcc (git): * lib/rubygems.rb: Updated VERSION
* test/rubygems/test_gem_installer.rb: Fixed ambiguous first argument
warning.
* test/rubygems/test_gem_rdoc.rb: RDoc generation depends on installed
version of RDoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38416 b2dd0...
drbrain (Eric Hodel)
07:13 PM Bug #7575 (Closed): Struct のメンバーをアクセサで参照できない事がある
Struct のメンバーをアクセサで参照できない事がある。
$ ruby -v -e 'Foo = Struct.new("Foo", "a", "b\000"); foo = Foo.new(1,2); p foo.send("a"); p foo.send("b\000")'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
1
-e:1:in `<main>': undefined method `...
tadf (tadayoshi funaba)
07:03 PM Bug #7574 (Closed): 名前についてのエラーメッセージが正しくない事がある
名前についてのエラーメッセージが正しくない事がある。
$ ruby -v -e 'instance_variable_get("@foo\000")'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
-e:1:in `instance_variable_get': `@foo' is not allowed as an instance variable name (NameError)
$ rub...
tadf (tadayoshi funaba)
06:59 PM Bug #7573 (Closed): const_get の引数検査が甘い
const_get の引数検査が甘い。
$ ruby -v -e '::FOO = 9; p Object.const_get("FOO\000")'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
9
$ ruby -v -e '::FOO = 9; p Object.const_get("FOO::")'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686...
tadf (tadayoshi funaba)
06:57 PM Bug #7572 (Closed): クラス定義においてスーパークラスとしてクラスでないものを指定してもエラーにならない事がある
クラス定義においてスーパークラスとしてクラスでないものを指定してもエラーにならない事がある。
$ ruby -v -e 'class Foo < nil; end'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
$ ruby -v -e 'class Foo < false; end'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
$...
tadf (tadayoshi funaba)
12:53 PM Bug #7568 (Assigned): Yaml fails to encode zero date string.
=begin
This was fixed in r37288.
It might be worth backporting the fix to 1.9.3. Thoughts tenderlove?
=end
Anonymous
10:55 AM Bug #7571 (Closed): RDoc documentation bug in Regexp#===
RDoc documentation for `Regexp#===' says:
Case Equality—Synonym for Regexp#=~ used in case statements.
but it is not a synonym for `Regexp#=~' as `Regexp#===' returns `true' or `false' and `Regexp#=~' return an integer or `nil`.
sawa (Tsuyoshi Sawada)
03:13 AM Bug #7566: Escape (\u{}) forms in Regexp literals
I'd argue that's a malformed Regexp and "round-tripping" shouldn't be expected to work.
sasha:rubinius brian$ irb
1.9.3p327 :001 > re = /[\\\u{5d}]/
=> /[\\\u{5d}]/
1.9.3p327 :002 > re2 = Regexp.new re
=> /[\\\u{5d}]/
1.9.3p3...
brixen (Brian Shirai)
02:56 AM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
Following patch fix this issue, I think.
diff --git a/lib/monitor.rb b/lib/monitor.rb
index 07394b5..30701c7 100644
--- a/lib/monitor.rb
+++ b/lib/monitor.rb
@@ -215,6 +215,10 @@ module MonitorMixin
end
alias synchronize m...
kosaki (Motohiro KOSAKI)
02:02 AM Bug #5993: Thread.new{ Fiber.new { Thread.exit }.resume }.join で例外
Fiber内で rb_fatal() を呼んだ時の問題は http://bugs.ruby-lang.org/issues/7570 として新しくチケットを作成しました。 nagachika (Tomoyuki Chikanaga)
12:46 AM Bug #5993 (Closed): Thread.new{ Fiber.new { Thread.exit }.resume }.join で例外
This issue was solved with changeset r38414.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* cont.c (rb_fiber_start): don't enqueue Qnil to async_errinf...
nagachika (Tomoyuki Chikanaga)
02:01 AM Bug #7570 (Closed): rb_fatal() in Fiber don't terminate process
rb_fatal() (C function) should terminate whole script.
Thread.start{
rb_fatal() # a extension library method calling rb_fatal()
}.resume
p :ng # => never reached here
But rb_fatal() inside Fiber could be ignored.
...
nagachika (Tomoyuki Chikanaga)
01:22 AM Bug #7569 (Closed): siphash.c / endian.h
siphash.c includes endian.h, but on Solaris, there is no such file. BYTE_ORDER also does not exist.
There needs to be a different solution.
This makes it impossible to compile ruby.
SunOS abc.local 5.11 joyent_20120912T055050Z i...
orban (Tuples Arefun)

12/15/2012

11:55 PM Feature #4085: Refinements and nested methods
Sorry, I'm arriving late (and I didn't read all discussion yet), but I've heard the ruby core team is looking for feedback on refinements, and I feel I must give my 2 cents.
What if refinements were truly, strictly lexically scoped? N...
sonysantos (Sony Santos)
11:38 PM Bug #6058 (Closed): Stack overflow in SEGV Handler
#7141 で理由が判明したのでcloseします kosaki (Motohiro KOSAKI)
11:38 PM Bug #7141: ALT_STACK_SIZE is not enough
こういうのも取れました。ようするにglibcのvfprintfもruby内蔵のvfprintfと同じぐらいスタックを使うので(おそらく理由も同じ)
まったく同じことが起きているようです。
これは、そもそもfprintfを使っているのが間違いなので、全部書き換えるべきなんですが、2.0では単純にスタックサイズを増やして
逃げます。
altstack: 0x7ffff7d92000-0x7ffff7d93000...0x7ffff7d94000-0x7fff...
kosaki (Motohiro KOSAKI)
11:20 PM Bug #7141 (Closed): ALT_STACK_SIZE is not enough
This issue was solved with changeset r38409.
Narihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* signal.c (rb_sigaltstack_size): new. calculate stack size f...
kosaki (Motohiro KOSAKI)
10:30 PM Bug #7141: ALT_STACK_SIZE is not enough
うちではこんな感じになりました。
setarch x86_64 -R ./miniruby -e 'Process.kill :SEGV, $$'
-----------------------------------------
altstack: 0x7ffff7d83000-0x7ffff7d84000...0x7ffff7d85000-0x7ffff7d86000
...
kosaki (Motohiro KOSAKI)
09:09 PM Bug #7568 (Closed): Yaml fails to encode zero date string.
"0000-00-00 00:00:00".to_yaml fails with an ArgumentError.
Reproducing steps
In irb type,
require 'yaml'
"0000-00-00 00:00:00".to_yaml
What was expected
=> "--- '0000-00-00 00:00:00'\n"
What happened
Argum...
anshul (Anshul Khandelwal)
05:10 PM Revision 44b4b906 (git): * signal.c (rb_sigaltstack_size): cast sysconf() return value
explicitly. Fix compile error on Mac OS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
03:46 PM Revision 54619f8d (git): * cont.c (rb_fiber_start): don't enqueue Qnil to async_errinfo_queue.
rb_vm_make_jump_tag_but_local_jump() could return Qnil (ex. when
finished by Thread.exit). [ruby-dev:45218] [Bug #5993]
* test/ruby/test_fiber.rb (test_exit_in_fiber): add test for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
nagachika (Tomoyuki Chikanaga)
03:04 PM Revision 48bcb55c (git): * ext/fiddle/pointer.c (rb_fiddle_ptr2cptr): fix error message forgotten to be changed from DL to Fiddle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ngoto (Naohisa Goto)
03:00 PM Revision 438cca57 (git): * 2012-12-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision 9d960e38 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:20 PM Revision 0e19d2b4 (git): * signal.c (default_handler): remove rb_register_sigaltstack()
call. sigaltstack was already registered when creating threads.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
02:20 PM Revision aff9dff4 (git): * signal.c (rb_sigaltstack_size): new. calculate stack size for
sigsegv handler. enlarge value when x86 or x86_64 on Linux.
Linux has very small MINSIGSTKSZ size (2048 bytes) and
our sigsegv routine need 5KiB at least. [Bug #7141]
* internal.h: add declaration of rb_sigaltstack_size().
* vm_core....
kosaki (Motohiro KOSAKI)
12:25 PM Bug #7107: Ruby can no longer find constants in methods in anonymous modules
=begin
Nobu, I have found the cause of the bug - the cref_stack of methods are not fixed up to point to the new class/module when the class/module is duped.
Do you want me to commit it or attach it here for your review?
=end
Anonymous
10:53 AM Bug #7566: Escape (\u{}) forms in Regexp literals
=begin
Converting any of the regexp special characters could cause a syntax error or warning if the user tries to round-trip the regexp, so I think this is not a bug:
$ ruby20 -ve 'p("\u{5d}", /[\u{5d}]/)'
ruby 2.0.0dev (2012-12...
drbrain (Eric Hodel)
10:06 AM Bug #7566 (Rejected): Escape (\u{}) forms in Regexp literals
Why are \u{} escape sequences in Regexp literals not converted to bytes like they are in String literals?
https://gist.github.com/4290155
Thanks,
Brian
brixen (Brian Shirai)
09:55 AM Bug #7565 (Closed): Redundant functions in ruby-additional.el
ruby-toggle-block, ruby-do-end-to-brace, ruby-brace-to-do-end and ruby-mode-set-encoding are very much present in Emacs trunk, and the first one is bound to the same key combination as in ruby-additional. dgutov (Dmitry Gutov)
09:39 AM Bug #6854: ruby-mode.el has radical changes in `ruby-deep-indent-paren' logic
> Use Emacs-bundled ruby-mode.el.
I'm maintaining it.
Should I stop merging changes from this ruby-mode into Emacs-bundled version?
dgutov (Dmitry Gutov)
09:25 AM Revision cbe5f882 (git): * rational.c (f_round_common): should check overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
09:01 AM Revision 81af1bd9 (git): * ratioanl.c (float_rationalize): reduced.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
08:46 AM Bug #7563 (Closed): test of gem_ext_cmake_builder in another directory
I committed it at r38390.
tarui (Masaya Tarui)
06:49 AM Bug #7563: test of gem_ext_cmake_builder in another directory
Please commit it, I will apply it to RubyGems.
I guess I didn't catch it because I build from $(srcdir)/../build?
drbrain (Eric Hodel)
01:13 AM Bug #7563 (Closed): test of gem_ext_cmake_builder in another directory
would you commit it? or can I ?
Index: test/rubygems/test_gem_ext_cmake_builder.rb
===================================================================
--- test/rubygems/test_gem_ext_cmake_builder.rb (revision 38369)
+++ test/rubyge...
tarui (Masaya Tarui)
07:29 AM Revision 985fe773 (git): test_gem_remote_fetcher.rb: restore environment variables
* test/rubygems/test_gem_remote_fetcher.rb (setup, teardown): always
restore environment variables fo http proxy, to get rid of sporadic
warnings from URI::Generic#find_proxy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38406 ...
nobu (Nobuyoshi Nakada)
07:18 AM Revision 43f79162 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:47 AM Bug #7344: gem pristine bigdecimal が失敗してしまう
=begin
I think I understand the comments on this bug thanks to google translate but please inform me of anything important I did not address.
Using recent ruby and rubygems:
$ gem20 env
RubyGems Environment:
- RUBYGEMS V...
drbrain (Eric Hodel)
06:36 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
> Please check my ChangeLog message for accuracy.
Looks correct. thank you!
kosaki (Motohiro KOSAKI)
06:21 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
Please check my ChangeLog message for accuracy. drbrain (Eric Hodel)
06:18 AM Bug #7485 (Closed): ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
This issue was solved with changeset r38386.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in (HAVE_GCC_ATOMIC_BUILTINS): Set -march=i486 to en...
drbrain (Eric Hodel)
04:20 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
I have confirmed it fixes mingw32 as well, I will commit it after lunch. Thanks for the patch! drbrain (Eric Hodel)
06:10 AM Revision 691ee91c (git): * proc.c (rb_binding_new_with_cfp): allocate the object after envirionment check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:10 AM Revision 2ca5e8ee (git): * parse.y (yycompile0): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:40 AM Revision 771f6927 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
05:40 AM Revision 7fbaa0be (git): * io.c (finish_writeconv): uses rb_write_internal2 if
fptr->write_lock have.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
05:40 AM Revision e78d4e69 (git): * thread.c (rb_mutex_owned_p): remove static.
* io.c (io_flush_buffer): don't hold mutex if already have.
Now recursive lock may occur when following scenario.
fptr_finalize -> finish_writeconv_sync -> finish_writeconv
-> io_fflush.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
kosaki (Motohiro KOSAKI)
05:40 AM Revision 9bd33790 (git): * io.c (io_flush_buffer): uses io_flush_buffer_async2 instead of
io_flush_buffer_async.
* io.c (io_flush_buffer_async2): new helper function for
io_flush_buffer. It uses rb_thread_call_without_gvl2() instead
of rb_thread_io_blocking_region.
* io.c (io_flush_buffer_sync2): new helper function for
...
kosaki (Motohiro KOSAKI)
05:39 AM Revision 2a4d86f3 (git): * io.c (internal_write_func2): new helper function for rb_write_internal2().
* io.c (rb_write_internal2): new function. it uses
rb_thread_call_without_gvl2() instaed of rb_thread_io_blocking_region().
* io.c (rb_binwrite_string): uses rb_write_internal2 instead of
rb_write_internal. [Bug #7134]
git-svn-id: s...
kosaki (Motohiro KOSAKI)
05:39 AM Revision 96350867 (git): * io.c (rb_io_wait_writable): add to call rb_thread_wait_fd()
likes rb_io_wait_readable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
05:39 AM Revision 70df4dec (git): * io.c (rb_io_wait_writable): don't call rb_thread_fd_writable()
when EINTR. EINTR mean signal interrupt was happen. We don't
need any wait.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
05:39 AM Revision 47fa7920 (git): * thread.c (rb_thread_wait_fd_rw): remove silly rb_thread_alone()
check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
04:20 AM Bug #7560: Process.kill incurs 100ms cost when threads exist
@normalperson: I agree. I removed rb_thread_polling() today then. :)
kosaki (Motohiro KOSAKI)
02:53 AM Bug #7560: Process.kill incurs 100ms cost when threads exist
"tmm1 (Aman Gupta)" <ruby@tmm1.net> wrote:
> Issue #7560 has been reported by tmm1 (Aman Gupta).
>
> ----------------------------------------
> Bug #7560: Process.kill incurs 100ms cost when threads exist
> https://bugs.ruby-...
normalperson (Eric Wong)
12:12 AM Bug #7560 (Closed): Process.kill incurs 100ms cost when threads exist
This issue was solved with changeset r38380.
Aman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* signal.c (rb_f_kill): remove rb_thread_polling() because this
...
kosaki (Motohiro KOSAKI)
03:02 AM Bug #7564 (Closed): r38175 introduces incompatibility
r38175 introduces incompatibility with 1.9.3. Before r38175, when looking for _dump, Marshal would not call method_missing. Now marshal calls method_missing when trying to dump.
The following example exits with no error on 1.9.3, bu...
tenderlovemaking (Aaron Patterson)
01:39 AM Revision 2ed40d3b (git): * configure.in (NULLCMD): check in loop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:39 AM Revision 67c599a5 (git): * configure.in (GNUmakefile): remove -jN option from submake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:39 AM Revision c9942510 (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:22 AM Revision ce6a2c7f (git): thread.c: revert r38382 but deprecate rb_thread_polling()
* thread.c (rb_thread_polling): revert but deprecate.
* include/ruby/intern.h (rb_thread_polling): deprecate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:05 AM Bug #7562: __FILE__ encoding in Windows
肝心の元報告者の名前の部分がメールの引用から抜けていました。
失礼いたしました。
whiteleaf さんです。
tarui (Masaya Tarui)
12:40 AM Bug #7562 (Closed): __FILE__ encoding in Windows
[ruby-list:49085] ですが、bugっぽいので勝手にバグ登録させていただきます。
trunkでも同じでした。
---
Ruby2.0.0 の挙動について疑問があるので質問させて頂きます。
WindowsXP上のコンソールからパスに日本語を含むスクリプトを起動した場合に、
__FILE__ のエンコーディング(String#encoding がではなくデータ的な意味で)
が UTF-8 になるのは仕様変更なのでしょうか。(コンソールから指定し...
tarui (Masaya Tarui)

12/14/2012

11:40 PM Revision cb6917d9 (git): * test/rubygems/test_gem_ext_cmake_builder.rb(test_self_build):
get rid of false positive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
11:14 PM Revision d8bc991a (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:11 PM Revision 4bcfc171 (git): * test/ruby/test_thread.rb (test_uninitialized, test_backtrace,
test_thread_timer_and_interrupt, test_thread_join_in_trap,
test_thread_join_current, test_thread_join_main_thread,
test_main_thread_status_at_exit, test_thread_status_in_trap,
test_thread_status_raise_after_kill, test_mutex_owned,
test_m...
kosaki (Motohiro KOSAKI)
11:11 PM Revision 3074406b (git): * test/ruby/test_thread.rb (TestThread::Thread::new.): remove
th.abort_on_exception change. Test template shouldn't change
global flag. It prevent to test a normal case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
10:22 PM Bug #7560 (Closed): Process.kill incurs 100ms cost when threads exist
% ruby -rbenchmark -e' puts Benchmark.measure{ Process.kill(0, Process.pid) } '
0.000000 0.000000 0.000000 ( 0.000011)
% ruby -rbenchmark -e' Thread.new{sleep}; puts Benchmark.measure{ Process.kill(0, Process.pid) } '
...
tmm1 (Aman Karmani)
09:18 PM Revision 40f89c17 (git): * configure.in (HAVE_GCC_ATOMIC_BUILTINS): Set -march=i486 to enable
__sync_val_compare_and_swap. Patch by KOSAKI Motohiro.
[ruby-trunk - Bug #7485]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:25 PM Revision 2d5fc17f (git): * include/ruby/intern.h: remove rb_thread_polling() declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
06:59 PM Revision 688f3ec6 (git): vm_trace.c: suppress warning
* vm_trace.c (exec_hooks): suppress unused-variable warning by
RB_UNUSED_VAR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:47 PM Revision 13b20230 (git): * ext/.document: add fiddle/pointer.c, fiddle/handle.c, and fiddle/win32/lib as documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ngoto (Naohisa Goto)
06:29 PM Bug #7556: test error on refinement
2012/12/14 shugo (Shugo Maeda) <redmine@ruby-lang.org>
>
>
> Issue #7556 has been updated by shugo (Shugo Maeda).
>
>
> phasis68 (Heesob Park) wrote:
> > It seems that inline or __inline is not respected by the compiler
...
phasis68 (Heesob Park)
05:57 PM Bug #7556: test error on refinement
phasis68 (Heesob Park) wrote:
> It seems that inline or __inline is not respected by the compiler (ignored by compiler cost/benefit analyzer)
> ...
I know it, but I don't know why __forceinline prevent user functions (in this case, vm_...
shugo (Shugo Maeda)
05:41 PM Bug #7556: test error on refinement
It seems that inline or __inline is not respected by the compiler (ignored by compiler cost/benefit analyzer)
Refer to http://en.wikipedia.org/wiki/Inline_function
phasis68 (Heesob Park)
05:04 PM Bug #7556 (Closed): test error on refinement
This issue was solved with changeset r38377.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_insnhelper.c (vm_call_super_method): remove volatile introd...
shugo (Shugo Maeda)
04:55 PM Bug #7556: test error on refinement
phasis68 (Heesob Park) wrote:
> Here is a different workaround using __forceinline on vm_call_method function.
> ...
Thanks, it solves the problem without the optimize progma for rb_call_super_method, and performance decrease hasn't be...
shugo (Shugo Maeda)
03:59 PM Bug #7556: test error on refinement
Here is a different workaround using __forceinline on vm_call_method function.
static
#ifdef _MSC_VER
__forceinline
#else
inline
#endif
VALUE
vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
{
.....
phasis68 (Heesob Park)
03:13 PM Bug #7556: test error on refinement
phasis68 (Heesob Park) wrote:
> Here is a modified version which does not disable function inline expansion.
> ...
I also tried it, but couldn't see improvement:
C:\Users\shugo\Documents\Source\ruby>\ruby\bin\ruby bm_vm2_super.rb
R...
shugo (Shugo Maeda)
02:51 PM Bug #7556: test error on refinement
Here is a modified version which does not disable function inline expansion.
#ifdef _MSC_VER
#pragma optimize("g",off)
#endif
static VALUE
vm_call_super_method(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)
{
...
phasis68 (Heesob Park)
01:47 PM Bug #7556: test error on refinement
Hello,
phasis68 (Heesob Park) wrote:
> Here is another workaround:
> ...
Thanks for your suggestion.
But it seems that the #pragma optimize( "", off ) version is slightly slower than the volatile int x = 0 version.
with volati...
shugo (Shugo Maeda)
12:44 AM Bug #7556: test error on refinement
Here is another workaround:
#ifdef _MSC_VER
#pragma optimize( "", off )
#endif
static VALUE
vm_call_super_method(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)
{
return vm_call_method(th, reg_cfp, ci);
}
...
phasis68 (Heesob Park)
06:08 PM Revision a24f2d99 (git): * file.c (rb_file_flock): use rb_thread_wait_for() instead of
rb_thread_polling(). When getting EAGAIN, we need to wait a
while even if no multi threading.
* thread.c (sleep_for_polling, rb_thread_polling) removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38382 b2dd03c8-39d4-4d8f-98ff-8...
kosaki (Motohiro KOSAKI)
05:42 PM Feature #7549: A Ruby Design Process
As headius said, I think Rubinius is an implementation which is built with C++, not Ruby.
Anyway, this thread needs following:
* Definition of terms: some use the word "Ruby" for MRI, and others use for the new Ruby Standard. It is m...
naruse (Yui NARUSE)
06:19 AM Feature #7549: A Ruby Design Process
What language Ruby is implemented in is irrelevant to discussions about a feature design process going forward. It might help that process if the implementations of proposed features could be done entirely in Ruby (easier to read and com... headius (Charles Nutter)
02:57 AM Feature #7549: A Ruby Design Process
@jonforums I disagree. It may not be in the same branch of conversation as preceding posts but I do not think it tangential. If the main line of Ruby development were in Ruby itself it would greatly effect this **process**, probably much... trans (Thomas Sawyer)
01:57 AM Feature #7549: A Ruby Design Process
@trans I find your comment distracting and entirely off-topic. Brian opened with "I would like to propose this **process** for making changes to Ruby" and said nothing about specific implementations. Start a new thread on ruby-talk if yo... jonforums (Jon Forums)
01:23 AM Feature #7549: A Ruby Design Process
Personally, I believe the No.1 factor for the better evolution or Ruby is for Ruby to be written in Ruby. Which basically means that Rubinius needs to become the primary implementation instead of MRI. Scoff if you will, but who would dis... trans (Thomas Sawyer)
05:36 PM Bug #7485 (Assigned): ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
@drbrain, could you please commit the patch instead of me? I have no test environment and I don't like commit w/o make test-all.
kosaki (Motohiro KOSAKI)
09:57 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
This patch works, thanks! drbrain (Eric Hodel)
05:11 PM Bug #7559 (Closed): Wrong line number with method call syntax
This issue was solved with changeset r38378.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
parse.y: fix line number
* parse.y (parser_params): parser_toklin...
nobu (Nobuyoshi Nakada)
04:06 AM Bug #7559 (Closed): Wrong line number with method call syntax
以下のような場合に表示される行数がおかしくなります。
def foo(*args)
p caller[0][/\d+/].to_i #=> expected 4 but 8
end
foo "a
b
c
d
e"
def bar(a, b, line)
p a
p line #=> expected 14 but 19
end
def baz
bar __LINE__, <<eom, __LINE__
a
...
naruse (Yui NARUSE)
04:49 PM Bug #7471: character class has duplicated range warning for "" =~ /[\w\W]/
Onigmo doesn't have the code for detecting duplication in character class, so this problem seems to be on our own.
I narrowed the problem down:
% ruby@2.0.0 -EUS-ASCII -W2 -e '/[\D]/=~""'
-e:1: warning: character class has duplica...
knu (Akinori MUSHA)
03:12 PM Revision 2d2cac4b (git): * 2012-12-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:11 PM Revision cb92817e (git): * signal.c (rb_f_kill): remove rb_thread_polling() because this
has no good effect and makes meaningless 100ms delay. 1)
when sending signal to another process, waiting has just silly.
2) when sending signal to current process, 100ms is often not
enough time to wait. It depend on kernel behavio...
kosaki (Motohiro KOSAKI)
08:11 AM Revision c492bc12 (git): parse.y: fix line number
* parse.y (parser_params): parser_tokline to track the line number at
which token started. [ruby-dev:46737] [Bug #7559]
* parse.y (fcall): operation with starting line number.
* parse.y (command, primary, method_call): point method na...
nobu (Nobuyoshi Nakada)
08:11 AM Revision 5a565d5c (git): parse.y: fix line number
* parse.y (parser_params): parser_tokline to track the line number at
which token started. [ruby-dev:46737] [Bug #7559]
* parse.y (fcall): operation with starting line number.
* parse.y (command, primary, method_call): point method ...
nobu (Nobuyoshi Nakada)
08:04 AM Revision 1d7f7375 (git): * vm_insnhelper.c (vm_call_super_method): remove volatile introduced
in r38365.
* vm_insnhelper.c (vm_call_method): use __forceinline to prevent
VC to make vm_call_general and vm_call_super_method as the same
method. Thanks, Heesob Park. [Bug #7556] [ruby-core:50867]
git-svn-id: svn+ssh://ci.ruby-...
shugo (Shugo Maeda)
06:09 AM Revision 72360463 (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:59 AM Revision c97dc42b (git): envutil.rb: using caller_locations
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_separately):
take file and line by using caller_locations if not given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:58 AM Revision 2bd5113c (git): envutil.rb: count assertions
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_separately):
count assertions in separated tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:16 AM Revision 8adec529 (git): * lib/rdoc/rubygems_hook.rb: Fixed generation of documentation.
Disabled rdoc generation by default to match RubyGems defaults.
Reduced diff with RubyGems::RDoc.
* test/rdoc/test_rdoc_rubygems_hook.rb: Tests for the above.
* test/rubygems/test_gem_rdoc.rb: ditto.
* lib/rdoc/store.rb: Removed us...
drbrain (Eric Hodel)
05:09 AM Revision 1dfe3d93 (git): * lib/rubygems/commands/rdoc_command.rb: When overwriting
documentation, remove existing documentation first.
* lib/rubygems/server.rb: Fixed documentation links.
* test/rubygems/test_gem_server.rb: Test for the above.
* lib/rubygems/rdoc.rb: Reduced diff with RDoc::RubyGemsHook
* test/rub...
drbrain (Eric Hodel)
01:38 AM Revision 497f8904 (git): * vm_trace.c (exec_hooks): add volatile to avoid segv.
On test-all with -j, it may crash in TH_POP_TAG.
Detailed mechanism is not known but this fixes it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:38 AM Revision 1e7ef588 (git): Use assert_separately to speed up slow tests
These speed will slow down when there are many objects like test-all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:38 AM Revision bc2195e4 (git): * test/ruby/envutil.rb (EnvUtil::Unit::Assertionsassert_separately):
added to execute given test source on separate process,
catch its resulted exception and raise it on main process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:43 AM Feature #7548: Load and Require Callbacks
=begin
There are have been times when I wanted to see what libraries were being loaded and in what order. Usually because of some esoteric bug, and trying to isolate what libraries are involved. In such a case I've had to manually overri...
trans (Thomas Sawyer)

12/13/2012

11:23 PM Bug #7556: test error on refinement
Hi,

2012/12/13 SASADA Koichi <ko1@atdot.net>:
>> Sasada-san, do you accept this ugly hack, or do you come up with a neat solution?
>
> To answer your question, I need to learn how refinement is implemented.
> Please wait a...
shugo (Shugo Maeda)
11:23 PM Bug #7556: test error on refinement
(2012/12/13 22:32), shugo (Shugo Maeda) wrote:
> Sasada-san, do you accept this ugly hack, or do you come up with a neat solution?

To answer your question, I need to learn how refinement is implemented.
Please wait a moment.
...
ko1 (Koichi Sasada)
10:32 PM Bug #7556: test error on refinement
usa (Usaku NAKAMURA) wrote:
> 1) Error:
> ...
To avoid an infinite loop by super in a refinement, ci->call is used to distinguish super calls from normal calls,
and if it's a super call, skip the same method.
However, VC++ optimizes ...
shugo (Shugo Maeda)
08:23 PM Bug #7556: test error on refinement
On 2012/12/13 20:13, usa (Usaku NAKAMURA) wrote:
>
> Issue #7556 has been reported by usa (Usaku NAKAMURA).

> # Once I wrote the detail of my debuggin, but it is lost by accidenal reboot
> # of my PC.
> # I have no energy t...
duerst (Martin Dürst)
08:13 PM Bug #7556 (Closed): test error on refinement
1) Error:
test_refine_recursion(TestRefinement):
NoMethodError: undefined method `recursive_length' for "oo":String
C:/Users/usa/ruby/test/ruby/test_refinement.rb:567:in `recursive_length'
<main>:in `<main>'
C:/Users/u...
usa (Usaku NAKAMURA)
10:45 PM Revision 2f0095e1 (git): * 2012-12-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:45 PM Revision 8a4cc4e0 (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: quote strings that begin
with non-word characters. Thanks Alex Tambellini!
* test/psych/test_yaml.rb: appropriate test case
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
07:35 PM Bug #7536 (Assigned): local variables added to TOPLEVEL_BINDING in -r are broken
Anonymous
06:28 PM Bug #7197: Error: test_tls_v1_2(OpenSSL::TestSSL)
shugo (Shugo Maeda) wrote:
> I've found that test_tls_v1_2 passes using the TLSv1_2_client method explicitly,
> ...
(snip)
> But, I think this ticket can be just closed as a third party's issue.
I've investigated the problem furthe...
shugo (Shugo Maeda)
05:58 PM Bug #7197: Error: test_tls_v1_2(OpenSSL::TestSSL)
zzak (Zachary Scott) wrote:
> fwiw, I still get this on trunk with ubuntu 12.10
> ...
I've investigated the problem, and found the following description in changelog.Debian.gz:
openssl (1.0.1-4ubuntu1) precise; urgency=low
...
...
shugo (Shugo Maeda)
05:29 PM Bug #7554 (Closed): TracePoint#defined_class doesn't return Class or Module
In some case (using singleton method),
TracePoint#defined_class doesn't return Class or Module.
# example
def self.foo
end
obj = Object.new
def obj.foo
end
module M
def baz
end
end
class C
include M
def se...
ko1 (Koichi Sasada)
04:26 PM Feature #4541: Inconsistent Array.slice()
alexeymuranov (Alexey Muranov) wrote:
> I hope this does not mean that the specification is now based on the implementation :).
I just wanted to point out that the docs now reflect that it is intended behavior and not a bug.
Nothing...
stomar (Marcus Stollsteimer)
10:08 AM Feature #4541: Inconsistent Array.slice()
alexeymuranov (Alexey Muranov) wrote:
> stomar (Marcus Stollsteimer) wrote:
> ...
Actually it kind of is. Hence the term "reference implementation."
One other thing to consider is that `nil` is falseish, but `[]` is trueish.
```...
phluid61 (Matthew Kerwin)
06:54 AM Feature #4541: Inconsistent Array.slice()
stomar (Marcus Stollsteimer) wrote:
> Regarding the OP's criticism of poor API documentation, this has in the meantime been improved (with issue #6680).
I hope this does not mean that the specification is now based on the implementat...
alexeymuranov (Alexey Muranov)
02:53 PM Feature #7549: A Ruby Design Process
On 2012/12/13 13:35, Carlos Agarie wrote:
> Hi,
>
>> I do not want to end Japanese-language discussion, but I believe a
> stronger effort should be made to translate those discussions into English
> so that the rest of the com...
duerst (Martin Dürst)
01:59 PM Feature #7549: A Ruby Design Process
Hello Erik,

On 2012/12/13 0:49, subwindow (Erik Peterson) wrote:
>
> Issue #7549 has been updated by subwindow (Erik Peterson).
>
>
>> What people can do is to persuade matz or fork Ruby.
>
> An attitude like this is ...
duerst (Martin Dürst)
01:53 PM Feature #7549: A Ruby Design Process
2012/12/13 Carlos Agarie <carlos.agarie@gmail.com>:
> Hi,
>
>
>> I do not want to end Japanese-language discussion, but I believe a
>> stronger effort should be made to translate those discussions into English
>> so that the...
naruse (Yui NARUSE)
01:53 PM Feature #7549: A Ruby Design Process
Hi,

> I do not want to end Japanese-language discussion, but I believe a
stronger effort should be made to translate those discussions into English
so that the rest of the community can be informed.

What about some mirror of rub...
agarie (Carlos Agarie)
01:29 PM Feature #7549: A Ruby Design Process
2012/12/13 subwindow (Erik Peterson) <erik@subwindow.com>:
>> And your worry is just illusion. As far as I know, almost all feature
>> discussion was discussed on ruby-core. So no one can solve an
>> illusion.
>
> I have no idea...
naruse (Yui NARUSE)
12:59 PM Feature #7549: A Ruby Design Process
2012/12/13 subwindow (Erik Peterson) <erik@subwindow.com>:
>> What people can do is to persuade matz or fork Ruby.
>
> An attitude like this is almost guaranteed to end in a fork. I do not want Ruby forked.

Imagine you have a grea...
naruse (Yui NARUSE)
08:13 AM Feature #7549: A Ruby Design Process
matz wrote:
> I am against rigid rules that could easily bring us bureaucracy. I am
> ...
Agreed.
I believe what we need is not a rigid process, but dialogues and discussions.
For example, Refinements will be limited and marked...
shugo (Shugo Maeda)
02:38 AM Feature #7549: A Ruby Design Process
My turn!
I'll go point-by-point through the proposal.
1. Ruby Design Council
I like the idea of a central group through which feature discussions must pass. I do not support these discussions being closed or limited to members o...
headius (Charles Nutter)
02:00 AM Feature #7549: A Ruby Design Process
kosaki (Motohiro KOSAKI) wrote:
> We are already discuss by English, right? You can't inhibit face to
> ...
Sorry if I was not clear, but I absolutely do not want to inhibit face-to-face discussion. I'm speaking strictly of online dis...
subwindow (Erik Peterson)
01:53 AM Feature #7549: A Ruby Design Process
> Proper language depend on the communication place. example, I and
> naruse-san talk by English when discussing on ruby-core. but I usually
> use Japanese when I get lunch with matz or other japanese developers.
>
> We are alre...
kosaki (Motohiro KOSAKI)
01:39 AM Feature #7549: A Ruby Design Process
I consider this process to be way over the top. I can appreciate most of Brian's observations about problems in our process, but I really don't like the proposed solutions.
At the very least I feel like incrementally chipping away at...
enebo (Thomas Enebo)
01:23 AM Feature #7549: A Ruby Design Process
>> What people can do is to persuade matz or fork Ruby.
>
> An attitude like this is almost guaranteed to end in a fork. I do not want Ruby forked.
>
>> Standard language of discussion of designing Ruby is C and Ruby.
>> People can...
kosaki (Motohiro KOSAKI)
12:49 AM Feature #7549: A Ruby Design Process
> What people can do is to persuade matz or fork Ruby.
An attitude like this is almost guaranteed to end in a fork. I do not want Ruby forked.
> ...
How are we supposed to persuade matz and the people who have the most influence on...
subwindow (Erik Peterson)
12:23 AM Feature #7549: A Ruby Design Process
Hi,

I am against rigid rules that could easily bring us bureaucracy. I am
also against introducing "class" to the community member. All
community members (but me) have equal right. Some might be more
trustworthy from their...
Anonymous
02:53 PM Bug #3351: stack overflow on super
Hi,
In message "Re: [ruby-core:50857] [ruby-trunk - Bug #3351] stack overflow on super"
on Thu, 13 Dec 2012 14:24:21 +0900, "shugo (Shugo Maeda)" <redmine@ruby-lang.org> writes:
> > Do you think this issue important?
> ...
OK...
Anonymous
02:24 PM Bug #3351: stack overflow on super
mame (Yusuke Endoh) wrote:
> Shugo-san, ko1, what's the status?
Override#foo is called only once, because in the SVN trunk, if a method found by super is the current method, it's skipped to avoid an infinite loop. The check was intr...
shugo (Shugo Maeda)
02:53 PM Feature #7517: Fixnum::MIN,MAX
Hi,

In message "Re: [ruby-core:50849] [ruby-trunk - Feature #7517] Fixnum::MIN,MAX"
on Thu, 13 Dec 2012 10:34:07 +0900, "tarui (Masaya Tarui)" <tarui@prx.jp> writes:

|Hi,
|
|It cannot imagine except the use-case of l...
Anonymous
10:34 AM Feature #7517: Fixnum::MIN,MAX
Hi,
It cannot imagine except the use-case of liking to know how far an integer being treated.
so, I think Integer::MAX better then Fixnum::MAX.
CRuby's Integer::MAX is INFINITY,isn't it?
If I introduce a Integer subclass for ex...
tarui (Masaya Tarui)
02:32 PM Revision 3738ebe1 (git): * object.c (Init_Object): no needs to override with same method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:25 PM Bug #7271 (Closed): Refinement doesn't seem lexical
Refinements are not activated by reopen now, so I close this ticket.
shugo (Shugo Maeda)
02:18 PM Revision a4629a2e (git): * vm_insnhelper.c (vm_call_super_method): a workaround for the
failure of TestRefinement#test_refine_recursion in Windows.
See [ruby-core:50871] for details.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
02:16 PM Bug #7269 (Closed): Refinement doesn't work if using locate after method
Module#using is removed, so I close this ticket.
See https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/RefinementsSpec for scoping of main.using.
shugo (Shugo Maeda)
02:11 PM Revision c01f0608 (git): * object.c (Init_Object): use rb_mod_init_copy for Class#initialize_copy
* class.c (rb_class_init_copy): rename to class_init_copy_check, performs type
checks on arguments to prevent reinitialization of initialized class
[ruby-core:50869] [Bug #7557]
* class.c (rb_mod_init_copy): u...
Charlie Somerville
09:41 AM Revision 6b4687e6 (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
07:58 AM Revision d8c7695f (git): * lib/rdoc/class_module.rb: Fixed duplicate comments for classes and
modules from C.
* test/rdoc/test_rdoc_class_module.rb: Test for the above.
* lib/rdoc/parser/c.rb: Reload C variable names to allow proper
updates of an ri store for C files.
* lib/rdoc/rdoc.rb: ditto.
* lib/rdoc/store.rb: ditto.
...
drbrain (Eric Hodel)
07:21 AM Bug #7262 (Closed): module extension (#include/#prepend) in refinements
r38298とr38328で対応したのでcloseします。
期待と違う動作だったらreopenしてください。 > まつもとさん
shugo (Shugo Maeda)
06:36 AM Feature #7546: Change behavior of `Array#slice` for an argument of `Range` class
In fact, i do not request particularly this part:
a = ['0', '1', '2', '3']
a[4..4] # => [nil]
a[9..9] # => [nil]
a[1..5] # => ['1', '2', '3', nil, nil]
The following alternative, closer to the current behav...
alexeymuranov (Alexey Muranov)
06:29 AM Bug #7107: Ruby can no longer find constants in methods in anonymous modules
additional sample.
d.f referring to M::C is correct? or d::C?
$ ruby -e "module M;C=1;def self.f;C end end;d=M.dup;p M.f;p d.f;d::C=2;p M.f;p d::C;p d.f"
1
1
-e:1: warning: already initialized constant #<Module:0x007ffb39f4c860>::...
tarui (Masaya Tarui)
05:54 AM Bug #7107: Ruby can no longer find constants in methods in anonymous modules
hi,
I found strange behavior.
$ ruby -e "module M;C=1;def self.f;C end end;d=M.dup;p M.f;p d.f;class A;end;p d.f"
1
1
-e:1:in `f': uninitialized constant Module::C (NameError)
from -e:1:in `<main>'
It seems to hold t...
tarui (Masaya Tarui)
06:16 AM Revision a0046fe9 (git): Use different port from test/xmlrpc/test_cookie.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:25 AM Revision 536ecb34 (git): commit typo: remove file from r38358
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:24 AM Revision a747366a (git): reverted r38318.
rubyspec reports that there is incompatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@38359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:22 AM Revision 89833152 (git): * lib/irb*: merge doc from doc/irb/ird.rd and improve overall
documentation of IRB
* doc/irb/irb.rd: remove stale documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:12 AM Revision 0ac361f5 (git): * marshal.c (r_entry0): don't taint classes and modules because
Marshal.load just return the dumped classes and modules.
[Bug #7325] [ruby-core:49198]
* test/ruby/test_marshal.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:11 AM Revision bfb08c1e (git): * test/ruby/test_require.rb (TestRequire#test_loaded_features_encoding):
need to check compatibility, not equality of encodings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:02 AM Revision 3432474c (git): * file.c (rb_file_join): check encoding compatibility before joining
strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:06 AM Revision 06675418 (git): method transplanting
* proc.c (umethod_bind): allow another form of method transplanting
from a module via UnboundMethod. [ruby-core:34267][Feature #4254]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:50 AM Revision cd9d004e (git): * method.h (END_OF_ENUMERATION): placeholder to put last comma.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:38 AM Revision 2b73ea15 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:09 AM Revision 3a6dec0c (git): * include/ruby/ruby.h (RB_UNUSED_VAR): new macro to suppress
warnings for unused variables.
* ext/bigdecimal/bigdecimal.c (ENTER): use RB_UNUSED_VAR() to
suppress annoying warnings by -Wunused-but-set-variable in gcc 4.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38351 b2dd03c8-39d4-4d...
shugo (Shugo Maeda)
02:28 AM Revision 14d72e66 (git): * 2012-12-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:27 AM Revision 33fedef5 (git): * method.h: remove "VM_METHOD_TYPE__MAX" from rb_method_type_t.
rb_method_type_t is not a number and "_MAX" causes misunderstanding.
* proc.c (rb_method_entry_arity): ditto.
* vm_eval.c (vm_call0_body): ditto.
* vm_insnhelper.c (vm_call_method): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
ko1 (Koichi Sasada)
01:17 AM Bug #7480 (Closed): tracepoint deadlock on exception without :raise
fixed at r38331. nobu (Nobuyoshi Nakada)

12/12/2012

11:42 PM Bug #7214 (Third Party's Issue): Ruby 2.0 breaks support for some debugging tools
Debuggers should use new TracePoint feature now. nobu (Nobuyoshi Nakada)
11:36 PM Feature #5582: Allow clone of singleton methods on a BasicObject
=begin
2.0 allows `method transplanting'.
module Clone
%i[clone initialize_copy initialize_dup initialize_clone].each do |m|
define_method(m, Kernel.instance_method(m))
end
end
=end
nobu (Nobuyoshi Nakada)
10:19 PM Feature #5005 (Rejected): Provide convenient access to original methods
Use Module#prepend and super. nobu (Nobuyoshi Nakada)
10:06 PM Bug #3024 (Closed): mkmf: Directory names with spaces cause invalid Makefiles to be generated
nobu (Nobuyoshi Nakada)
09:40 PM Bug #7547 (Closed): Dir.mktmpdir('~something') tries to expand a profile directory
This issue was solved with changeset r38348.
Jeremy, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
tmpdir.rb: not expand tilde
* lib/tmpdir.rb (Dir::Tmpname#crea...
nobu (Nobuyoshi Nakada)
09:23 PM Bug #7547: Dir.mktmpdir('~something') tries to expand a profile directory
2012/12/12 charliesome (Charlie Somerville) <charlie@charliesomerville.com>:

> (({Dir.mktmpdir})) uses (({File.expand_path})) internally, which is responsible for expanding out the ~ to home directories. This behaviour is totally int...
akr (Akira Tanaka)
07:47 PM Bug #7547: Dir.mktmpdir('~something') tries to expand a profile directory
=begin
(({Dir.mktmpdir})) uses (({File.expand_path})) internally, which is responsible for expanding out the ~ to home directories. This behaviour is totally intentional by (({File.expand_path})), but I'm not sure if it was intended by ...
Anonymous
07:53 AM Bug #7547: Dir.mktmpdir('~something') tries to expand a profile directory
~ is an alias in most shells which points at the home directory of the current user. It looks like whats happening is that mktmpdir() is seeing the ~ and trying to resolve it as the alias (which is why its doing the user lookup) but sin... davidderyldowney (David Deryl Downey)
07:24 AM Bug #7547 (Closed): Dir.mktmpdir('~something') tries to expand a profile directory
A change to Dir.mktmpdir sometime between 1.8.7 and 1.9.3 introduced a bug when the prefix starts with a tilde character ('~'). If you try to use the prefix "~something", then instead of creating a subdirectory under the temporary direc... jstanley0 (Jeremy Stanley)
09:28 PM Feature #6993: Class#allocate の仕様変更(Cレベル)
@agrimm: Thank you for the reporting!
My understanding is that this issue will be fixed in the ruby-prof side.
So, currently, we plan to include this incompatibility "as is" in Ruby 2.0.0.
But, if the impact is bigger than we expect...
mame (Yusuke Endoh)
09:20 PM Feature #6993: Class#allocate の仕様変更(Cレベル)
You can just wrap the lines with #ifdef ID_ALLOCATOR, I guess. nobu (Nobuyoshi Nakada)
09:06 PM Feature #6993: Class#allocate の仕様変更(Cレベル)
preview2もはちょっとです:
(Preview 2 is also bad)
$ gem install ruby-prof
Building native extensions. This could take a while...
ERROR: Error installing ruby-prof:
ERROR: Failed to build gem native extension.

...
agrimm (Andrew Grimm)
08:23 PM Feature #7549: A Ruby Design Process
It has been my experience in all kinds of situations (e.g. W3C,
IETF,...), and over well more than a decade, that:
- Adding process to something creates a lot of overhead,
for little gain
- Getting process right is extremely...
duerst (Martin Dürst)
05:32 PM Feature #7549: A Ruby Design Process
> It does not need huge changes.
No, it needs change.
Continuous changes is Ruby.
> ...
I absolutely object this.
Don't prevent changing Ruby.
> proposed process
I think what such solid process generate is not Ruby.
Add...
naruse (Yui NARUSE)
05:14 PM Feature #7549: A Ruby Design Process
Correct link for the video: http://www.confreaks.com/videos/1278-rubyconf2012-toward-a-design-for-ruby
I will add my comments here a bit later. No major objections.
headius (Charles Nutter)
04:45 PM Feature #7549 (Rejected): A Ruby Design Process
Matz,
At RubyConf 2012, I gave a talk about a design process for Ruby (http://www.confreaks.com/videos/1278-rubyconf2012-toward-a-design-for-ruby). So far, over 12,000 people have viewed that talk. I think it is reasonable to say that...
brixen (Brian Shirai)
05:23 PM Feature #7548: Load and Require Callbacks
Is there a particular benefit of this over the current setup of require?
require() calls are not async so I don't really see the benefit of
adding callbacks to them.

You mentioned you wanted to use it for monitoring, perhaps yo...
Anonymous
01:15 PM Feature #7548 (Assigned): Load and Require Callbacks
=begin
Should #load and #require have callbacks? e.g.
def required(path)
...
end
def loaded(path, wrap)
...
end
On occasion I have wanted to do load monitoring to track down a bug. This would have made it ea...
trans (Thomas Sawyer)
02:55 PM Bug #7541: Can't use Ruby 2.0.0 as as BASERUBY
vo.x (Vit Ondruch) wrote:
> naruse (Yui NARUSE) wrote:
> ...
Yes, such incomplete rbconfig.rb is also a correct one to make a package.
> Wouldn't be safer to not relay on rbconfig at all and take the information from some other plac...
naruse (Yui NARUSE)
01:25 AM Bug #7541: Can't use Ruby 2.0.0 as as BASERUBY
naruse (Yui NARUSE) wrote:
> -I is not acceptable because it doesn't load correct rbconfig.rb.
Ah, so the presumably wrong rbconfig.rb is correct one. Wouldn't be safer to not relay on rbconfig at all and take the information from so...
vo.x (Vit Ondruch)
01:18 AM Bug #7541 (Assigned): Can't use Ruby 2.0.0 as as BASERUBY
naruse (Yui NARUSE)
01:18 AM Bug #7541 (Closed): Can't use Ruby 2.0.0 as as BASERUBY
This issue was solved with changeset r38327.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* tool/make-snapshot: add --disable-rubygem to both MINIRUBY and R...
naruse (Yui NARUSE)
12:31 AM Bug #7541: Can't use Ruby 2.0.0 as as BASERUBY
vo.x (Vit Ondruch) wrote:
> naruse (Yui NARUSE) wrote:
> ...
RubyGems uses the information in rbconfig.rb like RbConfig::CONFIG["libdir"].
Previous gems works even if RbConfig::CONFIG["libdir"] is nil,
but the one bundled with 2.0 ra...
naruse (Yui NARUSE)
02:36 PM Bug #7544 (Third Party's Issue): Accented characters in IRB
Ah, I see what you are saying.
It is because you are using irb with editline, not readline.
irb(main):001:0> Readline::VERSION
=> "EditLine wrapper"
You must specify --with-readline-dir on configure.
see also http://stackoverflo...
naruse (Yui NARUSE)
03:23 AM Bug #7544: Accented characters in IRB
On Tue, Dec 11, 2012 at 4:59 PM, naruse (Yui NARUSE) <naruse@airemix.jp> wrote:
>
> Issue #7544 has been updated by naruse (Yui NARUSE).
>
> Status changed from Open to Rejected
>
> cfabianski (Cédric FABIANSKI) wrote:
>> Startin...
judofyr (Magnus Holm)
12:59 AM Bug #7544 (Rejected): Accented characters in IRB
cfabianski (Cédric FABIANSKI) wrote:
> Starting from Ruby 1.9.3 Patchlevel 0 the accented characters are not well handled into IRB
> ...
It should be
puts "C\u00e9dric"
naruse (Yui NARUSE)
12:53 AM Bug #7544: Accented characters in IRB
>>> RUBY_VERSION
> => "1.9.3"
>>> RUBY_PATCHLEVEL
> => 0
>>> puts "Cédric"
> Cédric
> => nil
>
>>> RUBY_VERSION
> => "1.9.3"
>>> RUBY_PATCHLEVEL
> => 327
> => puts "C\U+FFC3\U+FFA9dric"
> Cdric
> => nil
>
> Note : "\U+FF...
judofyr (Magnus Holm)
12:31 AM Bug #7544 (Third Party's Issue): Accented characters in IRB
Starting from Ruby 1.9.3 Patchlevel 0 the accented characters are not well handled into IRB
>> RUBY_VERSION
=> "1.9.3"
> ...
=> 0
>> puts "Cédric"
Cédric
=> nil
> ...
=> "1.9.3"
>> RUBY_PATCHLEVEL
=> 327
=> puts "C\U+FFC3\...
cfabianski (Cédric FABIANSKI)
01:10 PM Feature #7519: Module Single Inheritance
=begin
> I think providing new inheritance system for modules is overkill for allowing module method inheritance.
> ...
It's clear to me -- to be a pain in the butt ;)
I find the whole "def self.included(base); base.extend ClassMeth...
trans (Thomas Sawyer)
12:40 PM Revision 6f8bce9e (git): tmpdir.rb: not expand tilde
* lib/tmpdir.rb (Dir::Tmpname#create): deal with a prefix name which
starts with tilde as a plain name, not expanding as home directory.
[ruby-core:50793] [Bug #7547]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38348 b2dd03c8-...
nobu (Nobuyoshi Nakada)
11:05 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
Hi
Does following patch fix your issue?
diff --git a/configure.in b/configure.in
index c916cd5..4a34334 100644
--- a/configure.in
+++ b/configure.in
@@ -1534,7 +1534,7 @@ AS_CASE(["$target_os"],
[])


-AS_CASE(["$targe...
kosaki (Motohiro KOSAKI)
10:42 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
=begin
I'm also experiencing this on FreeBSD 8 with gcc 4.2.1:
$ gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070...
drbrain (Eric Hodel)
10:56 AM Revision 0a577a1c (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:51 AM Revision 43f6fdfb (git): * ext/json: merge JSON 1.7.5.
fix tests and other fixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:06 AM Revision 395d7bb3 (git): Suppress warning: too long path
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:58 AM Bug #7540: Proc#parameters cannot show :opt with :rest and :keyword
Cool! We are lucky to find this, and then fixed. Thanks :).
no6v (Nobuhiro IMAI)
06:44 AM Bug #7540 (Closed): Proc#parameters cannot show :opt with :rest and :keyword
This issue was solved with changeset r38333.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* iseq.c (rb_iseq_parameters): fix limit for optional argumen...
Eregon (Benoit Daloze)
02:05 AM Bug #7540: Proc#parameters cannot show :opt with :rest and :keyword
Found the fix, just taking time to update related documentation.
no6v: nice catch!
Eregon (Benoit Daloze)
09:35 AM Revision 75bed271 (git): * class.c (rb_prepend_module): move refined methods from the origin
of a class to the class, because refinements should have priority
over prepended modules.
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
09:27 AM Revision a773539d (git): time.c: st_update
* time.c (zone_str): lookup or insert by using st_update() at once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:23 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
"mame (Yusuke Endoh)" <mame@tsg.ne.jp> wrote:
> I postpone this ticket to next minor. Very sorry.
> If Eric Wong were a committer, I would leave this to him.

Looks like Charles Nutter will be a committer soon and can handle this.
normalperson (Eric Wong)
08:23 AM Feature #7517: Fixnum::MIN,MAX
Hi,

In message "Re: [ruby-core:50760] [ruby-trunk - Feature #7517] Fixnum::MIN,MAX"
on Tue, 11 Dec 2012 23:04:30 +0900, "naruse (Yui NARUSE)" <naruse@airemix.jp> writes:

|What is the use case?

See #11 in portable wa...
Anonymous
07:36 AM Revision 486795d9 (git): * configure.in: add -fno-omit-frame-pointer if libexecinfo is used.
At least on FreeBSD ruby will crash on getting C backtrace
when it is compiled with other than -O0.
* vm_dump.c: enable backtrace on FreeBSD even if with optimizations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38342 b2dd03c8...
naruse (Yui NARUSE)
07:08 AM Revision b3f491d3 (git): test_rdoc_rdoc.rb: use File::NULL
* test/rdoc/test_rdoc_rdoc.rb (TestRDocRDoc#test_normalized_file_list_non_file_directory):
use File::NULL for portability if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:07 AM Revision 3c4f8ce0 (git): method.h: NOEX_SAFE_SHIFT_OFFSET
* method.h (rb_method_flag_t): name a magic number for NOEX_SAFE and
NOEX_WITH as NOEX_SAFE_SHIFT_OFFSET.
* method.h (rb_method_type_t, method_optimized_type): C89 forbids a
comma after the last element in enum.
* proc.c (rb_method_e...
nobu (Nobuyoshi Nakada)
07:06 AM Revision 9354b05e (git): proc.c: move misplaced case
* proc.c (rb_method_entry_arity): move misplaced case added at r38236.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:37 AM Feature #7545: Make Range act as a "lazy ordered set"
alexeymuranov (Alexey Muranov) wrote:
> But it is not a set, it seems to be just a pair of bounds, like a 2-element array. I propose to change the semantics, and hence behavior in applications like `Array#slice`.
How is this benefici...
drbrain (Eric Hodel)
06:33 AM Feature #7545: Make Range act as a "lazy ordered set"
alexeymuranov (Alexey Muranov) wrote:
> But it is not a set, it seems to be just a pair of bounds, like a 2-element array. I propose to change the semantics, and hence behavior in applications like `Array#slice`.
You say that "[range...
phluid61 (Matthew Kerwin)
05:01 AM Feature #7545: Make Range act as a "lazy ordered set"
drbrain (Eric Hodel) wrote:
> alexeymuranov (Alexey Muranov) wrote:
> ...
But it is not a set, it seems to be just a pair of bounds, like a 2-element array. I propose to change the semantics, and hence behavior in applications like `Arra...
alexeymuranov (Alexey Muranov)
04:23 AM Feature #7545: Make Range act as a "lazy ordered set"
alexeymuranov (Alexey Muranov) wrote:
> drbrain (Eric Hodel) wrote:
> ...
Range is lazy today.
> which is normally an interval in some bigger ordered set. I have not specified an implementation, but for example it can store the bou...
drbrain (Eric Hodel)
02:37 AM Feature #7545: Make Range act as a "lazy ordered set"
drbrain (Eric Hodel) wrote:
> =begin
> ...
I propose the range to store a lazy ordered set, which is normally an interval in some bigger ordered set. I have not specified an implementation, but for example it can store the bounds, unles...
alexeymuranov (Alexey Muranov)
01:44 AM Feature #7545: Make Range act as a "lazy ordered set"
=begin
How would (({(3..1).to_a})) be implemented? The opposite uses #succ today.
Why should (({1...1})) equal (({3...3}))? I don't understand at all. This would break existing code.
In (({1...3.include?(2.5)})) is the change to R...
drbrain (Eric Hodel)
01:05 AM Feature #7545 (Open): Make Range act as a "lazy ordered set"
=begin
# Make Range act as a "lazy ordered set"
This replaces my older feature request #5534.
I propose the following new behavior of (({Range})):
(1..3).to_a # => [1, 2, 3]
(3..1).to_a # => [3,...
alexeymuranov (Alexey Muranov)
06:27 AM Feature #7546: Change behavior of `Array#slice` for an argument of `Range` class
alexeymuranov (Alexey Muranov) wrote:
> marcandre (Marc-Andre Lafortune) wrote:
> ...
At the risk of sounding glib, there is an alternative solution: learn it.
phluid61 (Matthew Kerwin)
06:04 AM Feature #7546: Change behavior of `Array#slice` for an argument of `Range` class
marcandre (Marc-Andre Lafortune) wrote:

> * this doesn't solve any real-life problem I can think of
For me it solves one: the current behavior does not make sense to me, or i do not understand which abstract object is modeled by `Rang...
alexeymuranov (Alexey Muranov)
04:28 AM Feature #7546: Change behavior of `Array#slice` for an argument of `Range` class
-5 from me:
* this doesn't solve any real-life problem I can think of
* it will introduce incompatibilities
* those incompatibilities would be very difficult to find by code review/grep/whatever
* this would make `array[42..n...
marcandre (Marc-Andre Lafortune)
01:51 AM Feature #7546: Change behavior of `Array#slice` for an argument of `Range` class
This will break existing code so I set it to next major. drbrain (Eric Hodel)
01:23 AM Feature #7546 (Assigned): Change behavior of `Array#slice` for an argument of `Range` class
=begin
This is a concrete proposal to "fix" #4541.
It is also related to #7545.
For this proposal to make good sense, i think it would be nice if #7545 was at least partially accepted.
=== Main proposal
I propose (({Array#slic...
alexeymuranov (Alexey Muranov)
05:16 AM Revision 182ce60f (git): * lib/rdoc/class_module.rb: Added RDoc::ClassModule#documented? which
checks comment_location. Hide RDoc::ClassModule#comment=.
* test/rdoc/test_rdoc_class_module.rb: Test for above.
* lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml:
Fix display of the table of contents in the si...
drbrain (Eric Hodel)
04:42 AM Feature #4541: Inconsistent Array.slice()
Regarding the OP's criticism of poor API documentation, this has in the meantime been improved (with issue #6680).
From the current documentation for Array#slice:
>
Negative indices count backward from the end of the array (-1 i...
stomar (Marcus Stollsteimer)
01:27 AM Feature #4541: Inconsistent Array.slice()
I have proposed a solution in #7546. alexeymuranov (Alexey Muranov)
04:40 AM Revision f92db3dd (git): vm_insnhelper.c: no warnings for non-object
* vm_insnhelper.c (vm_getivar): no uninitialized instance variables
warnings for non-object if attr method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:39 AM Revision dcb6e733 (git): vm_insnhelper.c: common code
* vm_insnhelper.c (vm_getivar, vm_setivar): unify common code
irrelevant to the condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:12 AM Revision 34fb7d78 (git): Specify rlimits_core to prevent making core file
Stable fix for r38041.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:45 AM Feature #5534 (Rejected): Redefine Range class and introduce RelativeNumeric and RelativeRange
drbrain (Eric Hodel)
01:26 AM Feature #5534: Redefine Range class and introduce RelativeNumeric and RelativeRange
I propose to close this my Feature Request, as i have opened a new one that replaces it: #7545, see also #7546. alexeymuranov (Alexey Muranov)
12:42 AM Revision a52c63e4 (git): Experimental fix for r38041
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:24 AM Bug #7543 (Closed): DL::Function#bound? and unbind raise error when Fiddle is available
This issue was solved with changeset r38324.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/dl/lib/dl/func.rb (DL::Function#unbind, #bound?): suppre...
ngoto (Naohisa Goto)
12:12 AM Bug #7514 (Closed): DL::Function and DL::Importer#bind_function ignores abi and name when Fiddle is available
In r38322, Fiddle::Function#initialize can get name by using :name keyword argument. For example,
Fiddle::Function.new(ptr, [], Fiddle::TYPE_VOID, name: "example")
ngoto (Naohisa Goto)
 

Also available in: Atom