Project

General

Profile

Activity

From 08/30/2013 to 09/05/2013

09/05/2013

09:59 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
(2013/09/05 20:52), Glass_saga (Masaki Matsushita) wrote:
> I fixed a bug in ext/thread.c ([ruby-core:56861]).
> It was not compatible with Objects extended by Mutex_m and test/test_mutex_m.rb failed.
> Moreover, I use rb_thread_s...
ko1 (Koichi Sasada)
08:52 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
Sorry for my late response.
I fixed a bug in ext/thread.c ([ruby-core:56861]).
It was not compatible with Objects extended by Mutex_m and test/test_mutex_m.rb failed.
Moreover, I use rb_thread_sleep_deadly() to make it get along with ...
Glass_saga (Masaki Matsushita)
09:41 PM Bug #8861 (Third Party's Issue): segmentation fault with ruby-ldap
It is a ruby-ldap issue not Ruby itself. Please report it to ruby-ldap: https://github.com/alexey-chebotar/ruby-ldap
kou (Kouhei Sutou)
06:07 PM Bug #8866 (Closed): frozen string literal("foo"f ) can ignore source encoding after r42843.
This issue was solved with changeset r42847.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (fstring_cmp): take string encoding into account w...
Anonymous
05:49 PM Bug #8866 (Closed): frozen string literal("foo"f ) can ignore source encoding after r42843.
Hello,
After r42843, frozen string literal can have encoding different from script encoding.
example:
usascii.rb:
# coding: us-ascii
def usascii
"foo"f
end
utf8.rb:
# coding: utf-8
def utf8
"foo"f
end
$ ruby -r...
nagachika (Tomoyuki Chikanaga)
05:39 PM Revision 8579a339 (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: use double quotes when
strings start with special characters.
[Fixes GH-157] https://github.com/tenderlove/psych/issues/157
* test/psych/test_string.rb: test for change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42850 b2dd03c8-39d4-4d8f-98ff-823fe6...
tenderlovemaking (Aaron Patterson)
04:53 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
(13/09/05 0:25), KOSAKI Motohiro wrote:
>>> 次に出てくるのは逆に、デーモンなどで全部捕まえたいケースで、rescue Timeout::Error, StandardError =>e
>>> と書きましょう(書いている)という記述 http://d.hatena.ne.jp/dreammind/20090217/1234813224
>>>
>>> 2番めは動かなくなりますよね。
>>
>> Tim...
nobu (Nobuyoshi Nakada)
12:29 AM Bug #8730: "rescue Exception" rescues Timeout::ExitException
2013/8/28 nobu (Nobuyoshi Nakada) <nobu@ruby-lang.org>:
>
> Issue #8730 has been updated by nobu (Nobuyoshi Nakada).
>
>
> kosaki (Motohiro KOSAKI) wrote:
>> > 具体的にはどのように解説されてどう利用されているんでしょうか。
>>
>> 残念ながら紙の書籍は手元にありませんが、
...
kosaki (Motohiro KOSAKI)
03:05 PM Revision a9ab1366 (git): * 2013-09-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:05 PM Revision bbbc8b57 (git): class.c: remove recursion
* class.c (rewrite_cref_stack): remove recursion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:02 PM Bug #8865 (Closed): OptionParser acceptable bugs
This issue was solved with changeset r42844.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/optparse.rb: The Integer acceptable now allows binary and
...
drbrain (Eric Hodel)
01:29 PM Bug #8865: OptionParser acceptable bugs
From #ruby-core IRC:
19:46 nokada: drbrain: seems fine, and add tests 1234xyz fails, plz
drbrain (Eric Hodel)
09:47 AM Bug #8865: OptionParser acceptable bugs
Here is patch 3 that uses end-of-string anchoring to ensure the entire number is bad. drbrain (Eric Hodel)
09:20 AM Bug #8865: OptionParser acceptable bugs
Updated with patch 2 that includes tests drbrain (Eric Hodel)
06:00 AM Bug #8865 (Closed): OptionParser acceptable bugs
I have found a few bugs in OptionParser's accept feature:
Hexadecimal and binary numbers are not properly supported for Integer
OptionParser::DecimalInteger, OptionParser::OctalInteger and OptionParser::DecimalNumeric convert inval...
drbrain (Eric Hodel)
01:23 PM Feature #8863: New error class: UndefinedBehaviorError
matz (Yukihiro Matsumoto) wrote:
> Hmm, defining the behavior to raise UndefinedBehaviorError seems contradiction to me.
> ...
It sounds like it, but my thought was that a user may catch other types of errors and use them meaningfully,...
alexeymuranov (Alexey Muranov)
12:19 PM Feature #8863 (Feedback): New error class: UndefinedBehaviorError
Hmm, defining the behavior to raise UndefinedBehaviorError seems contradiction to me.
Matz.
matz (Yukihiro Matsumoto)
04:34 AM Feature #8863: New error class: UndefinedBehaviorError
Well, maybe just leaving the behavior unspecified is enough, i don't know. But raising an error would reduce a chance of breaking a program of someone who has not read the documentation well. alexeymuranov (Alexey Muranov)
04:30 AM Feature #8863 (Feedback): New error class: UndefinedBehaviorError
=begin
I propose to consider introducing a new error class: (({UndefinedBehaviorError})) (or (({UnspecifiedBehaviorError}))). It would be somewhat similar to (({NotImplementedError})), but it would mean that the behavior is actually un...
alexeymuranov (Alexey Muranov)
11:14 AM Feature #7292: Enumerable#to_h
I think that there are two basic possibilities for Enumerable#to_h behavior:
Strict:
[[:a, 1], ["b", 2]].to_h #=> { :a => 1, "b" => 2 }
# Anything else raises a TypeError:
[[:a], ["b", 2]].to_h #=> TypeError
[[:a, 1], ["b", 2, 3]].to_h...
Anonymous
06:03 AM Feature #7292: Enumerable#to_h
Wait! Shouldn't enum.to_h be the same as Hash[enum]? alexeymuranov (Alexey Muranov)
04:17 AM Feature #7292: Enumerable#to_h
Matz,
it was just a reminder about `#assoc` and `#rassoc`, sorry if it was redundant. IMO, they serve a similar purpose to `#to_h`: they allow to use an *array of two-element arrays* as a storage where selection "by key" or "by value...
alexeymuranov (Alexey Muranov)
09:18 AM Bug #8852: Synology build of ruby-2.0.0-p247 is failing
It seems r40476.
Could you try the trunk?
nobu (Nobuyoshi Nakada)
09:07 AM Revision 7eafeaa3 (git): * string.c (fstring_cmp): take string encoding into account when
comparing fstrings [ruby-core:57037] [Bug #8866]
* test/ruby/test_string.rb: add test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
08:25 AM Revision dffae9a1 (git): string.c: reduce objects in rb_fstring
* string.c (rb_fstring, rb_str_free): use st_data_t instead of VALUE.
* string.c (rb_fstring): get rid of duplicating already frozen object.
* parse.y (str_suffix_gen): freeze in advance to reduce objects.
git-svn-id: svn+ssh://ci.ruby...
nobu (Nobuyoshi Nakada)
07:38 AM Bug #7445: strptime('%s %z') doesn't work
俺の英語は通用しないらしいから日本語で書いてあげます。
あなたこそ `DateTime` の話をしている事を忘れないで下さい。
参照でその先に書いてある事がそのまま通用するわけではありません。参照は
理解を深めるための参考に過ぎません。当たり前です。常識です。
`more`(1) より引用
>SEE ALSO
> ...
`more` は `less` と等価か? 並外れてますね。
そもそも、もう言った筈ですけれど、あなたが言うように `'...
tadf (tadayoshi funaba)
07:13 AM Bug #6312: Psych needlessly noisy parsing string node starting with number-ish string
Sorry I hadn't noticed this issue was updated, possibly rubymine is not sending notifications anymore?
Anyway It's been 15 months since I submitted this, so please forgive me if I'm not very fresh on the subject, but as far as I can t...
riffraff (gabriele renzi)
05:04 AM Revision f0bc5b1c (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:02 AM Revision ee155140 (git): * lib/optparse.rb: The Integer acceptable now allows binary and
hexadecimal numbers per the documentation. [ruby-trunk - Bug #8865]
DecimalInteger, OctalInteger, DecimalNumeric now validate their input
before converting to a number. [ruby-trunk - Bug #8865]
* test/optparse/test_acceptable.rb:...
drbrain (Eric Hodel)
04:53 AM Bug #8864 (Closed): sprintf segfaults with too high precision
In any Ruby version (attempted with 1.8.7, 1.9.3, and 2.0.0), specifying a very large precision in sprintf can cause a segmentation fault.
The following code will cause the segmentation fault.
`"%.99999f" % 10`
The number to cau...
Aaronneyer (Aaron Neyer)
04:49 AM Revision 6fd90000 (git): * include/ruby/ruby.h: add RSTRING_FSTR flag
* internal.h: add rb_fstring() prototype
* parse.y (str_suffix_gen): deduplicate frozen string literals
* string.c (rb_fstring): deduplicate frozen string literals
* string.c (rb_str_free): delete fstrings from frozen_strings table when
...
Charlie Somerville
04:23 AM Misc #8835: Introducing a semantic versioning scheme and branching policy
> 英語のチケットに日本語がぶら下がっていると英語しか読めない人から見て感じが悪いので、
そうしたいときには別に日本語のチケットを作ってそこからぶら下げるようにして下さい。
I only know a very small amount of Japanese, but the Google Translate of your post was very understandable.
steveklabnik (Steve Klabnik)
03:50 AM Revision 301cb9ca (git): * configure.in (with_gmp): set with_gmp no if it is empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
01:44 AM Revision ed0e42c3 (git): * vm_insnhelper.c (vm_getivar): use class sequence to check class
identity, instead of pointer + vm state
* vm_insnhelper.c (vm_setivar): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville

09/04/2013

11:36 PM Bug #8852: Synology build of ruby-2.0.0-p247 is failing
It cross compiles fine with following patch https://github.com/SynoCommunity/spksrc/blob/fad915904222094328425c2855f4fa193731ba84/cross/ruby/patches/fix-thread-stack.patch from from SynoCommunity.
It's currently reverted but I tested it...
moneytoo (Marcel Dopita)
02:36 AM Bug #8852: Synology build of ruby-2.0.0-p247 is failing
What does it mean `third party's issue` - who do you think should be investigating it?
Can you explain what to investigate, this is really edge case (Synology platform) with limited availability, how would one start debugging it?
mpapis (Michal Papis)
11:22 PM Revision b1b39591 (git): * bignum.c (GMP_DIV_DIGITS): New macro.
(bary_divmod_gmp): New function.
(rb_big_divrem_gmp): Ditto.
(bary_divmod_branch): Ditto.
(bary_divmod): Use bary_divmod_branch.
(bigdivrem): Ditto.
* internal.h (rb_big_divrem_gmp): Declared.
git-svn-id: svn+ssh://ci.ruby-la...
akr (Akira Tanaka)
10:04 PM Feature #7292: Enumerable#to_h
Alexey, define "consistent" first. It's more difficult than you'd expect.
I don't usually vote for "consistency" except when there's clear benefit.
Matz.
matz (Yukihiro Matsumoto)
08:20 PM Feature #7292: Enumerable#to_h
#to_h should have no parameter, just a single well-defined behavior.
#to_h is for converting for the most simple case(s), if more control is needed, just make your own conversion.
And I think it would be much easier if it was just Ha...
Eregon (Benoit Daloze)
06:25 PM Feature #7292: Enumerable#to_h
By the way, shouldn't the behavior be somewhat consistent with Array#assoc and Array#rassoc? Than would mean, in my opinion,
[[:a, 1], [:a, 2], [:b, 3, 4]].to_h # => {:a=>1, :b=>3} or {:a=>1} or Error, but not {:a=>2}
alexeymuranov (Alexey Muranov)
11:15 AM Feature #7292: Enumerable#to_h
=begin
@matz
How does it "destroy common case"?
[ [:a,1], [:b,2], [:c,3] ].to_h #=> {:a=>1, :b=>2, :c=>3}
Would work just fine. That was my first example case.
The next two show what other basic conversions of assoc arra...
trans (Thomas Sawyer)
08:14 AM Feature #7292: Enumerable#to_h
@trans I am sure
[ [:a], [:b,1,2], [:c,3] ].to_h #=> {:a=>[], :b=>[1,2], :c=>[3]}
is not we want. It destroys common cases for the sake of consistency.
If you want different behavior from proposed one, please show us rational...
matz (Yukihiro Matsumoto)
02:46 AM Feature #7292: Enumerable#to_h
=begin
@marcandre That implementation is limited by to_ary and it does some weird things.
[ [:a], [:b,1,2], [:c,3] ].to_h #=> {:c=>3}
I know what you want is to convert an associative array into a hash. That's a good thing to have,...
trans (Thomas Sawyer)
09:58 PM Bug #8205: Regexp.union behavior and Regexp.try_convert
Hello,
Bug description is incorrect, sorry. Now i want to say that implementation of String#to_regexp can breaks behavior of Regexp::union.
class String
def to_regexp
/regexp/
end
end
Regexp.union('/some_regexp/') #=>...
avyy (Alexander Yunin)
09:53 PM Feature #8862 (Open): getoptlong to accept user-provided commandline
=begin
Hello,
The (({getoptlong})) module (({class GetoptLong})) provides no way for the user to provide a commandline that is not (({ARGV})). It appears that (({GetoptLong})) is tied to the (({ARGV})) global variable and this canno...
noon (Fabrice Bauzac)
09:23 PM Revision 3b1ab2a6 (git): * bignum.c (bary_divmod_normal): Reduce temporary array allocations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:55 PM Feature #8859 (Rejected): Possibility to declare local varibles like "my" in Perl
If you are proposing to introduce 'my' keyword to the language, there's no chance.
Introducing new keyword can cause compatibility problems, so that it should be very beneficial.
Otherwise please be concrete.
Matz.
matz (Yukihiro Matsumoto)
02:50 PM Feature #8859 (Rejected): Possibility to declare local varibles like "my" in Perl
Hi
I think it would be useful to have an analogue of the "my" keyword in Perl
e.g.
x = 'outer value'
p = Proc.new {
...
many code here
...
my x = 'local value does not affect outer variable'
}
I know I can declare local...
bdimych (Dmitry Bolshakov)
06:47 PM Bug #8861 (Third Party's Issue): segmentation fault with ruby-ldap
The following code is wrong as the fourth line should read: mod = LDAP::Mod.new(LDAP::LDAP_MOD_DELETE, "uid", ["uid=malvezzi"])
#encoding: utf-8
require 'ldap'
require 'ldap/ldif'
mod = LDAP::Mod.new(LDAP::LDAP_MOD_DELETE, ["ui...
francescm (Francesco Malvezzi)
06:46 PM Revision 8db31315 (git): wait until the shutdowning message reaches to the server
see #8831
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:28 PM Bug #8860 (Closed): 64-bit x86 ruby 1.9.3-p448 on Solaris core dumps on bug4950 test case
64-bit ruby 1.9.3-p448 on x86 in Solaris, compiled with the Studio 12.1 compiler,
core dumps against the test case for bug 4950 in bootstraptest/test_fork.rb.
This problem sounds similar to issue 6334, which was rejected due
to lack o...
apchin (April Chin)
06:09 PM Bug #7731: Segmentation fault when trying to start rails server
I'm having the same problem (I think) with Ruby 2.0 on Ubuntu 13.04. It doesn't happen with json 1.7.5 gem, but crashes with 1.7.7 or 1.8.0:
/usr/share/omf-expctl-5.4/gems/gems/json-1.8.0/lib/json/common.rb:67: [BUG] Segmentation fault
...
cdwertmann (Christoph Dwertmann)
05:21 PM Revision 8745bc67 (git): * bignum.c (rb_big_divrem_normal): Add GC guards.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:19 PM Bug #8831 (Assigned): test-all error: OpenSSL::SSL::SSLError: SSL_write: bad write retry
On r42790 usa ignored this error, but tenderlove should confirm this. naruse (Yui NARUSE)
04:53 PM Revision 1abfdb45 (git): * vm_insnhelper.c (vm_search_method): no need to check klass == ci->klass
in method cache guard - class sequence number has the same uniqueness
guarantees
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
04:11 PM Revision 149fd43e (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:10 PM Revision 8f8bf824 (git): * bignum.c (rb_big_divrem_normal): New function.
* internal.h (rb_big_divrem_normal): Declared.
* ext/-test-/bignum/div.c: New file.
* test/-ext-/bignum/test_div.rb: New file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:10 PM Revision ff5a4c99 (git): * 2013-09-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:10 PM Revision cf3736a7 (git): * bignum.c (bigdivrem_normal): Removed.
(bary_divmod_normal): New function.
(bary_divmod): Use bary_divmod_normal.
(bigdivrem): Use bary_divmod_normal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:41 PM Revision 88270e77 (git): win32.c: suppress warning
* win32/win32.c (do_select): unconstify timeout as select() declares
it non-const.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:25 PM Feature #8426 (Closed): Implement class hierarchy method caching
This issue was solved with changeset r42822.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* class.c, compile.c, eval.c, gc.h, insns.def, internal.h, met...
Anonymous
02:03 PM Revision 102a2c2e (git): * bignum.c (bigdivrem): Useless declaration removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:57 PM Revision 326e3816 (git): numeric.c: split NUM_STEP_GET_INF
* numeric.c (NUM_STEP_GET_INF): split from NUM_STEP_SCAN_ARGS(), since
inf is not used in num_step_size().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:25 AM Bug #7445: strptime('%s %z') doesn't work
tadf (tadayoshi funaba) wrote:
> this is intentional behaviour.
Then update the documentation to say so.
> ...
Yes it can. I've shown how it can in C `strptime`(3), and even you showed that it works with `DateTime.strftime`(3).
...
felipec (Felipe Contreras)
11:23 AM Bug #7445: strptime('%s %z') doesn't work
tadf (tadayoshi funaba) wrote:
> `DateTime` also does.
> ...
So you accept `strftime()` works correctly with `'%s %z'`? Then why do you not accept that `strptime()` doesn't?
felipec (Felipe Contreras)
11:21 AM Bug #7445: strptime('%s %z') doesn't work
tadf (tadayoshi funaba) wrote:
> but you can't preserve offset with `mktime`(3).
We are not talking about `mktime`(3), we are talking about `strptime()`. This is a red herring argument.
The documentation of `Date.strptime()` clear...
felipec (Felipe Contreras)
11:23 AM Revision dd95c9b1 (git): * bignum.c (bigdivrem_normal): Add assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:31 AM Feature #8460: PATCH: optparse: add `keep_unknown` option
Any update on this? felipec (Felipe Contreras)
10:18 AM Revision 35f11f30 (git): internal.h: LONG_LONG vm_state_version_t
* internal.h (vm_state_version_t): prefer LONG_LONG to uint64_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:28 AM Revision cb3c8119 (git): internal.h: fix vm_state_version_t
* internal.h (vm_state_version_t): use uint64_t when it is larger than
LONG_LONG, and fallback to unsigned long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:18 AM Revision eeb39e01 (git): vm.c: prototype
* vm.c (rb_next_class_sequence): use ANSI style definition and
prorotype declaration, instead of old-K&R style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:43 AM Revision 71f39435 (git): * NEWS: Note about Module#include and prepend scope change
[Feature #8846]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matsuda (Akira Matsuda)
06:40 AM Revision 0e92ae96 (git): * enc/trans/utf8_mac-tbl.rb: fix r42789.
Fix conversion table and logic. [ruby-dev:47680]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:25 AM Revision 2f522b9c (git): * class.c, compile.c, eval.c, gc.h, insns.def, internal.h, method.h,
variable.c, vm.c, vm_core.c, vm_insnhelper.c, vm_insnhelper.h,
vm_method.c: Implement class hierarchy method cache invalidation.
[ruby-core:55053] [Feature #8426] [GH-387]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42822 b2d...
Charlie Somerville
04:19 AM Revision 4142e830 (git): fix typos
pointed out by nagachika.
http://d.hatena.ne.jp/nagachika/20130903/ruby_trunk_changes_42782_42812#r42799
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
02:13 AM Revision b31965cb (git): string.c: fix for \K
* string.c (str_gsub): use BEG(0) for whole matched position not
return value from rb_reg_search(), for \K matching.
[ruby-dev:47694] [Bug #8856]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42820 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)
02:12 AM Feature #8811: Counterpart to `Hash#key?` for `Array`
Why not to use
3 < a.size
instead of
a.index?(3)
etc.?
alexeymuranov (Alexey Muranov)
02:12 AM Revision 90cbcbe6 (git): test_rubyoptions.rb: ignore trivial differences
* test/ruby/test_rubyoptions.rb (ExpectedStderr): ignore trivial
differences, not worth to break the tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:11 AM Revision bd840215 (git): * 2013-09-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:11 AM Revision fdf04ce6 (git): configure.in: libruby needs gmp
* configure.in (SOLIBS): LIBRUBY_SO also needs linking with gmp, to
run worker processes in test-all on non-ELF platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:02 AM Feature #8846 (Closed): Publicize Module#include
Implemented in r42809. matsuda (Akira Matsuda)
12:37 AM Bug #8854: Update URL for bug reports
bugreport.html does not exist (I do not know since when), and we set up a redirect to bugs.ruby-lang.org earlier today. stomar (Marcus Stollsteimer)

09/03/2013

11:53 PM Bug #8854: Update URL for bug reports
If bugreport.html only exists as a redirect then we should reference the actual bug tracker in documentation.

Unless the goal was to link to a page with details on how to report bugs. In this case it should be at this bugreport.html ...
zzak (zzak _)
11:01 PM Bug #8854: Update URL for bug reports
The state is inconsistent now :), test/ruby/test_rubyoptions.rb has been adopted in r42802.
bugs.ruby-lang.org is referenced in multiple places. Why not switch to it completely and additionally keep a redirect from www.ruby-lang.org/b...
stomar (Marcus Stollsteimer)
05:20 PM Bug #8854 (Closed): Update URL for bug reports
This issue was solved with changeset r42803.
Marcus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Revert r42800 "* error.c: [DOC] Update bug tracker url by @Scot...
naruse (Yui NARUSE)
04:36 PM Bug #8854 (Closed): Update URL for bug reports
The URL in error.c has recently been changed from
www.ruby-lang.org/bugreport.html to bugs.ruby-lang.org.
I am guessing(!) that the URL in test/ruby/test_rubyoptions.rb
should match the URL in error.c, see patch.
I couldn't test ...
stomar (Marcus Stollsteimer)
11:02 PM Bug #8844: Nested ParseError in rexml
ありがとうございます!
取り込みました!
パッチには別の問題の修正もあったのでそっちも取り込みました。
kou (Kouhei Sutou)
10:57 PM Bug #8844 (Closed): Nested ParseError in rexml
This issue was solved with changeset r42813.
Ippei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rexml/parsers/treeparser.rb (REXML::Parsers::TreeParser#pa...
kou (Kouhei Sutou)
10:39 PM Bug #8758: Add initial documentation for SSLServer
I took me a while (usually I use openssl to generate certs) but I create a Ruby Class which can be used to generate certs.
It's quite big. I am not sure if we should include it in documentation. You can see it here https://gist.github.c...
lisukorin (Rafał Lisowski)
09:35 PM Feature #8793 (Closed): Ruby 2.0 and Threads under HPUX
This issue was solved with changeset r42808.
Michal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
thread_pthread.c: fix compile error on HP-UX
* thread...
nobu (Nobuyoshi Nakada)
07:29 PM Feature #8793: Ruby 2.0 and Threads under HPUX
Maybe one more comment: Once the `_pthread_stack_info_np()` is used, I would recommend to clean up the mess with `machine_register_stack_*` and usage of `rb_ia64_bsp` assembly. I guess all the required information is provided within the ... michal@rokos.cz (Michal Rokos)
07:25 PM Feature #8793: Ruby 2.0 and Threads under HPUX
nobu (Nobuyoshi Nakada) wrote:
> Thank you, and does this patch work?
Patch compiles, but the 'make test' started to fail again, since the PTHREAD_STACK_MIN got back:
~~~
sample/test.rb:signal
sendsig: useracc failed. 0x200000...
michal@rokos.cz (Michal Rokos)
06:19 PM Feature #8793: Ruby 2.0 and Threads under HPUX
Nobu, the merged patch (that is currently in the trunk) does not compile:
~~~
compiling thread.c
"thread_pthread.c", line 528: warning #2223-D: function "gettune" declared
implicitly
if (gettune("vps_pagesize", &...
michal@rokos.cz (Michal Rokos)
09:27 PM Feature #8811: Counterpart to `Hash#key?` for `Array`
=begin
* Matz: As for the method name, phluid61's explanation is exactly what I had in mind. And, some use cases are as shown below.
* phluid61: Your implementation looks perfect to me.
==== Use case 1
I want to delete and get from...
sawa (Tsuyoshi Sawada)
01:06 PM Feature #8811: Counterpart to `Hash#key?` for `Array`
Ahh, sorry I misunderstood the feature request.
Request is for Array#index?
zzak (zzak _)
01:05 PM Feature #8811: Counterpart to `Hash#key?` for `Array`
Shouldn't it be called Hash#value then? zzak (zzak _)
07:47 PM Feature #7763 (Closed): add Win32::Registry#values
This issue was solved with changeset r42805.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/win32/lib/win32/registry.rb (Win32::Registry#values): adde...
usa (Usaku NAKAMURA)
07:33 PM Bug #8774 (Open): rb_file_dirname return wrong encoding string when dir is "."
(reopened. the reason is written at #8789) usa (Usaku NAKAMURA)
07:31 PM Bug #8789 (Assigned): File.expand_path(File.dirname(__FILE__)) return wrong encoded result
IMO, your opnion in #8774 is right. usa (Usaku NAKAMURA)
07:16 PM Bug #8785 (Closed): backport r42282 for 2.0 and 1.9.3
usa (Usaku NAKAMURA)
07:15 PM Bug #8822: Incorrect encoding for ENV in Windows
Since Ruby 1.8 assumes the encoding of ENV is locale (or -K specified encoding),
Ruby 1.9 also treats it as locale for compatibility.
It was intentional decision, not bug.
We were able to break compatibility at Ruby 2.0, but the work ...
usa (Usaku NAKAMURA)
01:10 PM Bug #8822 (Assigned): Incorrect encoding for ENV in Windows
zzak (zzak _)
06:53 PM Bug #8855: {Single}Forwardable#def_delegators が、Stringでメソッド名を渡された時だけ __id__ と __send__ が取り除かれる
御対応ありがとうございます!
お手数をお掛けしました。
kachick (Kenichi Kamiya)
06:51 PM Bug #8855 (Assigned): {Single}Forwardable#def_delegators が、Stringでメソッド名を渡された時だけ __id__ と __send__ が取り除かれる
たぶん権限がないとtitleは変更できないんじゃないかと思うので、変更しました。
githubにあるコードはURLの提示があるわけなので、いちいちコピーしなくてもいいと思います。
usa (Usaku NAKAMURA)
06:06 PM Bug #8855: {Single}Forwardable#def_delegators が、Stringでメソッド名を渡された時だけ __id__ と __send__ が取り除かれる
すみません、タイトル等の編集途中に誤って送信してしまったのですが、修正する方法がわかりません・・・
またパッチと再現コードはgithub側へ添付済みなのですが、こちらへコピーした方がいいのでしょうか?
kachick (Kenichi Kamiya)
06:02 PM Bug #8855 (Closed): {Single}Forwardable#def_delegators が、Stringでメソッド名を渡された時だけ __id__ と __send__ が取り除かれる
https://github.com/ruby/ruby/pull/385
Forwardable#def_delegators と SingleForwardable#def_delegators ですが、
Stringでメソッド名を渡された時だけ __id__ と __send__ を取り除いているようです。
ここでStringとSymbolの間に違いが出る理由に思い至らなかったので、パッチを書いてみました。
御確認下さい。
kachick (Kenichi Kamiya)
03:52 PM Feature #8572: Fiber should be a Enumerable
We have Generator in 1.8 and Enumerator in 1.9+ that work exactly the
same as the given example.
~~~ruby
# In ruby 1.8, require 'generator' and call Generator.new instead
enum = Enumerator.new { |g|
g.yield 3
...
knu (Akinori MUSHA)
02:35 PM Feature #8572: Fiber should be a Enumerable
Sorry, I missed your gist orz zzak (zzak _)
02:13 PM Feature #8572: Fiber should be a Enumerable
You could always included `Enumerable` in your class that implements `Fiber` and define #`each` zzak (zzak _)
02:02 PM Revision 1d8efe61 (git): * test/rexml/parser/test_tree.rb
(TestTreeParser::TestInvalid#test_unmatched_close_tag):
Compute expected value from test value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
02:01 PM Revision 73c57761 (git): * lib/rexml/parsers/treeparser.rb (REXML::Parsers::TreeParser#parse):
Add source information to parse exception on no close tag error.
[Bug #8844] [ruby-dev:47672]
Patch by Ippei Obayashi. Thanks!!!
* test/rexml/parser/test_tree.rb: Add a test for the above case.
git-svn-id: svn+ssh://ci.ruby-lang.o...
Sutou Kouhei
01:58 PM Revision 4c1fa1a6 (git): * test/rexml/parser/test_tree.rb: Fix test name to describe test
content.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
01:57 PM Revision a0657cd5 (git): * lib/rexml/parsers/treeparser.rb (REXML::Parsers::TreeParser#parse):
Remove needless nested parse exception information.
[Bug #8844] [ruby-dev:47672]
Reported by Ippei Obayashi. Thanks!!!
* test/rexml/parser/test_tree.rb: Add a test for the above case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
Sutou Kouhei
01:35 PM Feature #8833 (Assigned): [PATCH] IPAddr#pred
A good proposal should have a usecase with examples, also I would recommend tests (although I'm unsure if IPAddr has tests)...
@knu!
zzak (zzak _)
01:23 PM Bug #8826 (Assigned): BigDecimal#div and #quo different behavior and inconsistencies
The documentation for BigDecimal#div is aliases under #quo, sorry for the confusion. I will fix this!
@mrkn Can you also comment?
zzak (zzak _)
01:22 PM Revision 1c6ff586 (git): Fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:03 PM Revision 56699021 (git): string.c: rb_enc_str_new_cstr
* string.c (rb_enc_str_new_cstr): new function to create a string from
the C-string pointer with the specified encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:52 PM Revision ad6731b0 (git): Changelog: Forgot to reference the ticket #
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matsuda (Akira Matsuda)
12:42 PM Revision 26766ee8 (git): * eval.c (Init_eval): Make Module#include and Module#prepend public
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matsuda (Akira Matsuda)
12:35 PM Revision 1908874b (git): thread_pthread.c: fix compile error on HP-UX
* thread_pthread.c (sys/dyntune.h): for gettune().
* thread_pthread.c (hpux_attr_getstackaddr): fix missing *.
[ruby-core:56983] [Feature #8793]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:20 AM Revision c0e1f9e0 (git): Add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:20 AM Revision 25836893 (git): * bignum.c (GMP_STR2BIG_DIGITS): New macro.
(str2big_gmp): New function.
(rb_cstr_to_inum): Use str2big_gmp for big bignums.
(rb_str2big_gmp): New function.
* internal.h (rb_str2big_gmp): Declared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42806 b2dd03c8-39d4-4d8f-...
akr (Akira Tanaka)
11:12 AM Feature #8850: Convert Rational to decimal string
How about to_s( :decimal ) ? Anonymous
11:06 AM Feature #8807: Custom literals
-1 Anonymous
10:46 AM Revision 1b126277 (git): * ext/win32/lib/win32/registry.rb (Win32::Registry#values): added.
[Feature #7763] [ruby-core:51783]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:08 AM Feature #8853 (Open): Should String#sub(pattern) returns an Enumerator?
調べてみたのですが、過去に同様の議論があったのかどうかわからなかったので起票します。
以下のように String#sub(pattern) と使うと ArgumentError が発生します。
$ ruby -e "p ''.sub(//)"
-e:1:in `sub': wrong number of arguments (1 for 2) (ArgumentError)
from -e:1:in `<main>'
一方、 Str...
okkez (okkez _)
10:06 AM Bug #8852 (Feedback): Synology build of ruby-2.0.0-p247 is failing
Probably a third party's issue? nobu (Nobuyoshi Nakada)
03:34 AM Bug #8852: Synology build of ruby-2.0.0-p247 is failing
possibly related to => http://bugs.ruby-lang.org/issues/5676
but there is only gcc-4.2 => https://gist.github.com/stevesparks/772743522bbd9bdbf978#file-ipkg-list-txt-L277
mpapis (Michal Papis)
09:29 AM Revision afcabde7 (git): Add magic autoload comments to misc/*.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
08:20 AM Revision 61837409 (git): Revert r42800 "* error.c: [DOC] Update bug tracker url by @ScotterC [Fixes GH-390]"
It should be fixed on www.ruby-lang.org side.
* [Bug #8854]
* ruby/www.ruby-lang.org#288 https://github.com/ruby/www.ruby-lang.org/issues/288
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:07 AM Revision 67460ee9 (git): * test/ruby/test_rubyoptions.rb
(TestRubyOptions::SEGVTest::ExpectedStderr): the URL was changed at
r42800.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:49 AM Revision 324df61e (git): * lib/thread.rb: [DOC] CV#wait typo by @avdi [Fixes GH-386]
https://github.com/ruby/ruby/pull/386
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:38 AM Revision 31bd3864 (git): * error.c: [DOC] Update bug tracker url by @ScotterC [Fixes GH-390]
https://github.com/ruby/ruby/pull/390
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:24 AM Revision 8297e310 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:52 AM Revision ef82e527 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:50 AM Revision 0b2413b4 (git): * bignum.c (rb_str2big_poweroftwo): New function.
(rb_str2big_normal): Ditto.
(rb_str2big_karatsuba): Ditto.
* internal.h (rb_str2big_poweroftwo): Declared.
(rb_str2big_normal): Ditto.
(rb_str2big_karatsuba): Ditto.
* ext/-test-/bignum/str2big.c: New file.
* test/-ext-/bignum/t...
akr (Akira Tanaka)
03:36 AM Revision 1df73dd9 (git): Reduce NUM2INT invocations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:10 AM Revision bc3d736f (git): * process.c (rb_clock_gettime): Support times() based monotonic clock.
(rb_clock_getres): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:04 AM Feature #7292: Enumerable#to_h
Another alternative: since two-element arrays are used here as ordered pairs, maybe the Array class can be extended with #key and #value methods, which would be identical to #first and #last respectively on two-element arrays, and raise ... alexeymuranov (Alexey Muranov)
03:03 AM Revision c048ad23 (git): * bignum.c (str2big_scan_digits): Extracted from rb_cstr_to_inum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:28 AM Revision 736f97b2 (git): * win32/win32.c (rb_w32_select_with_thread): rounding up the fraction of
tv_usec instead of rounding down.
this change is an experiment to get rid of failures on vc10-x64 CI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:02 AM Revision 61ce3f57 (git): * win32/win32.c (do_select): constify timeout.
* win32/win32.c (rb_w32_select_with_thread): constify 10ms wait and
0ms wait structs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:24 AM Misc #8835: Introducing a semantic versioning scheme and branching policy
ABI 互換性をどう考え、どう守り、どう示すのかは Ruby 1.9.1 以降幾度となく議論されていた懸案で、
その中で共有されてきたいくつかの前提が、本提案では無視されているように思います。
具体的には、
* 我々はABI後方互換性を保っている気でいる(が、しばしば壊れてしまうことがある) → 事前の人力のアノテーションでは回避出来ないと言うこと
* 脆弱性が発見されたら生きている全てのブランチでリリースが必要
* メンテナンスコストは生きているブランチ...
naruse (Yui NARUSE)
01:17 AM Revision f7754943 (git): internal.h: parenthesize argument
* internal.h (bit_length): parenthesize cast operands of a macro
argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:08 AM Revision 6d18cc28 (git): * test/openssl/test_pair.rb
(OpenSSL::TestPair#test_write_nonblock_no_exceptions): on some CIs
such as Debian 6.0, Ubuntu 10.04, CentOS and vc10-x64 (maybe depend
on OpenSSL version), writing to SSLSocket after SSL_ERROR_WANT_WRITE
causes SSL_ERROR_SSL "bad w...
U.Nakamura
12:57 AM Feature #7181: New Methods On OpenSSL::OCSP::CertificateId
Any chance of this landing in a 2.0.0 patchset? reaperhulk (Paul Kehrer)

09/02/2013

11:56 PM Feature #8838 (Closed): Enhancing Numeric#step
This issue was solved with changeset r42781.
Akinori, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Enhance Numeric#step.
* numeric.c (num_step): Default the lim...
knu (Akinori MUSHA)
11:36 PM Revision 853c346d (git): * enc/trans/utf8_mac-tbl.rb: update conversion table to recent OS X.
Previous table is used on Mac OS X 10.1 or prior.
This table is used on 10.2 or later. [ruby-dev:47680]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:54 PM Revision c68596ae (git): Retain behavior of Numeric#step when nil is given as second argument.
* numeric.c (NUM_STEP_SCAN_ARGS): On sencond thought, keep
Numeral#step backward compatible in that it raises TypeError
when nil is given as second argument.
* test/ruby/test_float.rb (TestFloat#test_num2dbl): Revert.
* test/ruby/t...
Akinori MUSHA
10:41 PM Revision 0c3d1245 (git): * bignum.c (bytes_2comp): Define it only for little endian
environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:39 PM Revision 7cc26c72 (git): Fix and add tests for Numeric#step.
* test/ruby/test_float.rb (TestFloat#test_num2dbl): Allow nil as
step, as with the keyword argument.
* test/ruby/test_numeric.rb (TestNumeric#test_step): Add tests for
nil as step or limit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
Akinori MUSHA
10:39 PM Revision 4993cf9e (git): Numeral#step should raise TypeError if a non-numeric parameter is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
10:29 PM Revision 3065dd71 (git): * internal.h (bit_length): Add casts to fix complation error with
clang 3.0 -Werror,-Wshorten-64-to-32.
[ruby-dev:47687] reported by SASADA Koichi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
06:52 PM Feature #7292: Enumerable#to_h
I understand that using #to_a or #first and #last directly would give an unexpected result when calling #to_h on a collection of ranges, for example, but one is not supposed to call #to_h on a collection of ranges, or #to_h should be pre... alexeymuranov (Alexey Muranov)
06:38 PM Feature #7292: Enumerable#to_h
Why #to_ary and not #to_a? Or just expect the elements of the enumerable collection to respond to #first and #last.
If someone implements a class OrderedPair, it is not sure in my opinion that the instances would respond to #to_ary.
alexeymuranov (Alexey Muranov)
11:59 AM Feature #7292: Enumerable#to_h
On Sep 2, 2013 11:02 AM, "matz (Yukihiro Matsumoto)" <matz@ruby-lang.org>
wrote:
>
> Acceptable. How others think about Marc's rule?
>
> * elements should respond to #to_ary
> * return value from #to_ary should be 2 eleme...
phluid61 (Matthew Kerwin)
11:01 AM Feature #7292: Enumerable#to_h
matz (Yukihiro Matsumoto) wrote:
> Marc, do you want to implement it by yourself, or ask somebody to do so?
Great!
Sure, I can implement it.
marcandre (Marc-Andre Lafortune)
10:01 AM Feature #7292: Enumerable#to_h
Acceptable. How others think about Marc's rule?
* elements should respond to #to_ary
* return value from #to_ary should be 2 elements array
* otherwise the element will be ignored (no TypeError exception)
If no one objects, I...
matz (Yukihiro Matsumoto)
06:49 PM Bug #8852 (Closed): Synology build of ruby-2.0.0-p247 is failing
Looks like something is missing... __stack_chk_fail_local
Gist output of "rvm --debug install ruby"
https://gist.github.com/stevesparks/eebabfbcc23884b29c24
barbecuesteve (Steve Sparks)
06:21 PM Revision 69d0f84b (git): * 2013-09-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:21 PM Revision 41234c5c (git): * vm_insnhelper.c (vm_search_super_method): use ci->argc instead of
ci->orig_argc. ci->argc can be changed by splat arguments.
[ruby-list:49575]
This fix should be applied to Ruby 2.0.0 seriese.
* test/ruby/test_super.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4278...
ko1 (Koichi Sasada)
05:53 PM Feature #8579: Frozen string syntax
(2013/08/31 15:21), matz (Yukihiro Matsumoto) wrote:
> I accept the suffix idea ("frozen string"f), and string concatenation for frozen strings will be invalid ("foo"f "bar" would be syntax error).

There are comments on this chan...
ko1 (Koichi Sasada)
04:11 PM Feature #8579 (Closed): Frozen string syntax
This issue was solved with changeset r42773.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* NEWS: Add note about frozen string literals
* compile.c (ca...
Anonymous
05:30 PM Bug #8656: Cannot Build Ruby-Tk
backported into ruby_1_9_3 at r42368.
BTW, please do NOT commit to ruby_1_9_3 branch without agreement
of the maintainer (= me).
Since the branch is in maintenance state, only the maitainer can
commit to it.
usa (Usaku NAKAMURA)
05:22 PM Bug #8806 (Closed): SEGV in Date.rfc2822
backported into ruby_1_9_3 at r42774. usa (Usaku NAKAMURA)
03:37 PM Feature #8696 (Closed): Process.setproctitle
rdocを更新しました。 knu (Akinori MUSHA)
03:05 PM Bug #8851 (Closed): alias/undef で % リテラルによるシンボルが使えない
るりまプロジェクトの#7102で報告されていたのですが、調べてみたら2.0.0でも同様の状況だったので報告します。
以下のスクリプトで、コメントアウトしている部分を有効にすると syntax error になります。
一貫性の観点から %s によるシンボルリテラルも使えた方がいいように思うのですが、いかがでしょうか?
~~~
$ ruby -v a.rb
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_6...
okkez (okkez _)
02:56 PM Revision fd4b5b8d (git): Enhance Numeric#step.
* numeric.c (num_step): Default the limit argument to infinity and
allow it to be omitted. Keyword arguments (by: and to:) are
introduced for ease of use. [Feature #8838] [ruby-dev:47662]
[ruby-dev:42194]
* numeric.c (num_step): ...
Akinori MUSHA
02:56 PM Revision a94833eb (git): test_string.rb: yet another test
* test/ruby/test_string.rb (TestString#test_frozen_string_adjacent):
option is allowed after the last string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:46 PM Revision 306cf3ac (git): parse.y: valid suffix word only
* parse.y (parser_str_options): use valid suffix word only, as well as
numeric literal, for the backward comatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:35 PM Feature #8572: Fiber should be a Enumerable
ko1 (Koichi Sasada) wrote:
> Use case?
~~~ruby
f = Fiber.new {
Fiber.yield 3
Fiber.yield 2
Fiber.yield 1
Fiber.yield 0
}
f.each do |x|
puts x
end
~~~
For example, I want to do `each` for Fiber. But it can't
mattn (Yasuhiro Matsumoto)
02:33 PM Revision 57d06d7b (git): test_string.rb: remove duplicated code
* test/ruby/test_string.rb (TestString#test_frozen_dstring): remove
duplicated assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:56 PM Revision 1d7611ff (git): * bignum.c (ISDIGIT): Unused macro removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:52 PM Revision 5f61a592 (git): * bignum.c (str2big_poweroftwo): Extracted from rb_cstr_to_inum.
(str2big_normal): Ditto.
(str2big_karatsuba): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:32 PM Feature #8825 (Rejected): Symbol Argument to any?
=begin
This already works:
[1,2,3].any?(&:even?)
=end
Anonymous
12:31 PM Feature #8825: Symbol Argument to any?
Yes. That's what I was thinking. kyledecot (Kyle Decot)
10:02 AM Feature #8850 (Assigned): Convert Rational to decimal string
On Ruby 2.1.0, decimal literal is introduced.
It generates Rational but it cannot easily convert to decimal string.
You know, Rational#to_f is related to this but
* Float is not exact number
** 0.123456789123456789r.to_f.to_s #=> "0....
naruse (Yui NARUSE)
08:53 AM Revision 93ea04ec (git): parse.y: force_encoding
* parse.y (str_suffix_gen): String#b creates new string object, use
force_encoding instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:21 AM Revision 727d746e (git): merge revision(s) 42100: [Backport #8806]
* ext/date/date_parse.c (rfc2822_cb): check if wday is given, since it
can be omitted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@42774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:11 AM Revision a056098c (git): * NEWS: Add note about frozen string literals
* compile.c (case_when_optimizable_literal): optimize NODE_LIT strings
in when clauses of case statements
* ext/ripper/eventids2.c: add tSTRING_SUFFIX
* parse.y: add 'f' suffix on string literals for frozen strings
* test/ripper/tes...
Charlie Somerville
05:48 AM Revision 78c75d91 (git): Add forgotton [DOC].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
05:42 AM Revision 1b4addb4 (git): Process#setproctitle,argv0: Fix and improve rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
05:16 AM Revision 01983c97 (git): * NEWS: fix description of number literal suffixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
05:08 AM Revision 0732ed36 (git): * test/rake/test_rake_rules.rb: add space after string literal to
prevent conflict with string options syntax "foo"opts
* test/rss/rss-assertions.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
03:29 AM Revision dd9c8b88 (git): * test/ruby/test_bignum.rb (test_interrupt_during_to_s): Disable it
when GMP is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)

09/01/2013

10:04 PM Revision 0effd061 (git): * bignum.c (Init_Bignum): Define Bignum::GMP_VERSION when GMP is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:33 PM Bug #8676: ruby 2.0 can not require or load the source file with non-ascii path name
This patch makes the file functions explicitly call the *W version of the file functions. Isn't it better to provide the UNICODE compile flag. http://msdn.microsoft.com/en-us/library/cc194801.aspx
CreateFile, and the likes, would then...
thomthom (Thomas Thomassen)
04:47 PM Revision c48e169f (git): * bignum.c (big2str_generic): Reduce arguments.
(big2str_gmp): Ditto.
(rb_big2str1): Follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
04:06 PM Revision a3e3cce1 (git): Fix funciton name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:09 PM Revision 0b8c55f7 (git): * 2013-09-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:09 PM Revision 8a108ffc (git): * process.c (get_mach_timebase_info): Extracted from rb_clock_gettime.
(rb_clock_gettime): Use get_mach_timebase_info.
(rb_clock_getres): Support MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:34 PM Revision b64c2c34 (git): * bignum.c (GMP_BIG2STR_DIGITS): New constant.
(big2str_gmp): New function.
(rb_big2str1): Use big2str_gmp for big bignums.
* internal.h (rb_big2str_gmp): Declared.
* ext/-test-/bignum/big2str.c (big2str_gmp): New method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42762...
akr (Akira Tanaka)
01:38 PM Revision 4dd7a13a (git): * bignum.c (bary_mul_gmp): Use mpz_init and mpz_clear instead of
mpz_inits and mpz_clears.
Older GMP don't have them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:23 PM Feature #8840: Yielder#state
2013/9/1 marcandre (Marc-Andre Lafortune) <ruby-core@marc-andre.ca>:
>
> Your example will fail if iterated a second time.
> It will also not work correctly when using `rewind` and `next`. Check #7696.

How about adding a meth...
akr (Akira Tanaka)
04:39 AM Feature #8840: Yielder#state
judofyr (Magnus Holm) wrote:
> Can't you just use the closure?
Your example will fail if iterated a second time.
It will also not work correctly when using `rewind` and `next`. Check #7696.
marcandre (Marc-Andre Lafortune)
12:19 PM Revision 28130c1c (git): * test/net/http/test_http.rb (test_bind_to_local_port): Choose an open
port more reliably.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:38 AM Revision ed5de381 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:35 AM Revision 7dd16046 (git): * bignum.c (big2str_base_poweroftwo): Renamed from
big2str_base_powerof2.
(rb_big2str_poweroftwo): New function for test.
(big2str_generic): Extracted from rb_big2str1.
(rb_big2str_generic): New function for test.
* internal.h (rb_big2str_poweroftwo): Declared.
(rb_big2str_gener...
akr (Akira Tanaka)
10:55 AM Bug #7716: Readdressing Autoload
Hmmm.. require and load are never invoked asynchronously?
I am not sure it matters though. Its use is for very specific case. Can it be left to the programmer to ensure thread safety? I don't think the hook can be made thread safe aut...
trans (Thomas Sawyer)
09:04 AM Revision cec97f40 (git): process.c: suppress warning
* process.c (rb_clock_getres): move conditionally used variable to the
proper block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:21 AM Revision 34004844 (git): * bignum.c (big2str_2bdigits): Renamed from big2str_orig.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:32 AM Feature #6721: Object#yield_self
Another idea for the name: `Object#cast`.
```ruby
class Object
def cast(*args)
if block_given?
yield(self, *args)
else
p = args.pop
unless p.respond_to?(:call)
raise ArgumentError, 'the last...
alexeymuranov (Alexey Muranov)
04:47 AM Feature #2509: Recursive freezing?
Thanks for considering it.
I am a bit surprised about the reason for your rejection.
I mean, there are many ways in Ruby to shoot yourself in the foot and that is not a problem in my opinion.
I'm also sceptical as to how many ob...
marcandre (Marc-Andre Lafortune)
04:20 AM Feature #8846: Publicize Module#include
Great :-)
Taking Rails as an example, I find that the next in line are `define_method`, `remove_const`, `alias_method` and `attr_*`
As I stated in #6539, I believe these should be public also.
marcandre (Marc-Andre Lafortune)
04:05 AM Feature #7292 (Open): Enumerable#to_h
matz (Yukihiro Matsumoto) wrote:
> What I wanted was coner case behavior of #to_h, e.g. what if elements are not 2 elements arrays.
> ...
I think it might be best to ignore anything that is not a key-value pair. So we should use an imp...
marcandre (Marc-Andre Lafortune)
04:03 AM Revision 6fe40011 (git): * bignum.c: Remove BITSPERDIG >= INT_MAX test. The static assertion,
SIZEOF_BDIGITS <= sizeof(BDIGIT) is enough.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:41 AM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
matz (Yukihiro Matsumoto) wrote:
> The structure of instances of subclass (TT_XXX) may be different from superclasses.
> ...
I'm not sure I understand exactly what you are saying, but I am sure that the proposed patch would not cause c...
marcandre (Marc-Andre Lafortune)
02:39 AM Revision c9b3571c (git): * bignum.c (maxpow_in_bdigit): Removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:57 AM Revision e8d8e069 (git): Add assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:31 AM Revision 77f245e6 (git): * numeric.c (rb_fix_bit_length): Moved from bignum.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:00 AM Revision a0a0b61b (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:57 AM Revision 7bb549d6 (git): * internal.h (bit_length): Moved from bignum.c.
(nlz_int): Ditto.
(nlz_long): Ditto.
(nlz_long_long): Ditto.
(nlz_int128): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:09 AM Feature #8700 (Closed): Integer#bitsize (actually Fixnum#bitsize and Bignum#bitsize)
This issue was solved with changeset r42746.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* bignum.c (rb_big_bit_length): New method.
(rb_fix_bit_length...
akr (Akira Tanaka)

08/31/2013

11:09 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
timeout の変更自体について特に意見はないのですが。
`rescue Exception` は timeout に限定した問題ではなく、
exit ができないとか、Ctrl-C が効かないとか、トラブルになりがちです。
大した理由もなくそういうことをしているライブラリには
ちゃんと対応してもらうべきだと思います。
また、throw にすれば万事解決というわけではないです。
ensure を使って例外を差し替えることで同じ現象を引き起こせます。
...
mame (Yusuke Endoh)
10:45 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
すでに修正されているようなので蛇足気味ですが、
githubなどで公開されているソースコードを調べますと、
`rescue Exception` を使っているライブラリコードは広く散見され、
書籍などで紹介されている workaround はほとんど浸透していないようです。
この問題の厄介なところは、自分自身が書いたコードだけでなく、利用するライブラリの
コード中にも `rescue Exception` をしている箇所があると、大外に掛けた time...
takiuchi (Genki Takiuchi)
10:44 PM Bug #8847: opt_regexpmatch2 does not use method caching
Ah! I was misunderstanding that this is a bug fix.
Sorry for bother you.
nagachika (Tomoyuki Chikanaga)
10:27 PM Bug #8847: opt_regexpmatch2 does not use method caching
nagachika: There's no incorrect behaviour that r42742 fixes - it is merely a performance improvement.
You can use the following benchmark script as a test:
require "benchmark"
puts Benchmark.measure {
1_000_000.ti...
Anonymous
10:21 PM Bug #8847: opt_regexpmatch2 does not use method caching
Hello, charlisome.
I think this fix should be backported to ruby_2_0_0.
Could you give me a testcase to cover this fix?
I'd like to confirm the same problem exists in ruby_2_0_0 branch.
nagachika (Tomoyuki Chikanaga)
03:07 PM Bug #8847 (Closed): opt_regexpmatch2 does not use method caching
This issue was solved with changeset r42742.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c (NODE_MATCH3): pass CALL_INFO to opt_regexpmatch2
...
Anonymous
02:56 PM Bug #8847 (Closed): opt_regexpmatch2 does not use method caching
The opt_regexpmatch2 instruction does not use method caching, instead it uses rb_funcall internally.
opt_regexpmatch2 is emitted by the compiler when a literal regexp is on the right hand side of the =~ operator.
This means a full ...
Anonymous
10:34 PM Bug #8845 (Rejected): Timeout::ExitException が意図せずに rescue される事がある
削除はできないので、閉じますね。
(勘違いの勘違いか…)
sorah (Sorah Fukumori)
10:30 PM Bug #8845: Timeout::ExitException が意図せずに rescue される事がある
すみません、重複ですね。
自分で削除する権限が無いので、削除いただけるとありがたいです。
takiuchi (Genki Takiuchi)
01:40 PM Bug #8845 (Open): Timeout::ExitException が意図せずに rescue される事がある
おおっと、ごめんなさい。勘違いだったようです… sorah (Sorah Fukumori)
01:38 PM Bug #8845 (Rejected): Timeout::ExitException が意図せずに rescue される事がある
https://bugs.ruby-lang.org/issues/8730 と重複しているように思えます
sorah (Sorah Fukumori)
01:33 PM Bug #8845 (Rejected): Timeout::ExitException が意図せずに rescue される事がある
timeout.rb の実装が内部的に利用している Timeout::ExitException の無名派生クラスが、
意図しないタイミングで rescue され、timeout処理が実行されないケースがある。
以下の例では、Timeout::Error が発生しない。
timeout 1 do
begin
sleep 10
rescue Exception
end
end
takiuchi (Genki Takiuchi)
10:21 PM Feature #8809 (Closed): Process.clock_getres
This issue was solved with changeset r42744.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* process.c (rb_clock_getres): New method.
(timetick2dblnum_re...
akr (Akira Tanaka)
09:26 PM Feature #7292: Enumerable#to_h
=begin
[omit verbose intro] suffice to say we can figure the most fitting definition for (({Enumerable#to_h})) is simply:
module Enumerable
def to_h
a = []
each_with_index.each { |e,i| a << i << e }
Has...
trans (Thomas Sawyer)
01:38 PM Feature #7292 (Feedback): Enumerable#to_h
What I wanted was coner case behavior of #to_h, e.g. what if elements are not 2 elements arrays.
What kind of checks do you want to do?
The simplest implementation in #6 may work, but I'm not sure whether kind of accidental behavior ...
matz (Yukihiro Matsumoto)
07:38 AM Feature #7292 (Open): Enumerable#to_h
matz (Yukihiro Matsumoto) wrote:
> But I am not sure the following simple implementation works OK, e.g. what if an element is a object, or number, or anything not two-element array.
Agreed.
I believe we should only treat elements ...
marcandre (Marc-Andre Lafortune)
09:22 PM Feature #8842: Integer#[] with range
> I take it that the use of '&&' operator in the first 2 corner cases is a typo.
Yes, sorry.
> ...
No, you are right.
> 15[-3..Float::INFINITY] #=> 120 (equivalent to 15 << 3)
is correct.
Also, the attached slide has a bu...
mame (Yusuke Endoh)
07:24 PM Feature #8842: Integer#[] with range
I take it that the use of '&&' operator in the first 2 corner cases is a typo. But, pardon my ignorance,
in the 4th corner case, why 15[-3..Float::INFINITY] #=> 2 (equivalent to 1 << 3)?
1 << 3 is 8, and even if I assume a typo, 15 << ...
Anonymous
02:25 PM Feature #8842: Integer#[] with range
Accepted.
Matz.
matz (Yukihiro Matsumoto)
10:48 AM Feature #8842 (Closed): Integer#[] with range
=begin
I propose to extend Integer#[] accepting a range.
0b01001101[2, 4] == 0b0011
0bHGFEDCBA[2, 4] == 0bFEDC
== Use case
I believe that everyone has written a code like this:
if (n >> 2) & 0xf == 0x3
.....
mame (Yusuke Endoh)
08:57 PM Feature #8748: Integer#popcount (Fixnum#popcount and Bignum#popcount)
boris_stitnicky (Boris Stitnicky) wrote:
> The issue here seems to be, whether BitArray (like https://github.com/peterc/bitarray ) is desirable in stdlib or core.
+1 for something like BitArray in core (edit: or in stdlib).
-1 for usin...
alexeymuranov (Alexey Muranov)
07:54 PM Feature #8748: Integer#popcount (Fixnum#popcount and Bignum#popcount)
The issue here seems to be, whether BitArray (like https://github.com/peterc/bitarray ) is desirable in stdlib or core.
Anonymous
03:51 PM Feature #8748 (Rejected): Integer#popcount (Fixnum#popcount and Bignum#popcount)
I don't see the needs to add methods to use integers as bit-arrays.
Matz.
matz (Yukihiro Matsumoto)
07:23 PM Feature #8840: Yielder#state
On Sat, Aug 31, 2013 at 12:52 AM, marcandre (Marc-Andre Lafortune) <
ruby-core@marc-andre.ca> wrote:

> Defining an Enumerator that require a state is currently troublesome. For
> example, it is not really possible to define an ...
judofyr (Magnus Holm)
01:54 PM Feature #8840 (Feedback): Yielder#state
I understand the motivation, and how it works. It is very simple.
But I hesitate to introduce state easily in this age of functional programming.
Let me think for a while.
And tell me if anyone has better idea to address the issue....
matz (Yukihiro Matsumoto)
07:52 AM Feature #8840 (Rejected): Yielder#state
Defining an Enumerator that require a state is currently troublesome. For example, it is not really possible to define an equivalent of Lazy#drop in Ruby without making an assumption on the implementation.
To address this, I propose t...
marcandre (Marc-Andre Lafortune)
06:34 PM Revision 8bd7af67 (git): * bignum.c (bit_length): Renamed from bitsize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
06:26 PM Feature #8839: Class and module should return the class or module that was opened
+1 Anonymous
03:34 AM Feature #8839: Class and module should return the class or module that was opened
When thinking of potential incompatibilities, the only case I could think of where I'd ever used the result of `class` or `module` was:
~~~ruby
class << foo
self
end
~~~
Ironically, the proposed change would not introduce an ...
marcandre (Marc-Andre Lafortune)
02:57 AM Feature #8839 (Assigned): Class and module should return the class or module that was opened
With the change for https://bugs.ruby-lang.org/issues/3753, "def" forms now return the symbolic name of the method defined. Because class and module bodies just return the last expression in their bodies, this means they will now usually... headius (Charles Nutter)
06:17 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
I would also be interested in the answer to se8's question. Anonymous
05:30 PM Feature #8849 (Rejected): Thread#throw
Thread#raise と同様に、Threadのcontextでthrowする。
t = Thread.current
catch :foo do
Thread.new do
t.throw :foo
end
end
ユースケースとしては、Issue #8845 を修正するために raise の代わりに throw を使うことが考えられる。
takiuchi (Genki Takiuchi)
05:29 PM Feature #8838 (Assigned): Enhancing Numeric#step
=begin
[[DevelopersMeeting20130831Japan]]にてまつもとさんにOKをいただきましたので、近いうちに入れます。
=end
knu (Akinori MUSHA)
12:47 AM Feature #8838 (Closed): Enhancing Numeric#step
DevelopersMeeting20130831Japan用に起票します。
ちょうど3年ほど前、 [ruby-dev:42194] で私が提案したのが以下の内容です。
>  Numeric#step の仕様の拡張を提案します。
> ...
これについては、[ruby-dev:42204]にて「一晩考えた」まつもとさんにOKをい
ただきました。ただ、ここからC APIを設けようという方向に話が進みました。
> 一晩考えて、stepメソッドへの拡張そ...
knu (Akinori MUSHA)
05:27 PM Feature #8696: Process.setproctitle
プラットフォーム依存についてはすでに書いてありますが、
サポートされない環境でも例外は発生しない旨、追記しておきます。
knu (Akinori MUSHA)
03:10 PM Feature #8696: Process.setproctitle
この提案そのものには賛成なんですが、プラットフォーム依存になりそうなので、環境依存、処理系依存が明記されれば。
まつもと ゆきひろ /:|)
matz (Yukihiro Matsumoto)
05:18 PM Feature #8779: Binding#yourself
Ruby開発社会議20130831での議論の結果、
Binding#receiver
ということに。
takiuchi (Genki Takiuchi)
04:47 PM Bug #7716 (Feedback): Readdressing Autoload
I understand your motivation.
But autoload is invoked asynchronously so hooking it may be dangerous sometimes especially under threading environment.
How do you think?
Matz.
matz (Yukihiro Matsumoto)
04:44 PM Feature #8804 (Open): ONCE syntax
matz: Here's some code I wrote recently that would benefit from ONCE:
https://github.com/charliesome/better_errors/blob/master/lib/better_errors/stack_frame.rb#L30-42
Anonymous
04:42 PM Feature #8804 (Rejected): ONCE syntax
I don't see any major use-case for the function.
Reopen if you (or anyone else) have.
Matz.
matz (Yukihiro Matsumoto)
04:37 PM Misc #8843: ChangeLog のエンコーディングを UTF-8 に変更しませんか
ラテン文字圏の (一部の) 新聞や雑誌、学実雑誌、書籍などは大体次のようにします。
ラテン文字の場合 (アクセントなど付も含む)、そのまま。
ラテン文字以外の場合、ラテン文字 (アクセントなど付も含む) に変更されたものと、都合に応じて元のもの (例えば括弧内)、場合によって逆。
Linux とかは分かりませんが、W3C ではそのような例は結構あります。
例: http://www.w3.org/TR/SVG/ の著者のリストの中に次の著者名があります:...
duerst (Martin Dürst)
11:46 AM Misc #8843: ChangeLog のエンコーディングを UTF-8 に変更しませんか
例えばアラビア文字の名前でも原語表記するんですかね?
もしそうなら一部のエディタで ChangeLog がメンテナンスできなくなりそうな気がしました。
英語圏の人は日本語人名も書いてほしくないだろうし、どこまで許すかという基準が決めづらいので、
「悪いけど ASCII 表記にしてね」というのはわかりやすく、一貫していて、世界的に受け入れられている解決方法ではないでしょうか。
「他プロジェクト (Linux とか) ではこうしてる」とか、Martin 先生...
mame (Yusuke Endoh)
11:19 AM Misc #8843 (Rejected): ChangeLog のエンコーディングを UTF-8 に変更しませんか
このチケットは [Bug #8819] からのforkです。
本日は開発者会議ということなので、ChangeLogのエンコーディングをUTF-8に変更することを
提案したいと思います。
kosaki (Motohiro KOSAKI)
03:59 PM Feature #8848 (Open): Syntax for binary strings
In commit 37486, Yui (Naruse) added a String#b method as proposed in http://bugs.ruby-lang.org/issues/6767.
String#b was added to allow easy generation of binary strings; this became necessary in particular after the source file encod...
duerst (Martin Dürst)
03:57 PM Feature #8796: Use GMP to accelerate Bignum operations
This is internal. So go ahead and experiment.
Matz.
matz (Yukihiro Matsumoto)
03:52 PM Feature #8738 (Rejected): Integer#single_bit? (Actually Fixnum#single_bit? and Bignum#single_bit?)
I don't see the needs to add methods to use integers as bit-arrays.
Matz.
matz (Yukihiro Matsumoto)
03:47 PM Feature #8700: Integer#bitsize (actually Fixnum#bitsize and Bignum#bitsize)
Accepted. It should be work as 2's complement for negative numbers.
Matz.
matz (Yukihiro Matsumoto)
03:21 PM Feature #8579: Frozen string syntax
I accept the suffix idea ("frozen string"f), and string concatenation for frozen strings will be invalid ("foo"f "bar" would be syntax error).
Matz.
matz (Yukihiro Matsumoto)
03:13 PM Feature #8657: Make Find.find respect the encodings of arguments
現在findのメンテナがいないようなのであわせて立候補します。 ktsj (Kazuki Tsujimoto)
03:12 PM Revision 4ac5f571 (git): updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:09 PM Revision feb98062 (git): * 2013-09-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:09 PM Revision 89744e75 (git): * bignum.c (rb_big_bit_length): New method.
(rb_fix_bit_length): Ditto.
[ruby-core:56247] [Feature #8700]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:06 PM Feature #8846: Publicize Module#include
The basic motivation behind #include (and #prepend) being private is we didn't assume that kind of coding style.
As it turned out, that coding style became popular, I'd accept make them public.
Matz.
matz (Yukihiro Matsumoto)
02:15 PM Feature #8846 (Closed): Publicize Module#include
I propose changing Module#include to a public method.
* Background
Module#include is currently a private method.
However, the method is actually quite often used (particularly by gem library authors) for appending some features from...
matsuda (Akira Matsuda)
03:00 PM Feature #8026 (Feedback): Need Module#prepended_modules
I basically accept the idea.
But according to the slide, the optional `include_ancestors` is true, but it does mean cherry-picking prepended modules from ancestor list. I cannot think of any use case of this behavior.
Matz.
matz (Yukihiro Matsumoto)
08:29 AM Feature #8026: Need Module#prepended_modules
Slide added. I'm also proposing an optional flag to search only the receiver and not the ancestors.
I didn't put in `prepend?` but it should also be added. On the other hand, `Array.prepend?(Enumerable)` should return false, no?
marcandre (Marc-Andre Lafortune)
02:46 PM Feature #7274 (Rejected): UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
It is due to implementation limitation of CRuby.
The structure of instances of subclass (TT_XXX) may be different from superclasses.
In that case, the C implemented methods would crash.
So we prohibit them conservatively.
Matz....
matz (Yukihiro Matsumoto)
02:38 PM Feature #2509 (Rejected): Recursive freezing?
`Object#deep_freeze` means you can freeze everything recursively, by definition.
But what if the target object accidentally refers objects that are not supposed to be frozen (e.g. classes)?
That would be disaster.
So, I'd rather pre...
matz (Yukihiro Matsumoto)
08:59 AM Feature #2509: Recursive freezing?
Slide added for `deep_freeze`
marcandre (Marc-Andre Lafortune)
01:29 PM Bug #8844 (Closed): Nested ParseError in rexml
以下のように不正なXMLをパースすると
require 'rexml/document'
REXML::Document.new("<a>foo</b>")
例外が発生し、以下のようなメッセージが表示されます(完全なものは添付したparseerror.txt)。
/home/ohai/.rbenv/versions/trunk-modified/lib/ruby/2.1.0/rexml/parsers/treeparser.rb:95:
in ...
ohai (Ippei Obayashi)
01:29 PM Feature #8726: Class#source_location
了解です。Timeoutのバグは別なissueにしますね。 takiuchi (Genki Takiuchi)
01:25 PM Feature #6373: public #self
I can accept `#itself`. I want to see it isn't conflict with existing methods.
Matz.
matz (Yukihiro Matsumoto)
12:14 PM Feature #6373: public #self
marcandre: I think you made a mistake in your slide. It says "Returns the class of obj", but it should say "Returns obj" Anonymous
06:59 AM Feature #6373: public #self
Slide attached.
I hope to win the prize for simplest slide too.
marcandre (Marc-Andre Lafortune)
01:25 PM Revision a926a1f4 (git): mention that Process.clock_getres is a CRuby feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:21 PM Revision 23da5a78 (git): * process.c (rb_clock_getres): New method.
(timetick2dblnum_reciprocal): New function.
* configure.in: Check clock_getres.
[ruby-core:56780] [Feature #8809] accepted at
DevelopersMeeting20130831Japan
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20130831Japan
...
akr (Akira Tanaka)
12:53 PM Misc #8835: Introducing a semantic versioning scheme and branching policy
>> えっ。
>> いまのパッチレベルリリースはほとんどのケースでシンボルの追加があると思いますが。
>
> はい。意味を変えるという提案なので。仮に 2.0 系列に新しいスキームを適用
> していたとすると、パッチレベルリリースは半年ちょっと経ちましたがまだ2回
> だけなので現在 2.0.2 になっており、仮に年内にあと2回くらい機能追加を含
> むリリースを出したとして 2.0.4、そこで 2.1.0 が出て、前方互換性を改善す
> ...
kosaki (Motohiro KOSAKI)
12:23 PM Misc #8835: Introducing a semantic versioning scheme and branching policy
At Fri, 30 Aug 2013 19:49:59 -0400,
KOSAKI Motohiro wrote:
> えっ。
> いまのパッチレベルリリースはほとんどのケースでシンボルの追加があると思いますが。

はい。意味を変えるという提案なので。仮に 2.0 系列に新しいスキームを適用
していたとすると、パッチレベルリリースは半年ちょっと経ちましたがまだ2回
だけなので現在 2.0.2 になっており、仮に年内にあと2回くらい機能追加...
Anonymous
11:23 AM Misc #8835: Introducing a semantic versioning scheme and branching policy
>> というわけで、カウンタープロポーサルとして、TEENYを0固定にして、パッチレベルはsymbol削減方向の非互換はしないが、symbol追加の非互換はあり(rb_,
>> ruby_ prefixの関数を自モジュールにつかう拡張が悪い)というRubyオレオレルールを継続することを提案します。
>
> 固定だったら無意味なので、パッチレベルを廃止してTEENYを上げてけばいいんじゃないですかね。
> バージョンを比較したければGem::Versio...
kosaki (Motohiro KOSAKI)
09:53 AM Misc #8835: Introducing a semantic versioning scheme and branching policy
(13/08/31 8:49), KOSAKI Motohiro wrote:
> というわけで、カウンタープロポーサルとして、TEENYを0固定にして、パッチレベルはsymbol削減方向の非互換はしないが、symbol追加の非互換はあり(rb_,
> ruby_ prefixの関数を自モジュールにつかう拡張が悪い)というRubyオレオレルールを継続することを提案します。

固定だったら無意味なので、パッチレベルを廃止してTEENYを上げてけばいいんじ...
nobu (Nobuyoshi Nakada)
08:53 AM Misc #8835: Introducing a semantic versioning scheme and branching policy
2013/8/30 Akinori MUSHA <knu@idaemons.org>:
> At Fri, 30 Aug 2013 21:49:34 +0900,
> I wrote:
>> misc #8835: Introducing a semantic versioning scheme and branching policy
>> https://bugs.ruby-lang.org/issues/8835
>
>  Develop...
kosaki (Motohiro KOSAKI)
02:53 AM Misc #8835: Introducing a semantic versioning scheme and branching policy
At Fri, 30 Aug 2013 21:49:34 +0900,
I wrote:
> misc #8835: Introducing a semantic versioning scheme and branching policy
> https://bugs.ruby-lang.org/issues/8835

 DevelopersMeeting20130831Japanでのプレゼンのために、[ruby-core:56878]
[...
Anonymous
12:17 PM Revision 83a07091 (git): * bignum.c: Use GMP to accelerate big Bignum multiplication.
(bary_mul_gmp): New function.
(bary_mul): Use bary_mul_gmp.
(bigsq): Use different threshold with GMP.
* configure.in: Detect GMP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
08:17 AM Bug #8841 (Closed): Module#included_modules and prepended modules
The documentation for Module#included_modules currently states "Returns the list of modules included in +mod+."
This was never perfectly accurate, as the list also contains modules included in +mod+'s ancestors.
It now also include...
marcandre (Marc-Andre Lafortune)
07:57 AM Bug #7696 (Closed): Lazy enumerators with state can't be rewound
I created a new feature request #8840, so I'm closing this. marcandre (Marc-Andre Lafortune)
06:07 AM Revision d0d63cff (git): * compile.c (NODE_MATCH3): pass CALL_INFO to opt_regexpmatch2
* insns.def (opt_regexpmatch2): use CALL_SIMPLE_METHOD to call =~ if
the receiver is not a T_STRING [Bug #8847] [ruby-core:56916]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
05:45 AM Revision e1fd7fa0 (git): * vm_insnhelper.h (CALL_SIMPLE_METHOD): change name of 'recv' argument
so that other variable names may be used when calling this macro
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
05:07 AM Revision 7a4feec7 (git): * lib/securerandom.rb (random_bytes): Use Process.clock_gettime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:30 AM Revision 9eb14119 (git): proc.c: preserve encodings
* proc.c (mnew_from_me, rb_mod_define_method, umethod_bind),
(method_inspect): preserve class name encodings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:30 AM Revision bdbda951 (git): proc.c: local variable
* proc.c (umethod_bind): extract a local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:30 AM Revision 378161fe (git): dir.c: reduce string object
* dir.c (dir_each): get rid of allocate new string from UTF-8 string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:30 AM Revision 07bf69b0 (git): vm_method.c: [DOC] example of respond_to_missing?
* vm_method.c (obj_respond_to_missing): [DOC] respond_to_missing? is
used in the example of BasicObject.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:20 AM Bug #7648 (Rejected): GServer does not close cleanly from signal interrupt context
Holding mutex in trap is deadlockable. It is what ruby complained. The best workaround is to make new thread in trap handler and stop gserver asynchnorously, I think. kosaki (Motohiro KOSAKI)
02:16 AM Feature #7918 (Assigned): Create Signal.in_trap?()
kosaki (Motohiro KOSAKI)
01:10 AM Feature #8793 (Feedback): Ruby 2.0 and Threads under HPUX
Thank you, and does this patch work? nobu (Nobuyoshi Nakada)
12:38 AM Feature #8426: Implement class hierarchy method caching
nobu: I see you've already fixed the problem. I've removed the commit that changes ruby/encoding.h from the pull request. Anonymous
12:14 AM Feature #8426: Implement class hierarchy method caching
Why do you remove prototype declarations in ruby/encoding.h, but add old K&R style declarations instead? nobu (Nobuyoshi Nakada)

08/30/2013

11:38 PM Feature #8426: Implement class hierarchy method caching
ko1, have you had a chance to review https://github.com/ruby/ruby/pull/387 ?
Thanks
Anonymous
11:32 PM Bug #8837: net/telnet: strange implementation
Seems that it should be:
```ruby
if pt = buf.rindex(/\r\z/no)
buf, rest = buf[0 ... pt], buf[pt .. -1]
end
```
or
```ruby
if buf.chomp!("\r")
rest = "\r"...
nobu (Nobuyoshi Nakada)
10:33 PM Bug #8837 (Rejected): net/telnet: strange implementation
=begin
Net::Telnet#waitfor has IMHO a very strange line. See https://github.com/ruby/ruby/blob/trunk/lib/net/telnet.rb#L586.
As far as I can tell, this line always results in setting (({rest = ""})) due to the regular expression abov...
paddor (Patrik Wenger)
10:13 PM Bug #8836 (Closed): [BUG] Bus Error with bundler on large Gemfile when resolving dependencies
ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
rbenv -v
rbenv 0.4.0-49-g8b04303
bundle --version
Bundler version 1.3.5
gem -v
2.0.3
To reproduce run bundle install in test folder
Also i have other cras...
dammer (Damir Sharipov)
09:49 PM Misc #8835 (Closed): Introducing a semantic versioning scheme and branching policy
=begin
[This is a presentation for [[ruby:DevelopersMeeting20130831Japan]].]
Ruby's versioning scheme is currently not well defined or well
utilized.
First, RUBY_API_VERSION was introduced in 1.9.1, but has not been
properly m...
knu (Akinori MUSHA)
08:53 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
(13/08/30 15:26), Nobuyoshi Nakada wrote:
> (13/08/29 18:54), ko1 (Koichi Sasada) wrote:
>> Problems are
>> (a) miniruby can't require extension libraries
>> (b) rbinstall.rb is not invoked with -I option
>>
>> Easy way ...
nobu (Nobuyoshi Nakada)
03:29 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
(13/08/29 18:54), ko1 (Koichi Sasada) wrote:
> Problems are
> (a) miniruby can't require extension libraries
> (b) rbinstall.rb is not invoked with -I option
>
> Easy way to solve these problem is use rbinstall.rb by ./ru...
nobu (Nobuyoshi Nakada)
02:53 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
(2013/08/30 12:14), SASADA Koichi wrote:
> A patch for this approach:
http://www.atdot.net/sp/raw/m5xbsm

Note that last patch does not care about deadlock detection.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
02:23 AM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
"ko1 (Koichi Sasada)" <redmine@ruby-lang.org> wrote:
> Another solution is to embed thread.rb features (CV and Queue) as
> embeded classes.

I prefer this with no extra .so. Too many .so files hurts load time.
Just leave an e...
normalperson (Eric Wong)
03:25 PM Revision 9c53f65b (git): * 2013-08-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:25 PM Revision 6908e496 (git): encoding.h: fix conflicts
* include/ruby/encoding.h (rb_{ascii8bit,utf8,usascii}_encindex): get
rid of conflict with macros defined in internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:53 PM Feature #8834: Kernel#load_relative
(13/08/30 12:53), Joel VanderWerf wrote:
> On 08/29/2013 07:27 PM, sawa (Tsuyoshi Sawada) wrote:
>> It seems to me that people are using `Kernel#require_relative` when
>> they want to use a relative path, even in the context where...
nobu (Nobuyoshi Nakada)
12:59 PM Feature #8834: Kernel#load_relative
On 08/29/2013 07:27 PM, sawa (Tsuyoshi Sawada) wrote:
> It seems to me that people are using `Kernel#require_relative` when
> they want to use a relative path, even in the context where they are
> supposed to use `load` because of...
Anonymous
12:02 PM Feature #8834: Kernel#load_relative
sawa (Tsuyoshi Sawada) wrote:
> > phluid61
> ...
I understand. I had a slightly different definition of "script" in my head. I'd forgotten that require doesn't need an extension (and can thus load any .rb, .so, etc. file), where load ...
phluid61 (Matthew Kerwin)
11:27 AM Feature #8834: Kernel#load_relative
> phluid61
I think what you wrote is the other way around. The only-once feature is due to the division of labor, not the other way around. See this:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/21562
sawa (Tsuyoshi Sawada)
10:39 AM Feature #8834: Kernel#load_relative
This is an unusual description of the "intended difference" between the methods. I understood the difference between the two was: #require loads the file only once, #load does it every time. Yes, this implies that #load is for project-r... phluid61 (Matthew Kerwin)
10:32 AM Feature #8834 (Open): Kernel#load_relative
The intended difference between `Kernel#require` and `Kernel#load` is that the former is for external libraries and the latter is for Ruby scripts internal to the project. Considering this fact, `load` should be more likely than `require... sawa (Tsuyoshi Sawada)
01:39 PM Revision 0328cdf9 (git): ChangeLog: fix commit miss
* ChangeLog: remove duplicated commit logs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:37 PM Revision 93024c63 (git): thread_pthread.c: fill stack info by creator thread
* thread_pthread.c (native_thread_init_stack): wait the creator thread
to fill machine stack info, if get_stack_of() is available.
* thread_pthread.c (native_thread_create): fill the created thread
stack info after starting, if get_s...
nobu (Nobuyoshi Nakada)
01:37 PM Revision b59b1b9b (git): thread_pthread.c: define attr only if used
* thread_pthread.c (native_thread_create): define attr only if it is
used, and merge pthread_create() calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:37 PM Revision 7703ba85 (git): thread_pthread.c: get_main_stack
* thread_pthread.c (get_main_stack): separate function to get stack of
main thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:53 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
(2013/08/30 10:45), Tanaka Akira wrote:
> I think you should write toy example application.

For example:

def trap_in_thread(sig, &b)
q = Queue.new
Thread.new{
q.pop
b.call
}
trap(sig){
q.pus...
ko1 (Koichi Sasada)
10:53 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
2013/8/29 ko1 (Koichi Sasada) <redmine@ruby-lang.org>:

> How about to permit Queue operation in trap handler with [ruby-trunk - Feature #3620], and use Queue#push to synchronize/communicate between other threads. This is Ruby-level...
akr (Akira Tanaka)
10:17 AM Bug #8831: test-all error: OpenSSL::SSL::SSLError: SSL_write: bad write retry
FreeBSD also has failures:
4) Failure:
OpenSSL::TestPair#test_read_nonblock_no_exception [/home/chkbuild/build/20130830T000301Z/ruby/test/openssl/test_pair.rb:175]:
<nil> expected but was
<:wait_readable>.
5) Failure:
OpenS...
naruse (Yui NARUSE)
01:26 AM Revision 51f09f15 (git): * 2013-08-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:26 AM Revision f8b3123e (git): thread_pthread.c: fix vps_pagesize
* thread_pthread.c (hpux_attr_getstackaddr): vps_pagesize is defaulted
to 16 and in Kbytes. [ruby-core:56863]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom