Project

General

Profile

Activity

From 11/10/2012 to 11/16/2012

11/16/2012

11:23 PM Bug #7356: ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化
情報ありがとうございます.
簡単な再現手順はありませんかね.make じゃなくて,ruby 直接動かすようなも
のだとありがたいのですが....

(2012/11/15 18:37), yanoh (Yutaka Yanoh) wrote:
>
> Issue #7356 has been reported by yanoh (Yutaka Yanoh).
>
> ---------------------------------...
ko1 (Koichi Sasada)
11:18 PM Bug #7372 (Rejected): Missing tags for 2.0.0.preview1, 1.9.3p286, 1.9.3p327
All released versions of Ruby should have tags, so we can grab the right versions of stdlib to use in JRuby. headius (Charles Nutter)
11:14 PM Revision 5bab4340 (git): * lib/abbrev.rb: fix r37113. Correct examples, fix style
and show explicit dependency (require 'abbrev').
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
10:43 PM Revision 25058a58 (git): skip long name conversion if last character is a wildcard one
* win32/file.c (replace_to_long_name): skip automatic path expansion
when wildcard character is used. [ruby-core:49451] [Bug #7374]
* test/ruby/test_file_exhaustive.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
luislavena (Luis Lavena)
05:59 PM Bug #7370: Some benchmarks are slow
(2012/11/16 16:51), authorNari (Narihiro Nakamura) wrote:
> Some benchmarks are slow since r37631.
> I guess DTrace's proves affect CRuby's performance.
> Is it possible to fix?

He missed to argue about the important thing:
...
ko1 (Koichi Sasada)
05:45 PM Bug #7370: Some benchmarks are slow
Aaron-san, Could you check it?
Thanks.
authorNari (Narihiro Nakamura)
04:51 PM Bug #7370 (Closed): Some benchmarks are slow
Hi.
Some benchmarks are slow since r37631.
I guess DTrace's proves affect CRuby's performance.
Is it possible to fix?
app_answer:
r37629 0.153(sec)
r37631 0.196
app_fib:
r37629 1.497
r37631 2.005
app_tak:
r37629 2...
authorNari (Narihiro Nakamura)
05:24 PM Bug #7371 (Closed): Fix undefined overflow checking in bigdecimal
In AddExponent() at ext/bigdecimal/bigdecimal.c:3677, the overflow checks rely on signed integer overflow, which is undefined behavior in C.
SIGNED_VALUE m = e+n;
SIGNED_VALUE eb, mb;
if(e>0) {
if(n>0) {
...
xi (Xi Wang)
05:02 PM Revision 7bd638b7 (git): object.c: suppress warning
* object.c (rb_obj_alloc): suppress unused variable warning.
* tool/gen_dummy_probes.rb: define dtrace disabling macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:02 PM Revision ed86cd05 (git): vm.c: gc guard
* vm.c (vm_collect_usage_operand): prevent from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:02 PM Revision b29b2962 (git): adjust indent
* object.c (rb_obj_alloc): adjust indent.
* vm.c (vm_collect_usage_{insn,operand,register}): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:55 PM Revision 6f64d9eb (git): * lib/cgi/core.rb: Use symbols instead of strings for
{const_,instance_variable_}{get,set}. [#7161]
* lib/drb/drb.rb: ditto.
* lib/ipaddr.rb: ditto.
* lib/irb/workspace.rb: ditto.
* lib/monitor.rb: ditto.
* lib/rss/maker/base.rb: ditto.
* lib/rss/rss.rb: ditto.
* lib/xmlrpc/parser.rb...
Marc-Andre Lafortune
04:08 PM Bug #7369 (Closed): Matrix #row_size, #column_size methods
I believe these methods should be renamed. "row_size" is confusing, because it can be intuitively understood as both "number of rows", and "size along a row" (or size of a matrix row). Same goes for "column size". I would like these meth... Anonymous
03:55 PM Revision f45f668f (git): * marshal.c (w_object): add flonum to arg->data to keep reference index
consistency. [ruby-core:49323] [Bug #7348]
* test/ruby/test_marshal.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:49 PM Feature #6440: 引数にIOを渡した場合のMarshal.loadにバッファを持たせたい
patch2.diffを適用してコミットしてよいでしょうか?
反対がなければコミットします。
Glass_saga (Masaki Matsushita)
03:40 PM Revision 6379b316 (git): common.mk: dependencies for proges.dmyh
* common.mk (incs): dist files need probes.dmyh.
* common.mk (probes.dmyh): depends on generator script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:37 PM Bug #7355 (Closed): tiny typo in lib/net/pop.rb
This issue was solved with changeset r37671.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/pop.rb (POP3.certs): fix typo in comment.
patch f...
Anonymous
03:22 PM Revision 2934f3b9 (git): * 2012-11-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:22 PM Revision eb40d20e (git): probes.h: select by suffix rules
* Makefile.in, common.mk, configure.in, win32/Makefile.sub (probes.h):
select generating with dtrace or copying dummy file by suffix rules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:58 PM Feature #7148: Improved Tempfile w/o DelegateClass
Are there some reasons not to make `Tempfile` a subclass of `File`?
I think it's a better solution, even if it's not an ideal solution.
Glass_saga (Masaki Matsushita)
02:39 PM Bug #7366 (Closed): cannot 'make install' when --enable-doc
naruse (Yui NARUSE)
09:09 AM Bug #7366 (Closed): cannot 'make install' when --enable-doc
After r37664 (rake 0.9.3), cannot make install when --enable-doc.
installing default gems: C:/ruby-trunk/lib/ruby/gems/2.0.0 (cche, doc, gems, specifications)
bigdecimal 1.1.0
...
usa (Usaku NAKAMURA)
02:38 PM Bug #7348: marshaling an object by a float does not work
hello,
I've investigated about this issue.
When flonum is introduced at r36798, flonum is treated as immediate value in w_object(), but is should treated as reference value.
I will attach a patch. This patch introduce a trivial inco...
nagachika (Tomoyuki Chikanaga)
02:31 PM Feature #7368 (Closed): rb_str_each_line()のパフォーマンス向上とリファクタリング
rb_str_each_line()でmemmem(3)を使う事を[ruby-dev:45344] [Feature #6129]で提案しましたが、
string.cからmemmem(3)を直接使わずに検索をrb_memsearch()にまとめた上で、
検索文字列と被検索文字列の両方がvalidなencodingである場合と、そうでない場合に関数を分けてリファクタリングしたpatchを作りました。
(どちらかがinvalidな場合には、rb_enc_codepoi...
Glass_saga (Masaki Matsushita)
02:11 PM Bug #7367: toooo many test failures after rake 0.9.4 is imported
This is fixed on r37670 as a workaround.
Anyway your log looks strange because my OS X Mountain Lion environment works well.
naruse (Yui NARUSE)
01:06 PM Bug #7367: toooo many test failures after rake 0.9.4 is imported
=begin
How do I build ruby outside of ((|$(srcdir)|))?
I get the following failure:
$ mkdir ~/tmp/build
$ cd ~/tmp/build
$ CC=clang ~/Work/svn/ruby/trunk/configure --with-openssl-dir=/usr/local/Cellar/openssl/1.0.1c/
[…...
drbrain (Eric Hodel)
10:10 AM Bug #7367 (Closed): toooo many test failures after rake 0.9.4 is imported
=begin
Yesterday, all my troubles seemed so far away.
Now it looks as though they're here to stay...
# cf. Yesterday The Beatles
eban-san told me that these are not platform dependent.
[ 388/1240] TestRakeBacktrace#test_suppre...
usa (Usaku NAKAMURA)
12:51 PM Revision e4479a1c (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:32 PM Revision 1d9d1a8f (git): Makefile.in: fix typo
* Makefile.in (yes-dtrace-probes.h): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:34 AM Revision 9ee34b15 (git): * thread.c (rb_thread_call_without_gvl2): change the parameter of
`func' from `int *skip_interrupt' to `VALUE *flags'.
If (flags & RUBY_CALL_WO_GVL_FLAG_SKIP_CHECK_INTS) is not zero,
then skip checking interrupt.
[ruby-core:46547]
* include/ruby/thread.h: ditto.
git-svn-id: svn+ssh://ci.ruby-l...
ko1 (Koichi Sasada)
10:03 AM Revision 6e0375e3 (git): * Makefile.in (no-dtrace-probes.h): dmyprobes.h is in srcdir.
* common.mk (dmyprobes.h): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:02 AM Feature #7322: Add a new operator name #>< for bit-wise "exclusive or"
No. There are so many "issues" out there. I don't have time to check them all.
Reference please.
Matz.
matz (Yukihiro Matsumoto)
09:35 AM Feature #7322: Add a new operator name #>< for bit-wise "exclusive or"
@matz Have you ever read about issue I have with implementing Stick b/c of this? I have no Rome to be in. I am in Carthage!
@dvaid_macmahon Well, #^^ would be better than nothing.
trans (Thomas Sawyer)
08:41 AM Feature #7322: Add a new operator name #>< for bit-wise "exclusive or"
I fully agree that repurposing '^' to be a power operator is not a good idea.
One alternative idea that might not make anyone happy would be to create a new power operator "^^" that is the same as "**", but seems more like exponentiat...
david_macmahon (David MacMahon)
08:26 AM Feature #7322 (Rejected): Add a new operator name #>< for bit-wise "exclusive or"
So what's your intention? To make '^' a power operator, and ruin innocent programs? Because you feel "natural"?
If Ruby were young and there were no (or few) Ruby programs out there, your proposal might be useful.
But I don't want to ...
matz (Yukihiro Matsumoto)
02:56 AM Feature #7322: Add a new operator name #>< for bit-wise "exclusive or"
Given the rejection of #7336, I would ask this this issue be more seriously considered. Personally, I don't really care if #^ continues to mean bitwise xor for numerics, but at least raise its precedence to be the same as #**, and provid... trans (Thomas Sawyer)
09:29 AM Feature #7359: #eql? and #equal? naming
"Making them little more intuitive does not worth breaking millions of existing programs."
That's true, but why does it have to be one or the other? Just,
alias identical? equal?
And let that be for a year or two while getti...
trans (Thomas Sawyer)
07:31 AM Feature #7359 (Rejected): #eql? and #equal? naming
Making them little more intuitive does not worth breaking millions of existing programs.
Matz.
matz (Yukihiro Matsumoto)
08:57 AM Revision df4e0dd5 (git): Makefile.in: split probes.h commands
* Makefile.in (probes.h): split build commands for dtrace-available
and unavailable platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:56 AM Revision e5164385 (git): Makefile.in: move probes.h to all-incs
* Makefile.in (incs): probes.h is a platform dependent file, so it
cannot be a part of prereq target. move it to all-incs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:30 AM Revision 1c7f72da (git): configure.in: move after AC_PROG_CC
* configure.in (DTRACE): move after AC_PROG_CC since cross_compiling
is set in it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:19 AM Feature #7349: Struct#inspect needs more meaningful output
It might be worth pointing out that this should not happen if the Struct generated class is assigned to a constant (and so one level of inheritance is not unused):
Point = Struct.new(:x, :y) do
def distance
Math.hypot(x,y)
...
Eregon (Benoit Daloze)
07:55 AM Bug #7352: Array#bsearch test failure on Range (32bits MinGW)
Okay. Tell me if you change your mind!
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:14 AM Bug #7352: Array#bsearch test failure on Range (32bits MinGW)
Thanks, but I don't want to have a commit bit.
I am content with a tester and debugger.
phasis68 (Heesob Park)
07:28 AM Revision c9b6a014 (git): range.c: compare signedness only
* range.c (BSEARCH_CHECK): compare signedness only and relax an
assumption of the result of rb_cmpint() which compilers cannot know.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:24 AM Revision 288da355 (git): configure.in: cross-compiling fix
* configure.in (DTRACE): ignore non-prefixed version if
cross-compiling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:42 AM Revision 620a2b6c (git): Makefile.in: probes.h
* Makefile.in, win32/Makefile.sub (probes.h): fix copying dmyprobes.h
path when outplace-build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:41 AM Revision 6fd1ef77 (git): * .gitignore: ignore dmyprobes.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:41 AM Revision 1e6ced13 (git): remove trailing spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:37 AM Revision df03463f (git): * lib/net/pop.rb (POP3.certs): fix typo in comment.
patch from no6v (Nobuhiro IMAI) <nov@yo.rim.or.jp>.
[ruby-dev:46519] [Bug #7355]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
04:53 AM Feature #7363: Remove the global Pathname() method
Hi,

First off: +1 on your request about the Pathname(). Although I don't see
the the real problem with it being named after a class. However, I don't
think it's necessary to have a shortcut which is four characters shorter
...
Anonymous
04:43 AM Bug #6653: 1.9.2/1.9.3 exhibit SEGV with many threads+tcp connections
Sorry for the abysmally late response -- I can't seem to get the redmine here to send me email for some reason.
Hi Folks, so I actually sorted this out with some help from others. It's not an issue of memcached, or rather, didn't appe...
erikh (Erik Hollensbe)
03:49 AM Revision a632fe43 (git): * test/rake/helper.rb (Rake::TestCase#setup): revert r37669.
@orig_PWD should be the original pwd.
* test/rake/test_*.rb: don't use @orig_PWD to load libraries.
It should be specified with relative path from the file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37670 b2dd03c8-39d4-4d8f-9...
naruse (Yui NARUSE)
02:32 AM Bug #7365 (Closed): File::NULL is not in documentation
The File::NULL / IO::NULL constant is not documented in either the File or IO documentation. mistydemeo (Misty De Meo)
01:25 AM Revision 48aab9e0 (git): * test/rake/helper.rb (Rake::TestCase#setup): @orig_PWD shouldn't be
Dir.pwd when the build directory is different from source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:01 AM Bug #7364 (Rejected): CGI::Cookie.parse can't deal with cookie options
Reproducing steps; reproducing code is needed:
p CGI::Cookie::parse("ASPSESSIONIDSCDRSRTS=HHALOHOBJGJMLPIANNLDOMCJ; path=/")
What you expected:
Cookie hash with cookie name as key and cookie object as value. The 'path' option wi...
ethicalhack3r (ryan dewhurst)
12:43 AM Revision 4b96ecc8 (git): * lib/rake/version.rb: workaround fix to build. see #7366
[ruby-dev:46522]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:30 AM Bug #7214: Ruby 2.0 breaks support for some debugging tools
I asked mame-san (2.0.0 release manager) about this feature.
His comments is:
DO IT ON A GEM SUCH A BIG FEATURE.
----
His comment is: it should be experimental just now. We need to make examination with real debugger.
ko1 (Koichi Sasada)

11/15/2012

11:20 PM Bug #7352: Array#bsearch test failure on Range (32bits MinGW)
phasis68 (Heesob Park) wrote:
> I guess this bug is related with the optimization of GCC 4.7.2.
> ...
I've committed your patch, my MEGA thanks!
I would really like you to have a commit bit. Are you willing?
Matz, what do you ...
mame (Yusuke Endoh)
10:50 PM Bug #7352 (Closed): Array#bsearch test failure on Range (32bits MinGW)
This issue was solved with changeset r37662.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* range.c (range_bsearch): fix some bugs: a documentation bug, a ...
mame (Yusuke Endoh)
04:40 PM Bug #7352: Array#bsearch test failure on Range (32bits MinGW)
I guess this bug is related with the optimization of GCC 4.7.2.
The version built with VC 2010 or GCC 4.5.2 works fine.
The workaround is adding a volatile qualifier.
Additionally, I found some problems in Range#bsearch method.
1...
phasis68 (Heesob Park)
12:30 PM Bug #7352: Array#bsearch test failure on Range (32bits MinGW)
Thank you Luis, I'll try it on windows.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:48 AM Bug #7352 (Closed): Array#bsearch test failure on Range (32bits MinGW)
=begin
Hello,
After r37655, I noticed a failing test on RubyInstaller CI for x86:
test_bsearch_for_float(TestRange) [C:/Users/Luis/Code/ruby/ruby/test/ruby/test_range.rb:392]:
Expected -1.7976931348623157e+308 to be >= NaN.
...
luislavena (Luis Lavena)
10:50 PM Feature #7363 (Rejected): Remove the global Pathname() method
About a year ago I sumbitted an not yet accepted patch for Ruby on GitHub which deprecates the global Pathname() method and adds the .[] operator to the Pathname class. The patch got ignored, supposedly because I didn't post it here.
...
aef (Alexander E. Fischer)
10:43 PM Bug #7332: mswin64でminiruby.exeがSEGV
遅くなってすみません,入れました. ko1 (Koichi Sasada)
10:42 PM Bug #7332 (Closed): mswin64でminiruby.exeがSEGV
This issue was solved with changeset r37661.
Yoshida, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_exec.h (GENTRY): GENTRY should be pointer size.
A patch...
ko1 (Koichi Sasada)
10:38 PM Feature #7362 (Assigned): Adding Pathname#start_with?
If a Pathname starts with another Pathname, that means that the former Pathname lies below the latter Pathname, as long as both Pathnames are interpreted from the same location or both are given as absolute.
Therefore I would like to ...
aef (Alexander E. Fischer)
10:35 PM Bug #7214: Ruby 2.0 breaks support for some debugging tools
I asked Matz about this feature.
His comments were:
(1) Do not need to break bindings at end of block. This is programmer's risk.
(2) Ruby-level API is also okay to contains Ruby 2.0.0.
ko1 (Koichi Sasada)
09:31 PM Bug #7214: Ruby 2.0 breaks support for some debugging tools
=begin
[PLEASE REVIEW!!]
= Abstract
I made debugger support interface.
https://github.com/ko1/ruby/compare/debugger_api
Currently, no docs, no tests.
Sorry for my laziness.
Please review it.
= Background
Generally,...
ko1 (Koichi Sasada)
10:32 PM Revision 1b023030 (git): * lib/rake*: Updated to rake 0.9.4
http://rake.rubyforge.org/doc/release_notes/rake-0_9_4_rdoc.html for
a list of changes in 0.9.4.
* test/rake*: ditto
* NEWS: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:30 PM Feature #7361 (Rejected): Adding Pathname#touch
Pathname has an #mkdir method to create a directory at the path, but does not have a #touch method to create an empty file at that path.
There were numerous cases where I had to fallback to using
new_file = Pathname.new('location/f...
aef (Alexander E. Fischer)
10:26 PM Feature #7360 (Closed): Adding Pathname#glob
Currently there is only a Pathname.glob method, which allows you to find Pathname objects by a pattern including wildcard characters like '*'.
I would like to be able to use this relative to a current Pathname.
some_directory = Pat...
aef (Alexander E. Fischer)
10:06 PM Bug #7259: ruby-debug-base19x does not compile on 2.0.0-head
"[ruby-core:49369] [ruby-trunk - Bug #7214] Ruby 2.0 breaks support for some debugging tools" is enough or not?
ko1 (Koichi Sasada)
10:01 PM Revision e9c28d0f (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:00 PM Feature #7359 (Rejected): #eql? and #equal? naming
In my opinion the difference between @#eql?@ and @#equal?@ is really unintuitive. How about making their difference more obvious by giving one of them a more accurate name?
My proposal is to rename @#equal?@ to @#identic?@.
If you ...
aef (Alexander E. Fischer)
09:59 PM Revision 84da520d (git): * 2012-11-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:59 PM Revision 9c66bad9 (git): * lib/rake*: Updated to rake 0.9.3
* test/rake*: ditto
* bin/rake: ditto
* NEWS: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:17 PM Revision bfc95c6e (git): Ignore dmyprobes.h, .time.id.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
07:04 PM Bug #7357 (Third Party's Issue): ruby-1.9.3-p327@global/gems/activerecord-3.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:1208: [BUG] Segmentation fault
Erro during rake db:migrate
Rails 3.2.9
Rake 10.0.1
/usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/activerecord-3.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:1208: [BUG] Segmentation fault
ruby 1.9.3p327 (2...
Bluebird-communication (Douglas Magnenat)
06:37 PM Bug #7356 (Closed): ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化
== 現象
ruby-1.9.3-p327 と ruby-2.0.0-preview1 で adlint-2.6.10 の性能比較を行った結果、
ruby-2.0.0-preview1 の方が解析時間が 1.2 倍ほど長くかかりました。
== 再現手順
% gem install adlint
% tar xvjf adlint-benchmark-screen.tar.bz2 <- 添付ファイル
% cd adlint-benchmar...
yanoh (Yutaka Yanoh)
05:02 PM Feature #4766 (Closed): Range#bsearch
Oh, Park-san perfectly pointed out this problem in [ruby-core:49364].
So I close this ticket.
usa (Usaku NAKAMURA)
04:52 PM Feature #4766 (Assigned): Range#bsearch
in range.c, the definition of a macro BSEARCH_CHECK includes:
switch (rb_cmpint(rb_funcall(v, id_cmp, 1, INT2FIX(0)), v, INT2FIX(0)) < 0) { \
case 0: return val; \
case 1: smaller = 1; \
case -1: smaller = 0; \
} \...
usa (Usaku NAKAMURA)
11:37 AM Feature #4766 (Closed): Range#bsearch
This issue was solved with changeset r37655.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c (rb_ary_bsearch): add Array#bsearch for binary search...
mame (Yusuke Endoh)
03:51 PM Bug #7355 (Closed): tiny typo in lib/net/pop.rb
There is a tiny typo in lib/net/pop.rb.
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index 0736585..fd869b6 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -375,7 +375,7 @@ module Net
return @ssl_params[:verify_mode]
...
no6v (Nobuhiro IMAI)
01:57 PM Feature #7336: Flexiable OPerator Precedence
"Ruby is not a language for academic research of programming languages."
I was referring to academic application, as in the sciences, using DSLs. Not experimenting with programming languages.
I understand though, the yacc point is ...
trans (Thomas Sawyer)
09:46 AM Feature #7336: Flexiable OPerator Precedence
@trans I don't deny the idea itself. But not for Ruby, because
* syntax should be stable.
* Ruby is not a language for academic research of programming languages.
* we cannot use yacc (or bison) any longer, if we adopt variable ope...
matz (Yukihiro Matsumoto)
01:50 PM Revision 412b0237 (git): * range.c (range_bsearch): fix some bugs: a documentation bug, a wrong
condition, missed break in switch/case, and workaround for GCC
optimization. See [ruby-core:49364] in detail. A great patch from
Heesob Park. [Bug #7352] [Feature #4766]
* array.c (rb_ary_bsearch): fix similar bug (missed break).
...
mame (Yusuke Endoh)
01:42 PM Revision 768801b0 (git): * vm_exec.h (GENTRY): GENTRY should be pointer size.
A patch by yoshidam (Yoshida Masato) [Bug #7332].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:34 PM Feature #7258: Update Rdoc
Eric, what's the status?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:34 PM Feature #7257: Update Rubygems
Eric, what's the status?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:33 PM Feature #7256: Update Rake
> I asked Jim and he thought rake 0.9.3 was better to include in Ruby 2.0.0, so I plan to import that.
Agreed.
Then, what's the status?
This is one of the biggest tasks for 2.0.0-preview2.
Let me know if you have any serious prob...
mame (Yusuke Endoh)
11:37 AM Feature #3479 (Closed): Array#binary_find et al
This issue was solved with changeset r37655.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c (rb_ary_bsearch): add Array#bsearch for binary search...
mame (Yusuke Endoh)
08:29 AM Feature #4085: Refinements and nested methods
Perhaps refinements should be scoped per-gem, rather than any arbitrary
"using" delimitation. Seems to me, that is generally the level at which we
care about them.

Would that simplify implementation and comprehensibility of usa...
trans (Thomas Sawyer)
03:45 AM Feature #4085: Refinements and nested methods
On Wed, Nov 14, 2012 at 05:38:12AM +0900, headius (Charles Nutter) wrote:

[snip]

> And then there's this:
>
> class Foo < SomeParent
> def baz(str)
> ary.map {|name| str.camelize + name}
> end
> end
>
...
Anonymous
07:57 AM Bug #7342: String#<=> checks for a #to_str method on other but never uses it?
"It should be used internally to retrieve the string representation of an object." That's explicit coercion. Implicit coercion with #to_str means the object acts a string and the method needn't be called.
This method is used for more ...
bitsweat (Jeremy Daer)
07:19 AM Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer
Hello Nobu,
As pointed by Shirosaki-san, the two commits are now split.
Can we apply those changes to trunk? Who should be assigned to final approval?
Thank you
luislavena (Luis Lavena)
06:20 AM Revision 1fc11119 (git): merge revision(s) 35080: [Backport #7353]
* gc.c (free_method_entry_i): method entry may be in
unlinked_method_entry_list. [ruby-core:43383][Bug #6171]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
06:15 AM Revision d3216922 (git): merge revision(s) 36491,36877: [Backport #7320]
Use 0 for webrick's port and get the actual port. [Bug #6766]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:22 AM Revision 5457b86a (git): * man/erb.1: Fix grammar and copyright dates
* man/goruby.1: ditto
* man/irb.1: ditto
* man/rake.1: ditto
* man/ri.1: ditto
* man/ruby.1: ditto
Patch by Arthur Gunn
[Fixes Github #210]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:37 AM Revision 81d71fee (git): * man/ruby.1: Grammar edits for man page
Based on a patch by Michael Endsley [Fixes Github #183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)

11/14/2012

07:48 PM Bug #7301: URI::FTP.new2()の引数typecodeを省略するとNoMethodErrorが発生します。
これはダメですね。泥沼化しそうなので、手を入れるべきでないと判断します。
メンテナの YAMADA Akira さん見ていらっしゃいますかね。
返事がなければ、ドキュメントを消して undocumented なメソッドにすることで消極的に解決しようと思います。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:38 PM Bug #7301: URI::FTP.new2()の引数typecodeを省略するとNoMethodErrorが発生します。
後から気付いたのですが、引数typecodeを与えても例外が発生します。
----------------------------
$ cat new2_with_typecode.rb
# encoding: utf-8
require 'uri'
URI::FTP.new2('anonymous', 'anonymous', 'ftp.ubuntu.com', 21, '/', 'a')
$ ruby -v new2_with_typeco...
shi-mo (Yoshifumi Shimono)
05:55 PM Bug #7342: String#<=> checks for a #to_str method on other but never uses it?
As the page you linked points out, #to_str is an *implicit* cast. i.e. It should be used internally to retrieve the string representation of an object. I think this is in keeping with all other uses of #to_str in Ruby source.
Another ...
jballanc (Joshua Ballanco)
12:40 PM Bug #7342: String#<=> checks for a #to_str method on other but never uses it?
When an object responds to #to_str, it's saying "I am a string." When an object responds to #to_s, it's saying "I have a string representation."
So checking for #to_str here is enough to know whether str2 is a string and can be compar...
bitsweat (Jeremy Daer)
11:53 AM Bug #7342: String#<=> checks for a #to_str method on other but never uses it?
I would expect something like the following patch makes more sense?
diff --git a/string.c b/string.c
index c63f59a..c9eed27 100644
--- a/string.c
+++ b/string.c
@@ -2385,8 +2385,12 @@ rb_str_cmp_m(VALUE str1, VALUE str2)
lon...
jballanc (Joshua Ballanco)
04:03 PM Revision 5c30ce37 (git): * 2012-11-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:53 PM Revision de07850e (git): * array.c (rb_ary_bsearch): add Array#bsearch for binary search.
[ruby-core:36390] [Feature #4766]
* test/ruby/test_array.rb: add a test for above.
* range.c (range_bsearch): add Range#bsearch for binary search.
[ruby-core:36390] [Feature #4766]
* test/ruby/test_range.rb: add a test for above
* ...
mame (Yusuke Endoh)
03:43 PM Feature #4085: Refinements and nested methods
> Ideally, in the Rails source code, I would just add "using StringExt" to
> ...
Aaron, if refinements were not leaking to inherited classes (as Yehuda nicely described why) then you still would have the ability to manually propagate t...
brainopia (Ravil Bayramgalin)
07:19 AM Feature #4085: Refinements and nested methods
It reminds me C++. So powerful that you can have a hard time trying to understand what is happening in a given piece of code since you have so many operators and each of them can be overloaded. Very powerful but once you're relying on so... rosenfeld (Rodrigo Rosenfeld Rosas)
05:38 AM Feature #4085: Refinements and nested methods
rosenfeld: Yes, I am arguing that same case. I believe refinements should only be active for code that appears within a refined context. My example from earlier:
class Foo < SomeParent
def bar(str)
str.upcase # unrefined
end
...
headius (Charles Nutter)
05:23 AM Feature #4085: Refinements and nested methods
Talking more with folks online about refinements, there's a lot of confusion about what they solve.
So, in one sense, refinements are to localize monkey-patching. But they don't actually localize it much better since they can apply at...
headius (Charles Nutter)
05:18 AM Feature #4085: Refinements and nested methods
Just tested it to confirm:
a = {1.hour.ago}; use(groovy.time.TimeCategory){a()}
If "a()" throwed an exception in Groovy for the example above would it be easier for them to optimize the interpreter?
rosenfeld (Rodrigo Rosenfeld Rosas)
05:15 AM Feature #4085: Refinements and nested methods
Charles, I'm not sure if I completely understand your concerns, but I think that from a code readability point of view refinements should be local to the current block or it would become just as difficult to read code as the current monk... rosenfeld (Rodrigo Rosenfeld Rosas)
02:21 AM Feature #4085: Refinements and nested methods
shugo: I may have a possible compromise that fixes some of the technical issues.
Currently, refinements have to be looked up via cref, basically (there's oddities for module_eval case, but it's similar to cref). If instead refinements...
headius (Charles Nutter)
01:43 AM Feature #4085: Refinements and nested methods
jballanc: That is exactly the sort of problem I'm worried about. It is *impossible* to look at the DoIt class in your example and know what methods it will call. Even with monkey-patching, you would have the consistency of all callers se... headius (Charles Nutter)
01:35 AM Feature #4085: Refinements and nested methods
shugo: I believe I understand the implementation. There are a lot of open questions for it, however:
* If the refined class is reopened and the method redefined, does the VM_METHOD_TYPE_REFINED flag get lost?
* How are refinements ...
headius (Charles Nutter)
02:53 PM Feature #7349: Struct#inspect needs more meaningful output
I like it too. Could even be:

Point.ancestors
# => [Point, Struct.new(:x, :y), Struct, Enumerable, Object, Kernel,
BasicObject]

--
<lay trum/>
claytrump (Clay Trump)
12:09 PM Feature #7349: Struct#inspect needs more meaningful output
Sounds nice to me. +1 shyouhei (Shyouhei Urabe)
11:32 AM Feature #7349 (Assigned): Struct#inspect needs more meaningful output
When inheriting directly from Struct.new, Class#ancestors shows a meaningless anonymous Class:
class Point < Struct.new(:x, :y)
def distance
((x ** 2) + (y ** 2)) ** 0.5
end
end
Point.ancesto...
postmodern (Hal Brodigan)
02:34 PM Bug #7350: Segmentation fault with ruby 1.9.3p328 (2012-11-13) [x86_64-linux]
Can you check with trunk?
# Yes, it may be difficult, I know.
It seems that crash1.log suggests the cause is in libxml-ruby gem, maybe GC bug.
crash2.log suggests ... ..... a string passed to Pathname is broken.
Does anyone have ...
usa (Usaku NAKAMURA)
02:08 PM Bug #7350 (Rejected): Segmentation fault with ruby 1.9.3p328 (2012-11-13) [x86_64-linux]
I'm experiencing sporadic segmentation faults in a ruby daemon running with:
ruby 1.9.3p328 (2012-11-13) [x86_64-linux]
This is actually the 1.9.3p327 ruby patched with https://github.com/ruby/ruby/commit/ae2df330 as the issue http...
ggiesemann (Geoffrey Giesemann)
01:54 PM Bug #7326: Time.c doc improvements
The formatting looks good, except you shouldn't wrap classes in anything, such as ArgumentError or Time and Time#to_f
This allow rdoc to properly link these objects.
zzak (zzak _)
01:26 PM Feature #7288 (Closed): Documentation missing: FileUtils.chmod "+X", "directory"
This issue was solved with changeset r37652.
Jörg, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/fileutils.rb (chmod): Add "X" to modes, convert format to t...
zzak (zzak _)
11:53 AM Bug #7319 (Closed): CSV docs
This issue was solved with changeset r37651.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/csv.rb (init_comments): Document private method #init_co...
zzak (zzak _)
11:32 AM Bug #7348 (Assigned): marshaling an object by a float does not work
shyouhei (Shyouhei Urabe)
11:14 AM Bug #7348: marshaling an object by a float does not work
irb(main):006:0> e = Object.new
irb(main):007:0> Marshal.load(Marshal.dump([[2.0e-100, e], [e]]))
=> [[2.0e-100, #<Object:0x007fa45a10bc28>], [#<Object:0x007fa45a10bc28>]]
Therefore it is related to flonum.
mrkn (Kenta Murata)
09:20 AM Bug #7348 (Closed): marshaling an object by a float does not work
The below `calls` object doesn't round trip through marshal on edge ruby:
def test_marshal_object_and_float
e = Object.new
calls = []
calls << [2.0, e]
calls << [e]
assert_equal calls, Marshal.load(Marshal.d...
tenderlovemaking (Aaron Patterson)
11:27 AM Revision dfc11220 (git): merge revision(s) 37604:
* ruby_atomic.h: renamed from atomic.h to avoid header file name
conflict on Solaris 10. [ruby-dev:46414] [Bug #7287]
* gc.c, signal.c, vm_core.h, common.mk: reflect the rename from
atomic.h to ruby_atomic.h....
U.Nakamura
11:20 AM Revision c185d9cd (git): merge revision(s) 37593: [Backport #7347]
* random.c (BYTE_ORDER): define using configured WORDS_BIGENDIAN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:07 AM Feature #6980: OpenSSL support for AEAD additional authenticated data and tags
This would definitely be on my list for 2.0. Sorry for not having been more responsive. I talked with nahi at RubyConf about the tickets that are still open at the moment. I will ask if it is possible to extend the feature freeze for som... MartinBosslet (Martin Bosslet)
10:20 AM Bug #7112: File.extname documentation fix
I think adding documentation for dotfiles and files ending with a dot would be sufficient.
I don't think covering filesystem-specific behavior is necessarily useful.
drbrain (Eric Hodel)
09:07 AM Feature #7297: map_to alias for each_with_object
Thank you. Enumerable#associate proposed: #7341 bitsweat (Jeremy Daer)
04:57 AM Feature #7346: object(...) as syntax sugar for object.call(...)
Yes, I know, it is just that I prefer to read object.call(arguments) than object[arguments]. This is just a personal opinion, I know and I can change my mind some day about this :) rosenfeld (Rodrigo Rosenfeld Rosas)
04:23 AM Feature #7346: object(...) as syntax sugar for object.call(...)
@rosenfeld, I'll just mention that you can use Proc#[] in your example:

double = -> n { n * 2 }

double[3] == 6 #=> true


On Wednesday, 14 November 2012, rosenfeld (Rodrigo Rosenfeld Rosas) wrote:

>
> Issue #7346...
nathan.f77 (Nathan Broadbent)
04:53 AM Feature #7341: Enumerable#associate
>
> 1) The form you suggest would be redundant with `Enumerable#to_h`
>

I agree that 'Enumerable#to_h' would seem more appropriate than the
block-less version of 'associate'. To me, the 'associate' verb implies that
the pro...
nathan.f77 (Nathan Broadbent)
01:12 AM Feature #7341: Enumerable#associate
Hi,
bitsweat (Jeremy Kemper) wrote:
> In short: associating a collection of keys with calculated values should be easy to do and the code should reflect the programmer's intent.
A strong +1 from me
> ...
A good start. I'd make ...
marcandre (Marc-Andre Lafortune)
12:03 AM Feature #7341: Enumerable#associate
Thanks for posting, Nathan. See https://gist.github.com/4035286 for the full pitch and a demonstration implementation.
In short: associating a collection of keys with calculated values should be easy to do and the code should reflect ...
bitsweat (Jeremy Daer)
04:26 AM Revision c8b0b536 (git): * lib/fileutils.rb (chmod): Add "X" to modes, convert format to table
[ruby-core:48965] [Bug #7288]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:53 AM Revision a4b0291f (git): * lib/csv.rb (init_comments): Document private method #init_comments.
Based on a patch from Vincent Batts [ruby-core:49172] [Bug #7319]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
01:08 AM Bug #7171: test-all failure on OS X (RubyCI)
codesign する機能は僕がお願いして入れてもらったものなので存在は知っていて使ってます。
自分のユーザで、rvm や rbenv を使ってインストールする ruby には署名していてとても便利になっていますが、
chkbuild を chkbuild 専用ユーザで動かしている場合にきちんと署名してくれず困っています。
デンバー滞在中に sorah から対処方法の案を教わっているので、次の休みの日にでもそれを試して結果を報告しますね。
mrkn (Kenta Murata)
01:02 AM Bug #7344: gem pristine bigdecimal が失敗してしまう
ほかの built-in 拡張ライブラリは問題ないんですかねぇ。
そうだとすれば gemspec を真似すればいいのかな。
mrkn (Kenta Murata)
12:44 AM Bug #7343 (Rejected): Enumerator::Lazy seems to nest herself infinitely
marcandre (Marc-Andre Lafortune)
12:07 AM Feature #7336: Flexiable OPerator Precedence
trans (Thomas Sawyer) wrote:
>
> ...
(10.meters)**2 should be 100.meters^2 in your notation.
> Rather then the `5m^2` expected. While parenthesis can be used, it so unnatural to this common notation that it puts a rather ugly black ...
alexeymuranov (Alexey Muranov)

11/13/2012

11:56 PM Feature #7336: Flexiable OPerator Precedence
@matz I understand your cautionary take. It certainly could be dangerous if someone where to horse around with precedence, say in the Object class. But I doubt it would prove such a problem in practice b/c developers would be well aware ... trans (Thomas Sawyer)
11:25 PM Feature #7336: Flexiable OPerator Precedence
"you can always use parentheses if needed"
Unfortunately it is very unnatural for a unit system. Let me give an example to explain. In Stick, the obvious DSL is:
10.meters**2 => 100m
10.meters^2 => 10m^2
So, ** is power ...
trans (Thomas Sawyer)
03:36 PM Feature #7336: Flexiable OPerator Precedence
I have similar opinion with Matz: i think it is nice to have in language something about the syntax that never changes. In this case, it is to be able to look at a line of code and to know in which order it will be executed, without hav... alexeymuranov (Alexey Muranov)
11:13 AM Feature #7336: Flexiable OPerator Precedence
So it's about taste, not about dangers? If so it makes much more sense to me. shyouhei (Shyouhei Urabe)
11:05 AM Feature #7336: Flexiable OPerator Precedence
It changes "the taste of the language". Macro will give you flexibility and freedom.
But it may hinder "reliability" to the syntax, and will gradually destroy the attractiveness of the language.
It might be imaginary fear of mine. But...
matz (Yukihiro Matsumoto)
10:57 AM Feature #7336: Flexiable OPerator Precedence
Matz, I know you don't like macros.
But look out, there are tons of DSLs written in Ruby. Which means everybody, except you, are willing to have macros.
So I agree with you, macros are dangerous. But to meet our needs, Ruby shoul...
shyouhei (Shyouhei Urabe)
10:46 AM Feature #7336: Flexiable OPerator Precedence
matz (Yukihiro Matsumoto) wrote:
> "dangerous" here of course means "confusing" or "error prone".
> ...
I know, but you said "as dangerous as macros". So my question.
shyouhei (Shyouhei Urabe)
10:38 AM Feature #7336: Flexiable OPerator Precedence
"dangerous" here of course means "confusing" or "error prone".
I don't think changing operator precedence would cause your computer explode.
Matz.
matz (Yukihiro Matsumoto)
10:24 AM Feature #7336: Flexiable OPerator Precedence
matz (Yukihiro Matsumoto) wrote:
> But changing precedence may confuse readers. It is as dangerous as macros.
Interesting. Can you tell us how "dangerous" it is, apart from being confusing?
shyouhei (Shyouhei Urabe)
09:09 AM Feature #7336 (Rejected): Flexiable OPerator Precedence
Pretty interesting idea, that reminds me Prolog or Haskell.
But changing precedence may confuse readers. It is as dangerous as macros.
So I reject the idea (for Ruby language) for same reason.
Matz.
matz (Yukihiro Matsumoto)
10:02 PM Feature #7346: object(...) as syntax sugar for object.call(...)
Ah, of course! :D I totally forgot about Kernel#p! :P
Yes, that makes total sense.
rosenfeld (Rodrigo Rosenfeld Rosas)
09:15 PM Feature #7346: object(...) as syntax sugar for object.call(...)
We easily forget conflict between method names and variable names, in a language like Ruby, where methods and variables have separated name space.
We expect p(15) to print 15 even when we have a variable named p in the scope.
Matz....
matz (Yukihiro Matsumoto)
09:02 PM Feature #7346: object(...) as syntax sugar for object.call(...)
Ah, ok, I didn't know about this syntax until now. What does the code above do? rosenfeld (Rodrigo Rosenfeld Rosas)
08:59 PM Feature #7346 (Rejected): object(...) as syntax sugar for object.call(...)
I have once tried, but it caused serious incompatibility problem for example:
p = Object.new
p(15)
So compromise with object.() syntax introduced in 1.9.
Matz.
matz (Yukihiro Matsumoto)
08:50 PM Feature #7346 (Rejected): object(...) as syntax sugar for object.call(...)
I propose for the parser to interpret "object(...)" as "object.call(...)". It should raise NoMethodError at runtime if object doesn't respond to "call".
This would read better than using "call":
double = -> n { n * 2 }
double(3)...
rosenfeld (Rodrigo Rosenfeld Rosas)
08:53 PM Feature #7340: 'each_with' or 'into' alias for 'each_with_object'
On 13 November 2012 21:25, rosenfeld (Rodrigo Rosenfeld Rosas) <
rr.rosas@gmail.com> wrote:

>
> Issue #7340 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas).
>
>
> The reason I dislike each_with_object and each_wit...
phluid61 (Matthew Kerwin)
08:25 PM Feature #7340: 'each_with' or 'into' alias for 'each_with_object'
The reason I dislike each_with_object and each_with is the "each" on them. "each"'s return value isn't meaningful to me. That's why I would prefer "map_to", "map_into" or just "into".
"into" here doesn't mean putting values "into" the...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:24 AM Feature #7340: 'each_with' or 'into' alias for 'each_with_object'
matz (Yukihiro Matsumoto) wrote:
> I dislike #into because it may or may not put something into the argument.
> ...
I would appreciate if you could look at #6687. but #each_with is OK for me :-)
merborne (kyo endo)
11:06 AM Feature #7340: 'each_with' or 'into' alias for 'each_with_object'
I dislike #into because it may or may not put something into the argument.
I am OK with #each_with.
Matz.
matz (Yukihiro Matsumoto)
08:17 AM Feature #7340 (Open): 'each_with' or 'into' alias for 'each_with_object'
Following on from the discussions at #7297 and #7241, it is apparent that a shorter alias for 'each_with_object' would be much appreciated. nathan.f77 (Nathan Broadbent)
08:36 PM Feature #4085: Refinements and nested methods
Charles, although I agree that the example you gave reads just as good as the monkey patched version, sometimes I can't find a better approach to some DSL created by monkey patches. This is why I'd like to have something like refinements... rosenfeld (Rodrigo Rosenfeld Rosas)
07:29 PM Feature #4085: Refinements and nested methods
Ok, I think I finally figured out what it is about refinements that makes me so uncomfortable... Refinements violate PLOS in a very bad way, I think, because the behavior of code no longer depends only on the objects and statements in th... jballanc (Joshua Ballanco)
04:42 PM Feature #4085: Refinements and nested methods
Perhaps I am missing something, but for the case that Aaron points out, it seems to me that refinements are an overly complicated solution. I think a much better solution would be to make literal construction use current scope when assig... jballanc (Joshua Ballanco)
12:11 PM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> Well, I have some bad news.
> ...
ko1 came up with a new idea to implement refinements without impact to applications which don't use refinements.
The basic idea is:
* When a method is defined in a...
shugo (Shugo Maeda)
11:04 AM Feature #4085: Refinements and nested methods
Replies to recent comments:
Aaron: I totally understand the use case, and I support it. Unfortunately I don't feel like the use case and the current feature set have been aligned properly without major impact to unrefined code. There'...
headius (Charles Nutter)
10:57 AM Feature #4085: Refinements and nested methods
Well, I have some bad news.
I have spent some time trying to find a reasonable way to implement refinements in JRuby, and without reducing the feature set it's simply not possible to do without global (and sometimes terrible) impact t...
headius (Charles Nutter)
08:15 PM Bug #7344 (Assigned): gem pristine bigdecimal が失敗してしまう
mrkn さんの作った gem が悪いのでは、という説なので、
とりあえず mrkn さん調べてみてもらえますか?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
08:11 PM Bug #7344 (Closed): gem pristine bigdecimal が失敗してしまう
gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。
% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::Extension...
hsbt (Hiroshi SHIBATA)
08:11 PM Bug #6634 (Feedback): Deadlock with join and ConditionVariable
Worked. Thank you!
Then, anyone can reproduce the original problem? Meh, can you still reproduce?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
06:59 PM Bug #6634: Deadlock with join and ConditionVariable
Maybe this second problem is fixed at r37647.
mame-san, could you check it?
ko1 (Koichi Sasada)
06:32 PM Feature #5373: SMTP - new method
drbrain (Eric Hodel) wrote:
> May I apply this?
Sasada-san told me that Aoki-san is neutral about this issue, and asked my take as a maintainer of Net::IMAP.
I think it's nice Net::SMTP to have a new method for the RSET command, b...
shugo (Shugo Maeda)
06:07 PM Bug #7308: Infinite recursion on circular 'using'
charliesome (Charlie Somerville) wrote:
> I've attached a patch that does a simple DFS to make sure no circular using relationship is created.
Thank you. I've changed it to raise an ArgumentError instead of TypeError for the consist...
shugo (Shugo Maeda)
06:05 PM Bug #7308 (Closed): Infinite recursion on circular 'using'
This issue was solved with changeset r37646.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* eval.c (rb_mod_using): raise an ArgumentError if cyclic usin...
shugo (Shugo Maeda)
05:59 PM Bug #7343: Enumerator::Lazy seems to nest herself infinitely
I understand Enumerator::Lazy's behavior via
- https://twitter.com/mashiro/status/268271989964292096
- https://gist.github.com/1939610
Sorry for making a noise...
udzura (Uchio KONDO)
04:42 PM Bug #7343 (Rejected): Enumerator::Lazy seems to nest herself infinitely
Hello, Ruby dev team.
I tried Ruby 2.0 trunk, and found Enumerator::Lazy a bit weird.
> [1, 2, 3].cycle.lazy.take 5
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: [1, 2, 3]:cycle>>:take(5)>
> [1, 2, 3]....
udzura (Uchio KONDO)
03:56 PM Revision 5de3acdc (git): * 2012-11-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:56 PM Revision 3dd13a1c (git): * Makefile.in (probes.h): create from probes.d
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
03:13 PM Feature #2565 (Closed): adding hooks for better tracing
This issue was solved with changeset r37636.
Yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Fix dtrace commit r37631, it is [Feature #2565]
* configure.in: ...
naruse (Yui NARUSE)
03:12 PM Feature #6311: memmem()によるrb_memsearch()の高速化
nは下で使われていないので更新不要ですね。 knu (Akinori MUSHA)
02:58 PM Feature #6311: memmem()によるrb_memsearch()の高速化
もしこういう特定のケースの高速化が必要とのことなら、memmem()を使わない版でも
Index: re.c
===================================================================
--- re.c (revision 37635)
+++ re.c (working copy)
@@ -126,6 +126,11 @@ rb_memsearch_ss(const unsigned char ...
knu (Akinori MUSHA)
11:12 AM Feature #6311 (Closed): memmem()によるrb_memsearch()の高速化
This issue was solved with changeset r37634.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* re.c (rb_memsearch_ss): performance improvement by using memm...
Anonymous
11:24 AM Bug #7342 (Closed): String#<=> checks for a #to_str method on other but never uses it?
=begin
This isn't exactly a bug, as much as a request for clarification. I was looking at the semantics of the (({<=>})) operator and noticed something curious. For most classes, when evaluating (({thing <=> other})), if (({other})) is ...
jballanc (Joshua Ballanco)
10:02 AM Revision ae2df330 (git): merged revision(s) 37075,37076,37082,37083,37088: [Backport #7123]
* gc.c: Use the non-recursive marking instead of recursion. The
recursion marking of CRuby needs checking stack overflow and the
fail-safe system, but these systems not good at partial points,
for example, marking deep tree structu...
U.Nakamura
09:48 AM Revision 0c1682b3 (git): * vm_insnhelper.c (vm_call_cfunc_with_frame): don't use ci after
EXEC_EVENT_HOOK because ci can be overridden.
* vm_eval.c: ditto.
* method.h: change invoker's parameters types.
* vm_method.c (call_cfunc_invoker_func): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37647 b2dd03c8-39d4-4d8...
ko1 (Koichi Sasada)
09:05 AM Revision 684aa1f9 (git): * eval.c (rb_mod_using): raise an ArgumentError if cyclic using is
detected. based on the patch by Charlie Somerville.
[ruby-core:49092] Bug #7308
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
08:52 AM Revision e7659bd2 (git): Define dtrace test classes only when dtrace exists
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:41 AM Revision bd5b2cb6 (git): * common.mk (vm_insnhelper.c): this target is useless and causes
ruby always need rebuild.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:36 AM Revision 1619c02d (git): * compile.c (insn_data_to_s_detail): remove debug lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:35 AM Revision 0d6c9acc (git): fix ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:34 AM Revision ffd3cbdc (git): * vm_insnhelper.c (vm_caller_setup_args): save and restore
ci->argc and ci->blockptr before and after method invocations
because these method dispatches override call_info.
* bootstraptest/test_method.rb: add tests for this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37641 b2dd03...
ko1 (Koichi Sasada)
08:29 AM Feature #7341 (Open): Enumerable#associate
Jeremy Kemper proposed Enumerable#associate during the discussion in #7297, with the following details:
-------------------
Some background:
#4151 proposes an Enumerable#categorize API, but it's complex and hard to understand it...
nathan.f77 (Nathan Broadbent)
07:49 AM Revision db31b3da (git): * common.mk (dmyprobes.h): always create for make dist.
* Makefile.in (probes.h): create or copy dmyprobes.h
* win32/Makefile.sub: only do copy dmyprobes.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:38 AM Revision d8aaa430 (git): * Makefile.in (.SUFFIX): .SUFFIX is needed here for .d.h on bsd make.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:35 AM Revision aec93c22 (git): * common.mk Makefile.in win32/Makefile.sub (.d.h): it's not common.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:31 AM Feature #7339 (Rejected): Version of super that doesn't raise when super undefined
Indeed, `defined?(super)` is probably what you were looking for.
marcandre (Marc-Andre Lafortune)
05:53 AM Feature #7339: Version of super that doesn't raise when super undefined
We can already write:

super if defined?(super)

I don't think a shortcut would be necessary for that, since it's already
quite short.


Best,
Nathan

On Tuesday, 13 November 2012, prijutme4ty (Ilya Vorontsov) ...
nathan.f77 (Nathan Broadbent)
05:31 AM Feature #7339 (Rejected): Version of super that doesn't raise when super undefined
=begin
I propose new method try_super (it's possibly bad name, any suggestions) which would work like a super except not raising in case that super method undefined. It can be useful in such a situation - when module makes smth useful e...
prijutme4ty (Ilya Vorontsov)
06:26 AM Bug #7338 (Rejected): loop command doesn't accept begin/end, only { }
marcandre (Marc-Andre Lafortune)
04:47 AM Bug #7338: loop command doesn't accept begin/end, only { }
My bad, thanks, Nathan. Switching between languages too often! :D dwilde1 (Donald Wilde)
04:23 AM Bug #7338: loop command doesn't accept begin/end, only { }
Hi there,

Try 'loop do' instead of 'loop begin'


Best,
Nathan

On Tuesday, 13 November 2012, dwilde1 (Donald Wilde) wrote:

>
> Issue #7338 has been reported by dwilde1 (Donald Wilde).
>
> -------------------...
nathan.f77 (Nathan Broadbent)
04:09 AM Bug #7338 (Rejected): loop command doesn't accept begin/end, only { }
def token_generator
random = Random.new
alpha = Array.new
('a' .. 'z').each do | c |
alpha << c
end
('A' .. 'Z').each do | c |
alpha << c
end
numbers = %w{ 0 1 2 3 4 5 6 7 8 9 }
loop ...
dwilde1 (Donald Wilde)
06:14 AM Revision 864d9606 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:13 AM Revision f82d652f (git): Fix dtrace commit r37631, it is [Feature #2565]
* configure.in: disable dtrace because it doesn't work on FreeBSD.
* common.mk (clean-local): rm probes.h.
* common.mk (parse.o): depend $(PROBES_H_INCLUDES).
* common.mk (.d.h): moved from Makefile.in and use BASERUBY.
* tool/gen_du...
naruse (Yui NARUSE)
03:37 AM Bug #7337 (Rejected): 1.9.3-p327 crashed on rake
Used ruby-build to get the latest 1.9.3-p327 on my OS X 10.7.5 with llvm-gcc-4.2
Used bundle install to get all the gems, then run "bundle exec rake" which lead to the following Backtrace (CrashReport below that):
mediafinger (Andy Finger)
03:32 AM Revision 8e72bb71 (git): * win32/README.win32: added mention about build directory. currently
we can not build ruby in win32 directory. this problem is reported
by Masahiro Kitajima <katonbo@katontech.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:12 AM Revision c5b19cf0 (git): * re.c (rb_memsearch_ss): performance improvement by using memmem(3) if
possible. [ruby-dev:45530] [Feature #6311]
* configure.in: check existence of memmem(3) and that it is not broken.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
12:44 AM Revision d24e2d74 (git): add probes.h to svn:ignore and sort .gitignore
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:38 AM Feature #6588: Set#intersect?
alexeymuranov (Alexey Muranov) wrote:
> +1.
Thanks for the +1
> ...
No, I believe it would be wrong to argue that. From wikipedia: "We say that A intersects B if A intersects B at some element"
Moreover: "We say that A and B ...
marcandre (Marc-Andre Lafortune)
12:19 AM Feature #7322: Add a new operator name #>< for bit-wise "exclusive or"
Related: #6678. alexeymuranov (Alexey Muranov)

11/12/2012

11:54 PM Feature #7336 (Rejected): Flexiable OPerator Precedence
=begin
If Ruby classes could provide some means for redefining operator precedence, it would provide the flexibility useful to some DSL use-cases.
My particular application, for instance, is in an SI units system gem that could use `...
trans (Thomas Sawyer)
11:41 PM Feature #5185: Set#merge acts in place but Hash#merge does not
Well, maybe #merge wasn't the best choice for Hash in the first place. Who knows. I only know that polymorphism is so incredibly useful in OOP, that it's a chink in the armor for the language when inconsistencies of this nature remain.
trans (Thomas Sawyer)
10:28 PM Bug #7318: activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1213: [BUG] Segmentation fault
I can reproduce the same bug with this rake command ran on the server where the application is to deploy :
bundle exec rake assets:precompile
Bluebird-communication (Douglas Magnenat)
10:07 PM Feature #7241: Enumerable#to_h proposal
I like "into". But I'd vote it to be an alias to "each_of_object" as I even prefer "into" instead of "each_with" or "map_with". I'd also vote for the order of the closure arguments to be changed.
I read "doubles = numbers.into({}){|h,...
rosenfeld (Rodrigo Rosenfeld Rosas)
09:52 PM Revision a5501072 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:52 PM Revision 4c740bae (git): * probes.d: add DTrace probe declarations. [ruby-core:27448]
* array.c (empty_ary_alloc, ary_new): added array create DTrace probe.
* compile.c (rb_insns_name): allowing DTrace probes to access
instruction sequence name.
* Makefile.in: translate probes.d file to appropriate header file.
* com...
tenderlovemaking (Aaron Patterson)
06:08 PM Feature #6588: Set#intersect?
+1. Maybe `#meet?` instead of `#intersect?` ? It can be argued that any set intersects any other, just the intersection is sometimes empty :). alexeymuranov (Alexey Muranov)
01:12 PM Feature #6588: Set#intersect?
Comment about these simple features would be appreciated.
marcandre (Marc-Andre Lafortune)
05:56 PM Feature #7328: Move ** operator precedence under unary + and -
Since #7331 is rejected, i do not think anymore it is nonsense to treat unary `-` specially and give it the highest precedence. Otherwise
1. it is stuck between `*` and `**`
2. even with respect to `**` its behavior does not look consi...
alexeymuranov (Alexey Muranov)
11:50 AM Feature #7328: Move ** operator precedence under unary + and -
I am pleased by this discussion and I thank Tom Sawyer for showing me that I am not alone who has feelings of surprise at -2 ** 2 behaviour. However, SO people finally found this link (http://www.ruby-forum.com/topic/87126#163398) in whi... Anonymous
06:53 AM Feature #7328: Move ** operator precedence under unary + and -
Can I just point out that everyone is using asterisks and carets and
arguing about standard mathematical notation?

I reckon the biggest factor driving this discussion should be existing
behaviour. Changing how operators behave ...
phluid61 (Matthew Kerwin)
05:37 AM Feature #7328: Move ** operator precedence under unary + and -
Hi,
trans (Thomas Sawyer) wrote:
> "Thomas: Please check your facts, e.g. http://en.wikipedia.org/wiki/Order_of_operations#Exceptions_to_the_standard"
> ...
My understanding is that the original poster was wondering why the preceden...
marcandre (Marc-Andre Lafortune)
04:01 AM Feature #7328: Move ** operator precedence under unary + and -
"Thomas: Please check your facts, e.g. http://en.wikipedia.org/wiki/Order_of_operations#Exceptions_to_the_standard"
1) I did not make this issue.
2) If you read #9 you will see that I did check my facts.
3) Some consideration of #11...
trans (Thomas Sawyer)
03:33 AM Feature #7328: Move ** operator precedence under unary + and -
In mathematical notation, when possible, the "minus operation" is usually introduced as the unary negation, and "a - b" is usually defined as a shorthand notation for "a + (-b)". To avoid any ambiguity, as far as i know (but i do not ha... alexeymuranov (Alexey Muranov)
03:32 AM Feature #7328 (Rejected): Move ** operator precedence under unary + and -
Quoting Matz from http://www.ruby-forum.com/topic/87126#163398:
> People with mathematical background demand precedence for ** being
> ...
Thomas: Please check your facts, e.g. http://en.wikipedia.org/wiki/Order_of_operations#Excepti...
marcandre (Marc-Andre Lafortune)
02:29 AM Feature #7328: Move ** operator precedence under unary + and -
@alexeymuranov Okay, I see what you are saying. But I think the problem really is that mathematical notation tends to be a little too conventional and variant for a programming language, which needs to be more precise. In equations, the ... trans (Thomas Sawyer)
02:02 AM Feature #7328: Move ** operator precedence under unary + and -
Actually now that I think about it some more, this is similar to my problem with using power notation in my Stick project (an SI unit system for Ruby). When applying powers to units the result wasn't always the one desired --sometimes yo... trans (Thomas Sawyer)
01:59 AM Feature #7328: Move ** operator precedence under unary + and -
trans (Thomas Sawyer) wrote:
> "In my opinion, "-2 * -2" is not a legal syntax (the "*-" part), it should be (-2)*(-2) or -2*(-2) = - (2*(-2))."
> ...
I was talking about writing conventions, how i learned them in elementary school. I...
alexeymuranov (Alexey Muranov)
01:46 AM Feature #7328: Move ** operator precedence under unary + and -
"In my opinion, "-2 * -2" is not a legal syntax (the "*-" part), it should be (-2)*(-2) or -2*(-2) = - (2*(-2))."
I don't understand this. Type `-2*-2` in Ruby and it produces `4`.
"Can you find a printed or otherwise confirmed example...
trans (Thomas Sawyer)
01:35 AM Feature #7328: Move ** operator precedence under unary + and -
trans (Thomas Sawyer) wrote:
> @alexeymuranov
> ...
This is not the same, and I do not agree with this either. In my opinion, "-2 * -2" is not a legal syntax (the "*-" part), it should be (-2)*(-2) or -2*(-2) = - (2*(-2)).
Tomas, c...
alexeymuranov (Alexey Muranov)
01:26 AM Feature #7328: Move ** operator precedence under unary + and -
@alexeymuranov
-2 * -2 = 4
trans (Thomas Sawyer)
12:40 AM Feature #7328: Move ** operator precedence under unary + and -
trans (Thomas Sawyer) wrote:
> "In mathematics you would put parentheses in (-a)^n. For example: -e^x is ... well ... -(e^x)."
> ...
I am sorry, i hear for the first time that commonly -2^2 would be 4 :).
Update: i have also never seen...
alexeymuranov (Alexey Muranov)
12:01 AM Feature #7328: Move ** operator precedence under unary + and -
"In mathematics you would put parentheses in (-a)^n. For example: -e^x is ... well ... -(e^x)."
I think that's the opposite of what's generally expected. Currently Ruby does:
-2**2 #=> -4
but commonly it would be:
-2**2 ...
trans (Thomas Sawyer)
04:16 PM Bug #7326: Time.c doc improvements
@rohitarondekar thank you for the comments and welcome to ruby bugs :)
> I would prefer "The idea is borrowed from Perl:"
yes, sounds better, you're right.
> ...
Doesn't really matter if it was used in Germany or elsewhere, should b...
bt (Bernd Homuth)
01:29 PM Bug #7326: Time.c doc improvements
=begin
Made a quick pass through the patch and the following stood out:
>> ((*The idea is taken from Perl:*))
I would prefer "The idea is borrowed from Perl:"
> ...
So we don't need to care DST before that.*))
I would prefer...
rohitarondekar (Rohit Arondekar)
04:08 PM Feature #7321: Newton.#nsolve の第 2 引数が複数の役割を持つ
> newton.rb のコメントにも同じ内容が記述してあるのでわかるといえばわかるのですが、できればそれぞれ分けた方がわかりやすいのではないかと思いました。
> ...
私も同感ですので、2.0 のリリース後に対応します。
mrkn (Kenta Murata)
04:07 PM Feature #7321: Newton.#nsolve の第 2 引数が複数の役割を持つ
インターフェイスを変更するリクエストですから Feature トラッカーへ移動します。 mrkn (Kenta Murata)
04:06 PM Feature #7321 (Assigned): Newton.#nsolve の第 2 引数が複数の役割を持つ
mrkn (Kenta Murata)
04:04 PM Feature #4938: Add Random.bytes [patch]
I think it is useful and acceptable to introduce, but 2.0 is already frozen about its features, so the target version should be next-minor. mrkn (Kenta Murata)
01:14 PM Feature #4938: Add Random.bytes [patch]
Comment about this trivial feature would be appreciated. marcandre (Marc-Andre Lafortune)
03:37 PM Revision 25f64fc6 (git): * 2012-11-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:37 PM Revision 9900da04 (git): fix typos
"garbage" (noun) is uncountable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
02:29 PM Bug #7201: Setting default_external affects STDIN encoding but default_internal does not
brixen (Brian Ford) wrote:
> Can someone please explain how the inconsistency with how the rest of IO instances would behave with transcoding is not a bug?
This is because IO object's internal property are set when it is created.
I...
naruse (Yui NARUSE)
02:14 PM Bug #7332 (Assigned): mswin64でminiruby.exeがSEGV
確認して入れてください>笹田さん usa (Usaku NAKAMURA)
10:50 AM Bug #7332 (Closed): mswin64でminiruby.exeがSEGV
=begin
VS2012でmswin64のビルド中にminiruby.exeがSEGVし、ビルドに失敗します。
CC = cl -nologo
LD = cl -nologo
LDSHARED = cl -nologo -LD
CFLAGS = -MD -Zi -W2 -wd4996 -we4028 -we4142 -O2sy- -Zm600
XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/x64-ms...
yoshidam (Yoshida Masato)
01:12 PM Feature #6589: Set#rehash
Comment about this trivial but needed feature would be appreciated.
marcandre (Marc-Andre Lafortune)
11:39 AM Feature #6643: io.seek(off, :end)
> 「Unix/Cの定数マクロをシンボル化する際は、大文字のまま。自明な場合は共通のプレフィックスを除く」というシンプルなルール
IO#adviseはこのルールに沿っていませんね。
例えばPOSIX_FADV_NORMALに対応するRubyのシンボルは:normalです。
一方BasicSocket#setsockoptはこのルールに従っていて、例えばSO_REUSEADDRに対応するシンボルは:REUSEADDRです。
ルールを決めて統一してしまっ...
Glass_saga (Masaki Matsushita)
01:23 AM Feature #6643: io.seek(off, :end)
今さらですが、すべて大文字のシンボルだけサポートすればいいのではないでしょうか。
seekのラッパーとか、IOライクなクラスの実装とかで揺れの許容が期待されるのは重荷になると思います。
こうしたコンベンションを他のメソッドにおける定数にも拡大していくことを考えるとなおさらです。
「Unix/Cの定数マクロをシンボル化する際は、大文字のまま。自明な場合は共通のプレフィックスを除く」というシンプルなルールに沿えば、trapにおけるシグナル名の扱いとも整合しますし、...
knu (Akinori MUSHA)
10:26 AM Revision e34f5087 (git): Fix build on DragonFly where configure fails to detect isinf()/isnan().
* configure.in (isinf, isnan): isinf() and isnan() are macros on
DragonFly which cannot be found by AC_REPLACE_FUNCS(). This
workaround enforces the fact that they exist on DragonFly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru...
Akinori MUSHA
09:52 AM Bug #7331 (Rejected): Set the precedence of unary `-` equal to the precedence `-`, same for `+`
unary minus has been higher precedence in the long history of programming languages.
probably it's related to negative number literals.
Matz.
matz (Yukihiro Matsumoto)
02:20 AM Bug #7331 (Rejected): Set the precedence of unary `-` equal to the precedence `-`, same for `+`
=begin
I will not be surprised if this proposal is rejected, because the compatibility would be a mess, but i feel i need to start a discussion. This continues the discussion in #7328.
To the best of my knowledge, in mathematics the...
alexeymuranov (Alexey Muranov)
07:00 AM Revision afdfbde4 (git): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo),
vm_insnhelper.c (vm_search_method): revert r37616 because it's too
slow. [ruby-dev:46477]
* test/ruby/test_refinement.rb (test_inline_method_cache): skip
the test until the bug is fixed efficiently.
git-svn-id: svn+ssh://ci.ruby-l...
shugo (Shugo Maeda)
05:30 AM Revision 6483a105 (git): * 2012-11-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:29 AM Revision 198b7400 (git): * win32/mkexports.rb (each_export): skip garbages generated by VS2012's
nmake.
reported and patched by Yoshida Masato at [Bug #7333] [ruby-dev:46484]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura

11/11/2012

11:15 PM Feature #6643: io.seek(off, :end)
:setか:SETの類だけ受け付ければ良いのであれば、小文字のシンボルも大文字のシンボルも変数として持っておいて良いんじゃないかなあと思いました。
(あまりスマートではない気もしますが)
# :Setや:Currentも使えた方が良い、という人はいませんよね?
なので、そのようにしたpatchをつくりました。
:eNdのようなシンボルまで受け付けてしまう問題、エラーメッセージの正確さの問題はこれで解決します。
また、先のpatchではdowncase!...
Glass_saga (Masaki Matsushita)
10:53 PM Bug #7312: test_str_crypt(TestM17NComb) fails
I guess following discussion is a source of this bug.
http://sourceware-org.1504.n7.nabble.com/RFC-FIPS-compliance-and-other-crypt-3-improvements-td6884.html
kosaki (Motohiro KOSAKI)
05:15 PM Bug #7312 (Closed): test_str_crypt(TestM17NComb) fails
This issue was solved with changeset r37622.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
glibc 2.16 or later denies salt contained other than [0-9A-Za-z./]...
naruse (Yui NARUSE)
09:41 PM Bug #7330 (Closed): TestRequire#test_race_exception sometimes fails
=begin
I noticed TestRequire#test_race_exception sometimes fails on RubyCI recently.
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20121111T095100Z.log.html.gz
I was able to reproduce that on my local.
With this ...
h.shirosaki (Hiroshi Shirosaki)
08:23 PM Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer
I've splited the patch into two commits and pushed it to github.
Could you check it? Thank you.
https://github.com/shirosaki/ruby/compare/trunk...weakref
h.shirosaki (Hiroshi Shirosaki)
02:53 PM Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer
Would you split the patch into refactor by renaming and the fix? nobu (Nobuyoshi Nakada)
01:13 AM Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer
Thank you Shirosaki-san,
Applying the patch, it fixes the WeakRef issues.
~~~
ruby -v: ruby 2.0.0dev (2012-11-10 trunk 37612) [i386-mingw32]
3 tests, 4 assertions, 0 failures, 0 errors, 0 skips
~~~
Reassigning to Narihiro Nak...
luislavena (Luis Lavena)
06:53 PM Feature #7241: Enumerable#to_h proposal
>
> Clojure has a function (({into})) that might fit the bill.
>>
>
> This indeed looks very promising.


I like the sound of 'into', but am not sure about appending results with
the '<<' operator. If Hash had '<<' and '...
nathan.f77 (Nathan Broadbent)
05:59 PM Feature #7241: Enumerable#to_h proposal
On 2012/11/11 0:47, jballanc (Joshua Ballanco) wrote:
>
> Issue #7241 has been updated by jballanc (Joshua Ballanco).
>
>
> =begin
> Clojure has a function (({into})) that might fit the bill.

This indeed looks very prom...
duerst (Martin Dürst)
12:47 AM Feature #7241: Enumerable#to_h proposal
=begin
Clojure has a function (({into})) that might fit the bill. An equivalent Ruby implementation might look something like the following:
class Hash
alias :<< :merge!
end

module Enumerable
def int...
jballanc (Joshua Ballanco)
06:38 PM Feature #7328: Move ** operator precedence under unary + and -
I have not still figured out how exactly this mailing issue tracker works, i have not managed to configure it to receive email notifications, and it seems that if i edit my comment, the edited version is not what the others reply to, so ... alexeymuranov (Alexey Muranov)
06:33 PM Feature #7328: Move ** operator precedence under unary + and -
phluid61 (Matthew Kerwin) wrote:
> It woudl never be -i. (-1) ** 0.5 => i (or, in complex coordinates, 0+1i,
> ...
What do you mean? Why (-1)^(0.5) is i and not -i? Mathematically, it is not defined.
alexeymuranov (Alexey Muranov)
05:53 PM Feature #7328: Move ** operator precedence under unary + and -
It woudl never be -i. (-1) ** 0.5 => i (or, in complex coordinates, 0+1i,
which is basically what (6.123233995736766e-17+1.0i) means.


On 11 November 2012 18:01, alexeymuranov (Alexey Muranov) <
redmine@ruby-lang.org> wrote:...
phluid61 (Matthew Kerwin)
05:01 PM Feature #7328: Move ** operator precedence under unary + and -
(-1) ** 0.5 should not be defined! I just tried it and it gave me (6.123233995736766e-17+1.0i) -- approximately the complex i. Why not the (-i)??
Well, after some thought, maybe from pragmatic point of view it is better to return i than...
alexeymuranov (Alexey Muranov)
03:58 PM Feature #7328 (Rejected): Move ** operator precedence under unary + and -
I would like to ask to consider decreasing ** operator precedence just below that of -/+ unary operators. I know that other languages (eg. Python) have ** operator bind tighter than negation, but seeing -1 ** 0.5 give the result -1 and h... Anonymous
04:14 PM Bug #7327: ruby.c typo
=begin
What about the other line?
require the library, before executing your script
=end
bt (Bernd Homuth)
08:51 AM Bug #7327 (Closed): ruby.c typo
fixed with commit 37615 duerst (Martin Dürst)
04:53 AM Bug #7327 (Closed): ruby.c typo
No comma before 'before'. bt (Bernd Homuth)
03:39 PM Bug #7300 (Closed): Hash#[] の挙動が 1.9.3 と異なっている
This issue was solved with changeset r37621.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
hash.c: warn for wrong elements
* hash.c (rb_hash_s_create): ...
nobu (Nobuyoshi Nakada)
02:40 PM Feature #6311: memmem()によるrb_memsearch()の高速化
こちらもベンチマークの実行時間が短すぎるのでやり直してみました。
require 'benchmark'
str = "hoge" * 100_0000 + "fugafuga"
Benchmark.bm do |x|
x.report do
1000.times { str.index("fugafuga") }
end
end
trunk(r37617):
user system to...
Glass_saga (Masaki Matsushita)
02:23 PM Feature #7299: Ruby should not completely ignore blocks.
(12/11/09 1:53), marcandre (Marc-Andre Lafortune) wrote:
> ko1 (Koichi Sasada) wrote:
>> If compiled method does not contain
>> - `yield' statement
>> - super statement
>> - block argument
>> then the method is marke...
nobu (Nobuyoshi Nakada)
01:23 PM Bug #5269 (Closed): All ThreadError in PStore transaction will be caught and replaced with PStore::Error
This issue was solved with changeset r37617.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/pstore.rb (PStore): fix not to replace ThreadError raised...
Anonymous
10:02 AM Revision cb9beafd (git): * test/date/test_date_{parse,strptime}.rb: changed the format of
some extra messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
09:45 AM Revision 8defbc44 (git): * ext/date/date_parse.c (date__parse): revised the tight parser
(about handling of apostrophes).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
08:53 AM Bug #7009: Crash in method_missing
(12/11/09 1:31), kosaki (Motohiro KOSAKI) wrote:
> Recently nobu changed stack overflow detection logic, I suspect it also fixes this issue.
> Nobu, if yes, can you please tell us exact commit number what revision should be backport...
nobu (Nobuyoshi Nakada)
08:15 AM Revision 64757d28 (git): glibc 2.16 or later denies salt contained other than [0-9A-Za-z./] [Bug #7312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:39 AM Revision 5051186a (git): hash.c: warn for wrong elements
* hash.c (rb_hash_s_create): just warn for wrong elements now.
[ruby-dev:46440] [Bug #7300]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:38 AM Revision 5a5a86cc (git): hash.c: refine error messages
* hash.c (rb_hash_s_create): refine error messages.
* error.c (rb_builtin_class_name): share for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:28 AM Bug #7326: Time.c doc improvements
Actually, I'm not really happy with my "improvements". After looking through more classes there is inconsistency everywhere and it seems every class has its own style. Maybe there should be some API documentation guideline first. I check... bt (Bernd Homuth)
02:43 AM Bug #7326 (Closed): Time.c doc improvements
I tried to improve some parts of the documentation. Mainly I changed +Time+ for classes and _time_ for objects. I fixed some typos and probably introduced new ones. Please check carefully. bt (Bernd Homuth)
06:14 AM Revision 10ba3bdd (git): * eval.c (top_using): remove Kernel#using, and add main.using instead.
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:53 AM Feature #7322: Add a new operator name #>< for bit-wise "exclusive or"
> "a^n" usually means "the n-th power of a"

I agree, I think using "^" for exponents would be more consistent with
other languages. I don't have a strong opinion on a replacement for
'exclusive or', but some other approximations of...
nathan.f77 (Nathan Broadbent)
04:45 AM Revision b0c8aeeb (git): * eval.c (rb_using_refinement, rb_mod_using, f_using): clear method
cache only when using is called explicitly.
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:23 AM Revision fc4b6cd2 (git): * lib/pstore.rb (PStore): fix not to replace ThreadError raised in
#transaction block with PStore::Error.
[ruby-core:39238] [Bug #5269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
02:42 AM Revision ba5ea548 (git): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo):
add a new field for inline method cache.
* vm_insnhelper.c (vm_search_method): check rb_call_info_t::refinements
not to confuse inline method cache when module_eval is used with
refinements.
* test/ruby/test_refinement.rb: related ...
shugo (Shugo Maeda)
12:23 AM Bug #7201: Setting default_external affects STDIN encoding but default_internal does not
Hello Brian,

I'm not sure what the reason was for the current state, but I can easily
imagine a situation where stdin/stdout are the console and therefore in
one encoding, whereas the data a script is working on is all in another...
duerst (Martin Dürst)
12:21 AM Feature #6478: BasicObject#__class__
Maybe `BasicObject` is not intended to be subclassed directly? Why not to subclass `Object` instead? I do not think it is wrong that basic objects do not know who their class is, after all they are basic. alexeymuranov (Alexey Muranov)
12:04 AM Feature #6199 (Closed): Organize gc.c a bit
This issue was solved with changeset r37613.
Yura, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: move immutable fields from struct heaps_slot and struct
...
authorNari (Narihiro Nakamura)

11/10/2012

11:47 PM Revision 35020e35 (git): ruby.c: removed a comma before "before"
(at Tamatsukuri Hot Spring (Onsen Hackathon))
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
09:33 PM Feature #6284: Add composition for procs
In Math multiplication is always associative, even for matrix. I.e: `(A*B)*C == A*(B*C)`. If we use `*` for `∘` (composition) it resembles multiplication. Function composition is analog to matrix multiplication which are commonly used fo... rosenfeld (Rodrigo Rosenfeld Rosas)
06:23 PM Feature #6284: Add composition for procs
phluid61 (Matthew Kerwin) wrote:
> I agree that `(f ∘ g)(x)` is `g(f(x))` is more intuitive from a purely
> ...
When functions are applied from left to right, the argument is usually (if not always) on the left. The form `(x)(fg)=((x)...
alexeymuranov (Alexey Muranov)
01:23 PM Feature #6284: Add composition for procs
I agree that `(f ∘ g)(x)` is `g(f(x))` is more intuitive from a purely
programmatic point of view. It is "natural" for the operations to be
applied left to right, exactly like method chaining.
--
Matthew Kerwin, B.Sc (CompSci) ...
phluid61 (Matthew Kerwin)
12:06 PM Feature #6284: Add composition for procs
marcandre (Marc-Andre Lafortune) wrote:
> +1 for `#*`
> ...
Very good point.
> Finally, the `f ∘ g(x)` is defined as `f(g(x))`, so there is no argument there either.
Not true. Depending on which field of mathematics you look at, ...
duerst (Martin Dürst)
02:42 AM Feature #6284: Add composition for procs
+1 for `#*`
The symbol used in mathematics for function composition is a circle (`∘`); the arrows are for the definitions of functions (like lambdas) only, so `#<-` or whatever make no sense to me.
Finally, the `f ∘ g(x)` is define...
marcandre (Marc-Andre Lafortune)
01:25 AM Feature #6284: Add composition for procs
I think that the meaning of `#<-` would not be symmetric with the meaning of `#->`.
Also, in mathematics, arrows are more like relations than operations. When used to describe functions, usually function arguments go to the arrow'...
alexeymuranov (Alexey Muranov)
08:26 PM Feature #7322 (Rejected): Add a new operator name #>< for bit-wise "exclusive or"
=begin
I propose to alias (({Fixnum#^})) and (({Bignum#^})), which stand for bit-wise "exclusive or", with a new operator name (({#><})).
Is it necessary to go along with C, Python, and Mathematica?
According to Wikipedia ( http://e...
alexeymuranov (Alexey Muranov)
07:42 PM Bug #7312: test_str_crypt(TestM17NComb) fails
Note that this test (test/ruby/test_m17n_comb.rb) also fails with
ruby 1.9.3p327 with rawhide glibc.
mtasaka (Mamoru TASAKA)
07:41 PM Bug #7312: test_str_crypt(TestM17NComb) fails
Test case:
#define _XOPEN_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
int main(void){
const char *key = "";
const char *salt = "\xa1\xa1";
char *ret = crypt(key, salt);
int err...
mtasaka (Mamoru TASAKA)
07:35 PM Bug #7310: URI::FTP API inconsistency
duerst (Martin Dürst) wrote:
> Most probably not! What's much more important is that the "U" in URI stands for "uniform". URI schemes have a lot of common syntax. http: and ftp: are a good example. For the common syntax, RFC 1738 is alm...
knu (Akinori MUSHA)
06:50 PM Bug #7310: URI::FTP API inconsistency
duerst (Martin Dürst) wrote:
> knu (Akinori MUSHA) wrote:
> ...
Ah, yes. what you say is correct.
> "obsolete" is strange here. ftp: and file: are still only defined in RFC 1738 (but see below).
It is strange but it is true.
RFC...
naruse (Yui NARUSE)
04:33 PM Bug #7310: URI::FTP API inconsistency
knu (Akinori MUSHA) wrote:
> naruse (Yui NARUSE) wrote:
> ...
"obsolete" is strange here. ftp: and file: are still only defined in RFC 1738 (but see below).
> So, my understanding is that developers who deal with FTP scheme
> ...
M...
duerst (Martin Dürst)
07:19 PM Feature #6721: Object#yield_self
After commenting on #6284, i have a new proposition for this method's name: `Object#^`. Also, i suggest to allow it to take a block, a proc, a lambda, or a symbol. I think this will not conflict with existing uses of `#^`, however the ... alexeymuranov (Alexey Muranov)
05:23 PM Feature #6752: Replacing ill-formed subsequencce
I have thought about this a bit. Yui's patch to string treats this as a problem separat from transcoding. I think it is preferable to use the transcoding logic to implement this. The advantage is that exactly the same options and fallbac... duerst (Martin Dürst)
05:00 PM Bug #5608 (Closed): make -j 16 sometimes fail
nobu (Nobuyoshi Nakada)
04:52 PM Feature #6199: Organize gc.c a bit
> I'm not sure that 3. improves a performance, because it's using binary search each one slot.
Well, `free_unused_heaps` runs on each GC and does linear scan, and `free_unused_heap` runs only on heap's freeing.
Heap freeing occurs r...
funny_falcon (Yura Sokolov)
03:55 PM Feature #6199: Organize gc.c a bit
Hi,
I'm sorry for late reply. I've just reviewed these.
I'm not sure that 3. improves a performance, because it's using binary search each one slot.
I don't like 2.
I will accept 1.
Thank you!
authorNari (Narihiro Nakamura)
04:17 PM Feature #7321 (Assigned): Newton.#nsolve の第 2 引数が複数の役割を持つ
Newton.#nsolve の第 2 引数 x は以下の 2 つの役割を持つようです。
* 探索を開始する点
* 解を代入
newton.rb のコメントにも同じ内容が記述してあるのでわかるといえばわかるのですが、できればそれぞれ分けた方がわかりやすいのではないかと思いました。Newton.#nsolve の戻り値として返すか、引数を追加するのはどうでしょう。
sho-h (Sho Hashimoto)
03:04 PM Revision c274c951 (git): * 2012-11-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:04 PM Revision 8a9097e8 (git): * gc.c: move immutable fields from struct heaps_slot and struct
sorted_heaps_slot into struct heaps_header.
Based on a patch from Sokolov Yura [Feature #6199][ruby-core:43592]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
01:15 PM Bug #7298 (Closed): Behavior of Enumerator.new different between 1.9.3 and 2.0.0
I reverted Ayumin's commit, although I had understood that he would do it himself...? marcandre (Marc-Andre Lafortune)
07:11 AM Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0
=begin
ping?
20 hours have past and failure is still there:
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20121109T163100Z.log.html.gz#test-all
http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/275/console
...
luislavena (Luis Lavena)
12:17 PM Bug #7289: test-unit.gemspec should not be installed into StdLib
Thanks for your report!
I've fixed it.
kou (Kouhei Sutou)
12:15 PM Bug #7289 (Closed): test-unit.gemspec should not be installed into StdLib
This issue was solved with changeset r37608.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* tool/rbinstall.rb: Don't install *.gemspec under lib/.
[ruby-c...
kou (Kouhei Sutou)
10:34 AM Revision 59050cba (git): typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:29 AM Revision e864787c (git): * complex.c: modified doc.
* ratioanl.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
09:21 AM Revision b04aa4d2 (git): * ext/date/date_parse.c: edited about era.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
07:58 AM Bug #7201: Setting default_external affects STDIN encoding but default_internal does not
Can someone please explain how the inconsistency with how the rest of IO instances would behave with transcoding is not a bug?
Thanks,
Brian
brixen (Brian Shirai)
07:58 AM Feature #7314: Convert Proc to Lambda doesn't work in MRI
I would like a standard way to turn a Proc into a lambda even if it cannot be achieved through `lambda(&proc)`. I don't know if it will affect the outcome, but jRuby correctly returns a lambda from `lambda(&proc)` in 1.9 mode.
schneems (Richard Schneeman)
07:43 AM Bug #7300: Hash#[] の挙動が 1.9.3 と異なっている
redis-rb という ruby から redis を扱うライブラリにも同じコードがありました。
https://github.com/redis/redis-rb/blob/master/lib/redis.rb#L182
redis-rb では `[nil, ["redis_version", "2.6.4"], ...]` というような配列を `Hash[]` に渡して初期化しようとして落ちています。
配列が `nil` だけの時の `[nil, ...
hsbt (Hiroshi SHIBATA)
04:03 AM Revision 52c50bf5 (git): Revert of 37541 "* test/ruby/test_enumerator.rb: Add test to shed light upon the bug"
[#7298]
This reverts commit 0ab21f9572d5d5f76b908aaf3381cde32a64c4c8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
03:15 AM Revision e91c04e2 (git): * tool/rbinstall.rb: Don't install *.gemspec under lib/.
[ruby-core:48966] [Bug #7289]
Reported by Vit Ondruch. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
02:59 AM Bug #7319 (Closed): CSV docs
Simple document, for the only method in CSV that was not documented. vbatts (Vincent Batts)
01:56 AM Bug #7306: BigDecimal does not properly marshal to JSON and back
Shouldn't it reinitialize a Bigdecimal object, with value "Infinity"? vbatts (Vincent Batts)
01:14 AM Bug #7287: please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
> 回避策のrevertと名前変更は一緒にやったほうがいいと思うのでngotoさんがコミットしてもらったほうがいいかと思います。名前は rb_atomic.h で異論ありません。(ほかのでもOK、そこにこだわりはない)
r37603 にていったん r37491 をリバートした後、r37604 にてコミットしました。
ファイル名は、旧atomic.h内でマクロ RUBY_ATOMIC_H を使っているのを見て、何となく、rb_atomic.h ではなく ruby_...
ngoto (Naohisa Goto)
01:05 AM Bug #7287 (Closed): please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
This issue was solved with changeset r37604.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ruby_atomic.h: renamed from atomic.h to avoid header file na...
ngoto (Naohisa Goto)
12:53 AM Feature #5613: Signal.termsigname メソッドの追加
> パッチを拝見しました。
> ものすごーく trivial な点で恐縮なのですが
> char* signame;
> は
> char *signame;
> (アスタリスクの位置を変数名の直前に)のほうが周辺の変数宣言と揃っていて良いかと思います。

あれえ。なんでここだけずれちゃったんだろう。直します。すいません
kosaki (Motohiro KOSAKI)
12:14 AM Bug #7318 (Third Party's Issue): activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1213: [BUG] Segmentation fault
I'm currently deploying with capistrano my rails app on a server.
Rails 3.2.8
RVM 1.16.17
Gem 1.8.24
Bundler 1.2.1
pg gem 0.14.1
The bug occured after a cap deploy:setup command :
* 2012-11-09 15:45:41 executing `deploy:...
Bluebird-communication (Douglas Magnenat)
 

Also available in: Atom