Activity
From 08/23/2013 to 08/29/2013
08/29/2013
-
08:09 PM Feature #8833 (Feedback): [PATCH] IPAddr#pred
- Add a IPAddr#pred method to return the predecessor of the ip address.
-
08:08 PM Feature #8793: Ruby 2.0 and Threads under HPUX
- On systems, I have a access to, the vps_pagesize is set to 16.
> /usr/sbin/kctune -v vps_pagesize
Tunable vps_pagesize
Description Default user page size (kBytes)
Module vm
Current Value 16 [... -
03:08 PM Feature #8793: Ruby 2.0 and Threads under HPUX
- Thank you.
I'm unsure about vps_pagesize and its default value, could you check it?
And, it might be better to use _pthread_stack_info_np(), but I couldn't find out its correct usage.
Don't you have any info, the signature, related ... -
07:07 PM Feature #8823 (Feedback): Run trap handler in an independent thread called "Signal thread"
- After discussion, I decide to reject this feature.
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 alternat... -
04:53 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- >> If you mean, trap handler automatically disable nested trap, we
>> already do since 1.9.3.
>
> That's what I meant, oops :x
Yay, I was cool! :) -
03:28 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- > Alternatively, queue trap handler execution in VM and make them
> ...
Could you elaborate a bit more?
If you mean synchronize{} automatically disable interrupt, it doesn't work when using
cond-wait.
mutex.lock
cond.wait <- t... -
06:54 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
- I rewrite to use T_STRUCT instead of T_DATA (attached).
Matsushita-san:
Could you check it?
Issue:
With ext/thraed/thread.c instead of lib/thread.rb, we can't install ruby itself.
(1) rbinstall.rb is invoked with miniruby
(2)... -
02:43 PM Bug #8831 (Closed): test-all error: OpenSSL::SSL::SSLError: SSL_write: bad write retry
- There is a test-all error on some environments from r42695.
It seems depend on openssl's version.
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20130826T224700Z.diff.html.gz
+ <n>) Error:
+OpenSSL::TestPair#test_writ... -
01:06 PM Bug #8830 (Closed): Cannot Build Tk / Ruby 2.0.0 p247 on OSX (Mountain Lion)
-
09:40 AM Bug #8830 (Closed): Cannot Build Tk / Ruby 2.0.0 p247 on OSX (Mountain Lion)
- The file ext/tk/extconf.rb seems to contain a typo (misplaced parenthesis line 318; see output of 'diff -u ' below.
The issue was reported earlier (bug #8656) for ruby 1.9.7 p448 and is now closed, but the typo is still present in the... -
12:55 PM Revision a653ba0a (git): merge revision(s) 42720: [Backport #8829]
- * ext/zlib/zlib.c (zstream_run): Fix handling of deflate streams that
need a dictionary but are being decompressed by Zlib::Inflate.inflate
(which has no option to set a dictionary). Now Zlib::NeedDict is
... -
12:52 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- kosaki (Motohiro KOSAKI) wrote:
> > 具体的にはどのように解説されてどう利用されているんでしょうか。
> ...
なるほど。
> 次に出てくるのは逆に、デーモンなどで全部捕まえたいケースで、rescue Timeout::Error, StandardError =>e
> ...
Timeout.timeoutから抜けるときには(指定がなければ)Timeout::Errorを投げるので、影響はないですね。
> それで... -
01:53 AM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- > 具体的にはどのように解説されてどう利用されているんでしょうか。
残念ながら紙の書籍は手元にありませんが、
一番多いのは http://kwfsws.g.hatena.ne.jp/kiwofusi/20111231/1325314356 みたいに
rescue Exception => e とすると、意図せずタイムアウトも拾ってしまうので注意しましょうという記述。
これは "ruby timeout 例外" で検索すると似たような注意は何... -
12:50 PM Revision 6588ba87 (git): merge revision(s) 42724: [Backport #8238]
- * vm_insnhelper.c (vm_call_method): a method entry refers the based
class/module, so should search superclass from the origin i-class
where the entry belongs to, to get rid of infinite loop when zsuper
in a ... -
10:04 AM Bug #8656: Cannot Build Ruby-Tk
- backported to ruby_2_0_0 by r42370.
-
09:12 AM Revision 5da55dfc (git): * struct.c (rb_struct_define_without_accessor_under): added.
- This function is similar to rb_define_class_under() against
rb_define_class().
* include/ruby/intern.h: add a declaration of this function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:03 AM Revision 74b85189 (git): vm_insnhelper.c: fix zsuper in prepended
- * vm_insnhelper.c (vm_call_method): a method entry refers the based
class/module, so should search superclass from the origin i-class
where the entry belongs to, to get rid of infinite loop when zsuper
in a prepended class/module. ... -
06:14 AM Feature #8811: Counterpart to `Hash#key?` for `Array`
- phluid61 (Matthew Kerwin) wrote:
> matz (Yukihiro Matsumoto) wrote:
> ...
There are two ways of using #index with an array: with non-negaitve integers, and with negaitve integers. It does not seem to make much sense to have an #index? ... -
05:59 AM Feature #8827: A method that flips the receiver and the first argument
- I think this request is mostly a duplicate of #6721.
-
01:20 AM Revision 4cdb8fd7 (git): .gdbinit: improve for displaying class/module
- * .gdbinit (rp_class): show class name, if possible.
* .gdbinit (rb_ancestors): call rp_class directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:20 AM Revision 5c143c97 (git): .gdbinit: follow classname() change
- * .gdbinit (rb_classname): follow classname() change at r36584, which
hash second argument now. reported by 36584 via IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:54 AM Revision e1e46c05 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/28/2013
-
09:05 PM Feature #8793: Ruby 2.0 and Threads under HPUX
- Nobu, thank you for your effort. I am going to test trunk ruby soon and I will let you know.
-
05:20 PM Feature #8793 (Closed): Ruby 2.0 and Threads under HPUX
- This issue was solved with changeset r42716.
Michal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
thread_pthread.c: get_stack on HP-UX
* thread_pthread.c (hpux_... -
08:41 PM Bug #8828 (Rejected): regex matching not correct
- Your bug.
Lookbehind matches the preceding part, which matches \s* in your regexp.
-
05:25 PM Bug #8828 (Rejected): regex matching not correct
- str = " [1]: http://google.com/ "Google""
str =~ /\A\s*\[(.+)\]\:\ (\S+)\s*((?<=").+(?="))/
#=> nil
#then i replace this part '(?<=").+(?=")' with '.+'
str =~ /\A\s*\[(.+)\]\:\ (\S+)\s*(.... -
08:36 PM Revision 9f2f1fcb (git): * ext/zlib/zlib.c (zstream_run): Fix handling of deflate streams that
- need a dictionary but are being decompressed by Zlib::Inflate.inflate
(which has no option to set a dictionary). Now Zlib::NeedDict is
raised instead of crashing. [ruby-trunk - Bug #8829]
* test/zlib/test_zlib.rb (TestZlibInflate):... -
05:55 PM Revision c94b0e85 (git): backport Tempfile.create so psych tests will run outside ruby trunk
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:42 PM Revision 621c6dda (git): * 2013-08-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:42 PM Revision 48602d1d (git): * ext/psych/lib/psych/scalar_scanner.rb: invalid floats should be
- treated as strings.
[Fixes GH-156] https://github.com/tenderlove/psych/issues/156
* test/psych/test_string.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:48 PM Feature #8827: A method that flips the receiver and the first argument
- charliesome, that has the same problem as nobu's. It does not return the final result. It gives back the receiver.
-
01:38 PM
Feature #8827: A method that flips the receiver and the first argument
- =begin
some_chain_of_operations_that_ends_up_with_an_array.tap(&Hash.method(:[]))
=end -
01:35 PM Feature #8827: A method that flips the receiver and the first argument
- nobu, I think you mean `tap{|ary| break ...}`, etc. That does not look concise enough for me. It might look like a small difference, but it makes huge difference when you are in the middle of a chain. It saves you from thinking extra thi...
-
01:30 PM Feature #8827: A method that flips the receiver and the first argument
- =begin
You can write as:
some_chain_of_operations_that_ends_up_with_an_array.tap {|ary| Hash[ary]}
some_chain_of_operations_that_ends_up_with_a_string.tap {|path| File.read(path)}
some_chain_of_operations_that_ends_up_with_an_obje... -
01:18 PM Feature #8827 (Closed): A method that flips the receiver and the first argument
- =begin
If it often happens that we need to pass to a method an argument that is the result of a long chain of operations:
Hash[some_chain_of_operations_that_ends_up_with_an_array]
File.read(some_chain_of_operations_that_en... -
11:25 AM Bug #8792 (Closed): HP-UX needs sys/pstat.h for missing/setproctitle.c
- This issue was solved with changeset r42713.
Michal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
configure.in: check for sys/pstat.h
* configure.in (sys/pstat.... -
10:45 AM Feature #8825 (Feedback): Symbol Argument to any?
- =begin
Do you mean it is same as this?
foo.any? {|e| e.bar}
=end
-
02:54 AM Feature #8825 (Rejected): Symbol Argument to any?
- It would be nice if `any?` could take a symbol much like `map`. For example:
foo.any?(&:bar) -
08:20 AM Revision 806ddf67 (git): thread_pthread.c: get_stack on HP-UX
- * thread_pthread.c (hpux_attr_getstackaddr): basic support for the
get_stack() under HP-UX. based on the patch by [email protected]
(Michal Rokos) at [ruby-core:56645]. [Feature #8793]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru... -
08:20 AM Revision b7aa49b9 (git): thread_pthread.c: dup code
- * thread_pthread.c (get_stack): merge duplicated code split by ifdef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:59 AM Revision 50b17c70 (git): thread_pthread.c: simplify
- * thread_pthread.c (register_cached_thread_and_wait): simplify and
reduce branches.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:53 AM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- "ko1 (Koichi Sasada)" <[email protected]> wrote:
> == Disadvantage:
> * There is a small compatibility issue because “Thread.current” on a
> trap handler is not a main thread.
This adds race conditions in existing code.
... -
03:43 AM Bug #8826 (Third Party's Issue): BigDecimal#div and #quo different behavior and inconsistencies
- BigDecimal's #div and #quo method behave differently despite the #div documentation says: "See BigDecimal#quo"
#div returns Fixnum if there is no precision argument for #div (this parameter is not documented):
```
2.0.0-p247 :018 ... -
03:36 AM Feature #8773: Binding#local_variables should work like #local_variable_set and #local_variable_get
- @ko1 do you have any thoughts about this?
-
02:25 AM Revision e6ece122 (git): configure.in: check for sys/pstat.h
- * configure.in (sys/pstat.h): fix missing header check for
missing/setproctitle.c on HP-UX. [ruby-core:56644] [Bug #8792]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:11 AM Bug #8815: Enumerable.drop_while returns an Enumerator. Calling next twice on the Enumerator raises StopIteration even if there are still items available
- Isn't that backwards?
>> [1, 2, 3].drop_while { nil }
=> [1, 2, 3]
>> [1, 2, 3].drop_while { false }
=> [1, 2, 3]
>> [1, 2, 3].drop_while { true }
=> []
-
12:07 AM Bug #6702: Date should be either required or not
- Just a short update from my side: Since my issue from comment #8 was mostly caused by bad .gemspec files from gems which didn't require 'date' before using it and most (all I know) have been fixed, I think this is not an issue any longer...
08/27/2013
-
09:23 PM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- 2013/8/27 SASADA Koichi <[email protected]>:
> I think this spec reduce incompatibility problems.
> What do you think about it?
I suspect that it causes race conditions.
The exception may be reached to the main thread with ... -
08:53 PM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- (2013/08/27 20:45), Tanaka Akira wrote:
> I suspect "raise RubyLex::TerminateLineInput" doesn't work as expected after
> your proposal is implemented because the current thread will be the
> signal thread.
I wrote a coutnerme... -
08:53 PM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- 2013/8/27 ko1 (Koichi Sasada) <[email protected]>:
> Feature #8823: Run trap handler in an independent thread called "Signal thread"
> https://bugs.ruby-lang.org/issues/8823
> How about to make an "Signal thread" to run trap ha... -
08:52 PM Feature #8823: Run trap handler in an independent thread called "Signal thread"
- I add an additonal implementation plan (called plan2) in attached PDF.
-
08:13 PM Feature #8823 (Rejected): Run trap handler in an independent thread called "Signal thread"
- = Abstract
How about to make an "Signal thread" to run trap handler?
= Problem
Now, all of thread synchronization methods are not permitted because there is a possibility of deadlock between trap handler and main thraed.
For ... - 07:54 PM Revision f26eceab (git): * 2013-08-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:54 PM Revision 00aff4d8 (git): * ext/openssl/ossl_ssl.c (ossl_ssl_read): Replace duplicate
- wait_writable with wait_readable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:11 PM Bug #8822: Incorrect encoding for ENV in Windows
- In Ruby 2.0 when assigning to ENV, seems it double encodes it.
But in Ruby 1.9 it's interesting that after assigning - it shows console's encoding, but that shouldn't be needed at all...
-
05:57 PM Bug #8822 (Closed): Incorrect encoding for ENV in Windows
- When reading `ENV` and if it contains non-ASCII - string won't have correct encoding.
In Ruby 2.0 we can force it to UTF8 (it doesn't matter what's windows encoding nor consoles) and it will be correct, but in Ruby 1.9 there's no way to... -
05:03 PM Bug #8767 (Closed): IO.copy_stream should write in binary mode.
- This issue was solved with changeset r42709.
Lin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io.c: copy in binary mode
* io.c (copy_stream_body): should write... -
04:46 PM Feature #8820 (Closed): Speed up Array#index
- This issue was solved with changeset r42704.
Thomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
array.c: optimized equality
* array.c (rb_ary_index, rb_ary_ri... -
08:19 AM Feature #8820: Speed up Array#index
- Yes, sorry. I meant to use a random index with each iteration, not `i`. But per the suggestion, I think `i % 100` would be better.
I changed and reran the benchmarks. But even so the comparison still comes out about the same ratio:
... -
06:59 AM Feature #8820: Speed up Array#index
- Joel VanderWerf <[email protected]> wrote:
> On 08/26/2013 12:57 PM, Eric Wong wrote:
> >The performance of your code varies between runs because the
> >ordering is always different and index is O(n) _worst_ case.
> >call... -
05:23 AM
Feature #8820: Speed up Array#index
- On 08/26/2013 12:57 PM, Eric Wong wrote:
> "trans (Thomas Sawyer)" <[email protected]> wrote:
>> def main
>> n = 10000000 # ten million
>> a = randPerm(100)
>>
>> t0 = Time.now
>>
>> ... -
04:59 AM Feature #8820: Speed up Array#index
- "trans (Thomas Sawyer)" <[email protected]> wrote:
> def main
> n = 10000000 # ten million
> a = randPerm(100)
>
> t0 = Time.now
>
> n.times do |i|
> a.index(i)
> end
... -
02:31 AM Feature #8820 (Closed): Speed up Array#index
- I did a quick comparison:
In Ruby
def main
n = 10000000 # ten million
a = randPerm(100)
t0 = Time.now
n.times do |i|
a.index(i)
end
puts "%.5f" % [Time.now - t0]
en... -
04:45 PM Bug #8592: when outputing to console, it's encoding is ignored for Windows
- Raster fonts are also default for PowerShell and it does crash there too.
Is it just for my Win8 installation or everyone that raster fonts are default unless you change them?
-
04:28 PM Bug #8592: when outputing to console, it's encoding is ignored for Windows
- Is it some MinGW lib's fault for this?
It's still happening with ruby 1.9.3p448 and 2.0.0p247
seems very similar to #7758 maybe it's even same bug.
Those raster fonts acts really weird...
BTW, it does crash even if I launch rub... -
11:50 AM Bug #8641 (Closed): Enumerator size argument is either mis-documented or should accept any callable
- This issue was solved with changeset r42698.
Avdi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator.c: Allow Enumerator size argument to be any callable... -
10:43 AM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- 具体的にはどのように解説されてどう利用されているんでしょうか。
-
05:07 AM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- ちょっと待った。
現在の挙動は様々な書籍などでも解説されており広く共有されている挙動なので
NEWSも書かずに変えてしまうのは適切じゃないように思います。
そもそもどこで議論した結果?
-
10:21 AM Feature #8437: custom operators, unicode
- boris_stitnicky (Boris Stitnicky) wrote:
> EDIT: .... Can't take my mind of this ... that unsightly dot, as in
> ...
Sounds like you want a preprocessor, or even a syntax interpreter/translator. ;) -
09:04 AM Feature #8811: Counterpart to `Hash#key?` for `Array`
- matz (Yukihiro Matsumoto) wrote:
> Concrete use-case please? Besides that, I don't think #index? is a good name for the function.
> ...
I think the name is reasonable. Hash defines:
* #key(value) => key of value
* #key?(key) => tru... -
08:18 AM Revision ba572748 (git): timeout.rb: raise given exception
- * lib/timeout.rb (Timeout#timeout): skip rescue clause only when no
exception class is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:03 AM Revision 8ef01921 (git): io.c: copy in binary mode
- * io.c (copy_stream_body): should write in binary mode. based on a
patch by godfat (Lin Jen-Shin) at [ruby-core:56556].
[ruby-core:56518] [Bug #8767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42709 b2dd03c8-39d4-4d8f-98ff-... -
08:02 AM Revision 1e238c5a (git): io.c: common oflags
- * io.c (copy_stream_body): move common open flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:56 AM Revision 1af4196c (git): enumerator.c: rb_check_funcall
- * enumerator.c (enumerator_size): use rb_check_funcall() instead of
respond_to? and call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:56 AM Revision 9b4b5ad2 (git): enumerator.c: add comment
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:51 AM Revision a5f18c1f (git): enumerator.c: check arg size
- * enumerator.c (enumerator_each): ensure argument array size is int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:46 AM Revision f25daa25 (git): array.c: optimized equality
- * array.c (rb_ary_index, rb_ary_rindex): use optimized equality to
improve performance. [Feature #8820]
* vm_insnhelper.c (rb_equal_opt): optimized equality function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42704 b2dd03c8-... -
07:41 AM Feature #5138 (Closed): Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
- This issue was solved with changeset r42695.
Yehuda, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (io_read_nonblock): support non-blocking reads without r... -
07:11 AM Revision f01cef20 (git): vm_insnhelper.c: reduce duplication
- * vm_insnhelper.c (vm_search_method): reduce duplicated code for the
case cache does not hit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:11 AM Revision b3392daa (git): vm_insnhelper.h: RBASIC_CLASS
- * vm_insnhelper.c (opt_eq_func): use RBASIC_CLASS() instead of HEAP_CLASS_OF().
* insns.def (opt_plus, opt_minus, opt_mult, opt_div, opt_mod, opt_lt),
(opt_gt, opt_ltlt, opt_aref, opt_aset, opt_length, opt_size),
(opt_empty_p, opt_su... -
07:08 AM Revision 92d7cdc2 (git): vm_eval.c: constify
- * vm_eval.c (rb_check_funcall, rb_check_funcall_with_hook): constify
argv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:23 AM Feature #8726: Class#source_location
- > Timeoutのバグの本質は、timeoutブロック内で rescue Exception した場合に、timeoutの実装が
> 内部的に使っている Timeout::ExitException を拾ってしまうことのようです。
>
> Timeoutの例は一例でして、Class.source_location があれば無名クラスがどこで定義されたものか
> デバッグするのが容易になる、というのが趣旨でした。
これ、整理度合いが進化してま... -
06:15 AM Bug #8821 (Closed): Add documentation for Time#w3cdtf
- These monkey-patches on Time weren't documented inside of RSS. Now they are.
-
04:04 AM Revision 69c8ab25 (git): * ext/stringio/stringio.c (strio_read_nonblock): declare local
- variables at the first of function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:04 AM Bug #8819: ChangeLog includes non us-ascii character
- I would suggest to change an encoding of Changelog to UTF-8.
Please remember why we credit contributor's name in Changelog.
It is for thanking them. Incorrect name is not a polite way..... - 02:52 AM Revision 7c7b005a (git): Amend ChangeLog for r42698
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:50 AM Revision ca7f52a3 (git): * enumerator.c: Allow Enumerator size argument to be any callable.
- Patch by Avdi Grimm. [bug #8641] [ruby-core:56032] [fix GH-362]
* test/ruby/test_enumerator.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:49 AM Revision c4fe5260 (git): * gc.c (gc_profile_clear): do rest_sweep() before clearing
- profile.current_record.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/26/2013
-
10:50 PM Revision 0805d73f (git): update NEWS for read / write nonblock
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:41 PM Revision 988ca605 (git): * io.c (io_read_nonblock): support non-blocking reads without raising
- exceptions. As in: `io.read_nonblock(size, exception: false)`
[ruby-core:38666] [Feature #5138]
* ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): ditto
* ext/stringio/stringio.c (strio_sysread): ditto
* io.c (rb_io_write_nonblock): su... - 08:24 PM Revision eadad2c9 (git): * 2013-08-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:24 PM Revision e487a7f5 (git): * lib/rubygems: Import RubyGems 2.1.0 Release Candidate
- * test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:27 PM Feature #8793: Ruby 2.0 and Threads under HPUX
- Nope, pthread_attr_init() populates default values.
-
04:53 PM Bug #8792: HP-UX needs sys/pstat.h for missing/setproctitle.c
- Hello,
it seems that I forgot to include a patch for...
I am sorry for that.
Michal -
04:25 PM Feature #8699 (Closed): Feature request: Detect line encoding problems
- This issue was solved with changeset r42691.
Matthew, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
parse.y: warn CR
* parse.y (parser_nextc): warn carriage retu... -
01:27 PM Bug #8819 (Closed): ChangeLog includes non us-ascii character
- This issue was solved with changeset r42687.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ChangeLog: convert with `iconv -t us-ascii//translit'. [Bug ... -
10:13 AM Bug #8819 (Closed): ChangeLog includes non us-ascii character
- ChangeLog should be us-ascii because local variables for emacs set "coding: us-ascii".
% ruby -e 'ARGF.each_line{|line|p line.b unless line.force_encoding("us-ascii").valid_encoding?}' ChangeLog
"\t Patches by David Rodr\xC3\xADguez... -
01:23 PM Feature #8579: Frozen string syntax
- 24.08.2013 23:55 пользователь "kstephens (Kurt Stephens)" <
[email protected]> написал:
>
>
> Issue #8579 has been updated by kstephens (Kurt Stephens).
>
>
> How about something more generic? A prefix operator that memoize... -
08:59 AM Revision cddd93a5 (git): fix typo of r42691
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:25 AM Revision a6a85a0c (git): parse.y: warn CR
- * parse.y (parser_nextc): warn carriage return in middle of line.
[ruby-core:56240] [Feature #8699]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:27 AM Revision 1a3bcf10 (git): timeout.rb: skip rescue
- * lib/timeout.rb (Timeout#timeout): should not be caught by rescue
clause. [Bug #8730]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:02 AM Revision c075b153 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:47 AM Revision ad0ef29d (git): * array.c (rb_ary_splice): use RARRAY_PTR_USE() without WB because
- there are not new relations.
* enum.c (enum_sort_by): ditto.
* struct.c (setup_struct): use RARRAY_RAWPTR().
* vm_eval.c (yield_under): ditto.
* ext/pathname/pathname.c (path_entries): use RARRAY_AREF().
* ext/pathname/pathname.c (path_s... -
04:27 AM Revision bf2a494e (git): ChangeLog: convert with `iconv -t us-ascii//translit'. [Bug #8819]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:13 AM Revision e86d9fe8 (git): * array.c (ary_ensure_room_for_push): fix typo in r42658.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:37 AM Revision 21d7cd39 (git): sizes.c.tmpl: autogenerate
- * template/sizes.c.tmpl: generate automatically by extracting
RUBY_CHECK_SIZEOF from configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:39 AM Revision c3ab2dc6 (git): * 2013-08-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:39 AM Revision ae5ac37f (git): fix typo
- * process.c (gcd_timetick_int): Renamed from gcd_timtick_int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/25/2013
-
11:24 PM Feature #8726: Class#source_location
- Timeoutのバグの本質は、timeoutブロック内で rescue Exception した場合に、timeoutの実装が
内部的に使っている Timeout::ExitExceptionの無名派生クラスを拾ってしまうことのようです。
Timeoutの例は一例でして、Class#source_location があれば無名クラスがどこで定義されたものか
デバッグするのが容易になる、というのが趣旨でした。 -
05:19 PM Bug #8816: Tempfile.new may return the same name for parallel calls
- Tempfile.create may help you to create unique file name, but it's your task to guarantee that it doesn't conflict.
-
04:23 AM Bug #8816: Tempfile.new may return the same name for parallel calls
- "akr (Akira Tanaka)" <[email protected]> wrote:
> http://bogomips.org/kgio.git/tree/test/test_unix_connect.rb :
>
> class TestKgioUnixConnect < Test::Unit::TestCase
>
> def setup
> tmp = Tempfile.new('kgio_unix')
... -
12:23 AM Bug #8816 (Third Party's Issue): Tempfile.new may return the same name for parallel calls
- Tempfile.new creates a normal file, not unix socket.
So, your report is questionable.
Note that Tempfile uses O_EXCL to exclusive file creation.
If it doesn't work, it is a problem of kernel.
I checked kgio.
It seems the tempora... -
12:07 PM Revision dac8c1e5 (git): * sizes.c (Init_sizes): Define the size of clock_t.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:48 AM Revision 36c4a301 (git): * object.c: [DOC] remove comment about trust/untrust.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:29 AM Bug #8818 (Closed): BigDecimal#power
- =begin
Optional argument `prec' to BigDecimal#power does not alter result precision:
b=BigDecimal.new("1.034482758620689655172413793103448275862068965517241379310344827586206896551724"
=> #<BigDecimal:807a50,'0.1034482758 62068965... -
04:55 AM Feature #8579: Frozen string syntax
- How about something more generic? A prefix operator that memoizes and freezes any expression result in a thread-safe manner on first eval:
%f'a frozen string' #
%f"a frozen #{interpolated} string" #
%f{a: '... -
01:53 AM Bug #8817 (Closed): Method#owner on prepended classes is an instance rather than Class/Method
- rdoc indicates that Method#owner will return a class or module that defines a method. http://www.ruby-doc.org/core-2.0/Method.html#method-i-owner
For classes that have prepended modules, the owner is actually an instance.
Example c... -
12:35 AM Feature #6216: SystemStackError backtraces should not be reduced to one line
- I'm not sure @matz/@ko1 understood what @postmodern was trying to describe.
Given an `overlfow.rb` ruby program:
~~~ruby
200.times do |i|
eval <<-RUBY_EVAL, nil, __FILE__, __LINE__ + 1
def foo_#{i}(&block)
foo_#{i+1...
08/24/2013
-
11:46 PM
Feature #8579: Frozen string syntax
- I have found a problem with using f-suffix syntax.
What should happen in this case?
"hello "f "world"
Note that this is not a problem when using %f syntax as it is a syntax error to have adjacent percent-strings like this:
... -
10:23 PM Bug #8816 (Third Party's Issue): Tempfile.new may return the same name for parallel calls
- Two simultaneous call to Tempfile.new may return the same name. This may lead
to race conditions.
There some examples of such races (unix socket can't be unlinked because it was
unlinked by another test case):
https://buildd.debi... - 04:51 PM Revision 92749430 (git): * 2013-08-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:51 PM Revision 5a0e4a58 (git): * bignum.c (BARY_SHORT_MUL): Renamed from BARY_MUL1.
- (bary_short_mul): Renamed from bary_mul1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:41 AM Feature #8809: Process.clock_getres
- I updated the patch again.
-
09:24 AM Feature #8809: Process.clock_getres
- I updated the patch.
-
09:23 AM Feature #8809: Process.clock_getres
- david_macmahon (David MacMahon) wrote:
> I know it's not SI, but I often use ASCII "u" for Greek m ("µ"), so :microsecond would be aliased by :us.
It may be possible.
I found ISO 2955.
ISO 2955: Information processing - Repres... -
08:29 AM Bug #8810: GDBM.open内で処理がブロックしたらTimeout.timeout が効かない
- 2013/8/22 ngoto (Naohisa Goto) <[email protected]>:
>
> Issue #8810 has been reported by ngoto (Naohisa Goto).
>
> ----------------------------------------
> Bug #8810: SolarisでGDBM.open内で処理がブロックしたらTimeout.timeout が効かない
... -
02:19 AM Revision cd9f60df (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:01 AM Revision 8eb27cb1 (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:38 AM Revision 46dbe3f3 (git): * 2013-08-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:38 AM Revision 811eaddf (git): * process.c (rb_clock_gettime): The emulated clock names changed.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/23/2013
-
09:44 PM Bug #8815 (Rejected): Enumerable.drop_while returns an Enumerator. Calling next twice on the Enumerator raises StopIteration even if there are still items available
- Not a bug.
Enumerable#drop_while stops if the block returns false (or nil).
You have to feed true value to the enumerator by Enumerator#feed.
enumerator.next # => 1
enumerator.feed(true)
enumerator.next # => 2
-
06:08 PM Bug #8815 (Rejected): Enumerable.drop_while returns an Enumerator. Calling next twice on the Enumerator raises StopIteration even if there are still items available
- I have an enumerable (array) that contains 3 items
[1, 2, 3].
I send drop_while without a block to this array to get an Enumerator.
enumerator = [1, 2, 3].drop_while
When I call next twice on the Enumerator
enumerator.next ... -
08:58 PM Bug #8758: Add initial documentation for SSLServer
- Hi Zachary,
Sorry for late reply.
I agree with your remarks. I will try to provide more detaled instruction and new patch tomorrow. -
02:09 PM Revision fb9b9b18 (git): win32ole.c: ID overflow
- * ext/win32ole/win32ole.c (GetIDsOfNames): check ID overflow against
DISPID, aka LONG, which is always 4 bytes.
* ext/win32ole/win32ole.c (Invoke): use ID for method name to get rid
of losing upper bits.
git-svn-id: svn+ssh://ci.ru... -
01:46 PM Revision 282bbea0 (git): add tests.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:25 PM Revision a0cac92b (git): * process.c (rb_clock_gettime): Add a cast to fix compile error by
- -Werror,-Wshorten-64-to-32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:20 PM Feature #8811 (Feedback): Counterpart to `Hash#key?` for `Array`
- Concrete use-case please? Besides that, I don't think #index? is a good name for the function.
Matz.
-
04:04 AM Feature #8811 (Feedback): Counterpart to `Hash#key?` for `Array`
- =begin
`Hash` hash `key?` to tell if a key exists without checking the value. It would be convenient if there were a counterpart in `Array`. Suppose it is called `Array#index?`. Then it should behave as follows:
[1, 2, 3].index?(... -
01:12 PM Revision 703bd175 (git): process.c: no symbol cache
- * process.c (rb_intern): no symbol cache while initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:07 PM Revision 5784aaf1 (git): configure.in: clock_t
- * configure.in (clock_t): needs time.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:46 PM Revision ca0b5118 (git): * process.c (reduce_factors): New function.
- (timetick2dblnum): Use reduce_factors.
(timetick2integer): Ditto.
(make_clock_result): Follow the above change.
(rb_clock_gettime): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:06 PM Revision f0bf7f75 (git): * process.c (timetick_int_t): Renamed from timetick_giga_count_t.
- (gcd_timtick_int): Renamed from gcd_ul and make the arguments
timetick_giga_count_t.
(reduce_fraction): Make the arguments timetick_int_t.
(timetick2integer): Ditto.
(make_clock_result): Ditto.
(timetick2dblnum): Fix the return... -
11:53 AM Revision bf9ce042 (git): Fix the previous commit.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:44 AM Revision 49b9f61f (git): * process.c (gcd_ul): New function.
- (reduce_fraction): Ditto.
(reduce_fraction): Ditto.
(timetick2dblnum): Ditto.
(timetick2integer): Ditto.
(make_clock_result): Use timetick2dblnum and timetick2integer.
(rb_clock_gettime): Follow the make_clock_result change.
... -
09:42 AM Revision 5bcdc68c (git): * array.c (ary_make_shared): shared ary as shady. Need more effort to
- make it normal object.
* array.c (rb_ary_modify): use RARRAY_PTR_USE() without WB because
there are not new relations.
* array.c (ary_ensure_room_for_unshift): use RARRAY_RAWPTR() because
there are not new relations.
git-svn-id: s... -
08:23 AM Feature #8809: Process.clock_getres
- On Aug 22, 2013, at 3:37 PM, Tanaka Akira wrote:
> Process.clock_getres can return rational if it supports
> :rational_second as a unit.
>
> The current default of unit is :float_second and
> I think float is good enough.
Agr... -
07:53 AM Feature #8809: Process.clock_getres
- 2013/8/23 David MacMahon <[email protected]>:
>>
>> Process.clock_getres(Process::CLOCK_MONOTONIC) #=> 1.0e-09
>> Process.clock_getres(Process::CLOCK_MONOTONIC_COARSE) #=> 0.00400025
>>
>> The result means that the r... -
01:23 AM Feature #8809: Process.clock_getres
- On Aug 22, 2013, at 7:33 AM, akr (Akira Tanaka) wrote:
> I made a pacth to invoke clock_getres function.
Thanks for making a patch! It makes the discussion much less abstract (more real?). I think I will try to follow your examp... -
08:17 AM Revision f539e9cb (git): win32ole.c: store directly
- * ext/win32ole/win32ole.c (ole_wc2vstr): store converted multibyte
string to string value directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision dcdde335 (git): win32ole.c: suppress a warning
- * ext/win32ole/win32ole.c (ole_vstr2wc): downcast to suppress a
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision df3c472a (git): win32ole.c: check method name length
- * ext/win32ole/win32ole.c (fole_missing): reject too long method name,
as Ruby string length is limited to long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision 91218a0e (git): win32ole.c: suppress warnings
- * ext/win32ole/win32ole.c (ole_excepinfo2msg, ole_wc2vstr): get rid of
size_t with rb_enc_str_new() to suppress warnings on x64-mswin32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision 3134c5eb (git): win32ole.c: no copy string
- * ext/win32ole/win32ole.c (foletypelib_name, foletypelib_path):
WC2VSTR() returns a string in cWIN32OLE_enc, no need to copy another
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision e2b08f40 (git): win32ole.c: fix type
- * ext/win32ole/win32ole.c (ole_method_docinfo_from_type): fix return type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:26 AM Bug #8812 (Closed): RSS: document more constants
- As part of my continued efforts to document RSS, here is the documentation for several of the constants relating to namespaces.
-
02:27 AM Revision c50d45fc (git): * array.c: introduce ARY_SHARED_OCCUPIED(shared).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:17 AM Revision fb8b2689 (git): process.c: suppress warnings
- * process.c (rb_clock_gettime): cast for tv_nsec explicitly to
suppress warnings by VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:07 AM Revision d12cf192 (git): * 2013-08-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:07 AM Revision ec026330 (git): Makefile.sub: SIZEOF_CLOCK_T
- * win32/Makefile.sub (config.h): now SIZEOF_CLOCK_T is needed for
unsigned_clock_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:19 AM Bug #8806: SEGV in Date.rfc2822
- r42654 で ruby_2_0_0 ブランチにバックポートしました。
-
12:27 AM Bug #8810 (Closed): GDBM.open内で処理がブロックしたらTimeout.timeout が効かない
- GDBM.open内で処理がブロックした場合にTimeout.timeoutが効きません。
再現方法は、Solarisにて、以下のようにGDBMをオープンしたままにして、
$ ruby -r gdbm -e 'db = GDBM.open("/var/tmp/tmpdb"); gets'
同一マシンで別のシェルで
$ ruby -r gdbm -r timeout -e 'Timeout.timeout(5) { db = GDBM.open...