Activity
From 03/01/2013 to 03/07/2013
03/07/2013
-
10:32 PM Feature #7791: Let symbols be garbage collected
- @jeremyevans0 Thanks for clarifying these limitations.
So, how far might this be remedied if it is made a C extension? For instance, it is not possible to make SafeSymbol a subclass of Symbol in pure Ruby, but I suspect it could be m... -
12:30 PM Feature #7791: Let symbols be garbage collected
- trans (Thomas Sawyer) wrote:
> Would something like this do the trick? http://github.com/rubyworks/safe_symbol
No.
:a != SafeSymbol('a')
Even if you fixed that, Symbols are immediates in ruby's C API, and passing a SafeSymbol ... -
10:08 AM Feature #7791: Let symbols be garbage collected
- Would something like this do the trick? http://github.com/rubyworks/safe_symbol
-
10:19 PM Feature #8035: singleton class should be included in ancestors
- Agreed. I will accept it unless any other compatibility problem raises.
Matz.
-
04:21 AM Feature #8035: singleton class should be included in ancestors
- Singleton class it the same thing as metaclass, right? I feel it would be better to keep it invisible, and maybe in the future to remove it completely and to allow objects to keep their singleton methods themselves.
-
01:51 AM Feature #8035 (Closed): singleton class should be included in ancestors
- I feel it would be consistent if:
k.ancestors.include?(k) #=> always true if k.is_a?(Class)
This is currently the case except for singleton classes:
class << ""; include Enumerable; end.ancestors
# => [Enumerable, S... -
10:01 PM Bug #8036 (Rejected): Unable to compile Ruby 2.0.0p20 on Mac OSX 10.7.5
- You don't use clang, but /usr/bin/gcc.
-
05:56 AM Bug #8036 (Rejected): Unable to compile Ruby 2.0.0p20 on Mac OSX 10.7.5
- > svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_2_0_0/ ruby2
...
> ...
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.o... -
09:50 PM Feature #7854: New method Symbol[string]
- To obtain existing symbol, rb_check_id() is already available, so you don't have to add new extern function.
-
03:03 PM Feature #7854: New method Symbol[string]
- :)
-
12:50 PM Feature #7854: New method Symbol[string]
- =begin
I've attached a patch that defines ((%Symbol[str]%)). If ((|str|)) is a string and there exists a symbol such that (({symbol.to_s == str})), it returns that symbol. Otherwise it returns ((|nil|)). Raises a TypeError if ((|str|... -
08:04 PM Bug #6479 (Closed): ipaddr.rbの受け付ける書式が、プラットフォームによって異なる
- 本件を修正して様子を見るうちに2.0.0が正式リリースとなったので、すみませんが旧シリーズとなった1.9ではこのままとしたいと思います。
報告ありがとうございました。 - 06:17 PM Revision 7afb2ead (git): Update ChangeLog for r39628
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:54 PM Revision 131fa91f (git): * 2013-03-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:54 PM Revision dfde34cb (git): * class.c (rb_mod_ancestors): Include singleton_class in ancestors list
- [Feature #8035]
* test/ruby/test_module.rb (class): test for above
* test/ruby/marshaltestlib.rb (module): adapt test
* NEWS: list change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:01 PM Feature #8038: Keyword `object` to be used instead of `class <<`
- @alexey I sympathize. I tend to avoid `class << foo` too b/c it "reads" so poorly.
@david Facets extends #extend to do that actually, but it does not add the the methods directly. Instead it creates an anonymous module which it includ... -
03:26 PM Feature #8038 (Rejected): Keyword `object` to be used instead of `class <<`
- Introducing a new keyword would break a lot of existing programs. We don't want to do unless there's strong requirement.
Making Object#extend to take a block is interesting idea. We will discuss later if it's submitted.
Matz.
-
03:23 PM Feature #8038: Keyword `object` to be used instead of `class <<`
- As an alternative, how about allowing Object#extend to take a block that would be executed with the context such that methods defined therein would become singleton methods of the object receiving #extend?
Your example would then bec... -
02:59 PM Feature #8038 (Rejected): Keyword `object` to be used instead of `class <<`
- =begin
I propose to introduce a new keyword (({object})) and to use it instead of the mysterious (({class <<})):
object foo
def bar
# ...
end
def baz
# ...
end
end
instead of
foo = Objec... -
04:47 PM Bug #8039 (Closed): DRB/dRuby server throws an exception when probed on its port
- I am not sure if this is a bug or a feature ...
When I use nmap to probe the port that the DRB server is listening on, it throws an exception.
Should the server be more resilient to this and/or have an option to restart itself aut... -
12:28 PM Feature #8024: Lazy sweep を on/off するための機能
- > SEGVが発生するかしないかの切り分けのため
これは正確な表現ではなく、本当の動機は「SEGVを回避するため」です。
> ...
そうですね。
> それ以外の用途
ありません〜 -
11:14 AM Feature #8024: Lazy sweep を on/off するための機能
- このメソッドや環境変数を追加する動機が「SEGVが発生するかしないかの切り分けのため」なので、その用途だけでメソッド追加などをするのはやり過ぎかな、と思いました。
SEGVが直ったら用済みになっちゃうかもしれないですよね…。
それ以外の用途がなにかあれば教えてもらえると助かります。 -
10:42 AM Feature #8024: Lazy sweep を on/off するための機能
- > むらけんさんの好みに合わないなら
この件に関しては好みを主張できるほど詳しくないので、メソッド名から要/不要まで nari3 にすべての決めて頂こうと考えてました。
私は真偽値を与えて on/off を制御する方式でも問題ないと思ってます〜
-
04:52 AM Feature #8024: Lazy sweep を on/off するための機能
- bool 値化同意します。
-
12:54 AM Feature #8024: Lazy sweep を on/off するための機能
- 今後なにかあるたびに、GCにメソッドが2つづつ増えるのは非生産的なので、対称性だけが目的なら GC.enableにbool引数追加して、GC.enable_lazy_sweepもそうするってのが私の好みかなあ。すでにstressはboolean値のようだし。
ただの好みなのでむらけんさんの好みに合わないならこれ以上はプッシュしません
では。 -
10:42 AM Bug #7956: Install fail with RVM
- =begin
I have just rechecked both with and without RVM and I can not reproduce this problem, make sure to update RVM: (({rvm get head})) - there are two things you could check:
(1) problem with compiler - check this https://github.com/w... -
10:08 AM Bug #8037 (Rejected): rdoc issues preventing docs generating after ruby was compiled
- I have reported two issues for rdoc but there was no response, forwarding here as ruby is involved:
- https://github.com/rdoc/rdoc/issues/193
- https://github.com/rdoc/rdoc/issues/194
Thanks, Michal -
10:05 AM Feature #7849: Symbol#to_str
- Symbol's not anything like a Proc either, but we have Symbol#to_proc.
Put that in your pipe and smoke it ;-)
-
08:33 AM Feature #7795: Symbol.defined? and/or to_existing_symbol
- phluid61 (Matthew Kerwin) wrote:
> matz (Yukihiro Matsumoto) wrote:
> ...
I agree with Matz that the names are problematic. What about Symbol[] ? (#7854) -
06:59 AM Feature #7795: Symbol.defined? and/or to_existing_symbol
- matz (Yukihiro Matsumoto) wrote:
> I agree with the basic concept of the proposal.
> ...
My ruby core abilities are somewhat limited as yet, but in experimentation on a local fork I have implemented "foo".to_existing_sym (which raises ... -
05:21 AM Revision 221f2a1d (git): compile.c: zsuper keyword args
- * compile.c (iseq_compile_each): pass keyword arguments to zsuper,
with current values. [ruby-core:53114] [Bug #8008]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:17 AM Revision 8a689839 (git): compile.c: nd_line(node)
- * compile.c (iseq_compile_each): keep nd_line(node) in a local
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:17 AM Revision fedf4c22 (git): compile.c: calc in int
- * compile.c (iseq_compile_each): calculate argc as int, not as Fixnum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:38 AM Revision 3016b65a (git): .gdbinit: initialize color sequences
- * .gdbinit (hook-run): initialize color sequences for each runs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:38 AM Revision 94daa860 (git): iseq.c: keyword arguments
- * iseq.c (rb_iseq_disasm): fix keyword arguments index.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:06 AM Revision 9926b16d (git): * ChangeLog:
- * lib/rubygems/commands/setup_command.rb (class Gem):
* lib/rubygems/commands/setup_command.rb (TEXT):
* lib/rubygems/spec_fetcher.rb (class Gem):
* lib/rubygems/test_utilities.rb (class Gem):
* lib/rubyge... -
04:01 AM Revision 105361d9 (git): * ChangeLog:
- * lib/rubygems/commands/setup_command.rb (class Gem):
* lib/rubygems/commands/setup_command.rb (TEXT):
* lib/rubygems/spec_fetcher.rb (class Gem):
* lib/rubygems/test_utilities.rb (class Gem):
* lib/rubyge... - 01:39 AM Revision 3d4d9377 (git): * 2013-03-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:39 AM Revision 1a71b871 (git): rbinstall.rb: gem subdirectories
- * tool/rbinstall.rb (gem): Gem.ensure_gem_subdirectories now has mode
option since r39607. refix of r38870.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:39 AM Revision e4e82e50 (git): common.mk: reinstall target
- * common.mk (reinstall): new target.
* defs/gmake.mk (install, uninstall): can't run parallel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03/06/2013
-
11:08 PM Bug #8029 (Rejected): M-p and M-n don't work in irb
- Hello, artagnon.
Thank you for your investigation. I'll close this ticket. -
07:35 PM Bug #8029: M-p and M-n don't work in irb - I'm sorry, but I seem to have misunderstood the non-incremental-reverse-search-history and non-incremental-forward-search-history functions of readline. I expected it to work like in ZSH (which uses zle, not readline).
-
05:50 PM Bug #8029: M-p and M-n don't work in irb - Okay, it seems to be a bug in readline, not irb.
-
05:39 PM Bug #8029 (Rejected): M-p and M-n don't work in irb - irb is supposed to use readline and M-a, M-e are bound to beginning-of-line and end-of-line respectively. However, M-p and M-n don't have the same effect as up-arrow and down-arrow. Why is this?
-
10:43 PM Bug #8034 (Closed): File.expand_path('something', '~') do not include home path
- =begin
Next code works correctly only on ruby <= 1.9.3p362.
Tested on Windows XP, Windows 2008 with ruby 1.9.3p194 (works properly), ruby 1.9.3p362 (bug), ruby 2.0.0p0 (bug).
(({File.expand_path('something', '~') #=> "C:/path/to/cur... -
08:24 PM Feature #8024: Lazy sweep を on/off するための機能
- > GC.disable_lazy_sweepも有り難みがよくわかりませんでした。
rspec が spec ファイル群をロードするだけで10分以上かかる場合があるので、
プロセスの起動時〜specファイルロード完了までは lazy sweep は有効であって欲しくて、
begin(:suite) で GC.disable_lazy_sweep することにしています。
ですから、私の個人的なユースケースでは GC.enable_lazy_sweep は使... -
11:09 AM Feature #8024: Lazy sweep を on/off するための機能
- えーと、一般論としてチューニングパラメータはdisable_hogehoge とかいう否定形は好ましくないよ。間違えるから。
環境変数は RUBY_GC_ENABLE_LAZY_SWEEP のほうがよいんじゃないかな。
GC.disable_lazy_sweepも有り難みがよくわかりませんでした。
-
10:50 AM Feature #8024 (Closed): Lazy sweep を on/off するための機能
- Lazy sweep を on/off する機能を追加するパッチを作りました。
このパッチは環境変数1つと GC のモジュール関数2つを追加します。
環境変数は RUBY_GC_DISABLE_LAZY_SWEEP です。
これに 0 以外の整数を設定して ruby を実行すると、
lazy sweep が off の状態で実行されます。
GC に追加されるモジュール関数は disable_lazy_sweep と enable_lazy_sweep ... -
06:31 PM Bug #7212: "stack level too deep" in Fiber much earlier in new versions of 1.9.3
- ko1 (Koichi Sasada) wrote:
> Do you use same compiler and compile option on each environments?
Yes, it was compiled with rvm with no options specified.
I'm sorry for the late answer, for some reason I didn't get any mail notif... -
05:31 PM Bug #8028 (Rejected): Shellwords.escape works incorrect under windows
- Shellwords.escape works incorrect under windows (tested for Windows 7
x64), here is example:
Actual result:
```
irb(main):001:0> require 'shellwords'
=> true
irb(main):002:0> `echo #{Shellwords.escape( '123>' )} test` # shoul... -
05:26 PM Feature #8027 (Feedback): add the possibility to raise an exception in #included, #extended, #prepended, #inherited and break the calling feature
- imo an exception in this hook methods should be possible to prevent the adding in the ancestor chain
module A
def self.included(mod)
raise "dont include me"
end
end
module E
include A
end
##>> RuntimeError: dont include me... -
01:24 PM Revision 5f5d9155 (git): iseq.c: keyword arguments
- * iseq.c (rb_iseq_disasm): show keyword arguments info, in format
"keyword: NUM@LIDX".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:14 PM Revision 22e2bfc6 (git): merge revision(s) 39297: [Backport #8032]
- mkconfig.rb: clear exec_prefix
* tool/mkconfig.rb: clear exec_prefix which may differ from prefix,
before expanding rubyarchdir to remove prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39616 b2dd03c8-... -
12:40 PM Feature #8026 (Feedback): Need Module#prepended_modules
- We should have a way to get the list of prepended modules of a class or module.
module Mixin
end
module Outer
prepend Mixin
end
Mixin.prepended_modules #=> []
Outer.prepended_modules #=> [Mi... -
11:59 AM Revision 5c1af05e (git): defs/gmake.mk: serialize test targets.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:22 AM Revision 0af37bf0 (git): configure.in: fix unexpand_shvar
- * configure.in (unexpand_shvar): remove guarding quotes at last.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:45 AM Bug #7949 (Closed): Gem::Ext::Builder removes dependency to directory creation task
- Seems fixed by Nobu's patches, so I will close this.
-
06:30 AM Revision 63324158 (git): GNUmakefile.in: new template
- * template/GNUmakefile.in: split from configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:30 AM Revision 6f4d00e5 (git): process.c: fix error message
- * process.c (check_exec_redirect_fd): fix error message for unknown
symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:30 AM Revision 2d1c94a1 (git): prefix global symbols
- * iseq.c (rb_insn_operand_intern): prefix global symbols.
* numeric.c (ruby_num_interval_step_size): ditto.
* vm_backtrace.c (rb_vm_backtrace_str_ary),
(rb_vm_backtrace_location_ary, rb_vm_thread_backtrace),
(rb_vm_thread_backtrace... -
06:29 AM Revision 4f59a115 (git): intern.h: macro rb_check_arity
- * include/ruby/intern.h (rb_check_arity): same name macro for backward
compatibility checking by ifdef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:25 AM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
- All packages are installed via packman
/usr/lib/libtcl8.6.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x31a66c5d6eacb77f2a9a220bff2e78a88821167e, not stripped
/usr/lib/libtk8.6.so: ELF ... -
04:14 AM Revision d1e3c632 (git): * test/rubygems/test_gem_spec_fetcher.rb: Removed unused variable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:49 AM Bug #6151: ArgumentError of lambda shows wrong location
- I agree, @trans, this is a very surprising behavior. I was expecting instance_eval to call the block I passed to it without any args. Since self is already implicitly available from the block, I just don't understand why instance_eval wo...
-
02:48 AM Bug #8018 (Closed): Typo in Class: Encoding documentation. Encoding::UTF-8 instead of Encoding::UTF_8
- Already fixed by r39575, see https://github.com/ruby/ruby/pull/255
-
02:39 AM Feature #7836: Need a way to get Method and UnboundMethod objects to methods overridden by prepended modules
- nobu: Patch looks good, but I would go further and have `String.instance_method(:object_id, false)` also raise a NameError, for consistency with `String.instance_methods(false).include? :object_id # => false`.
Did Matz confirm any of ... -
02:38 AM Feature #7836: Need a way to get Method and UnboundMethod objects to methods overridden by prepended modules
- banister (john mair) wrote:
> @ marcandre. Another possible approach is to provide `UnboundMethod#super`.
Not a bad idea, for Method also, although I'm not sure if it would be useful to many. You might want to make another feature re... -
02:21 AM Bug #7968: Poor UDPSocket#send performance in ruby 2.0.0 on windows
- Hello, Alan.
I re-open this ticket because it was accidentally closed by wrong commit message.
This issue is not fixed yet.
BTW, in socketsendtest.rb UDPSocket#bind and #connect receive different port number. Is it right?
On my e... -
02:02 AM Bug #7968: Poor UDPSocket#send performance in ruby 2.0.0 on windows
- I see the %Done went up to 100 and back down to zero. Is this fixed or not now?
Thanks
Alan. -
12:35 AM Bug #8017: Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
- nobu (Nobuyoshi Nakada) wrote:
> What's the clang version?
$ clang -v
Apple clang version 1.6 (tags/Apple/clang-70)
Target: x86_64-apple-darwin10
Thread model: posix
03/05/2013
-
11:11 PM Revision 48d5694f (git): * test/rubygems/test_require.rb: Fix tests when 'a.rb' exists.
- [ruby-trunk - Bug #7749]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:02 PM Revision 6e48ce9c (git): * lib/rubygems.rb: Allow specification of directory permissions.
- [ruby-trunk - Bug #7713]
* test/rubygems/test_gem.rb: Test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:40 PM Revision 7a88ad0a (git): * lib/rubygems/commands/query_command.rb: Only fetch remote specs when
- showing details. [ruby-trunk - Bug #8019] RubyGems bug #487
* lib/rubygems/remote_fetcher.rb: ditto.
* lib/rubygems/security/policy.rb: ditto.
* test/rubygems/test_gem_commands_query_command.rb: Test for the
above.
* lib/rubygems... -
08:29 PM Bug #7988 (Closed): Module#prepend(Module) and instance_method causes Segmentation fault
- This issue was solved with changeset r39599.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
proc.c: revert r39224
* proc.c (mnew): revert r39224. [ruby... -
05:13 PM Bug #8018 (Closed): Typo in Class: Encoding documentation. Encoding::UTF-8 instead of Encoding::UTF_8
- Hi, there's a typo in the Encoding Class documentation. http://ruby-doc.org/core-2.0/Encoding.html
In the Changing an encoding section, in the example says
string.force_encoding(Encoding::UTF-8)
instead of
string.force_encodin... -
05:06 PM Bug #8017 (Feedback): Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
- What's the clang version?
-
02:52 PM Bug #8017 (Third Party's Issue): Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
- Mac OS 10.6.8
rvm rvm 1.18.15 (master)
$ sudo rvm install 2.0.0
Password:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.6/i386/ruby-2.0.0-p0.
Continuing with compilation. Please re... - 04:31 PM Revision 32fa37f5 (git): * 2013-03-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:31 PM Revision dbec401c (git): use INT2FIX(0) instead of INT2NUM(0).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:54 PM Bug #7881: Windows でパスに日本語を含むスクリプトからの require が失敗する
- =begin
たとえば、下記のようなコードを書いたときに、current directoryのパスが日本語を含んでいても
Encoding::CompatibilityError にならずに動く、という利点はあるのではないでしょうか。
expand_pathの結果がfilesystem encodingに変わる可能性があれば、日本語の引数に.encode('filesystem')をつけるなどしておかないといけません。
# coding: euc-... -
01:48 PM Revision 6520da62 (git): * ChanageLog: fix ticket ref in r39597.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:50 PM Revision 1d82ffd8 (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:41 PM Feature #8016 (Assigned): Alias __FILE__ and __LINE__ as methods
-
12:16 PM Feature #8016 (Assigned): Alias __FILE__ and __LINE__ as methods
- =begin
All of the previous issues discussing the new (({Kernel#__dir__})) method (#1961, #3346, #7975), never came to any conclusion regarding the naming inconsistency between the likes of (({__dir__})) and (({__method__})), and the key... -
12:38 PM Feature #8015: [patch] tuneable HEAP_GROWTH_FACTOR
- Thanks for the review. How about this?
@@ -3366,10 +3535,11 @@ rb_gc_set_params(void)
growth_factor_ptr = getenv("RUBY_HEAP_SLOTS_GROWTH_FACTOR");
if (growth_factor_ptr != NULL) {
- double growth_factor_f = atof(... -
10:53 AM Feature #8015: [patch] tuneable HEAP_GROWTH_FACTOR
- The idea seems good.
> + growth_factor_ptr = getenv("RUBY_HEAP_SLOTS_GROWTH_FACTOR");
> + if (growth_factor_ptr != NULL) {
> + double growth_factor_f = atof(growth_factor_ptr);
atof() don't have proper error ch... -
10:17 AM Feature #8015 (Closed): [patch] tuneable HEAP_GROWTH_FACTOR
- diff --git a/gc.c b/gc.c
index 925e496..71f509f 100644
--- a/gc.c
+++ b/gc.c
@@ -71,11 +71,13 @@
#endif
#define HEAP_MIN_SLOTS 10000
#define FREE_MIN 4096
+#define HEAP_GROWTH_FACTOR 1.8
typedef struct {
unsigned i... -
12:36 PM Revision f113ab55 (git): class.c: check redefinition
- * class.c (rb_prepend_module): check redefinition of built-in opimized
methods. [ruby-dev:47124] [Bug #7983]
* vm.c (rb_vm_check_redefinition_by_prepend): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39601 b2dd03c8-39d4-... -
12:30 PM Revision 00a8203b (git): test_method.rb: reduce iteration
- * test/ruby/test_method.rb (TestMethod#test_bound_method_entry):
reduce iteration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:29 AM Revision 2ff56cc9 (git): proc.c: revert r39224
- * proc.c (mnew): revert r39224. [ruby-core:53038] [Bug #7988]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:23 AM Revision 708df44e (git): intern.h: inline function rb_check_arity
- * include/ruby/intern.h (rb_check_arity): make a static inline
function so it can be used as an expression and argc would be
evaulated only once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39598 b2dd03c8-39d4-4d8f-98ff-823fe... -
11:02 AM Feature #2837: Compile-time constant for HEAP_GROWTH_FACTOR (patch attached)
- This patch contains not only the subject but also the accessors.
It isn't acceptable and you should separate them, I think. -
10:20 AM Bug #8010 (Closed): Enumerator#with_index(large_number)
- This issue was solved with changeset r39594.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
enumerator.c: allow Bignum for with_index
* enumerator.c (en... -
06:16 AM Feature #5373: SMTP - new method
- Since Aoki-san was listed as neutral last I asked, I will apply this sometime next week.
-
03:31 AM Revision 85164e55 (git): * lib/rubygems.rb: Bump version to 2.0.1 for upcoming bugfix release
- * lib/rubygems/ext/ext_conf_builder.rb: Restore ruby 1.8 compatibility
for [Bug #9698]
* test/rubygems/test_gem_installer.rb: Ditto.
* lib/rubygems/package.rb: Restore ruby 1.8 compatibility.
* test/rubygems/test_gem_dependency_in... -
03:25 AM Revision 6c77ae07 (git): * enumerator.c (enumerator_with_index): Restore handling of a nil memo
- from r39594.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:40 AM Revision b4a117f8 (git): objspace.c: newly added nodes
- * ext/objspace/objspace.c (count_nodes): count also newly added nodes,
and fix key for unknown node. patch by tmm1 (Aman Gupta) in
[ruby-core:53130] [Bug #8014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39595 b2dd03c8-39d4-... -
01:20 AM Revision 4a429c11 (git): enumerator.c: allow Bignum for with_index
- * enumerator.c (enumerator_with_index_i): allow Bignum as offset, to
get rid of conversion exception and integer overflow.
[ruby-dev:47131] [Bug #8010]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39594 b2dd03c8-39d4-4d8f-98ff... -
01:18 AM Revision ce357ef1 (git): numeric.c: optimize for Bignum
- * numeric.c (rb_int_succ, rb_int_pred): shortcut optimization for
Bignum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:06 AM Revision 66867b0a (git): ext_conf_builder.rb: clear DESTDIR
- * lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
clear DESTDIR so RUBYARCHDIR and RUBYLIBDIR are not be overrdden.
[Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39592 b2dd03c8-39d4-4d8f-98ff-... - 01:02 AM Revision 001e06ed (git): * 2013-03-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:02 AM Revision f2d3cd1c (git): ext_conf_builder.rb: clear DESTDIR
- * lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
clear DESTDIR so RUBYARCHDIR and RUBYLIBDIR are not be overrdden.
[Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39590 b2dd03c8-39d4-4d8f-98ff-... -
12:57 AM Bug #8012 (Closed): Performance degradation in 2.0.0p0
- $ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
I'm running a simple CPU intensive benchmark:
puts (0..11).to_a.permutation.inject(0) { |m, _| m += 1 }
This takes around 158s with 1.9.3 and 200s with 2.0.0p0 w...
03/04/2013
-
08:18 PM Bug #8010 (Closed): Enumerator#with_index(large_number)
- Enumerator#with_index の引数で大きな数を指定するとマイナスになったり例外になったりするのはバグでしょうか?
% ruby -ve 'p 3.times.with_index(1<<61).to_a'
ruby 2.1.0dev (2013-03-04 trunk 39580) [x86_64-linux]
[[0, 2305843009213693952], [1, 2305843009213693953], [2, 2305843009... -
04:22 PM Revision 3c8784c2 (git): merge revision(s) 39358:
- * tool/merger.rb: add interaction when only ChangeLog is modified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:04 PM Revision dab8d82d (git): merge revision(s) 39349,39374: [Backport #7886]
- * file.c (rb_group_member): get rid of NGROUPS dependency.
[Bug #7886] [ruby-core:52537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:50 PM Revision bec0f1a6 (git): merge revision(s) 39329: [Backport #8011]
- enumerator.c: suppress warnings
* enumerator.c (lazy_zip_arrays_func, lazy_zip_func, lazy_take_func),
(lazy_drop_func, lazy_drop_while_func): suppress uninitialized
instance vriable warnings.
git-svn-id: svn+ssh://ci.ruby-l... -
03:38 PM Revision b025b119 (git): merge revision(s) 39322:
- * array.c: Fix typo in class documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:35 PM Revision 8f94d406 (git): merge revision(s) 39317 partially:
- * ChangeLog: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:17 PM Revision b2a8c2f3 (git): merge revision(s) 39309,39310: [Backport #7551]
- * ext/openssl/ossl.c (class OpenSSL): Fixed ExtensionFactory example.
Patch by Richard Bradley. [ruby-trunk - Bug #7551]
* ext/openssl/ossl.c (class OpenSSL): Use only inner parenthesis in
create_extension... -
02:54 PM Revision 2fbe19cc (git): merge revision(s) 39291:
- * configure.in: remove debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:49 PM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
- Did you build tcltk, or install binaries via pacman? This seems wacky if you used pacman, but does `file` prove /usr/lib/libtcl8.6.so and /usr/lib/libtk8.6.so are 64bit?
Since it crashes so easily, fire up gdb via something like
... -
02:43 PM Revision 7a730fe1 (git): merge revision(s) 39286,39287:
- * ext/psych/lib/psych/y.rb: Document Kernel#y by Adam Stankiewicz
[Github tenderlove/psych#118]
[Github tenderlove/psych#127]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39582 b2dd03c8-39d4-4d8f-... -
02:37 PM Revision b501eda4 (git): merge revision(s) 39284: [Backport #7860]
- * tool/mkconfig.rb: remove prefix from rubyarchdir.
r39267 expands variables, it changes expansion timing,
breaks RbConfig::CONFIG["includedir"] and building
extension libraries with installed ruby.
git-sv... -
08:05 AM Revision dbb6526e (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:03 AM Bug #7956 (Open): Install fail with RVM
- Re-opening.
I also sent an email to Michal Papis.
It might be best to open this issue on rvm's side and if Michal finds a problem that ruby-core can solve he could submit that? -
06:11 AM Bug #7956: Install fail with RVM
- I'm still getting the error when trying to build.
What other information can I provide that would help you to track down the issue?
-
06:33 AM Revision a95a87c0 (git): ext_conf_builder.rb: install via temporary directory
- * lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
fix for unusal cases again. install to a temporary directory once
and move instaled files to the destination directory, if it is same
as the current director... -
05:23 AM Feature #7998: "def" should return a value (the symbol of the method name) instead of nil
- =begin
It has been suggested long long ago. Probably more than once. Here is a link to one: #3753.
Once we start looking at code like that for a while will we then start to think, why not just:
public foo()
...
end
p... -
04:13 AM Feature #7998: "def" should return a value (the symbol of the method name) instead of nil
- +1
While the proposed usage is good, I immediately thought about this:
new_meth_name = module_eval <<-RUBY
def prefix_#{val}_postfix
...
end
RUBY
-
05:13 AM Revision a5a49630 (git): Makefile.in: move MAINLIBC after objects
- * Makefile.in (miniruby, ruby): move MAINLIBC because linker arguments
must appear after object files with newer versions of gcc. patch by
tmm1 (Aman Gupta) in [ruby-core:53121] [Bug #8009]
git-svn-id: svn+ssh://ci.ruby-lang.org/ru... -
01:27 AM Revision 14cc02fb (git): ChangeLog: fix commit miss
- * ChangeLog: remove duplicated entry by commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:24 AM Revision 56348e18 (git): * 2013-03-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:24 AM Revision d4d14c19 (git): * encoding.c: Typo in Encoding overview by Tom Wardrop [GH fixes #255]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03/03/2013
-
10:49 PM Bug #7881: Windows でパスに日本語を含むスクリプトからの require が失敗する
- 素朴にバグかと思っていたのですが、File.expand_path の今現在の挙動のほうが望ましい場面っていうのは考えられるんでしょうか。
-
12:17 PM Bug #7698 (Closed): RubyGems 2.0 has an incompatibility about installation of extension libraries
- This issue was solved with changeset r39572.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ext_conf_builder.rb: remove circular dependency in install-so
*... -
10:28 AM Bug #7698 (Assigned): RubyGems 2.0 has an incompatibility about installation of extension libraries
-
01:17 AM Bug #7698 (Closed): RubyGems 2.0 has an incompatibility about installation of extension libraries
- This issue was solved with changeset r39560.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ext_conf_builder.rb: hack for obsolete sytle gems
* lib/rubygem... -
01:16 AM Bug #7698 (Assigned): RubyGems 2.0 has an incompatibility about installation of extension libraries
-
01:16 AM Bug #7698 (Closed): RubyGems 2.0 has an incompatibility about installation of extension libraries
- This issue was solved with changeset r39559.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ext_conf_builder.rb: use RUBYOPT
* lib/rubygems/ext/ext_conf_bu... -
01:15 AM Bug #7698 (Assigned): RubyGems 2.0 has an incompatibility about installation of extension libraries
-
01:14 AM Bug #7698 (Closed): RubyGems 2.0 has an incompatibility about installation of extension libraries
- This issue was solved with changeset r39558.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ext_conf_builder.rb: build in the source directory
* lib/rubyge... -
04:15 AM Revision d71177fe (git): mkmf.rb: libpath_env
- * lib/mkmf.rb (MakeMakefile#libpath_env): ignore empty LIBPATHENV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:35 AM Revision bb2551b4 (git): mkmf.rb: libpath_env
- * lib/mkmf.rb (MakeMakefile#libpath_env): set runtime library path for
the case rpath is disabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:17 AM Revision a7a0b3ad (git): ext_conf_builder.rb: remove circular dependency in install-so
- * lib/rubygems/ext/ext_conf_builder.rb
(Gem::Ext::ExtConfBuilder.hack_for_obsolete_style_gems): remove
circular dependencies in install-so too. [ruby-core:52882]
[Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3957... -
12:44 AM Bug #7979 (Rejected): File.foreach splits on 'r' in windows
- The second argument is a line separator to split the input.
-
12:11 AM Bug #8006 (Closed): Dir.glob behaves differently on 1.9.3 and 2.0
- =begin
While testing an application of mine with Ruby 2.0 I came across the following problem with Dir.glob where the pattern `FOO/BAR/**/*` does not match the directory `FOO/BAR` anymore because the implicit directories '.' and '..' do...
03/02/2013
-
10:49 PM Bug #7960 (Closed): Ruby fails to build static under mswin linker error: multiple definitions of _Init_ext
- This issue was solved with changeset r39552.
Benjamin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Makefile.sub: static-linked-ext
* win32/Makefile.sub (EXTOBJ... -
06:00 PM Bug #7960: Ruby fails to build static under mswin linker error: multiple definitions of _Init_ext
- infact I think I'm right, it's right here in the 2.0 change log
ext/extmk.rb (command_output): dmyext is needed as DLDOBJS if no static linked extensions.
this would seem to imply that if there were statically linked extensions it is ... -
10:34 PM Revision 2a5b45dd (git): * ext/socket/tcpserver.c: Grammar for TCPServer.new from r39554
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:04 PM Bug #8004: spawn does not honor its passed PATH
- Did some more digging, it seems to be a bug in Process.spawn:
```
#!/bin/sh
cat script.rb
# >> File.write 'my_bin', 'echo "WORKS"'
# >> File.chmod 0755, 'my_bin'
# >>
# >> puts "CWD: #{Dir.pwd}"
# >> Process.spawn({... -
08:19 PM Bug #8004 (Closed): spawn does not honor its passed PATH
- ```
#!/bin/sh
# make an executable
echo '#!/usr/bin/env ruby' > my_bin
echo 'puts "omg"' >> my_bin
chmod +x my_bin
# run it in 1.9
ruby1.9 -v
# >> ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-dar... -
05:59 PM Revision 3e23e2dd (git): merge revision(s) 39283:
- * .gdbinit (iseq): rename dummy_gdb_enums to ruby_dummy_gdb_enums.
This is follow up to changes in r24407.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:45 PM Revision 2925654b (git): merge revision(s) 39282: [Backport #8007]
- * vm.c (ENV_IN_HEAP_P): fix off-by-one error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:39 PM Revision cdac7f43 (git): merge revision(s) 39277:
- * test/ruby/test_thread.rb: fixed typo
patched by Hiroki Matsue via https://github.com/ruby/ruby/pull/248
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:36 PM Bug #7100 (Closed): WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される
- This issue was solved with changeset r39551.
Sho, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/webrick/utils.rb: use Socket.tcp_server_sockets to create se... -
05:28 PM Revision 7af9573b (git): merge revision(s) 39253:
- win32.c: style
* win32/win32.c (rb_w32_fd_is_text): adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:24 PM Revision e8237c5b (git): merge revision(s) 39236: [Backport #7841]
- * class.c (include_modules_at): detect cyclic prepend with original
method table. [ruby-core:52205] [Bug #7841]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:17 PM Revision 362f70c3 (git): merge revision(s) 39234,39235: [Backport #7843]
- * vm_method.c: call method_removed hook on called class, not on
prepending iclass.
prepending iclass. [ruby-core:52207] [Bug #7843]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39565 b2dd03c8-39d... -
04:59 PM Revision 00ded5b2 (git): merge revision(s) 39214,39221: [Backport #7830]
- configure.in: Werror-implicit-function-declaration
* configure.in (warnflags): -Werror-implicit-function-declaration
haven't been used as-is, but always replaced with -Werror= or -W.
* configure.in (warnflags): disable... -
04:46 PM Revision 69ac3b4d (git): merge revision(s) 39184:
- add doc. for IO#close_on_exec=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:33 PM Revision da56b059 (git): fix typos in r39560
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:33 PM Revision 59e66b10 (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:17 PM Revision 32458a01 (git): ext_conf_builder.rb: hack for obsolete sytle gems
- * lib/rubygems/ext/ext_conf_builder.rb
(Gem::Ext::ExtConfBuilder.hack_for_obsolete_sytle_gems): remove
circular dependencies for old style gems which locate extconf.rb on
the toplevel. [ruby-core:53059] [ruby-trunk - Bug #7698]
... -
04:16 PM Revision 9b79ed12 (git): ext_conf_builder.rb: use RUBYOPT
- * lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
use RUBYOPT instead of -r option, and revert some tests. [Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:14 PM Revision c0c72c9b (git): ext_conf_builder.rb: build in the source directory
- * lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
revert use of temporary directory for build, to work some buggy
extconf.rb which cannot build outside the source directory.
[ruby-core:53056] [Bug #7698]
gi... -
03:31 PM Revision ee01561b (git): * ChangeLog: fix a typo in r39552.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:04 PM Revision 77324855 (git): mswin: static-linked-ext
- * enc/depend (CPPFLAGS), lib/mkmf.rb (MakeMakefile#create_makefile):
define RUBY_EXPORT for static-linked-ext mswin. [Bug #7960]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:01 PM Revision 248aa54c (git): * 2013-03-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:01 PM Revision fa063055 (git): update doc.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:43 PM Bug #8000 (Closed): "require 'tk'" segfaults on 64-bit linux with Tk 8.6
- Using ruby 1.9.3p392 and Tk 8.6.0 on 64-bit Arch Linux, attempting to "require 'tk'" causes a segfault.
To reproduce:
ruby -e "require 'tk'"
The crash log is in the attached file.
Notes:
- I've heard from a Gentoo user who... -
01:50 PM Revision d613f283 (git): Makefile.sub: MAKEDIRS
- * win32/Makefile.sub (config.status): set MAKEDIRS to use
makedirs.bat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:49 PM Revision 2250b195 (git): Makefile.sub: static-linked-ext
- * win32/Makefile.sub (EXTOBJS, EXTOBJS, config.h): definitions for
static-linked-ext. [Bug #7960]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:36 AM Revision b1f493dc (git): * lib/webrick/utils.rb: use Socket.tcp_server_sockets to create server
- sockets.
fix [Bug #7100] https://bugs.ruby-lang.org/issues/7100
reported by sho-h (Sho Hashimoto).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:59 AM Feature #7986: Custom case statement comparison method
- =begin
> "It is puzzling that you must always super first, then if unhandled execute the case expression, but do nothing if the object is unknown. It seems very error prone."
Why? That's not uncommon. In this particular case you don't "... -
05:43 AM Feature #7986: Custom case statement comparison method
- =begin
It is puzzling that you must always super first, then if unhandled execute the case expression, but do nothing if the object is unknown. It seems very error prone.
Why not execute the subclass case expression first, then supe... -
05:34 AM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
- I don't have a locale set, so I don't think that that could be the problem.
And even so, how would that affect a tight loop? -
04:52 AM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
- =begin
Even with irb:
$ irb -rbenchmark
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 2.0.0p0 (2013-02-24 revision 39473) [x86_64-darwin12.2.1]"
irb(main):002:0> Benchmark.measure { 50000000.times { Object.new } }
=> #<B... -
05:30 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
- Ok, i see.
-
05:02 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
- > I also do not see right away an incompatibility introduced by my second proposal (about the original one you are right).
#before
[[1,2]].each{|a, b| p a, b} # => 1, then 2
# after
[[1,2]].each{|a, b| p a, b} # => [1, 2], ... -
04:45 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
- Marc-Andre, thanks for the idea, i did not realize that `each_with_index` works with all enumerables.
However i was hoping that something like `unless iteration.first?` could be some day optimized away by a compiler to not check on ever... -
04:31 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
- Please think about the number of incompatibilities this would bring... not all enumerables are sequences of single items.
Just use `each_with_index` and `index.zero?` instead of `iteration.first?` -
04:27 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
- =begin
Ok, then i make a last try: what about adding it in the end of parameter list as an optional parameter?
items.each do |item, iteration|
unless iteration.first?
# do something that is not applicable to the first iter... -
03:48 AM Feature #7994 (Rejected): Make iterators pass an implicit named parameter `iteration` to the executed block
- Nice idea.
But I reject the idea for Ruby for two reasons:
* I personally don't like implicit parameters
* That might cause incompatibility by conflicting with existing local variable name
Maybe good for a new language without ... -
12:55 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
- regularfry (Alex Young) wrote:
> On 01/03/13 15:21, alexeymuranov (Alexey Muranov) wrote:
> ...
Sorry, i didn't understand, how do you plan to use this? -
12:53 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
- On 01/03/13 15:21, alexeymuranov (Alexey Muranov) wrote:
>
> Issue #7994 has been reported by alexeymuranov (Alexey Muranov).
What advantages does this have over:
items.drop(1).each do |item|
or
items[1..-1... -
12:30 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
- =begin
As a use case, i wanted to create a pagination navigation element on a web page in ((*Haml*)) template. What i ended up with looks redundant to me. With the suggested feature, i would be able to do:
%nav.pagination
- [page_... -
12:21 AM Feature #7994 (Rejected): Make iterators pass an implicit named parameter `iteration` to the executed block
- =begin
I think it would be nice to be able to write something like this:
items.each do |item|
unless iteration.first?
# do something that is not applicable to the first iteration
end
# do whatever is to be don... -
04:27 AM Feature #7998 (Closed): "def" should return a value (the symbol of the method name) instead of nil
- The C code that implements Ruby method definitions already creates a symbol corresponding to the method name.
I propose that the "def... end" block returns this symbol.
This would allow the following elegant Ruby code:
protected... -
03:29 AM Bug #7331: Set the precedence of unary `-` equal to the precedence `-`, same for `+`
- After some thinking, i want to add my last word on this :). I have not seen any "official" rule on parsing "- 2 * 3" (unless i was taught this in elementary school but not sure). However, i'll try to explain my reasons for believing th...
-
02:41 AM Bug #7993: owner of methods defined after using Module#prepend
- Agreed. I described this in [ruby-core:52261], part of issue #7842.
-
12:01 AM Bug #7993 (Closed): owner of methods defined after using Module#prepend
- The owner of methods defined after using Module#prepend seems to be incorrect.
```ruby
RUBY_DESCRIPTION # => "ruby 2.1.0dev (2013-03-01 trunk 39546) [x86_64-linux]"
class C
attr_reader :a
prepend Module.new
attr_reader :b... -
01:48 AM Feature #7978: boolean to_i
- phluid61 (Matthew Kerwin) wrote:
>
> ...
If some event is going to happen with probability 1, it is almost surely true that it will happen. If it is going to happen with probability 0, it is almost surely false that it will happen. -
01:44 AM Bug #7995 (Closed): RubyVM::InstructionSequence to_a not working for blocks
- Hello,
I try to convert this code into an array via RubyVM::InstructionSequence:
-----
def test
yield
end
test do
puts "hi there"
end
-----
then read it back via "iseq_s_load".
This causes an error that there is no blo... -
12:43 AM Bug #7968 (Open): Poor UDPSocket#send performance in ruby 2.0.0 on windows
-
12:06 AM Feature #3944: Add Fiber#root? method
- Julien please see ruby-core:45849 and also read up on the wiki: http://bugs.ruby-lang.org/projects/ruby/wiki/HowToRequestFeatures
03/01/2013
-
10:45 PM Feature #7986: Custom case statement comparison method
- =begin
@martin Being able to rely on inheritance and case statements I am able to remove hundreds of lines of complex DSL code. For example, old code:
emit Foo, via: foo
def emit_foo(obj)
...
end
The new code:
... -
06:53 PM Feature #7986: Custom case statement comparison method
- On 2013/03/01 17:42, trans (Thomas Sawyer) wrote:
> One does not necessarily have the luxury of putting the classes in order. Consider a case that uses inheritance:
[snip]
> Now add a dozen or so additional classes and th... -
05:42 PM Feature #7986: Custom case statement comparison method
- =begin
One does not necessarily have the luxury of putting the classes in order. Consider a case that uses inheritance:
class Handler
def handle(obj)
case obj
when Foo
"Foo"
end
end
end
class Sub... -
12:56 PM Feature #7986: Custom case statement comparison method
- =begin
Why not use the features of case statements properly? For classes, place the subclass above the superclass. For array inclusion, use splat:
class Foo; end
class Bar < Foo; end
def case_klass obj
case obj
... -
09:56 PM Feature #3944: Add Fiber#root? method
- what is Next Major ? 3.0 ???
The issue was more than 2 years ago, after looking at the code the implementation should not be a challenge and yet nothing.
it is so depressing watching the ruby redmine seriously...
-
09:50 PM Feature #7292: Enumerable#to_h
- +1
This would just feel right and natural to me. -
08:05 PM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- sbaird (Simon Baird) wrote:
> I don't think the benchmarks are particularly relevant here. We should define Tau because it's important, not for any performance benefit.
Indeed.
Although I am not sure of the importance of having TA... -
09:46 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- I don't think the benchmarks are particularly relevant here. We should define Tau because it's important, not for any performance benefit.
-
09:37 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- david_macmahon (David MacMahon) wrote:
> I vote -1 on this idea because the name "TAU" is used in a number of fields to represent a wide variety of things:
> ...
mhartl addresses this here:
http://tauday.com/tau-manifesto#sec:ambiguo... -
06:34 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- drbrain (Eric Hodel) wrote:
> Martin, you are right. With a corrected benchmark there is an 8.5% +/- 1.2% improvement:
To be more accurate, you'd have to subtract the time of an empty loop. If you compare 42 * pi with 42 *pi; 42 * p... -
06:15 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- +1
-
05:50 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- Martin, you are right. With a corrected benchmark there is an 8.5% +/- 1.2% improvement:
~~~
x tau.txt
+ 2pi.txt
+--------------------------------------------------------------------------+
|xx x x ... -
05:46 PM Revision e563e6bf (git): * array.c: typo in comment patch by Nami-Doc [Github fixes #253]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:29 PM Bug #7958: include FileUtils::Verbose gives NoMethodError when installing files with a different mode
- Here is a patch with the fix the r34669 code.
Sorry, I do not know what you mean by "I cannot determine what user-facing feature r34669 added to FileUtils as define_command was private".
If it helps to clarify, the define_command ... -
11:16 AM Bug #7958: include FileUtils::Verbose gives NoMethodError when installing files with a different mode
- There's no reason r34669 cannot be fixed and re-applied at a future date.
I cannot determine what user-facing feature r34669 added to FileUtils as define_command was private, so reverting it seemed to be the safest course of action to... -
11:09 AM Bug #7958 (Closed): include FileUtils::Verbose gives NoMethodError when installing files with a different mode
- This issue was solved with changeset r39544.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/fileutils.rb: Revert r34669 which altered the way
metapr... -
04:37 PM Revision 6751ba4c (git): Suppress warning: uninitialized value
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:36 PM Revision 51a747c5 (git): * 2013-03-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:36 PM Revision 78dbaa16 (git): * Merge Onigmo 0fe387da2fee089254f6b04990541c731a26757f
- v5.13.3 [Bug#7972] [Bug#7974]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:18 PM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
- The only difference in my CFLAGS is that mine also has "-fno-common".
However, I ran:
ruby -rbenchmark -ve 'puts Benchmark.measure { 50000000.times { Object.new } }'
and was unable to reproduce. However, I can reproduce every single... -
10:05 AM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
- =begin
I also see the same thing Eric does, but with 1.9.3p392:
$ ruby -rbenchmark -ve 'puts Benchmark.measure { 50000000.times { Object.new } }'
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.1]
9.400000 0.100000... -
06:51 AM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
- =begin
I cannot reproduce your result:
$ ruby -rbenchmark -ve 'puts Benchmark.measure { 50000000.times { Object.new } }'
ruby 2.0.0p0 (2013-02-24 revision 39473) [x86_64-darwin12.2.1]
10.600000 0.010000 10.610000 ( 10.612499)
... -
03:21 AM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
- naruse (Yui NARUSE) wrote:
> It is not apple gcc 4.2, which is the one usually used on linux, but llvm-gcc.
> ...
I had "apple-gcc42" installed with brew, but I didn't realize that its executable is suffixed with -4.2. I was able to co... -
12:43 AM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
- jcole1989 (James Coleman) wrote:
> I have the latest command line tools and Xcode 4.6 installed. The gcc error is known, see: https://bugs.ruby-lang.org/issues/7956 -- the solution was that rvm switched to Clang as the default CC for no... -
12:50 PM Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension libraries
- What make do you have?
I have GNU Make 3.81 and cannot reproduce. -
11:47 AM Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension libraries
- It also breaks a test.
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20130301T010202Z.log.html.gz
8) Error:
test_install_extension_and_script(TestGemInstaller):
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem nat... -
10:56 AM Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension libraries
- =begin
This patch causes the rdiscount extension to fail to install since it reads a local file:
https://github.com/rtomayko/rdiscount/blob/master/ext/extconf.rb#L18
The exception:
Building native extensions. This could take... -
07:27 AM Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension libraries
- Committed r39542. Thank you nobu for the RubyGems patch!
-
07:27 AM Bug #7971: bson_ext doesn't install correctly in Ruby 2.0.0-p0
- Thank you nobu for the RubyGems patch!
-
07:25 AM Bug #7971 (Closed): bson_ext doesn't install correctly in Ruby 2.0.0-p0
- This issue was solved with changeset r39542.
Rodrigo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rubygems/ext/builder.rb: Fix incompatibilities when ins... -
07:25 AM Bug #7968 (Closed): Poor UDPSocket#send performance in ruby 2.0.0 on windows
- This issue was solved with changeset r39542.
Alan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rubygems/ext/builder.rb: Fix incompatibilities when instal... -
04:55 AM Revision 76855753 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:47 AM Bug #7985: Kidsruby crashes on Ubuntu thin client
- Seems to be a QtGui font bug.
-
02:41 AM Feature #7845: Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1)
- I'm not sure I understand the rationale behind rejecting this issue based on locale issues. I'm in support of this ticket, and will try and grab someone who can respond to naruse's concerns.
-
02:10 AM Revision 528e02fc (git): Fixed ticket reference for r39542
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:09 AM Revision 874f8c04 (git): * lib/fileutils.rb: Revert r34669 which altered the way
- metaprogramming in FileUtils occurred. [ruby-trunk - Bug #7958]
* test/fileutils/visibility_tests.rb: Refactored tests of FileUtils
options modules to expose bug found in #7958
* test/fileutils/test_dryrun.rb: ditto.
* test/fileuti... -
02:00 AM Bug #7988: Module#prepend(Module) and instance_method causes Segmentation fault
- I found that this caused by r39224.
-
12:18 AM Revision 6213b837 (git): * lib/psych.rb: specify in rdoc what object is returned in parser
- By Adam Stankiewicz [Github tenderlove/psych#133]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e