Activity
From 07/25/2012 to 07/31/2012
07/31/2012
-
08:58 PM Revision f52eefec (git): test_rubyoptions.rb: fix test failure on Windows
- * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_encoding):
Fix test_encoding failure on Windows.
With chcp 65001, 1252 and 437, test_encoding failed. Test result
depends on locale because LANG environment variable doesn't aff... -
08:05 PM Feature #5583: Optionally typing
- Maybe, as a form of typing, Ruby can somehow implement *contracts*, like in http://en.wikipedia.org/wiki/Design_by_contract ?
Some "contract description language" would need to be invented, and classes or methods would then have a possib... -
07:15 PM Feature #6183: Enumerator::Lazy performance issue
- Yusuke Endoh, thanks a lot for pointing out on this issue.
Fixed, please see new diff attached. -
06:05 PM Feature #6812: Refactor gc.c
- shyouhei (Shyouhei Urabe) wrote:
> authorNari (Narihiro Nakamura) wrote:
> ...
アドバイスありがとうございます。そうですね。目的についてもう少し整理してから出なおしてきます。 -
05:51 PM Feature #6812: Refactor gc.c
- authorNari (Narihiro Nakamura) wrote:
> gc.cがごちゃごちゃしてきたので見通しがよくなるように
とありますが、真の狙いは違うのではないか、というふうに思います。見通しがよくなるように、でよければ、mark&sweepとか言わなくてもいいはずですよね。というか、言うまでもない。
本当にやりたいことを整理すると、適切な名前が見えてくるのかもしれないと思います(保証するわけではありませんが)。 -
05:26 PM Feature #6812: Refactor gc.c
- shyouhei (Shyouhei Urabe) wrote:
> On 2012年07月31日 10:48, authorNari (Narihiro Nakamura) wrote:
> ...
上記の発言から読み取ると卜部さんがご指摘されているのは以下の2点と考えて
よろしいでしょうか?
* msは何の略かわからないので避けるべき
* そもそもmark_sweepをファイル名に出すのはよくない
* mark_sweepの別のgcを実装するとき... -
01:23 PM Feature #6812: Refactor gc.c
- On 2012年07月31日 10:48, authorNari (Narihiro Nakamura) wrote:
>> 個人的には ms で mark & sweep 以外無いだろう,と思ったので,あまり違和感
>> が無かったのですが....
いくらなんでも2文字じゃあちょっと
> なるほど…。
>
> 個人的にはgc.c自体は変える気はなく、gc.cにincludeされるファイルの名前なのでアルゴリズム名もあり... -
10:48 AM Feature #6812: Refactor gc.c
- ko1 (Koichi Sasada) wrote:
> (2012/07/31 8:23), authorNari (Narihiro Nakamura) wrote:
> ...
なるほど…。
個人的にはgc.c自体は変える気はなく、gc.cにincludeされるファイルの名前なのでアルゴリズム名もありかと思っています。
アルゴリズムが変わったらファイル名も変えればいいかなと。
ですので、gc_mark_sweep.cあたりでどうでしょうか。
#... -
08:59 AM Feature #6812: Refactor gc.c
- (2012/07/31 8:23), authorNari (Narihiro Nakamura) wrote:
> 上記、ありがとうございます。アルゴリズム名以外の名前…。gc_coreとかですかね。
core はやめたほうがいいです(と,vm_core.h という名前を付けた人が反省し
ています).
個人的には,gc.c -> objspace.c にして,objspace_gc.c,
objspace_gc_(mark|sweep... -
08:23 AM Feature #6812: Refactor gc.c
- kosaki (Motohiro KOSAKI) wrote:
> (7/30/12 9:51 AM), Urabe Shyouhei wrote:
> ...
上記、ありがとうございます。アルゴリズム名以外の名前…。gc_coreとかですかね。 -
08:21 AM Feature #6812: Refactor gc.c
- ko1 (Koichi Sasada) wrote:
> パッチを細かく見てないんですが,確認させて下さい.
> ...
ファイル分割する都合で何個か関数を追加してますが、基本的には移動しただけです。
> > = パッチの簡単な解説
> ...
インタフェースとなる関数とかデータ構造がまとまってたほうが読みやすいかなと思ったんですが、いらないかもですね。
> > * gc_ms_heap.c
> ...
現在はheapの構造に依存しています。完全... -
12:53 AM Feature #6812: Refactor gc.c
- (7/30/12 9:51 AM), Urabe Shyouhei wrote:
> On 2012年07月30日 17:07, authorNari (Narihiro Nakamura) wrote:
>> +-- gc_ms.[ch]
>
> すいませんがさすがにmsでmark&sweepの意味とは普通の人は分かりません、別の名前にしてください。
> 俺もわかんなかったので間違いないです。
一般論としてはアルゴリズムはあとから... -
05:42 PM Bug #6818: Incorrect Date.parse results
- Pissed off.
I hereby propose to deprecate this feature. -
04:58 PM Bug #6818 (Rejected): Incorrect Date.parse results
- Since this is a standard library and I couldn't find a dedicated page for the Date module
require 'time
> Date.parse '07/31/2012'
ArgumentError: invalid date
from (pry):3:in `parse'
In the United States, MM/DD/YYYY is perhaps ... -
04:16 PM Feature #6808: Implicit index for enumerations
- trans (Thomas Sawyer) wrote:
> > I'm not clear why the #with_index method isn't adequate for your needs.
> ...
Are the times of these benchmarks dominated by object creation or iteration? What happens if you run a small number of trial... -
02:20 PM Feature #6808: Implicit index for enumerations
- =begin
> I'm not clear why the #with_index method isn't adequate for your needs.
Yes, functionally your are right. I was just thinking that the overall overhead would be less if enumerator wasn't used. I ran some benchmarks: https://gis... -
08:23 AM
Feature #6808: Implicit index for enumerations
- On Jul 30, 2012, at 6:59 PM, trans (Thomas Sawyer) <[email protected]> wrote:
>
> Issue #6808 has been updated by trans (Thomas Sawyer).
>
>
>> There is no such index internal to Enumerator to make accessible.
>
> It not ... -
07:59 AM Feature #6808: Implicit index for enumerations
- > There is no such index internal to Enumerator to make accessible.
It not about Enumerator, its about #each itself. And there certainly is and index with #each method itself. e.g. https://github.com/ruby/ruby/blob/trunk/array.c#L1549... -
06:37 AM Feature #6808: Implicit index for enumerations
- There is no such index internal to Enumerator to make accessible.
each_with_index already exists to do this. The use of each_with_index is preferable to an implicit, lazy iteration count. The former is intention-revealing while the l... -
06:09 AM Feature #6808: Implicit index for enumerations
- @drbrain It's a fair point. But I imagine the index already exists under the hood. Probably the question is, can it be made accessible with little overhead?
Perhaps `it` could even be partially lazy, so full overhead doesn't even come ... -
04:30 AM Feature #6808: Implicit index for enumerations
- What about the overhead for an infinite enumerator that does not use the implicit index? Especially after a few days of CPU time for a frequently-used enumerator?
-
03:38 PM Feature #6817 (Assigned): Partial application
- I know that what I propose here is a significant change to Ruby, but it's part of my ongoing quest to get some more functional programming features into Ruby (see also #4539 and #6373).
I was wondering if it would make sense to maybe... - 03:33 PM Revision 59c13930 (git): * 2012-08-01
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:33 PM Revision b283d019 (git): class.c: fix duplication of prepended module
- * class.c (include_class_new): fix duplication of prepended module.
since m_tbl of prepended module is always zero, copy from its
copy iclass of original.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36585 b2dd03c8-39d4-4d8f-9... -
03:02 PM Bug #6816 (Closed): Can't compile ruby 2.0.0dev on Mac OS X 10.8
- CC = gcc
LD = ld
LDSHARED = gcc -dynamic -bundle
CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werro... -
10:46 AM Bug #6814 (Assigned): Test failures in test_win32ole_variant.rb
-
10:45 AM Bug #6813: TestRubyOptions#test_encoding failure on Windows
- Commit it, please.
-
09:55 AM Bug #4163 (Closed): RubyGems uses deprecated API: YAML.quick_emit.
- Only if psych is not available, so it is OK.
-
09:22 AM Revision bc08bdc0 (git): variable.c: fix r36574
- * variable.c (classname): tell if found name is permanent. search
tmp_classpath only if class id is set. [ruby-core:42865][Bug #6078]
* variable.c (rb_class_path): duplicate found temporary path.
* variable.c (rb_set_class_path_strin... -
04:32 AM Feature #6806: Support functional programming: forbid instance/class variables for ModuleName::method_name, allow for ModuleName.method_name
- This would break compatibility with much ruby code.
-
01:37 AM Revision 30d957fc (git): * ext/psych/lib/psych.rb: updated to released version.
- * ext/psych/psych.gemspec: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:45 AM Revision c7c4e87a (git): * test/ruby/test_module.rb (TestModule#test_classpath): fix
- typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
07/30/2012
-
11:57 PM Bug #6814 (Closed): Test failures in test_win32ole_variant.rb
- Originally this was reported on RubyInstaller-list by dmajkic.
https://groups.google.com/d/msg/rubyinstaller/a4TS9XAsia0/NkZZOzG6n4wJ
Quote:
-------
This one is about 3 failures I have in "test_win32ole_variant.rb".
Those are: ... -
11:36 PM Bug #6813 (Closed): TestRubyOptions#test_encoding failure on Windows
- TestRubyOptions#test_encoding fails. This failure depends on cmd code page.
With chcp 932 the test passes, but with chcp 65001, 1252 and so on the test fails.
[ 9/38] TestRubyOptions#test_encoding = 0.04 s
1) Failure:
test_encodi... - 09:18 PM Revision d604ac3f (git): * 2012-07-31
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:18 PM Revision b773a4f8 (git): * time.c (time_sec): Remove extra wording about leap seconds and refer
- directly to Wikipedia's leap second page for further information.
[Bug #6749]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:53 PM Feature #6812: Refactor gc.c
- パッチを細かく見てないんですが,確認させて下さい.
(2012/07/30 17:07), authorNari (Narihiro Nakamura) wrote:
> gc.cがごちゃごちゃしてきたので見通しがよくなるようにvm_xx.cみたいにファ
> イルを分割しました。この修正ではCやRubyレベルのAPIの変更はありません。
> # 2ヶ月前の開発会議で議論していた件です。
> # http://bugs.ruby-lang.or... -
05:07 PM Feature #6812 (Closed): Refactor gc.c
- nariです。
gc.cがごちゃごちゃしてきたので見通しがよくなるようにvm_xx.cみたいにファ
イルを分割しました。この修正ではCやRubyレベルのAPIの変更はありません。
# 2ヶ月前の開発会議で議論していた件です。
# http://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20120601
変更内容は以下のURLで閲覧できます。
https://github.com/au... -
03:06 PM Bug #6799 (Assigned): Digest::*.hexdigest returns an ASCII-8BIT String
- Given that the string has only ASCII characters, an encoding of US-ASCII indeed seems best. Benoit, unless somebody objects soon, I think you should go ahead with your patch.
-
02:24 PM Bug #6078 (Closed): The name of a module nested in an anonymous module depends on how it was created
- This issue was solved with changeset r36574.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
variable.c: tmp_classpath
* variable.c: store anonymous class p... -
02:04 PM Revision 0357ac8a (git): * lib/rubygems/platform.rb (Gem::Platform#initialize): Support pattern
- like x86_64-netbsd6.99.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:04 PM Revision e62ee612 (git): On amd64, RUBY_PLATFORM is x86_64-netbsd6.99.7.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:00 PM Revision 0e15934d (git): variable.c: fix r36574
- * variable.c (find_class_path): no retry when preferred is given.
* variable.c (classname): if classid is set try it to find full
qualified class path, and then try arbitrary class path. try
tmp_classpath at last even if enclosing n... -
06:03 AM Revision e652ecfa (git): Suppress warnings.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:59 AM
Feature #2565: adding hooks for better tracing
- On Sun, Jul 29, 2012 at 12:02:27PM +0900, SASADA Koichi wrote:
> Sorry for late response.
>
> (2012/07/19 3:52), tenderlovemaking (Aaron Patterson) wrote:
> > https://bugs.ruby-lang.org/projects/ruby/wiki/DTraceProbes
>
> my c... -
05:53 AM
Feature #2565: adding hooks for better tracing
- On Sun, Jul 29, 2012 at 11:36:49AM +0900, SASADA Koichi wrote:
> Sorry for late response.
>
> (2012/07/03 13:26), vo.x (Vit Ondruch) wrote:
> > ko1 (Koichi Sasada) wrote:
> >> (but I can't understand sed script ^^; I prefer ruby... -
04:23 AM
Feature #2565: adding hooks for better tracing
- Dne 29.7.2012 4:36, SASADA Koichi napsal(a):
> Sorry for late response.
>
> (2012/07/03 13:26), vo.x (Vit Ondruch) wrote:
>> ko1 (Koichi Sasada) wrote:
>>> (but I can't understand sed script ^^; I prefer ruby script :)
>>... -
05:56 AM Revision 787e4009 (git): NetBSD's /proc/<pid>/task is broken.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:24 AM Revision 83940fc3 (git): variable.c: tmp_classpath
- * variable.c: store anonymous class path in tmp_classpath but not in
classpath. [ruby-core:42865][Bug #6078]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:11 AM Revision 48d7aa4a (git): configure.in: deprecate -flat_namespace
- * configure.in (DLDFLAGS): on Darwin, deprecate -flat_namespace to get
rid of huge imported symbols table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:11 AM Revision a1855814 (git): configure.in: runnable if disable-shared
- * configure.in (LIBRUBY_RELATIVE): libruby_so is not made when
disable-shared, so no absolute path is used for it and executable
file is runnable anywhere.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36572 b2dd03c8-39d4-4d8f-... -
03:42 AM Feature #6373: public #self
- FWIW, I'm the one who suggested this method as an addition to Facets, mainly for the reason headius mentions above, it's the simplest filter available. I'm still torn on the name, but for some reason #self didn't seem right. For my own e...
-
03:29 AM Feature #6811: File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
- On 29 July 2012 20:07, trans (Thomas Sawyer) <[email protected]> wrote:
> Sorry, it is if $DEBUG = true, not $VERBOSE.
>
> Here's the issue:
>
>> FileUtils.mkdir_p('a/b/c/d')
> Exception `Errno::ENOENT' at /home/trans/.loc... -
03:07 AM Feature #6811: File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
- =begin
Sorry, it is if $DEBUG = true, not $VERBOSE.
Here's the issue:
> FileUtils.mkdir_p('a/b/c/d')
Exception `Errno::ENOENT' at /home/trans/.local/lib/ry/rubies/1.9.3-p125/lib/ruby/1.9.1/fileutils.rb:247 - No such file or directo... -
12:26 AM Feature #6811: File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
- prijutme4ty (Ilya Vorontsov) wrote:
> I found that often write
> ...
Bang methods are not usually used for that in Ruby core and stdlib.
I agree for the practical point of view of this though.
I'm unsure what a good name would be.
... -
01:31 AM Bug #6789 (Closed): parse.y compilation error due not updated id.h
- This issue was solved with changeset r36571.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* common.mk: add a dependency. [ruby-core:46741] [Bug #6789] -
12:40 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- If i express the rule for constant lookup as i have understood it, it seems that the lookup follows the code indentation from right to left, and in particular in
```ruby
module A
module B; N=1; end
module B::C
puts N # => ...
07/29/2012
-
11:52 PM Feature #6802: String#scan should have equivalent yielding MatchData
- prijutme4ty (Ilya Vorontsov) wrote:
> Though I suggest that using a special method here is more clear.
> ...
I did indeed somewhat expected String#scan to yield a MatchData object, instead of $~.captures.
I'm in favor of String#each_m... -
10:28 PM Feature #6802: String#scan should have equivalent yielding MatchData
- +1 I have definitely used this before (as Facets' #mscan).
-
08:13 PM Feature #6802: String#scan should have equivalent yielding MatchData
- Thank you for a solution! I always forgot about regexp global vars. Though I suggest that using a special method here is more clear. So what'd you say about String#each_match and Regexp#each_match
Yes, implementation is as simple as
cl... -
11:49 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- Perry, totally agreed. The way this works and how constant name resolution works should be a well-covered topic. But traditionally it has not been very well documented. In particular the separation between constants and modules/classes i...
-
11:33 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- I agree with Alexey... I'm surprised.
His third example shows that the lookup of N is done at run time and starts from the inner scope of B, if no match, search A, if no match search globals. ... At least, that is how it appears to me... -
10:27 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- I'll look at the video and think about this, thanks.
-
09:38 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- They are very decoupled, name is the only bit mostly in common, set on constant assignment. May I link to a talk of mine, which covers this (content constrained by the 30min slot): http://www.youtube.com/watch?v=wCyTRdtKm98.
In particul... -
08:27 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- Thanks for the example. I do not see however that constants and modules be decoupled: there is `Module#name` method, so what would be wrong with deriving `Module::nesting` from the innermost module name? Can an anonymous module ever ap...
-
05:09 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- I cannot tell you the ultimate rationale behind this, but I can tell you that with the current semantics that is not well-defined.
The problem is that nesting stores module objects, not constant names. Consider for example:
mod... -
04:24 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- Xavier, thanks for the explanation, i see now why it works this way, so this is not a bug. However, can anybody please explain to me why this is a desired behavior, i mean the way the nesting is calculated? Wouldn't it be easier if
... -
04:10 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- Yes, this is expected.
The resolution algorithm first checks the modules in the nesting (in their very constants table, it ignores their ancestors), then the ancestors of the module the constants appears in (the first one in the nesting... -
03:55 AM Feature #6810 (Assigned): `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- Is this the expected behavior? To me, it is rather surprising:
```ruby
N = 0
module A
module B
def self.f; N; end
end
N = 1
end
A::B.f # => 1
N = 0
A::B.f # => 0
A::N = 1
A::B.f # => 1
A::B::N = ... -
10:32 PM Feature #6811: File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
- At least for mkdir you can use mkdir_p, although it annoyingly warns about missing path if $VERBOSE=true (can we consider that a bug please?).
-
08:34 PM Feature #6811 (Assigned): File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
- I found that often write
Dir.mkdir(folder) unless Dir.exist? folder
and similar code for rm, rm_rf and so on
We can simply make bang-versions like
def Dir.mkdir!(folder, permissions=0744)
Dir.mkdir(folder, permissions) unless Dir... -
07:43 PM Feature #6735: curses: support linking against pdcurses
- I cannot account for the developer's failure to compile ncurses, since he's
never provided a bug report. However, it's trivial to cross-compile, so
perhaps some progress might be made in that area. I've put a zip-file with
current c... -
04:31 PM Revision 8800a83f (git): * common.mk: add a dependency. [ruby-core:46741] [Bug #6789]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:00 PM Revision 9cdf5548 (git): * thread.c (thread_create_core): hide th->async_errinfo_mask_stack from
- ObjectSpace.each_object. refix of r36539.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:25 PM Revision b521dcb9 (git): * 2012-07-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:25 PM Revision 240dd36f (git): option.c: mingw64 only
- * ext/socket/option.c (inet_ntop): something weird only on mingw64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:57 PM Revision dc401147 (git): option.c: use rb_w32_inet_ntop
- * ext/socket/option.c (inet_ntop): use rb_w32_inet_ntop, instead of
inet_ntop directly, which is unavailable on older version Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:56 PM Revision f9368f65 (git): win32.c: rb_w32_inet_ntop should be const
- * win32/win32.c (rb_w32_inet_ntop): type should be const.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:23 PM Feature #2565: adding hooks for better tracing
- (2012/07/29 12:02), SASADA Koichi wrote:
>
>> > ruby:::line(filename, lineno);
> Your patch depends on the `trace' instruction. I plan to remove `trace'
> instruction on default (if I can implement it). It will conflicts with... -
12:23 PM Feature #2565: adding hooks for better tracing
- Sorry for late response.
(2012/07/19 3:52), tenderlovemaking (Aaron Patterson) wrote:
> https://bugs.ruby-lang.org/projects/ruby/wiki/DTraceProbes
my comments:
> ruby:::function-entry(classname, methodname, filename, ... -
11:53 AM Feature #2565: adding hooks for better tracing
- Sorry for late response.
(2012/07/03 13:26), vo.x (Vit Ondruch) wrote:
> ko1 (Koichi Sasada) wrote:
>> (but I can't understand sed script ^^; I prefer ruby script :)
>
> As I said, there are several conditions which shou... -
10:53 AM
Bug #6799: Digest::*.hexdigest returns an ASCII-8BIT String
- On Fri, Jul 27, 2012 at 07:34:30PM +0900, Eregon (Benoit Daloze) wrote:
>
> Issue #6799 has been updated by Eregon (Benoit Daloze).
>
>
> duerst (Martin Dürst) wrote:
> > So what should it return? [If you create a bug, saying w... -
08:53 AM Feature #6808: Implicit index for enumerations
- The inconsistency between operations over Arrays and Hashes isn't always avoidable, but consider:
h = Hash[1, 2, 3, 4, 5, 6]
a = [1, 2, 3, 4, 5, 6]
h[3]
=> 4
h.detect{|k, v| k == 3 }
#=> [3, 4]
a[3]
#=> 3
a.detect{|v| v =... -
01:35 AM Feature #6808: Implicit index for enumerations
- Ixnay on the global variable. It was just pointed out to me that it would be problem for nested iterations. Keyword could still work though b/c it would be block local.
-
01:11 AM Feature #6808 (Feedback): Implicit index for enumerations
- =begin
One of the less lovely things about Ruby's otherwise elegant enumerables is the lack of ubiquitous access to the current index. Because of this, we end up with a bevy of extra methods that are little more than counter parts and c... -
06:33 AM Bug #2729: `unexpected break' occurs when a proc is called in ensure
- #5234 has been backported to 1.9.3 at least.
-
06:31 AM Bug #2729: `unexpected break' occurs when a proc is called in ensure
- =begin
This patch doesn't seem to have landed in 1.9.2 and 1.9.3. Can someone backport it?
$ git checkout trunk
$ git log --oneline | grep 33064
a09e713 * proc.c (proc_new): force to rewrite errinfo when calling Proc.new in ens... -
05:28 AM Revision afde2e8d (git): * thread.c (Init_Thread): does not need to set klass
- explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:48 AM Bug #6789: parse.y compilation error due not updated id.h
- nagachika (Tomoyuki Chikanaga) wrote:
> Well, doesn't this patch fix this issue?
Yes, it did.
Can you commit it?
Thank you. -
02:53 AM Bug #6789: parse.y compilation error due not updated id.h
- Well, doesn't this patch fix this issue?
-
02:23 AM Revision 33d5c484 (git): merge revision(s) 36455: [Backport #6772]
- * ext/curses/extconf.rb: support PDCurses. patched by Luis Lavena.
[ruby-core:46485] [Feature #6735]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:15 AM Bug #6809 (Closed): Deprecation of Config
- I saw nobu removed Config (the old RbConfig) at r36330.
While I totally approve this (use the RbConfig constant instead of Config), I already noticed a few failures due to it.
The comment in lib/rbconfig/obsolete.rb says "compatibi...
07/28/2012
-
11:29 PM Bug #6804 (Closed): test_generate_bin_bindir_with_user_install_warning(TestGemInstaller) fails on windows.
- Thank you Oleg,
This issue has already been fixed in upstream RubyGems and will be part of release 1.8.25 (not yet released)
-
01:22 PM Bug #6804 (Closed): test_generate_bin_bindir_with_user_install_warning(TestGemInstaller) fails on windows.
- The test fails on Windows with the following error:
--- expected
+++ actual
@@ -1 +1,3 @@
-""
+"WARNING: You don't have C:\\Windows in your PATH,
+\t gem executables will not run.
+"
The problem is incorrect test in Gem::Inst... -
10:37 PM Feature #6806: Support functional programming: forbid instance/class variables for ModuleName::method_name, allow for ModuleName.method_name
- I think that if you tell a new person that `M::f` and `M.f` are the same in Ruby, they won't believe at first. So why keeping them the same?
I do not know how to be with the use of global variables in `M::f`. I imagine there are other... -
10:26 PM Feature #6806 (Feedback): Support functional programming: forbid instance/class variables for ModuleName::method_name, allow for ModuleName.method_name
- What would you say about this proposal? Is there a better alternative?
I suggest to support functional programming in Ruby by making module methods called with `ModuleName::method_name` syntax raise an exception if the method uses in... -
09:41 PM Revision 21aad667 (git): win32/win32.c: suppress warning redeclared
- * win32/win32.c: suppress warning redeclared on mingw64.
*_s functions are declared if MINGW_HAS_SECURE_API is defined.
Follow up r36556.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:32 PM Revision c30f4049 (git): merge revision(s) 34880:
- * configure.in (ruby_pc): make configurable. [Bug #6051]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:32 PM Revision c5571692 (git): merge revision(s) 34716:
- * template/ruby.pc.in: added rubylibprefix, {rubylib,vendor,site}dir
and {ruby,vendor,site}archdir. [ruby-core:42766][Feature #6052]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36561 b2dd03c8-39d4-4d8f-98... -
07:31 PM Revision 02385465 (git): merge revision(s) 36455:
- * bignum.c: Added #include <strings.h> for ffs(). Patch by Perry
Smith. Thank you. [Bug #6748]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:27 PM Bug #6794: x64 mingw: test_at(TestTime) failure
- Thank you. Checked in.
> BTW, 32bit mingw doesn't have 64s() family?
It seems that gcc 4.6.1 (tdm gcc 32bit) doesn't have _localtime64_s.
gcc 4.6.3 (rubenvb-4.6.3) i686-w64-mingw32 (32bit) has _localtime64_s.
The following p... -
04:36 PM
Bug #6794 (Closed): x64 mingw: test_at(TestTime) failure
- This issue was solved with changeset r36556.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
win32/win32.c: fix localtime_r() on x64-mingw
* win32/win32.c... -
11:05 AM Bug #6794: x64 mingw: test_at(TestTime) failure
- Seems working fine.
Please check in.
BTW, 32bit mingw doesn't have 64s() family? -
09:02 AM Bug #6794 (Assigned): x64 mingw: test_at(TestTime) failure
- =begin
Thank you Hiroshi,
I can confirm patch works:
Finished tests in 0.085005s, 764.6609 tests/s, 7411.3287 assertions/s.
65 tests, 630 assertions, 0 failures, 0 errors, 0 skips
ruby -v: ruby 2.0.0dev (2012-07-27 trunk 3... -
05:10 PM Bug #6805: heroku connection failure
- Thank you for your response.
Unclear how you could reproduce this issue without running os x 10.5.8.
Rereading it looks like the text at the beginning of the bug report didn't make it (the input box was blinking in and out Firefox 14.0... -
04:31 PM Bug #6805 (Feedback): heroku connection failure
- How we can reproduce this issue?
See: https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport
And, I guessed your issue, seems you're using Apple's broken openssl.
install openssl and build ruby again.
rvm has a command to ... -
03:15 PM Bug #6805 (Rejected): heroku connection failure
- =begin
-- Control frame information -----------------------------------------------
c:0026 p:---- s:0126 b:0126 l:000125 d:000125 CFUNC :connect
c:0025 p:0650 s:0123 b:0123 l:000122 d:000122 METHOD /Users/jg/.rvm/gems/ruby-1.9.3-p194... -
05:04 PM Revision 208e8db6 (git): variable.c: RB_TYPE_P
- * variable.c: use RB_TYPE_P() and BUILTIN_TYPE().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:34 PM Revision 06fa3914 (git): * 2012-07-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:34 PM Revision 631b6d5a (git): * gc.c: remove unused initialization.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:37 PM Feature #6503: Support for the NPN extension to TLS/SSL
- Martin, let me know if you run into any questions or issues.. would love to see this working, sooner rather later. :-)
-
07:36 AM Revision ce2a1e10 (git): win32/win32.c: fix localtime_r() on x64-mingw
- * win32/win32.c (gmtime_r): use _gmtime64_s() with x86_64-w64-mingw32.
* win32/win32.c (localtime_r): use _localtime64_s() with
x86_64-w64-mingw32. Since FileTimeToSystemTime() seems not work with
large value under x64. Mingw-w64 do... -
02:15 AM Revision c1ef657b (git): insns.def: RB_TYPE_P
- * insns.def (checkincludearray, defineclass, opt_regexpmatch2): use RB_TYPE_P().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:14 AM Revision dc54eecc (git): * 2012-07-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:14 AM Revision 485181e4 (git): ext/socket: suppress warnings on mingw64
- * ext/socket/ancdata.c (nogvl_sendmsg_func): explicitly cast via VALUE
to suppress a warning on mingw64.
* ext/socket/option.c: declare inet_ntop() for mingw64 which has the
function but lacks arpa/inet.h.
git-svn-id: svn+ssh://ci.... -
01:52 AM Feature #6801: String#~ for a here document
- Alas %L was rejected :(
```ruby
str = %L|This
| is
| margin
| controlled.
```
07/27/2012
-
11:52 PM Bug #6803: Ruby Interpreter (CUI) 1.9.3p194 [i386-mingw32] has stopped working
- The controller has:
require 'watir-webdriver'
b = Watir::Browser.new :chrome
b.goto("wellsfargo.com")
These lines work fine in a script that I can run from the command line or in irb. That is, I have the gem installed etc.
Whe... -
11:48 PM Bug #6803 (Third Party's Issue): Ruby Interpreter (CUI) 1.9.3p194 [i386-mingw32] has stopped working
- When including "watir-webdriver" the interpreter stops working and the server occasionally segmentation faults.
-
11:42 PM Feature #6793: easier ability to "run as the currently running ruby"
- naruse (Yui NARUSE) wrote:
> Eregon (Benoit Daloze) wrote:
> ...
I meant args to get the VM flags (args[1..argc-1]).
I'm fine using RbConfig for getting the path to the ruby binary for the moment.
I admire your effort to try to sol... -
10:53 PM Feature #6793 (Feedback): easier ability to "run as the currently running ruby"
- Eregon (Benoit Daloze) wrote:
> luislavena (Luis Lavena) wrote:
> ...
argv[0] is not reliable on some environment.
See also my comment on #4046. -
11:38 PM Feature #6801: String#~ for a here document
- Eregon (Benoit Daloze) wrote:
> merborne (kyo endo) wrote:
> ...
ok. thank you. -
11:03 PM Feature #6801: String#~ for a here document
- merborne (kyo endo) wrote:
> >
> ...
I meant your example is probably not the most typical, with its "centered" nature. And I'm fine with having to manually remove the spaces or flush it to the left for such a usage. I would be less f... -
10:38 PM Feature #6801: String#~ for a here document
- Eregon (Benoit Daloze) wrote:
> I think the sequence `~<<-EOS` becomes very cryptic, and this should be supported in the parser (or at least be integrated into the language). I actually prefer `<<-EOS.undent` as the intention is clearer... -
07:23 PM Feature #6801: String#~ for a here document
- I think the sequence `~<<-EOS` becomes very cryptic, and this should be supported in the parser (or at least be integrated into the language). I actually prefer `<<-EOS.undent` as the intention is clearer.
Maybe something like `<<+EOS... -
01:16 PM Feature #6801 (Rejected): String#~ for a here document
- =begin
Let me propose a new method (({String#~})) for a here document.
次のような実装の(({String#~}))を提案します。
class String
def ~
margin = scan(/^ +/).map(&:size).min
gsub(/^ {#{margin}}/, '')
end
en... -
10:55 PM Bug #6790: mingw-w64: rb_libruby_handle and libruby changes when extensions are loaded
- Thank you Heesob Park, Usaku Nakamura and Nobu for fixing this!
-
12:15 PM Bug #6790 (Closed): mingw-w64: rb_libruby_handle and libruby changes when extensions are loaded
- This issue was solved with changeset r36544.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* win32/mkexports.rb: should not export DllMain().
reported by ... -
11:28 AM Bug #6790: mingw-w64: rb_libruby_handle and libruby changes when extensions are loaded
- =begin
Hmm, I see.
Is this patch OK?
Index: win32/mkexports.rb
===================================================================
--- win32/mkexports.rb (revision 36541)
+++ win32/mkexports.rb (working copy)
@@ -116,7 +1... -
12:13 AM Bug #6790: mingw-w64: rb_libruby_handle and libruby changes when extensions are loaded
- After some investigating, I found this bug is due to exporting "DllMain" symbol of x64-msvcrt-ruby200.dll.
You can see the following line in the x64-msvcrt-ruby200.def.
VERSION 2.0
EXPORTS
DllMain
FD_CLR=rb_w32_fdclr
FD_ISSET=r... -
09:01 PM Bug #6799: Digest::*.hexdigest returns an ASCII-8BIT String
- Patch attached.
-
07:34 PM Bug #6799: Digest::*.hexdigest returns an ASCII-8BIT String
- duerst (Martin Dürst) wrote:
> So what should it return? [If you create a bug, saying what the expected behavior is (and also why you expect it) is quite important.]
I thought it was clear enough, but indeed I should have mentioned i... -
11:08 AM Bug #6799 (Feedback): Digest::*.hexdigest returns an ASCII-8BIT String
-
10:21 AM Bug #6799: Digest::*.hexdigest returns an ASCII-8BIT String
- So what should it return? [If you create a bug, saying what the expected behavior is (and also why you expect it) is quite important.]
-
06:17 AM Bug #6799 (Closed): Digest::*.hexdigest returns an ASCII-8BIT String
- $ ruby -rdigest/sha1 -e 'p Digest::SHA1.hexdigest("a").encoding'
#<Encoding:ASCII-8BIT>
I'm happy to provide a patch. -
07:51 PM Feature #6687: Enumerable#with
- nobu (Nobuyoshi Nakada) wrote:
> I don't think "with" is nice as a method name.
> ...
What about #each_with then? (and #with for Enumerator)
I think it's a reasonable alternative.
And "_object" really seems less than necessary (every... -
07:04 PM Revision 2dc1a733 (git): merge revision(s) 36454:
- * include/ruby/intern.h (rb_num_zerodiv): Added NORETURN.
Patched by Xi Wang. [Bug #6736]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:54 PM Feature #6802: String#scan should have equivalent yielding MatchData
- =begin
You can use (({String#scan})) with the block form and (({$~})) (as well as other Regexp-related globals) for this:
> text="x:1 y:12 ; x:33 y:2"
> text.scan(/x:(?<x>\d+) y:(?<y>\d+)/) { p [$~[:x],$~[:y]] }
["1", "... -
04:30 PM Feature #6802: String#scan should have equivalent yielding MatchData
- Simple implementation:
class String
def each_match(pattern, &block)
return Enumerator.new(self, :each_match, pattern) unless block_given?
text = self
m = text.match(pattern)
while m
yield m
text =... -
04:17 PM Feature #6802 (Assigned): String#scan should have equivalent yielding MatchData
- Ruby should have method to obtain not an array of arrays but of MatchData objects. It can help in obtaining named groups:
pattern = /x: (?<x>\d+) y:(?<y>\d+)/
polygon = []
text.scan_for_pattern(pattern){|m| polygon << Point.new(m[:x... -
06:44 PM Bug #6608: File.join behavior
- =begin
Thank you for the detailed explanation.
I see your point and the spec seems clear, I'll update RubySpec with this.
Indeed, the documentation of Dir.glob mentions:
\ :
Escapes the next metacharacter. Note that... -
05:13 PM Bug #6608 (Rejected): File.join behavior
- =begin
These behavor is the spec of File.join.
(0) File.join never touchs any charcters in the parameters except
boundary ones.
(1) When a separator is passed, File.join respects it.
cf. File.join('a\\', 'b') #=> 'a\\b'
... -
06:25 PM Bug #6269 (Closed): Process.spawn does not work with Tempfile
- This issue was solved with changeset r36551.
Matthias, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
process.c: try conversion at redirection
* io.c (rb_io_check... -
05:58 PM Bug #6119 (Closed): Usage of CPPFLAGS during configure result in duplicated values for RbConfig CPPFLAGS information
- This issue was solved with changeset r36550.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
configure.in: get rid of duplication in CPPFLAGS
* configure.in ... -
05:48 PM Bug #6119: Usage of CPPFLAGS during configure result in duplicated values for RbConfig CPPFLAGS information
- Sorry, reproduced.
-
05:38 PM Bug #6119: Usage of CPPFLAGS during configure result in duplicated values for RbConfig CPPFLAGS information
- I don't see this issue with trunk.
-
11:28 AM Bug #6797 (Closed): The gz tarball for 1.9.3-p194 obtained via the official download URL is invalid
- =begin
Hello, I have direct access to the server.
zsh % ssh [email protected]
The authenticity of host 'ftp.ruby-lang.org (221.186.184.68)' can't be established.
RSA key fingerprint is 71:f5:f2:28:8b:e0:16:2c:38:0e:36... -
07:53 AM Bug #6797: The gz tarball for 1.9.3-p194 obtained via the official download URL is invalid
- "bourquep (Pascal Bourque)" <[email protected]> wrote:
> ~/Downloads: wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
> Resolving ftp.ruby-lang.org... 221.186.184.68
> Connecting to ftp.ruby-lang.org|22... -
12:33 AM Bug #6797 (Closed): The gz tarball for 1.9.3-p194 obtained via the official download URL is invalid
- =begin
The file size and SHA/MD5 checksums for the file downloaded from http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz are invalid.
Repro:
~/Downloads: wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.... -
09:25 AM Revision c05e6a8c (git): process.c: try conversion at redirection
- * io.c (rb_io_check_io): make public.
* process.c (check_exec_redirect): try conversion to IO on redirect
parameters. [ruby-core:44181] [Bug #6269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36551 b2dd03c8-39d4-4d8f-98ff-823f... -
09:00 AM Feature #6758: Object#sequence
- alexeymuranov (Alexey Muranov) wrote:
> merborne (kyo endo) wrote:
> ...
#sequence returns an enumerator object. It means it can be evaluated later.
class Enumerator
def lazy(&blk)
Enumerator.new do |y|
... -
02:51 AM Feature #6758: Object#sequence
- merborne (kyo endo) wrote:
>
> ...
Well, in my opinion this is not too different from
a, b, s = 0, 1, []
10.times { s << a; a, b = b, a + b }
s
because it requires an external local variable. -
08:58 AM Revision a8aa1e21 (git): configure.in: get rid of duplication in CPPFLAGS
- * configure.in (RUBY_CPPOUTFILE): get rid of variable conflict so
CPPFLAGS is not duplicated. [ruby-core:43097] [Bug #6119]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:09 AM Revision 044aa29b (git): test_lazy_enumerator.rb: test for cycle chain
- * test/ruby/test_lazy_enumerator.rb (test_cycle_chain): more test for
infinite sequence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:07 AM Revision 76ff1d90 (git): test_lazy_enumerator.rb: test for cycle chain
- * test/ruby/test_lazy_enumerator.rb (test_cycle_chain): more test for
infinite sequence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:12 AM Revision 669775ba (git): * 2012-07-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@36547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:12 AM Revision 3b6affb0 (git): * numeric.c (int_pow, fix_mul): Avoid optimization bugs of
- clang. Submitted by Wataru Kimura [Bug #6796].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@36546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:15 AM Revision 1d7ebc5c (git): * 2012-07-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:14 AM Revision 3f539a5b (git): * win32/mkexports.rb: should not export DllMain().
- reported by luis at [ruby-core:46743] [Bug #6790], solved by
Heesob Park, and confirmed by nobu.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
07/26/2012
-
09:37 PM Feature #6183: Enumerator::Lazy performance issue
- Your patch makes the following code stuck.
p [1,2,3].to_enum.lazy.cycle.take(10).to_a
It should print [1, 2, 3, 1, 2, 3, 1, 2, 3, 1].
--
Yusuke Endoh <[email protected]> -
08:48 PM Feature #6793: easier ability to "run as the currently running ruby"
- luislavena (Luis Lavena) wrote:
> =begin
> ...
Nice, although it's not available in 1.8.
I think the other important part about this subject is #6648: ability to retrieve VM flags, which would allow to relaunch the interpreter the s... -
07:37 AM Feature #6793: easier ability to "run as the currently running ruby"
- =begin
Already available, no RubyGems involved:
C:\Users\Luis>ruby --disable-gems -rrbconfig -v -e "puts RbConfig.ruby"
ruby 2.0.0dev (2012-07-13 trunk 36378) [i386-mingw32]
C:/Users/Luis/Tools/Ruby/ruby-2.0.0dev-i386-mingw32/bi... -
07:25 AM Feature #6793 (Feedback): easier ability to "run as the currently running ruby"
- Hello all. I couldn't remember if this had been requested before or not but...
It would be kind to be able to do:
current_ruby = OS.ruby_bin
system("#{current_ruby} another_file.rb")
And thus guarantee execution of a sub-file us... -
07:23 PM Bug #6749: rdoc of Time class (incorrect explanation of leap seconds)
- Am 25.07.2012 19:36, schrieb Eric Hodel:
> On Jul 25, 2012, at 6:24 AM, [email protected] wrote:
>> 4) leave out the explanation and link completely
>
> I'll go with this last option. I think using Wikipedia's definition is prefera... -
02:53 AM Bug #6749: rdoc of Time class (incorrect explanation of leap seconds)
- On Jul 25, 2012, at 6:24 AM, [email protected] wrote:
> […]
Ok, you have convinced me.
> Proposal: either (in order of preference)
>
> 1) correct to "...is based on *atomic* time..."
>
> 2) correct to "is based on *the SI defi... -
03:07 PM Feature #6687: Enumerable#with
- The name #return_with has good semantic, although it may confuse that it would return from method. But I fear it may still be too long. I think the utility of the method warrants very concise name. It is interesting about #each_with_obje...
-
01:37 PM Feature #6687: Enumerable#with
- nobu (Nobuyoshi Nakada) wrote:
> I don't think "with" is nice as a method name.
> ...
It iterate(or enumerate) with the argument. The receiver, by itself tells it, I think.
I think #each tells nothing. it suggests the returning value ... -
11:09 AM Feature #6687: Enumerable#with
- I don't think "with" is nice as a method name.
What does it `with' the argument?
"each" should not be omitted, I guess. -
09:04 AM Feature #6792 (Feedback): request for easier system properties access
- Write more concrete proposal.
-
07:20 AM Feature #6792 (Feedback): request for easier system properties access
- Before I forget about it, it would be nice for Ruby to have some way to access certain system properties more easily:
require 'os'
>> OS.bits
=> 32
> ...
=> false
>> OS.rss_bytes
=> 123456
> ...
=> 5
So this is a request for a ... -
08:59 AM Bug #6789: parse.y compilation error due not updated id.h
- On Wed, Jul 25, 2012 at 8:45 PM, Aaron Patterson
<[email protected]> wrote:
> On Wed, Jul 25, 2012 at 07:13:27AM +0900, luislavena (Luis Lavena) wrote:
>> It required a forced removal of id.h to properly compile after.
>
> D... -
08:53 AM
Bug #6789: parse.y compilation error due not updated id.h
- On Wed, Jul 25, 2012 at 07:13:27AM +0900, luislavena (Luis Lavena) wrote:
> It required a forced removal of id.h to properly compile after.
Doesn't `make clean` take care of this?
> This caused a build failure when building RubyI... -
07:48 AM Bug #6794 (Closed): x64 mingw: test_at(TestTime) failure
- x64 mingw has the following failure.
[ 5/65] TestTime#test_at = 0.00 s
1) Failure:
test_at(TestTime) [c:/Users/hiroshi/work/ruby/test/ruby/test_time.rb:194]:
<-146138510344> expected but was
<1970>.
I guess Time.at(large va... -
07:26 AM Bug #6791 (Closed): ext/js on/generator/generator.c fails to compile on nightly build (AIX 6.1)
- This issue was solved with changeset r36541.
Perry, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
avoid compilation error on AIX by -ansi -std=iso9899:199409 (r36... -
06:52 AM Feature #6758: Object#sequence
- alexeymuranov (Alexey Muranov) wrote:
> However, the original proposal looks to me rather restrictive and not very efficient. Between
> ...
how about this?
b = 1
0.sequence { |a| a, b = b, a + b; a}.take(10)
-
05:54 AM Revision 9b16b747 (git): * test/net/http/test_https.rb (TestNetHTTPS#test_session_reuse): localhost is not (always) 127.0.0.1. Don't expect that.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:35 AM Bug #6790: mingw-w64: rb_libruby_handle and libruby changes when extensions are loaded
- nobu (Nobuyoshi Nakada) wrote:
> Seems it occurs only in x64-mingw; and does not occur when loading the DLL by x64-mswin ruby.exe.
> ...
Do you think this simplification is good enough?
https://github.com/luislavena/experiments/tree... -
03:08 AM Revision 22783fdb (git): test_complex.rb, test_rational.rb: revert some assertions
- * test_complex.rb, test_rational.rb: revert some assertions, but just
assert that a frozen object cannot be modified with marshal_load.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
07/25/2012
-
11:23 PM
Bug #6791: ext/js on/generator/generator.c fails to compile on nightly build (AIX 6.1)
- On Jul 25, 2012, at 2:23 AM, Yutaka Kanemoto wrote:
> Hi Perry,
>
> Does this resolve this issue in your env?
>
> diff --git a/ext/json/fbuffer/fbuffer.h b/ext/json/fbuffer/fbuffer.h
> index f7c2b03..0c53296 100644
> --- a/ex... -
04:29 PM Bug #6791: ext/js on/generator/generator.c fails to compile on nightly build (AIX 6.1)
- Hi Perry,
Does this resolve this issue in your env?
diff --git a/ext/json/fbuffer/fbuffer.h b/ext/json/fbuffer/fbuffer.h
index f7c2b03..0c53296 100644
--- a/ext/json/fbuffer/fbuffer.h
+++ b/ext/json/fbuffer/fbuffer.h
@... -
09:03 AM Bug #6791 (Closed): ext/js on/generator/generator.c fails to compile on nightly build (AIX 6.1)
- gcc -I. -I../../../.ext/include/powerpc-aix6.1.0.0 -I/usr/work/src/snapshot/include -I/usr/work/src/snapshot/ext/json/generator -DRUBY_EXTCONF_H=\"extconf.h\"
-O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parent... -
10:53 PM Feature #5341: Add SSL session reuse to Net::HTTP
- Sorry for late reply.
On Thu, Nov 10, 2011 at 11:04 AM, Eric Hodel <[email protected]> wrote:
>>> I will update the patch to check for the timeout, I did not know it
>>> existed.
>>
>> OpenSSL has a client session cache in SSL... -
09:06 AM Feature #5341 (Closed): Add SSL session reuse to Net::HTTP
- This issue was solved with changeset r36528.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/http.rb: Added SSL session reuse across connections fo... -
10:46 PM Feature #6669: A method like Hash#map but returns hash
- how about #hmap.
-
10:41 PM Feature #6714: Code injection framework
- This is interesting. Basically you propose to get rid of the overhead of set_trace_func by injecting code into "code points" only where actually used. If so, that would be very cool, b/c it could be used for event-based AOP and it would ...
-
07:47 PM Feature #6714: Code injection framework
- ko1 (Koichi Sasada) wrote:
> Nobody has interest about it.
I don't think so, I think it's just not clear what can offer this in practice yet.
The use-cases you listed are certainly interesting.
Would this, for example, signific... -
06:52 PM Feature #6714: Code injection framework
- Nobody has interest about it. I'll implement and show if I can make it before the deadline.
Thanks,
Koichi -
10:29 PM Bug #6749: rdoc of Time class (incorrect explanation of leap seconds)
- Am 24.07.2012 19:44, schrieb Eric Hodel:
> On Jul 23, 2012, at 11:52 PM, [email protected] wrote:
>> UTC is based on the International *Atomic* Time (ITA) and therefore on the SI second definition. (A day is not exactly 86400 SI second... -
02:53 AM Bug #6749: rdoc of Time class (incorrect explanation of leap seconds)
- On Jul 23, 2012, at 11:52 PM, [email protected] wrote:
> UTC is based on the International *Atomic* Time (ITA) and therefore on the SI second definition. (A day is not exactly 86400 SI seconds long, so to avoid that mean solar time and UT... - 10:26 PM Revision 48cb9477 (git): avoid compilation error on AIX by -ansi -std=iso9899:199409 (r36038). [ruby-core:46744] [Bug #6791].
- This issue is fixed in upper stream as issue #142. (https://github.com/flori/json/issues/142)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:24 PM Bug #595: Fiber ignores ensure clause
- ko1 (Koichi Sasada) wrote:
> あれ,これ 3.0 でいいんだっけ.
3月に話したときに大変そうだから先かなー的な雰囲気のことを仰っていたので、3.0かなぁ、と。
早く直るに越した事はありません。 -
07:08 PM Bug #595: Fiber ignores ensure clause
- あれ,これ 3.0 でいいんだっけ.
-
10:13 PM Feature #6687: Enumerable#with
- =begin
+1 for #with. Would be great if matz pulled a mikey on this one!
Don't like #memo, I have used that for memoization before.
=end -
09:01 PM Feature #6687: Enumerable#with
- I think `#each_with_object(obj)` mostly makes sense for `obj` of container class, like `Hash` or `Array`, and less sense with `Integer` or fixed string:
['ruby', 'python', 'haskell'].with('ist').map(&:+) # => ["rubyist", "pythonist", ... -
02:40 PM Feature #6687: Enumerable#with
- =begin
It is obvious that many rubyists have troubled with Enumerable#inject when they use it with a hash.
Feature #5662: inject-accumulate, or Haskell's mapAccum* - ruby-trunk - Ruby Issue Tracking System http://bugs.ruby-lang.o... -
07:08 PM Feature #6083: Hide a Bignum definition
- Matz, what do you think about it?
-
07:06 PM Feature #6649 (Rejected): Add new set_trace_func events "b-call", "b-return"
Nobody has interest about it.
I close (reject) this ticket and make new ticket of
<https://bugs.ruby-lang.org/issues/6649#note-5>,
<http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/45949>
with implementation.
If you h...-
07:02 PM Feature #6694: Thread.new without block.
- Some developers proposed that other method names like: `Thread.conf_new` should be introduced to specify per thread parameters.
Because `Thread.new(...)` without block causes miss like:
```ruby
Thread.new(name: 'foo'){
}
... -
06:53 PM Feature #6762: Control interrupt timing
- (2012/07/21 7:51), Eric Wong wrote:
>> I want to make clear and fix the (1) and (2) before (3).
>> How about it?
>
> I agree, I want (3) :)
> I'm not sure if the current primitives make it possible to implement (3)
>
>> ... -
06:23 PM Feature #6762: Control interrupt timing
- (2012/07/21 15:41), KOSAKI Motohiro wrote:
>> * Thread.control_interrupt
>> * Thread.check_interrupt
>
> Eek. Please don't use 'interrupt' word. It makes a lot of confusing to
> Unix programmer.
Okay. Give us a good nam... -
06:51 PM Feature #6763: Introduce Flonum technique to speedup floating computation on th 64bit environment
- > How do you implement object_id for non integer immediate values?
Good point. It will be considered.
Akr-san proposed that object id of Flonum object should be Bignum (enough big value), because it should be very rare case to us... -
05:41 PM Bug #6625 (Closed): broken Marshal compatibilities on Complex and Rational
- This issue was solved with changeset r36538.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
complex.c, rational.c: compatible marshal loader
* complex.... - 04:40 PM Revision c08a213b (git): * 2012-07-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:40 PM Revision ea637eba (git): * thread.c (thread_create_core, Init_Thread): hide
- th->async_errinfo_queue and th->async_errinfo_mask_stack from
ObjectSpace.each_object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:37 PM Bug #6790: mingw-w64: rb_libruby_handle and libruby changes when extensions are loaded
- Seems it occurs only in x64-mingw; and does not occur when loading the DLL by x64-mswin ruby.exe.
Needs more investigation. -
08:24 AM Bug #6790 (Closed): mingw-w64: rb_libruby_handle and libruby changes when extensions are loaded
- =begin
Hello,
I started to look into this failure when running dl/handle tests:
test_initialize_noargs(DL::TestHandle):
DL::DLError: unknown symbol "rb_str_new"
C:/Users/Worker/Jenkins/workspace/git-ruby-trunk/test/dl/tes... -
04:07 PM Feature #6758: Object#sequence
- merborne (kyo endo) wrote:
> alexeymuranov (Alexey Muranov) wrote:
> ...
Ok, i agree, my proposed behavior was not intuitive and not completely general.
However, the original proposal looks to me rather restrictive and not very efficien... -
10:33 AM Feature #6758: Object#sequence
- Please don't name the method #recurrence. #sequence was long enough, and thankfully nice obvious shorthand, if we want to use it, with #seq. While #iterate is ok too, but if we are going to talk about it as a "sequence", which everyone s...
-
09:12 AM Feature #6758: Object#sequence
- alexeymuranov (Alexey Muranov) wrote:
> fibonacci = 0.recurrence(1) { |a, b| a + b }
I disagree this. because I can't image fibonacci sequence from this code. and two block variables, which are both used as init data comes from diff... -
04:39 AM Feature #6758: Object#sequence
- =begin
ngoto (Naohisa Goto) wrote:
> I prefer "iterate" or "recurrence".
Excuse me, Naohisa Goto, after some thought i agree that (({#iterate})) or (({#recurrence})) are good ideas, as the sequence generated in this way is more or less... -
12:30 AM Feature #6758: Object#sequence
- > I believe that in mathematical English "series" means an infinite sum, like 1 + 2 + 3 + 4 + ...
For example: Fourier series.
Oh, yeah. That's right. -
03:13 PM Bug #4163 (Assigned): RubyGems uses deprecated API: YAML.quick_emit.
- drbrain (Eric Hodel) wrote:
> Fixed by import of RubyGems 1.5
lib/rubygems/specification.rb still uses YAML.quick_emit. -
01:41 PM Feature #6739: One-line rescue statement should support specifying an exception class
- New keyword is too big deal for this trivial syntax extension, I think.
-
09:05 AM Bug #6768: Changes for r36338 are not complete
- Tested these on nightly build and they are working.
Thanks!
-
08:41 AM Revision 003c45f9 (git): complex.c, rational.c: compatible marshal loader
- * complex.c, rational.c: compatible marshal loader for compatibilities
with 1.8. [ruby-core:45775] [Bug #6625]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision 681c1b9f (git): mkrunnable.rb: mswin
- * tool/mkrunnable.rb (ln_safe, ln_dir_safe): separate for mklink
command on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision ac64f196 (git): atomic.h: prefer GCC atomic builtins
- * atomic.h: prefer GCC atomic builtins than Windows APIs, if possible,
since they are generic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:13 AM Bug #6789 (Assigned): parse.y compilation error due not updated id.h
-
07:11 AM Bug #6789 (Closed): parse.y compilation error due not updated id.h
- =begin
Hello,
After r36524, compilation with existing build tree will fail due id.h not being regenerated:
compiling ../dmyversion.c
generating parse.c
parse.h updated
compiling ../array.c
...
compiling parse.c
In fil... -
07:13 AM Revision 61a67bc7 (git): Add test to clarify r36421. [Bug #5915]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:50 AM Bug #6723: Global variable scoping problem.
- These are described as "Special global variables" and are described as "thread-local and method-local" in the Regexp documentation. I updated a reference to them in re.c, but the existing documentation should be sufficient.
-
06:49 AM Bug #6723 (Closed): Global variable scoping problem.
- This issue was solved with changeset r36526.
Markus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* re.c (rb_reg_s_last_match): Update $~ to reference Regexp
... -
06:49 AM Revision 131f6943 (git): Suppress warnings.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:29 AM Bug #6785 (Closed): Documentation for RubyVM::InstructionSequence
- This issue was solved with changeset r36525.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* iseq.c: Added documentation. Patch by David Albert. [Bug #6... -
03:18 AM Bug #6785: Documentation for RubyVM::InstructionSequence
- I've attached a second draft that incorporates some feedback from rue on #ruby-lang and a few extra edits of mine.
-
04:12 AM Revision c5581959 (git): * tool/ytab.sed: fix for Bison 2.6.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:03 AM Bug #5915: Array#join with explicit nil should not use $,
- Is there a test for this? If not, perhaps one should be added.
I'm fixing http://jira.codehaus.org/browse/JRUBY-6776 and would like to know that the behavior is being tested. -
03:10 AM Feature #4985 (Closed): Add %S[] support for making a list of symbols
- This issue was solved with changeset r36524.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* parse.y: added symbols and qsymbols productions for %i and %I
... -
02:53 AM Feature #4840: Allow returning from require
- On Jul 23, 2012, at 7:42 PM, Trans <[email protected]> wrote:
> why not deprecate `__END__`? Is there some really
> important use case that we just can't live without? The whole idea strikes me as rather hackish, especially con... -
02:20 AM Revision 7edb2645 (git): * lib/net/.document: Removed. All files in net/ should be included in
- RDoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:01 AM Revision 970c5ac4 (git): * test/testunit/test_redefinition.rb: broken class/method names.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:29 AM Revision ba223418 (git): * lib/cgi/html.rb: Use << instead of +=.
- `a += b` is syntax sugar of `a = a + b`; it creates a new string
object. `a << b` is concatenation and doesn't create new object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:26 AM Feature #6636: Enumerable#size
- Hi,
mame (Yusuke Endoh) wrote:
> > I am proposing `Enumerator.new(size_lambda){ block }`, i.e. only if a block
> ...
I understand the concern.
It could still be acceptable here because the other form is already documented as 'di... -
12:19 AM Revision 347c554f (git): * lib/cgi/html.rb (element_init): suppress redefine warning.
- Don't define methods if they are already defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:12 AM
Bug #6784 (Closed): Test failures related to numeric with x64 mingw
- This issue was solved with changeset r36522.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Fix broken pow() on x64-mingw32
* include/ruby/win32.h (rb_w3... -
12:05 AM Revision ead728ca (git): * lib/net/http.rb: Added SSL session reuse across connections for a
- single instance to speed up connection. [Feature #5341]
* NEWS: ditto
* test/net/http/test_https.rb: Tests for #5341
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e