Project

General

Profile

Activity

From 05/17/2013 to 05/23/2013

05/23/2013

11:07 PM Bug #8438 (Rejected): Kernel.eval can not Reliably Create new Variables
Local variables are determined at compile phase. nobu (Nobuyoshi Nakada)
03:40 PM Bug #8438 (Rejected): Kernel.eval can not Reliably Create new Variables
Variables that are created by the Kernel.eval are deleted from the execution context before the method eval exits, despite the fact that the execution context that is fed to the Kernel.eval by a Binding instance is still in use.
That ...
martin_vahi (Martin Vahi)
09:46 PM Revision 20442b9c (git): reapply r40839 [Fixes GH-316]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:11 PM Bug #8348: ruby hangs randomly in daemonized processes on Debian GNU/kFreeBSD
Did you run this test on some kind of SMP box? Ruby on Debian GNU/kFreeBSD has problems with fork in SMP environment. It was discussed a bit in debian-bsd maillist but there is still no solution. 375gnu (Hleb Valoshka)
06:06 PM Bug #8439 (Closed): test_aes_gcm_wrong_tag(OpenSSL::TestCipher) fails randomly
=begin
7) Error:
test_aes_gcm_wrong_tag(OpenSSL::TestCipher):
OpenSSL::Cipher::CipherError: unable to set GCM tag
/builddir/build/BUILD/ruby-2.0.0-p195/test/openssl/test_cipher.rb:190:in `auth_tag='
/builddir/build/BUIL...
vo.x (Vit Ondruch)
06:01 PM Revision b8b26d05 (git): * object.c (rb_obj_clone): should not propagate OLDGEN status.
This propagation had caused WB miss for class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:40 PM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
eLobato (Daniel Lobato Garcia) wrote:
> This error showed up in a Rails app, on my code I had two different files (ProxyAPI::Resource and ProxyAPI::BMC < Resource), and somehow there was a separated Resource class defined by a loaded ge...
rkh (Konstantin Haase)
02:05 PM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
> OMG, why puts 'fuck'? ;_;
Ruby doesn't prevent you from fucking yourself.
nobu (Nobuyoshi Nakada)
03:31 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
boris_stitnicky (Boris Stitnicky) wrote:
> OMG, why puts 'fuck'? ;_;
It's bait to see who gets distracted by irrelevant minutiae.
People curse. Some even scamper promisingly close to wit. Who cares. Move on. ;)
jonforums (Jon Forums)
03:14 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
OMG, why puts 'fuck'? ;_; Anonymous
03:29 PM Revision 28eb5913 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:18 PM Revision ef6fb99e (git): * 2013-05-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:18 PM Revision 4ea690ea (git): extmk.rb: don't duplicate
* ext/extmk.rb (extract_makefile): do not add dldflags if duplicated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:49 PM Revision d07439d5 (git): Add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:42 AM Bug #8435: Can't build tcl/tk extensions after updating Debian/Ubuntu package
Seems like third party issue zzak (zzak _)
10:45 AM Bug #8432: make install ruby 2.0.0 fails with undefined method `sub!'
AndrewCPaterson (Andrew Paterson) wrote:
> drwxrwxr-x 2 apaterson apaterson 4096 May 22 05:03 CVS/
Why is there CVS directory?
nobu (Nobuyoshi Nakada)
04:08 AM Bug #8432: make install ruby 2.0.0 fails with undefined method `sub!'
It is because there is a zero length file in a subdirectory under bin. There needs to be protection against this in rbinstall.rb AndrewCPaterson (Andrew Paterson)
10:10 AM Feature #8437: custom operators, unicode
eike.rb (Eike Dierks) wrote:
> I'd believe the math operator plane of unicode should be removed
> from the allowable names of identifiers,
> but should instead be reserved for operators in the parser, like +
> nowdays is.
Neit...
phluid61 (Matthew Kerwin)
09:20 AM Feature #8437 (Open): custom operators, unicode
The ruby language does currently one support a predefined set of operators.
It would be nice to add custom operators.
A lot of people ask about the elvis operator aka (?:) to cope with nil, aka rails try()
This probably is a problem...
eike.rb (Eike Dierks)
08:35 AM Revision f8180b89 (git): load.c: fix invalid read
* load.c (loaded_feature_path): fix invalid read by index underflow.
the beginning of name is also a boundary as well as just after '/'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:31 AM Feature #8270: Ruby should build without thread support (aka minix)
Thanks to everyone who responded.
Porting to Minix is only a minor target.
I suggested to the minix people that they should implement threads to get that resolved.
But obviously there's a lot of work to do
to really get ruby in t...
eike.rb (Eike Dierks)
08:22 AM Revision 699e06a8 (git): gc.c: revert r40898
* gc.c (gc_profile_dump_on): revert r40898. ok to show the record
accumulating while lazy_sweep().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:58 AM Revision 95170c70 (git): * gc.c: do not dump the last record
* gc.c (gc_profile_dump_on): do not dump the last record, for some
reason.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:09 AM Revision 09c34823 (git): revert forwardable rdoc patch for demo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:00 AM Revision ec04fecd (git): * test/ruby/test_io.rb (TestIO#test_write_32bit_boundary): HFS+ seems
not supporting a sparce file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:14 AM Revision 8a867f91 (git): * 2013-05-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:14 AM Revision ded54cb8 (git): test_io.rb: test for write
* test/ruby/test_io.rb (TestIO#test_write_32bit_boundary): add test
for write part. [ruby-core:55098] [Bug #8431]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/22/2013

11:03 PM Bug #8435: Can't build tcl/tk extensions after updating Debian/Ubuntu package
Workaround is to specify actual location of tcl/tk files:
./configure --with-tclConfig-file=/usr/lib/x86_64-linux-gnu/tclConfig.sh --with-tkConfig-file=/usr/lib/x86_64-linux-gnu/tkConfig.sh
It looks like the change in the *.sh ...
romuloceccon (Rômulo Ceccon)
10:28 PM Bug #8435 (Third Party's Issue): Can't build tcl/tk extensions after updating Debian/Ubuntu package
I've recently upgraded my Ubuntu system to 13.04 and tcl8.5-dev and tk8.5-dev were updated as well (to versions 8.5.13-1ubuntu and 8.5.11-2ubuntu4 respectively).
Now I can't build Tcl/Tk Ruby extensions anymore. I was able to reproduc...
romuloceccon (Rômulo Ceccon)
09:07 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
2013/5/18 nobu (Nobuyoshi Nakada) <nobu@ruby-lang.org>
> You can use rb_funcall2() instead here.
I made a patch which use rb_funcall2().
diff from patch.diff to patch2.diff:
diff --git a/ext/thread/thread.c b/ext/thread/thread....
Glass_saga (Masaki Matsushita)
06:51 PM Bug #8432: make install ruby 2.0.0 fails with undefined method `sub!'
The problem is still present in p195 AndrewCPaterson (Andrew Paterson)
06:51 PM Bug #8432: make install ruby 2.0.0 fails with undefined method `sub!'
There are no empty files in the bin directory:
[apaterson@xerxes ruby-2.0.0]$ ls -l bin
total 52
drwxr-xr-x 3 apaterson apaterson 4096 May 22 05:03 ./
drwxr-xr-x 28 apaterson apaterson 12288 May 22 05:47 ../
drwxrwxr-x 2 apater...
AndrewCPaterson (Andrew Paterson)
01:09 PM Bug #8432 (Feedback): make install ruby 2.0.0 fails with undefined method `sub!'
It probably occurs when an empty file exists under bin directory.
Do you have it?
nobu (Nobuyoshi Nakada)
02:36 AM Bug #8432 (Closed): make install ruby 2.0.0 fails with undefined method `sub!'
./tool/rbinstall.rb:468 is trying to reference shebang.sub! on command scripts destined for /usr/local/bin and that's failing.
Steps:
./configure --host="arm-xilinx-linux-gnueabi"
make
make install DESTDIR=../newramdisk_mnt
......
AndrewCPaterson (Andrew Paterson)
05:25 PM Feature #8430: Rational number literal
nobu (Nobuyoshi Nakada) wrote:
> I also prefer an operator.
> ...
Pretty nice!
I love this if introducing // as a operator is accepted.
mrkn (Kenta Murata)
05:21 PM Feature #8430: Rational number literal
knu (Akinori MUSHA) wrote:
> I think it should be added as an operator rather than a literal notation.
> ...
I made another implementation of the rational number literal implemented in token-level.
The implementation is available in h...
mrkn (Kenta Murata)
05:15 PM Feature #8430: Rational number literal
I also prefer an operator.
https://github.com/nobu/ruby/commit/7ff6073d70306999c0def3387387649ccd13f9d6
nobu (Nobuyoshi Nakada)
01:45 PM Feature #8430: Rational number literal
charliesome (Charlie Somerville) wrote:
> > Also, I guess runtime cost would not change much if it were introduced as operator.
> ...
At the risk of asking something stupid, could it be both? I'm thinking of unary minus / literal nega...
phluid61 (Matthew Kerwin)
12:26 PM Feature #8430: Rational number literal
> Also, I guess runtime cost would not change much if it were introduced as operator.
Rational is immutable, so if it it was introduced as a literal, the same Rational instance could be re-used, similar to how symbols and fixnums work...
Anonymous
11:49 AM Feature #8430: Rational number literal
I think it should be added as an operator rather than a literal notation.
A literal should not look like an expression, or it will fail you when you find out you have to give up the // notation in order to constify a numerator and/or ...
knu (Akinori MUSHA)
11:08 AM Feature #8430: Rational number literal
Shouldn't tDIV2 be only if IS_SPCARG(c)? nobu (Nobuyoshi Nakada)
12:46 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
Matz,
It appears that a patch was accepted into the soon to be released 1.9.4 branch (http://bugs.ruby-lang.org/issues/921) to fix the thread safety issues with autoload. Is this something that you still wish to see deprecated and rem...
reset (Jamie Winsor)
10:38 AM Revision a4eaf5f3 (git): Add NEWS for r40879: Digest::Class.file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:36 AM Revision 7a32434f (git): Fix test failure of binmode from r40879
http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20130521T131601Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:03 AM Revision f02c2b9c (git): * vm_dump.c (rb_vm_bugreport): show name of class and module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:03 AM Revision 22c0397a (git): * vm_dump.c (rb_vm_bugreport): limit class name length.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:50 AM Revision 11650a6a (git): gc.c: use size_t and no header if next_index == 0
* gc.c (gc_profile_dump_on): use size_t to get rid of overflow and
show the header when next_index > 0, instead of next_index != 1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:19 AM Revision a815b56d (git): win32.c: check error of SetFilePointer
* win32/win32.c (setup_overlapped): check the error code in addition
to the result of SetFilePointer() to determine if an error occurred,
because INVALID_SET_FILE_POINTER is a valid value.
[ruby-core:55098] [Bug #8431]
git-svn-id...
nobu (Nobuyoshi Nakada)
06:17 AM Revision 38302ca7 (git): win32.c: extract setup_overlapped and finish_overlapped
* win32/win32.c (setup_overlapped, finish_overlapped): extract from
rb_w32_read() and rb_w32_write().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:21 AM Revision 5aece501 (git): * gc.c (gc_prepare_free_objects, rest_sweep, lazy_sweep): fix position
of `during_gc' setting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:52 AM Bug #8433 (Closed): Mutexes held by background threads at fork not always released
It appears that the Ruby interpreter attempts to automatically unlock Mutexes held by background threads at the time Process.fork is called in order to avoid deadlocks in the child process. Unfortunately, the logic for doing so appears u... benweint (Ben Weintraub)
02:31 AM Feature #8422: add Enumerable#reverse_sort and Enumerable#reverse_sort_by
-1, feature creep
But I'm for defining `reverse!` as O(1), not really reversing anything, just treating the last element as first and first as last. (I do not know how collections are exactly implemented, so I am not sure whether this i...
Anonymous
12:26 AM Feature #5458: DL should be removed
zzak (Zachary Scott) wrote:
> The Win32 stuff is largely undocumented, but I remember ngoto-san
> ...
I think you're correct, I see win32/registry and win32/resolv:
However I don't see Win32API:
https://github.com/ruby/ruby/blob/...
luislavena (Luis Lavena)

05/21/2013

11:09 PM Revision daf752b1 (git): * 2013-05-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:09 PM Revision 9e64703e (git): * gc.c (garbage_collect): all GC is start from garbage_collect()
(or garbage_collect_body()). `garbage_collect()' accept additional
two parameters `full_mark' and `immediate_sweep'.
If `full_mark' is TRUE, then force it full gc (major gc), otherwise,
it depends on status of object space. Now, it...
ko1 (Koichi Sasada)
10:43 PM Feature #8430: Rational number literal
I updated the patch for fixing negative rational numbers:
https://github.com/mrkn/ruby/commit/b16f4da893c1cb68058098612b7d38fa44182151
mrkn (Kenta Murata)
10:31 PM Feature #8430 (Closed): Rational number literal
I would like to propose a new literal syntax for rational numbers.
The implementation is available in my github repository:
https://github.com/mrkn/ruby/commit/8ca0c9a53593e55d67f509fc403df616e2276e3a
This patch implements a notatio...
mrkn (Kenta Murata)
10:00 PM Bug #8115: make install DESTDIR=/my/install/path fails
This is still issue for -p195 :/ vo.x (Vit Ondruch)
05:50 PM Feature #8331: Update config.guess and config.sub for AArch64 (ARM64)
Would be nice to have this for Fedora/RHEL. Here is related Fedora bug [1] and ML discussion [2, 3]. Thanks.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=926463
[2] http://lists.fedoraproject.org/pipermail/devel/2013-February/17...
vo.x (Vit Ondruch)
04:34 PM Feature #8361: Alternative syntax for block parameter
=begin
I do not mind this being closed, i do not see how this can be made consistent with the existing syntax, and probably my reason for suggesting this was not valid, but as a side note, i want to mention that i have just discovered th...
alexeymuranov (Alexey Muranov)
01:54 PM Revision e12df5ef (git): Update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:51 PM Revision 3188b469 (git): Add NEWS about r40881, StringScanner#[] supports named captures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:48 PM Revision ecd5bbe8 (git): * ext/strscan/strscan.c (strscan_aref): support named captures.
patched by Konstantin Haase [ruby-core:54664] [Feature #8343]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:54 PM Feature #8429 (Closed): Options requests in net/http should be able to accept a response body
As it is currently implemented, Net::HTTP::Options does not allow responses to OPTIONS requests to have a response body:
class Net::HTTP::Options < Net::HTTPRequest
METHOD = 'OPTIONS'
REQUEST_HAS_BODY = false
RESPONSE_HAS...
cpr (Chris Rice)
12:50 PM Revision 9662e3de (git): * test/ruby/test_dir_m17n.rb (TestDir_M17N#test_entries_compose):
Use #each instead of #map just for iteration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
12:41 PM Revision 07a6b4cb (git): * ext/digest/lib/digest.rb (Digest::Class.file): Take optional
arguments that are passed to the constructor of the digest
class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:21 AM Revision 51d586c6 (git): * gc.c: remove gc_profile_record::is_marked. always true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:19 AM Revision 9578bb78 (git): * gc.c: fix to collect additional information for GC::Profiler.
* major/minor GC
* trigger reason of GC
* gc.c (gc_profile_dump_on): change reporting format with
added information.
* gc.c (gc_profile_record_get): return added information by
:GC_FLAGS => array.
git-svn-id: svn+ssh://ci.ruby-lan...
ko1 (Koichi Sasada)
07:53 AM Feature #5458: DL should be removed
On Mon, May 20, 2013 at 07:55:11AM +0900, Zachary Scott wrote:
> The Win32 stuff is largely undocumented, but I remember ngoto-san
> moved a lot of it to Fiddle already?

Pretty much everything should be moved by now. I'll remo...
Anonymous
07:52 AM Revision 2e011442 (git): * gc.c: GC::Profiler's sweeping time is accumulated all slot
sweeping time. At lazy GC, GC::Profiler makes new record entry
for each lazy_sweep(). In this change, accumulating all
slot_sweep() time.
And change indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40876 b2dd03c8-3...
ko1 (Koichi Sasada)
07:43 AM Revision 0fd2c7e6 (git): test_dir_m17n.rb: sort Dir.entries
* test/ruby/test_dir_m17n.rb (test_entries_compose): the order on the
filesystem does not matter, so sort Dir.entries result to compare.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:41 AM Revision 28a4c88f (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:40 AM Revision 3f488863 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:36 AM Revision 6f7c9e2e (git): * common.mk (rdoc-bench): add a benchmark rule
using RDoc. Generate all rdoc related files
(same as `make rdoc') in temporary directory
and remove them. Excecution time, GC::Profiler
and results of GC.stat are printed.
* tool/rdocbench.rb: added for `rdoc-bench'.
git-svn-id:...
ko1 (Koichi Sasada)
07:31 AM Revision f3cdb9f3 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:27 AM Revision 3f2cb86e (git): * gc.c (gc_profile_dump_on): `count' should be (int) because it
can be negative number.
And use pointer for `record' (don't copy).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:08 AM Revision 32c5c675 (git): force_encoding expected result as filesystem encoding
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:53 AM Feature #8426: Implement class hierarchy method caching
Charlie Somerville <charlie@charliesomerville.com> wrote:
> > I prefer `st_' related name. But not strong opinion.
> I disagree because they are unrelated data structures.

In any case, I strongly prefer new sa_* functions (and ...
normalperson (Eric Wong)

05/20/2013

10:19 PM Bug #8037: rdoc issues preventing docs generating after ruby was compiled
it's fixed in rdoc but not in ruby, ruby-2.0.0-p195 is still shipped with the broken rdoc 4.0.0 mpapis (Michal Papis)
08:52 PM Bug #8037 (Closed): rdoc issues preventing docs generating after ruby was compiled
These issues seemed to have been resolved in the RDoc tracker, please update the ticket there if you still experience this issue. Thank you! zzak (zzak _)
07:23 PM Feature #8426: Implement class hierarchy method caching
On Monday, 20 May 2013 at 7:39 PM, SASADA Koichi wrote:
> Is it huge performance bottleneck? I think branch on inline cache should be removed
>
>

This helps a lot when Ruby programs are starting up because the full class hi...
Anonymous
07:10 PM Feature #8426: Implement class hierarchy method caching
ko1 (Koichi Sasada) wrote:
> (2013/05/20 18:21), Charlie Somerville wrote:
> ...
"sparse array" uses 32bit keys for being as small and CPU cache friendly as possible.
So that, it could not store 64bit pointers :-(
I have an idea of...
funny_falcon (Yura Sokolov)
06:53 PM Feature #8426: Implement class hierarchy method caching
(2013/05/20 18:21), Charlie Somerville wrote:
> funny_falcon explained this well. It's significantly faster in this case
> when compared to st_table.

Thanks guys, I understand. Maybe it is used to implement weak reference
fro...
ko1 (Koichi Sasada)
06:29 PM Feature #8426: Implement class hierarchy method caching
(2013/05/20 16:23), funny_falcon (Yura Sokolov) wrote:
> "sparse array" - is a lightweight hash structure which maps 32bit integers to st_data_t values.
> It is more compact and faster replacement for st_table for integers (aka st_i...
ko1 (Koichi Sasada)
06:23 PM Feature #8426: Implement class hierarchy method caching
On Monday, 20 May 2013 at 1:35 PM, SASADA Koichi wrote:
> Could you explain the data stracture? Patch seems to introduce new data
> structure `sparse array'. What is this and how to use it on this patch?
>
>

funny_falcon ...
Anonymous
06:23 PM Feature #8426: Implement class hierarchy method caching
On Monday, 20 May 2013 at 5:28 PM, funny_falcon (Yura Sokolov) wrote:
> Charlie, why sa_index_t is uint64_t ? it really should be 32bit for better CPU cache locality.
> Yes, it will limits ID to 32bit values, but ID should not incre...
Anonymous
04:28 PM Feature #8426: Implement class hierarchy method caching
Charlie, why sa_index_t is uint64_t ? it really should be 32bit for better CPU cache locality.
Yes, it will limits ID to 32bit values, but ID should not increase to greater values,
otherwise it is a memory leak.
funny_falcon (Yura Sokolov)
04:23 PM Feature #8426: Implement class hierarchy method caching
Good day, Koichi
"sparse array" - is a lightweight hash structure which maps 32bit integers to st_data_t values.
It is more compact and faster replacement for st_table for integers (aka st_init_numtable).
It is CPU cache friendly on...
funny_falcon (Yura Sokolov)
12:53 PM Feature #8426: Implement class hierarchy method caching
Great work!

Could you explain the data stracture? Patch seems to introduce new data
structure `sparse array'. What is this and how to use it on this patch?


And another consern is verification mechanism of the result. Comp...
ko1 (Koichi Sasada)
11:22 AM Feature #8426: Implement class hierarchy method caching
Here are some raw benches comparing Ruby-Head with KclassCache
TLDR;
Noticeable improvement over head.
Discourse topic list page: 69 median -> 65 median , 78.3 mean -> 67.4 mean
Discourse topic page: 51 median -> 48 median , 5...
sam.saffron (Sam Saffron)
10:23 AM Feature #8426: Implement class hierarchy method caching
Hello Charlie,

This sounds very promising, as it should make Ruby faster. Any idea how
much faster? And are there cases where it might be slower, or other
disadvantages?

Regards, Martin.

On 2013/05/19 19:44, char...
duerst (Martin Dürst)
06:11 PM Revision 1891b60f (git): dir.c: compose HFS file names
* dir.c (dir_each): compose HFS file names from
UTF8-MAC. [ruby-core:48745] [Bug #7267]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:10 PM Revision a7092270 (git): test_dir_m17n.rb: assert_separately
* test/ruby/test_dir_m17n.rb: prefer assert_separately over
assert_ruby_status for more descriptive messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:08 PM Revision 80db7cc4 (git): envutil.rb: envutil in child
* test/ruby/envutil.rb (assert_separately): require envutil in the
child process too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:07 PM Revision cbab48f7 (git): * 2013-05-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:07 PM Revision c4a8d40c (git): string.c: infect
* string.c (rb_str_conv_enc_opts): should infect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:29 PM Revision c2496683 (git): reapply r40839 [Fixes GH-313]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
01:41 PM Revision 8fb4108b (git): * lib/webrick/httpservlet/filehandler.rb (set_dir_list): add NameWidth option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:41 PM Revision 31c2e85e (git): * lib/webrick/httpservlet/filehandler.rb (set_dir_list): use TABLE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:41 PM Revision b6f42822 (git): * lib/webrick/httpservlet/filehandler.rb (set_dir_list): set charset.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:41 PM Revision 83fa035d (git): * lib/webrick/httpservlet/filehandler.rb (set_dir_list): share title and h1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:33 PM Revision 57d8faea (git): Revert r40839 for demo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
01:28 PM Revision dcb4ceea (git): * lib/set.rb (Set#delete_if, Set#keep_if): Avoid blockless call of
proc, which is not portable to JRuby. Replace &method() with
faster and simpler literal blocks while at it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
01:20 PM Bug #8425: webrick show local filesystem charset bug
@nobu,
webrick\httputils.rb
def _unescape(str, regex)
str = str.b
str.gsub!(regex) {$1.hex.chr}
# encoding of %-unescaped string is unknown
str
end
_unescape return ASCII-8BIT str, may be impr...
windwiny (wind winy)
10:40 AM Bug #8425 (Closed): webrick show local filesystem charset bug
This issue was solved with changeset r40848.
wind, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
webrick: fix non-ascii escape bugs
* lib/webrick/htmlutils.rb (W...
nobu (Nobuyoshi Nakada)
01:01 PM Revision b416c661 (git): * lib/e2mmap.rb: Format of E2MM documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:42 PM Revision c09172f3 (git): * ext/extmk.rb: nodoc this file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:44 AM Revision 275eb63b (git): * lib/cmath.rb: Remove duplicate RDoc heading from overview
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:37 AM Revision e3436d29 (git): * lib/securerandom.rb: Update position of overview for RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
10:35 AM Revision 46cb75db (git): * math.c: improve and fix documentation of sin, tan and log
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
10:35 AM Revision 3786bd60 (git): * lib/logger.rb (Logger::Application): show namespace in documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
10:22 AM Bug #8358: TestSprintf#test_float test failure
As I wrote in #8299, up to nobu.
Our choice will be one of the following:
* add _control87(_PC_53, _MCW_PC) (or inline assembler) to some functions
* add _control87(_PC_53, _MCW_PC) to Init_Numeric
* remove the test
naruse (Yui NARUSE)
03:26 AM Bug #8358 (Assigned): TestSprintf#test_float test failure
naruse: Can we commit the patch? luislavena (Luis Lavena)
10:16 AM Bug #8427: gets method truncates strings longer than 255 characters in Windows 7
This bug is caused by changesets r28035, r29980 and r30280.
Here is a possible workaround patch:
diff --git a/win32.c b/win32.c.new
index 318af2f..b821cd4 100644
--- a/win32.c
+++ b/win32.c.new
@@ -6058,6 +6058,10 @@ rb_w32_rea...
phasis68 (Heesob Park)
07:46 AM Bug #8427 (Closed): gets method truncates strings longer than 255 characters in Windows 7
When using the gets method from a Windows 7 command line (or XP according to other users), long input strings are truncated to 255 characters. Here is an example of code:
puts "Enter long string"
long_string = gets
puts "...
jen (Jen Marsh)
08:03 AM Bug #8428 (Closed): Date#to_time yields incorrect value for Julian dates
=begin
Date instances with Julian day values that precede the calendar reform start day (i.e. #julian? == true), return Time objects which do not correspond to the chronological Julian day which the Date instances represent.
d = Da...
teleological (Riley Lynch)
07:59 AM Feature #5458: DL should be removed
The Win32 stuff is largely undocumented, but I remember ngoto-san
moved a lot of it to Fiddle already?
zzak (zzak _)
03:32 AM Feature #5458: DL should be removed
tenderlovemaking (Aaron Patterson) wrote:
> DL is deprecated in trunk. To maintain backwards compatibility, I've moved some parts of DL to Fiddle. We should be able to remove `ext/dl` after 2.0 release.
What parts of DL remain to b...
luislavena (Luis Lavena)
07:37 AM Bug #8182 (Assigned): XMLRPC request fails with "Wrong size. Was 31564, should be 1501"
I've attached Duncan's patch from github, so we can close the pull request. zzak (zzak _)
04:59 AM Bug #8392 (Closed): stdlib's 'forwardable' documentation has a bad example
This issue was solved with changeset r40839.
Joe, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/forwardable.rb: Forwardable examples in overview were broken...
zzak (zzak _)
03:44 AM Bug #7807 (Assigned): [PATCH] Remove duplicated load paths when empty version string is configured
luislavena (Luis Lavena)
03:40 AM Bug #8159: Build failure introduced by Rinda changes
Rinda failure now seems to be related to ifindex() being missing:
http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/lastFailedBuild/console
luislavena (Luis Lavena)
02:52 AM Revision a3672d4b (git): * lib/pp.rb: Revert part of r40834 and nodoc PP::ObjectMixin
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
02:22 AM Revision 596cecb0 (git): test_objectspace.rb: run test_each_object separately
* test/ruby/test_objectspace.rb (TestObjectSpace#test_each_object):
run separately.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:40 AM Revision 88bcccd4 (git): webrick: fix non-ascii escape bugs
* lib/webrick/htmlutils.rb (WEBrick::HTMLUtils#escape): replace HTML
meta chars even in non-ascii string. [Bug #8425] [ruby-core:55052]
* lib/webrick/httputils.rb (WEBrick::HTTPUtils#{_escape,_unescape}):
fix %-escape encodings. [B...
nobu (Nobuyoshi Nakada)
12:53 AM Revision bcddf032 (git): filehandler.rb: revert r20152
* lib/webrick/httpservlet/filehandler.rb (set_dir_list): revert r20152
partially and fix misuse of bytesize and regexp repetition operator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:43 AM Revision eb9cd6b1 (git): * ChangeLog: fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:02 AM Feature #8324: Net::Telnet.new のオプション
そうなるとキーワード引数でも受け付けるのはどうか、という議論も出てきそうですね。 ayumin (Ayumu AIZAWA)

05/19/2013

11:04 PM Revision fdfc5215 (git): * lib/profiler.rb: Document Profiler__ methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:03 PM Revision caca17a8 (git): * lib/tempfile.rb: nodoc Tempfile#inspect
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
10:57 PM Revision 7e53569b (git): * ChangeLog: update patchlevel
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
10:49 PM Revision e87c6b19 (git): * ext/stringio/stringio.c: Correct position of method rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
10:29 PM Revision c1f17697 (git): * math.c: RDoc formatting of Math core docs with domains and codomains
Patch by @eLobato [Fixes GH-309]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
10:20 PM Bug #8320 (Third Party's Issue): Ruby interpreter crashes when running pcaprub
Hello,
It seems that pcaprub contains an extension library and Segmentation fault was occurred inside it.
Please report this issue to pcaprub project.
Thanks,
nagachika (Tomoyuki Chikanaga)
09:00 PM Revision 2439bc9e (git): * ext/bigdecimal/bigdecimal.c: Formatting for BigMath [Fixes GH-306]
Based on a patch by @eLobato.
* ext/bigdecimal/lib/bigdecimal/math.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:58 PM Revision dbefdb43 (git): * lib/forwardable.rb: Forwardable examples in overview were broken
Based on patch by @joem [Fixes GH-303] [Bug #8392]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:44 PM Feature #8426 (Closed): Implement class hierarchy method caching
=begin
This patch adds class hierarchy method caching to CRuby. This is the algorithm used by JRuby and Rubinius.
Currently, Ruby's method caches can only be expired globally. This means libraries that dynamically define methods or e...
Anonymous
07:01 PM Revision 4c678b4e (git): * 2013-05-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:01 PM Revision 4f8094d2 (git): * lib/yaml.rb: YAML documentation from #8344 [Bug #8355]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:36 PM Revision ba84738d (git): * lib/optparse.rb: nodoc Object::Version and SPLAT_PROC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:21 PM Revision d6d45737 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:17 PM Revision 18ffba64 (git): * lib/pp.rb: Document PP::ObjectMixin [Fixes GH-312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:44 PM Revision df425a01 (git): Default script encoding is now UTF-8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:01 PM Revision 4fb73c8f (git): * 2013-05-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:01 PM Revision 64431b9c (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:58 PM Revision a920927a (git): * test/webrick/test_htmlutils.rb: add test for WEBrick::HTMLUtils.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
02:50 PM Revision c54733e1 (git): fix typos inspired by r40825
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:15 PM Revision 66795c47 (git): * encoding.c: document fix, change default script encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
11:34 AM Bug #8425 (Closed): webrick show local filesystem charset bug
Shell command
ruby -run -e httpd Dir1
run a webrick http server, can not show no 8bit-ascii directory/file name.
this patch can fix this problem, can review it?
patch file
or github
https://github.com/windwiny...
windwiny (wind winy)
08:33 AM Revision 11c7566a (git): * lib/set.rb (Set#delete_if, Set#keep_if): Add comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:11 AM Revision b4795cdb (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:10 AM Revision edb98f8b (git): fix typos. Patch by k_takata.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
02:42 AM Revision 67964f29 (git): * ext/fiddle/extconf.rb: ignore rc version of libffi to fix build failure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
01:41 AM Revision 0687ed1e (git): * misc/ruby-electric.el (ruby-electric-delete-backward-char): Use
delete-char instead of delete-backward-char, which is an
interactive function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
12:40 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
> The warning could happen at initialization, but if a constant inside the module is added, IMO it should be inherited.
You can't inherit a constant which is not defined at that time yet.
Even if same name constant is defined later, ...
nobu (Nobuyoshi Nakada)

05/18/2013

11:31 PM Feature #8422: add Enumerable#reverse_sort and Enumerable#reverse_sort_by
matz (Yukihiro Matsumoto) wrote:
> It can be done by `a.sort{|a,b| b<=>a}`.
That will typically be much slower though.
Currently, the best way to do a reverse sort, performance-wise, is `a.sort.reverse!`
For a random 100 numbe...
marcandre (Marc-Andre Lafortune)
06:46 PM Feature #8422 (Feedback): add Enumerable#reverse_sort and Enumerable#reverse_sort_by
It can be done by `a.sort{|a,b| b<=>a}`. Do we really need to define new methods?
Matz.
matz (Yukihiro Matsumoto)
05:09 PM Feature #8422 (Feedback): add Enumerable#reverse_sort and Enumerable#reverse_sort_by
they are better when you want descending order,
enum.sort.reverse
does work too, but it is to slow because it needs to build that result array twice
they both can be defined just like #sort and #sort_by but negates the result of t...
Hanmac (Hans Mackowiak)
09:23 PM Revision 30f813dd (git): * object.c (rb_inspect): fix typo and error message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
08:16 PM Feature #8414 (Closed): String#scrub!
This issue was solved with changeset r40810.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (str_scrub_bang): add String#scrub!. [Feature #8414]
naruse (Yui NARUSE)
07:49 AM Feature #8414: String#scrub!
いいんじゃないでしょうか。
Matz.
matz (Yukihiro Matsumoto)
07:00 PM Revision 42b8654b (git): * string.c (str_scrub0): added for refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:58 PM Revision 53fdb30e (git): * lib/uri/common.rb (URI.decode_www_form): scrub string if decoded
bytes are invalid for the encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:53 PM Feature #8421 (Feedback): add Enumerable#find_map and Enumerable#find_all_map
Could you tell me a concrete use-case of your find_map and find_all_map?
Usually a block for find/find_all gives boolean so that I personally have never wanted the return value from it.
Matz.
matz (Yukihiro Matsumoto)
05:03 PM Feature #8421 (Feedback): add Enumerable#find_map and Enumerable#find_all_map
currently if you have an Enumerable and you want to return the return value of #find you need eigther:
(o = enum.find(block) && block.call(o)) || nil
or
enum.inject(nil) {|ret,el| ret || block.call(el)}
neigher of them may be b...
Hanmac (Hans Mackowiak)
05:48 PM Revision 2849ee5d (git): * lib/set.rb (Set#delete_if, Set#keep_if): Make Set#delete_if and
Set#keep_if more space and time efficient by avoiding to_a.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:38 PM Revision 04122401 (git): * misc/ruby-electric.el (ruby-electric-setup-keymap): Make
backquotes electric as well. It was listed in
ruby-electric-expand-delimiters-list but not activated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:38 PM Revision 616084fd (git): * misc/ruby-electric.el (ruby-electric-delete-backward-char):
Introduce electric DEL that deletes what the previous electric
command has input.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:38 PM Revision 30034b55 (git): * misc/ruby-electric.el (ruby-electric-matching-char): Make
electric quotes work again at the end of buffer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:21 PM Feature #6721: Object#yield_self
I have checked if by any chance Haskell had it, apparently it doesn't: http://stackoverflow.com/questions/4090168/is-there-an-inverse-of-the-haskell-operator
I have found that in Alonzo Church's "The calculi of lambda-conversion", he ...
alexeymuranov (Alexey Muranov)
05:41 AM Feature #6721: Object#yield_self
nobu (Nobuyoshi Nakada) wrote:
> I'm not against the feature itself, but don't like the name.
+1 to this opinion
Anonymous
04:40 PM Revision 54fef602 (git): * 2013-05-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:40 PM Revision 9c0ff0c1 (git): configure.in: setjmpex
* configure.in (setjmp-type): check if setjmpex() is really available.
workaround for i686-w64-mingw32 which declares it but lacks its
definition.
* include/ruby/defines.h: include setjmpex.h only if also setjmpex()
is available.
...
nobu (Nobuyoshi Nakada)
02:57 PM Revision 344db69c (git): configure.in: setjmpex
* configure.in (setjmp-type): use setjmpex() on w64-mingw32 to get rid
of -Wclobbered warnings.
* include/ruby/defines.h: include setjmpex.h here becase setjmp.h is
included from win32.h via intrin.h, winnt.h, and so on.
git-svn-id:...
nobu (Nobuyoshi Nakada)
02:55 PM Revision eca9bf61 (git): merge revision(s) 39384,39509,39511: [Backport #7961]
* lib/rexml/document.rb (REXML::Document.entity_expansion_text_limit):
new attribute to read/write entity expansion text limit. the default
limit is 10Kb.
* lib/rexml/text.rb (REXML::Text.unnormalize): check...
shyouhei (Shyouhei Urabe)
11:28 AM Revision 9cc1cc20 (git): * ext/socket/mkconstants.rb (INTEGER2NUM): Make less comparisons.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:16 AM Revision 05c0a228 (git): * string.c (str_scrub_bang): add String#scrub!. [Feature #8414]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
11:07 AM Bug #8417: assert_in_epsilon(-1, -1) failed
> It is a test-unit gem bug.
> ...
I noticed that just now.. Thanks in advance!
no6v (Nobuhiro IMAI)
11:01 AM Bug #8417: assert_in_epsilon(-1, -1) failed
Oh, I'm verry sorry, but I used test-unit external gem (2.5.4).
After removing it, the test-unit default gem (2.0.0.0) works fine.
Would you please to close this (or mark as 3rd patry's) issue? Thanks.
no6v (Nobuhiro IMAI)
10:58 AM Bug #8417 (Rejected): assert_in_epsilon(-1, -1) failed
It is a test-unit gem bug.
I'll fix it in test-unit gem!
kou (Kouhei Sutou)
09:59 AM Bug #8417 (Feedback): assert_in_epsilon(-1, -1) failed
I can't reproduce it.
And that failure message seems different.
What version of test/unit are you using?
nobu (Nobuyoshi Nakada)
06:53 AM Bug #8417: assert_in_epsilon(-1, -1) failed
=begin
Oops, I forgot to show the result.
require "minitest/unit"
MiniTest::Unit::TestCase.new(?-).assert_in_epsilon(-1, -1) # => true
=end
no6v (Nobuhiro IMAI)
06:46 AM Bug #8417 (Rejected): assert_in_epsilon(-1, -1) failed
=begin
assert_in_epsilon(-1, -1) failed as below:
require "test/unit"
class AssertInEpsilonTest < Test::Unit::TestCase
def test_plus
assert_in_epsilon(1, 1)
end
def test_minus
assert_in_epsilon(-1, -1)
...
no6v (Nobuhiro IMAI)
10:01 AM Bug #8418 (Rejected): when all params are optional, named arg hash maps to the first available param
That's the reason that keyword argument is introduced. nobu (Nobuyoshi Nakada)
08:29 AM Bug #8418: when all params are optional, named arg hash maps to the first available param
that would also make it correspond to the new syntax
irb(main):034:0> def foo(arg = 1, **options); {arg: arg, options: options}; end; foo(a: 1)
=> {:arg=>1, :options=>{:a=>1}}
rits (First Last)
08:20 AM Bug #8418 (Rejected): when all params are optional, named arg hash maps to the first available param
irb(main):028:0> def foo(arg = 1, options = {}); {arg: arg, options: options}; end; foo(a: 1)
=> {:arg=>{:a=>1}, :options=>{}}
since positional args can't follow the named hash, perhaps the named hash should map to the last possible ...
rits (First Last)
08:17 AM Revision bfec5ad4 (git): * ext/socket/mkconstants.rb (INTEGER2NUM): Renamed from INTEGER2VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:58 AM Revision 2c7c4b2e (git): * ext/socket/mkconstants.rb (INTEGER2VALUE): Suppress a warning:
comparison between signed and unsigned integer expressions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:38 AM Revision e38a2399 (git): compile.c: forward kwrest
* compile.c (iseq_compile_each): forward anonymous and first keyword
rest argument one. [ruby-core:55033] [Bug #8416].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:49 AM Revision 3e8bba2f (git): vm_core.h: move jmpbuf between tag and prev
* vm_core.h (rb_vm_tag): move jmpbuf between tag and prev so ensure to
be accessible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:49 AM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
=begin
You can use (({rb_funcall2()})) instead here.
- return rb_funcall(p->argv[0], rb_intern("sleep"), p->argc-1, p->argv+1);
+ return rb_funcall(p->argv[0], rb_intern("sleep"), p->argc-1, p->argv[1]); /* (2) */
=end
nobu (Nobuyoshi Nakada)
03:11 AM Feature #6183: Enumerator::Lazy performance issue
Sure, feel free to clean old files. Thanks! gregolsen (Innokenty Mikhailov)
02:05 AM Revision 8a28e97a (git): enumerator.c: use VALUE
* enumerator.c (inspect_enumerator): use VALUE instead of mere char*
by using rb_sprintf() and rb_id2str().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:03 AM Revision 6b6ca889 (git): enumerator.c: append_method
* enumerator.c (append_method): extract from inspect_enumerator().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:58 AM Revision 15b88811 (git): enumerator.c: fix style
* enumerator.c (enumerator_initialize): no cuddle up else.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:01 AM Revision 94dfc14e (git): * ext/socket/mkconstants.rb (INTEGER2VALUE): Use LONG2FIX if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)

05/17/2013

11:19 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
Here is benchmark results.
I used the code same as [ruby-core:45871].
( https://raw.github.com/panaggio/rubysoc-2010/master/benchmarks/queue.rb )
trunk (r40799):
user system total real
Q#push ...
Glass_saga (Masaki Matsushita)
10:59 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
I fixed some bugs:
(1) blocking forever bug pointed out by ko1 in [ruby-core:45950]
(2) SEGV in do_sleep()
(3) SizedQueue's bug which is similar to (1)
Now, the C implementation passes test-all.
Following diff is from final_queue_...
Glass_saga (Masaki Matsushita)
09:42 PM Feature #6183: Enumerator::Lazy performance issue
@gregolsen Thank you! I will try to review this soon, before you have to rebase again ;)
Mind if I delete the old patches? It might confuse someone looking at the ticket.
zzak (zzak _)
05:48 AM Feature #6183: Enumerator::Lazy performance issue
Finally managed to merge. Please see latest diff attached. gregolsen (Innokenty Mikhailov)
09:39 PM Bug #8412: Small Documentation Fix for Fiddle Module
Hi Steven, What typo are you referring to?
Please provide a link to the document, like on ruby-doc.org, or github, a patch would also be nice!
If you have any questions, feel free!
zzak (zzak _)
05:53 PM Feature #6721: Object#yield_self
(13/05/17 17:01), aleph1 (Elias Levy) wrote:
> map may be the best choice, as its already used in enumerables and this is a natural equivalent for single objects. That said, it may lead to unnoticed bugs if someone thinks they are ap...
nobu (Nobuyoshi Nakada)
05:01 PM Feature #6721: Object#yield_self
nobu (Nobuyoshi Nakada) wrote:
> I'm not against the feature itself, but don't like the name.
At its core this feature relates to method chaining and transforming the object, something that cannot be done with Object#tap.
Some s...
aleph1 (Elias Levy)
04:38 PM Feature #8414 (Closed): String#scrub!
r40390 [Feature #6752] で で追加した String#scrub ですが、破壊的メソッド版も追加していいでしょうか。
lib/uri/common.rb いじっていて、欲しくなったので。
naruse (Yui NARUSE)
03:40 PM Revision e0a45976 (git): * 2013-05-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:39 PM Revision a7acc991 (git): * ext/socket/mkconstants.rb: Convert integer constants bigger than int
correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:25 PM Bug #8358: TestSprintf#test_float test failure
The author describes that it is necessary to specify double-precision (53-bit) rounding precision before invoking strtod or dtoa.
https://github.com/ruby/ruby/blob/trunk/util.c#L526
So that I created a patch to set _PC_53 temporally ...
h.shirosaki (Hiroshi Shirosaki)
01:04 PM Revision 9d099423 (git): * ext/socket/ifaddr.c: Use unsigned LONG_LONG to represent flags
because SunOS 5.11 (OpenIndiana) defines ifa_flags as uint64_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:50 PM Bug #8347 (Closed): Couldn't find file to include 'lib/rake/doc/README.rdoc' from ../lib/rake/version.rb
Fixed by r40535, looked like it wasn't working in ri because of excess whitespace before readme starts when using "ri Rake" zzak (zzak _)
12:49 PM Revision 24acab65 (git): * cont.c: Typo in constant MAX_MACHINE_STACK_CACHE from '..MAHINE..'
patch by @schmurfy [Fixes GH-307]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
10:27 AM Revision 53fa01d0 (git): * misc/ruby-electric.el (ruby-electric-matching-char): Do not put
a closing quote when the quote typed does not start a string, as
in $', ?\' or ?\".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
09:10 AM Revision fbe45fdf (git): * configure.in: Consider error messages to find out version option of
C compiler.
The C compiler of Sun Studio C emits "Warning: Option -qversion
passed to ld, if ld is invoked, ignored otherwise" and exit
successfully.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40796 b2dd03c8-39d4-4d8f-98ff...
akr (Akira Tanaka)
08:35 AM Revision baa65ad1 (git): gc.c: rb_gc_guarded_ptr
* gc.c (rb_gc_guarded_ptr): unoptimize on other compilers than gcc and
msvc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:39 AM Revision 4621799d (git): vm.c: narrow variable scope
* vm.c (vm_exec): move escape_ep into exception block, since it is
updated every time entering the block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:11 AM Revision d05010f6 (git): Enable the document for Socket::Ifaddr#ifindex.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:07 AM Revision 37659d8f (git): * 2013-05-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:07 AM Revision f7624d98 (git): eval_intern.h: jmpbuf must be accessible
* eval_intern.h (TH_PUSH_TAG): ensure jmpbuf to be accessible before
pushing tag to get rid of unaccessible tag by stack overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom