Activity
From 08/17/2013 to 08/23/2013
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...
08/22/2013
-
11:33 PM Feature #8809 (Closed): Process.clock_getres
- How about Process.clock_getres method?
POSIX defines clock_getres function to provide resolution information
of clocks.
I made a pacth to invoke clock_getres function.
Process.clock_getres(Process::CLOCK_MONOTONIC) #=> 1.0e-0... -
04:19 PM Revision 335a9ef2 (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_2_0_0@42654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:14 PM Revision f79b8872 (git): merge revision(s) 42639: [Backport #8805]
- * gc.c (getrusage_time): Fallback clock_gettime to getrusage when
clock_gettime fails.
Reported by Eric Saxby. [ruby-core:56762] [Bug #8805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42653 b2... -
01:27 PM Bug #8384 (Open): Cannot build ruby against OpenSSL build with "no-ec2m"
-
01:04 PM Revision a641003f (git): * process.c (rb_clock_gettime): Strip "s" from unit names.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:19 AM Revision 3873e09c (git): * process.c (unsigned_clock_t): Defined.
- (rb_clock_gettime): Consider clock_t overflow for
ISO_C_CLOCK_BASED_CLOCK_PROCESS_CPUTIME_ID.
* configure.in: Check the size of clock_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:03 AM Bug #8673: User rest-client PUT request core dumped
- Can you include your OpenSSL version? For example, mine is:
$ ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
"OpenSSL 1.0.1e 11 Feb 2013"
-
04:14 AM Bug #8673: User rest-client PUT request core dumped
- I'm seeing regular segfaults along this code path without any fancy ssl-related stuff.
Interestingly, it's blowing up during a spec run, and when I run the segfaulting specification alone, it doesn't segfault.
c:0042 p:---- s:018... -
07:23 AM Revision 5a87332e (git): * compile.c (build_postexe_iseq): fix to setup the local table.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:50 AM Revision 7e5d63f4 (git): * compile.c (rb_iseq_compile_node): accept NODE_IFUNC to support
- custom compilation.
* compile.c (NODE_POSTEXE): compile to
"ONCE{ VMFrozenCore::core#set_postexe{...} }" with a new custom
compiler `build_postexe_iseq()'.
* vm.c (m_core_set_postexe): remove parameters (passed by a block).
git-sv... -
04:55 AM Feature #8807: Custom literals
- If you define a new literal in file "a.rb" you cannot use it in that file that defined it as it has already been parsed. This may be confusing.
-
02:23 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- KOSAKI Motohiro <[email protected]> wrote:
> > Ideally, we wouldn't even need a timer thread and we could just use
> > ppoll/pselect. But that would be a very intrusive change (and maybe too
> > incompatible with C extens...
08/21/2013
-
11:16 PM Bug #8803: Another buffer overflow
- normalperson (Eric Wong) wrote:
> "user021 (a s)" <[email protected]> wrote:
> ...
Yeah using ruby 1.9.3-p448 fixed my problem, thx alot.
-
01:53 AM Bug #8803: Another buffer overflow
- "user021 (a s)" <[email protected]> wrote:
> This might sound silly but how can i run my code with the new ruby
> 1.9.3-p448 that i installed using rbenv. when i do 'ruby -v' shows the
> old version and 'rbenv version' shows th... -
10:17 PM Revision 9438bc0c (git): Exchange order of ISO_C_CLOCK_BASED_CLOCK_PROCESS_CPUTIME_ID and
- POSIX_TIMES_BASED_CLOCK_PROCESS_CPUTIME_ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:57 PM Revision cda87d9e (git): * process.c (rb_clock_gettime): Change emulation symbols for
- Process.clock_gettime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:36 PM Bug #8384: Cannot build ruby against OpenSSL build with "no-ec2m"
- Is there any chance to get this backported into Ruby 2.0.0 as well as Ruby 1.9.3 branches? Thanks.
- 09:27 PM Revision aad08a09 (git): * 2013-08-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:27 PM Revision 47ae41ce (git): * process.c (make_clock_result): Extracted from rb_clock_gettime.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:53 PM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- > Ideally, we wouldn't even need a timer thread and we could just use
> ppoll/pselect. But that would be a very intrusive change (and maybe too
> incompatible with C extensions).
Ideally?
syscall is much slower than current ... -
07:29 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- KOSAKI Motohiro <[email protected]> wrote:
> Hi
>
> On Sat, Aug 17, 2013 at 3:37 PM, Eric Wong <[email protected]> wrote:
> > SASADA Koichi <[email protected]> wrote:
> >> (2013/08/16 10:47), normalperson (Eric Wong) ... -
04:53 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- Hi
On Sat, Aug 17, 2013 at 3:37 PM, Eric Wong <[email protected]> wrote:
> SASADA Koichi <[email protected]> wrote:
>> (2013/08/16 10:47), normalperson (Eric Wong) wrote:
>> > eventfd is a cheaper alternative to pipe for self... -
06:20 PM Feature #8807 (Open): Custom literals
- So why can't we define custom literals? There's been recent discussion about adding a new freeze literal. Would have been nice if coders could have defined it for themselves, then it would have been more clear if there really was enough ...
-
03:21 PM Bug #8806 (Closed): SEGV in Date.rfc2822
- 不正なwdayでDate.rfc2822がSEGVするので、r42100をバックポートしてください。
-
01:33 PM Revision 4c661094 (git): * process.c (rb_clock_gettime): clock() based CLOCK_PROCESS_CPUTIME_ID
- emulation implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:05 PM Revision 31a092c6 (git): * process.c (rb_proc_times): Use RB_GC_GUARD to guard objects from GC.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:36 AM Revision 4b033d26 (git): * process.c (get_clk_tck): Extracted from rb_proc_times.
- (rb_clock_gettime): times() based CLOCK_PROCESS_CPUTIME_ID emulation
is implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:31 AM Revision a24930bf (git): * process.c: POSIX_GETTIMEOFDAY_CLOCK_REALTIME is renamed to
- SUS_GETTIMEOFDAY_CLOCK_REALTIME.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:18 AM Revision 16741984 (git): * process.c (rb_clock_gettime): CLOCK_PROCESS_CPUTIME_ID emulation
- using getrusage is implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:34 AM Revision 873dd9bc (git): * gc.c (getrusage_time): Fallback clock_gettime to getrusage when
- clock_gettime fails.
Reported by Eric Saxby. [ruby-core:56762] [Bug #8805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:51 AM Revision 92246723 (git): insns.def: refine comments
- * insns.def (getinlinecache, once, opt_case_dispatch): refine some
English version comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:41 AM Bug #6701 (Closed): once literal doesn't care escape
- This issue was solved with changeset r42637.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* insns.def: fix regexp's once option behavior.
fix [ruby-tru...
08/20/2013
-
10:35 PM Bug #8803: Another buffer overflow
- normalperson (Eric Wong) wrote:
> "user021 (a s)" <[email protected]> wrote:
> ...
This might sound silly but how can i run my code with the new ruby 1.9.3-p448 that i installed using rbenv. when i do 'ruby -v' shows the old version... -
08:59 AM Bug #8803: Another buffer overflow
- "user021 (a s)" <[email protected]> wrote:
> Bug #8803: Another buffer overflow
> https://bugs.ruby-lang.org/issues/8803
> ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
> I did increase opened files li... -
05:23 AM Bug #8803 (Closed): Another buffer overflow
- Hello guys, i was running a little code written in ruby for a few minutes (more exactly https://github.com/Hood3dRob1n/Ding.rb/blob/master/ding2.rb) when it crashed, reason buffer overflow. I did increase opened files limit on my Ubuntu ...
-
10:29 PM Feature #8804: ONCE syntax
- (2013/08/20 19:30), trans (Thomas Sawyer) wrote:
> Also, can it take an optional key argument?
>
> def ONCE(k=nil,&b)
> raise unless block_given?
> ONCE_MUTEX.synchronize{
> key = k || caller(3, 1)[0]
I... -
07:30 PM Feature #8804: ONCE syntax
- Also, can it take an optional key argument?
def ONCE(k=nil,&b)
raise unless block_given?
ONCE_MUTEX.synchronize{
key = k || caller(3, 1)[0]
-
07:26 PM Feature #8804: ONCE syntax
- A use case is memoization. Instead of
def q
@q ||= (...some long calc...)
end
You could do
def q
ONCE { ...some long calc... }
end
-
06:18 PM Feature #8804: ONCE syntax
- Hello,
Do you have any use-cases to share for the new syntax?
Thanks.
Regards -
11:45 AM Feature #8804 (Assigned): ONCE syntax
- How about to introduce ONCE{...} syntax which do block only once and return the first value?
- It is similar of BEGIN{} and END{}.
- General syntax of /reg/o.
## simulation code
```ruby
ONCE_CACHE = {}
ONCE_MUTEX = Mutex.new
d... -
06:20 PM Feature #8579: Frozen string syntax
- =begin
Just two put in my 2 cents, i have suggested in a comment to #7791 to have an intermediate class between String and Symbol, but maybe frozen strings are better. What would you say about a new symbol-like literal syntax, like, for ... -
11:29 AM
Feature #8579: Frozen string syntax
- Updated slide with f suffix syntax
-
10:47 AM
Feature #8579: Frozen string syntax
- > I believe you (charliesome) *don't* care about syntax, but you want a
> ...
Correct. I have a preference toward %f (for consistency with other string types), but I am happy as long as the same string literal feature is accepted.
> ... -
10:23 AM Feature #8579: Frozen string syntax
- (2013/08/20 10:01), SASADA Koichi wrote:
> My idea is to introduce frozen suffix for (1) and once suffix for (2).
Because we already introduced "i" (imaginary number literal) and "r"
(rational number) suffixes.
overuse? :)... -
10:23 AM Feature #8579: Frozen string syntax
- (2013/08/20 8:57), charliesome (Charlie Somerville) wrote:
> ko1 - please see attached a slide for the upcoming developer meeting in Japan.
My position is negative to introduce new %f() syntax.
I like suffix that mame propos... -
08:57 AM
Feature #8579: Frozen string syntax
- ko1 - please see attached a slide for the upcoming developer meeting in Japan.
-
05:41 PM Revision 30b1947d (git): * insns.def: fix regexp's once option behavior.
- fix [ruby-trunk - Bug #6701]
* insns.def: remove `onceinlinecache' and introduce `once' instruction.
`once' doesn't use `setinlinecache' insn any more.
* vm_core.h: `union iseq_inline_storage_entry' to store once data.
* compile.c: cat... - 05:32 PM Revision a8fbb064 (git): * 2013-08-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:32 PM Revision 326bf140 (git): * gc.c (rb_gcdebug_print_obj_condition): add printing information.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:23 PM Bug #8711: 最近NoMemoryErrorが多い
- >> えーと、ENOMEMが出るからにはGB単位のメモリが未開放でないといけないのですが、
>> なんでfreeしてもOSに戻ってないんでしょう。
>
> malloc のライブラリの問題じゃないかなぁ、と。勘です。どうやって調べるの
> がいいのかな。
まず、LD_PRELOADで違うmallocロードしても再現するか確認するところからじゃないでしょうか。 -
03:23 PM Bug #8711: 最近NoMemoryErrorが多い
- 2013/8/20 Tanaka Akira <[email protected]>:
> 2013年8月19日 15:42 KOSAKI Motohiro <[email protected]>:
>
>>> 考えられる解決策:
>>> - TestFiber#test_many_fibers を削除
>>> - TestFiber#test_many_fibers を別プロセスで実行
>>> - TestFiber#test_many... -
01:29 PM Bug #8711: 最近NoMemoryErrorが多い
- 2013年8月19日 15:42 KOSAKI Motohiro <[email protected]>:
>> 考えられる解決策:
>> - TestFiber#test_many_fibers を削除
>> - TestFiber#test_many_fibers を別プロセスで実行
>> - TestFiber#test_many_fibers 後にちゃんと物理メモリを解放するように頑張る
>
> システム全体で制限... -
07:24 AM Bug #8711: 最近NoMemoryErrorが多い
- (2013/08/20 0:33), KOSAKI Motohiro wrote:
> えーと、ENOMEMが出るからにはGB単位のメモリが未開放でないといけないのですが、
> なんでfreeしてもOSに戻ってないんでしょう。
malloc のライブラリの問題じゃないかなぁ、と。勘です。どうやって調べるの
がいいのかな。
> 実害があるのが分かっているのだから、手を入れたほうがよいのではないかと
単に、開発優先度の問題ですね。... -
12:53 AM Bug #8711: 最近NoMemoryErrorが多い
- 2013/8/19 SASADA Koichi <[email protected]>:
> (2013/08/19 15:42), KOSAKI Motohiro wrote:
>>> > 考えられる解決策:
>>> > - TestFiber#test_many_fibers を削除
>>> > - TestFiber#test_many_fibers を別プロセスで実行
>>> > - TestFiber#test_many_fibers 後にちゃん... -
02:51 PM Bug #8790 (Open): r41424 以降、Solaris と gdbm 1.1.10 にて TestGDBM#test_s_open_lock が終わらない
- 今のSolarisで開発環境を作るのってどうすればいいんでしょうか。
-
01:46 PM Bug #8790 (Closed): r41424 以降、Solaris と gdbm 1.1.10 にて TestGDBM#test_s_open_lock が終わらない
- This issue was solved with changeset r42634.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/gdbm/test_gdbm.rb: skip TestGDBM#test_s_open_lock on So... -
04:46 AM Revision 4d0fd22e (git): * test/gdbm/test_gdbm.rb: skip TestGDBM#test_s_open_lock on Solaris.
- On Solaris (and platforms which do not have flock and have lockf),
with GDBM 1.10, gdbm_open(3) blocks when opening already locked
gdbm file. [Bug #8790] [ruby-dev:47631]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42634 b2dd... -
02:36 AM Bug #8778 (Closed): lib/test/ documentation is too weak
- This issue was solved with changeset r42632.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/test/: [DOC] Document Test::Unit, hide most submodules a... -
02:12 AM Bug #8798: Document all constants in lib/rss/rss.rb
- There were two small typos, one with NotAvailableValueError.
I also think the whitespace changes were unnecessary as RDoc will skip ahead and look for the next 'def', 'class', etc (somewhat). I still committed them in any case.
T... -
02:11 AM Bug #8798 (Closed): Document all constants in lib/rss/rss.rb
- This issue was solved with changeset r42631.
Steve, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rss/rss.rb: [DOC] Document for constants by Steve Klabnik
... -
02:02 AM Bug #8799 (Closed): Nodoc legacy constant
- This issue was solved with changeset r42630.
Steve, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rss/xmlparser.rb: [DOC] Hide legacy constant from rdoc
P... -
01:55 AM Bug #8802 (Closed): Minor improvements in socket extension docs
- This issue was solved with changeset r42629.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/socket/unixserver.c: [DOC] Document #accept
* ext/socket/t... -
01:17 AM Revision 86123448 (git): fix `<module:MiniTest>': Unit is not a module (TypeError)
- http://u64b.rubyci.org/~chkbuild/ruby-trunk/log/20130819T183302Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/19/2013
-
10:20 PM
Feature #8765: Literal for symbol with interpolation
- -1 here
-
08:52 PM Bug #7921: Cross-compiling ruby_2_0_0 to Windows is failing (rb_w32_pow)
- avsej (Sergey Avseyev) wrote:
> Could you specify the versions of mingw-w64 since this issue has been fixed?
Instead of automated builds packages, usage of specific builds (like rubenvb) had this issue solved.
A developer created ... -
06:56 PM Bug #7921: Cross-compiling ruby_2_0_0 to Windows is failing (rb_w32_pow)
- Could you specify the versions of mingw-w64 since this issue has been fixed?
-
06:39 PM Bug #8746: TestWEBrickCGI#test_cgi fails with mswin64 on English version of Windows
- backported to ruby_1_9_3 at r42623.
-
06:35 PM Bug #8750: unit test fix for CVE-2013-4073 seems to be incomplete
- backported to ruby_1_9_3 at r42622.
-
06:32 PM Bug #8785: backport r42282 for 2.0 and 1.9.3
- backported to ruby_1_9_3 at r42621.
-
06:23 PM Feature #8781: Use require_relative() instead of require() if possible
- On 2013/08/18 5:58, Aaron Patterson wrote:
> I am using "file moving" as a way to demonstrate how `require_relative`
> couples your file to its location on the file system. `require` does
> not have this coupling.
On the ... -
05:59 PM Bug #8711: 最近NoMemoryErrorが多い
- (2013/08/19 15:42), KOSAKI Motohiro wrote:
>> > 考えられる解決策:
>> > - TestFiber#test_many_fibers を削除
>> > - TestFiber#test_many_fibers を別プロセスで実行
>> > - TestFiber#test_many_fibers 後にちゃんと物理メモリを解放するように頑張る
> システム全体で制限がかかっているので別プロセスで実行は... -
03:53 PM Bug #8711: 最近NoMemoryErrorが多い
- 2013/8/19 SASADA Koichi <[email protected]>:
> (2013/08/01 20:18), naruse (Yui NARUSE) wrote:
>> http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20130801T103302Z.log.html.gz
>> で 32bit でも安定したような気がします。
>>
>> もうしばらく様子を見ます。
>>
>> ... -
02:53 PM Bug #8711: 最近NoMemoryErrorが多い
- (2013/08/01 20:18), naruse (Yui NARUSE) wrote:
> http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20130801T103302Z.log.html.gz
> で 32bit でも安定したような気がします。
>
> もうしばらく様子を見ます。
>
> より多くのアドレス空間を必要とするようになった事自体は仕様って理解でいいんですよね>ささださん
... -
05:36 PM Revision b8ef7988 (git): * lib/test/: [DOC] Document Test::Unit, hide most submodules and
- classes from rdoc. Since lib/test is only present as a compatibility
layer with the legacy test suite many test/unit users will be using
minitest or the test/unit gem instead. It is recommended to use one
of these alternatives for ... -
05:11 PM Revision 2572a9bf (git): * lib/rss/rss.rb: [DOC] Document for constants by Steve Klabnik
- [ruby-core:56705] [Bug #8798]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:02 PM Revision 22f81200 (git): * lib/rss/xmlparser.rb: [DOC] Hide legacy constant from rdoc
- Patch by Steve Klabnik [ruby-core:56708] [Bug #8799]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:54 PM Revision 77ca81e4 (git): * ext/socket/unixserver.c: [DOC] Document #accept
- * ext/socket/tcpserver.c: ditto
* ext/socket/udpsocket.c: [DOC] Fix indentation of documentation
* ext/socket/socket.c: ditto
Patches by David Rodríguez [ruby-core:56734] [Bug #8802]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@... - 04:20 PM Revision 12ac5fe3 (git): * 2013-08-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:20 PM Revision 2df40d4d (git): * configure.in: Define ac_cv_func_clock_gettime to yes for mingw*.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:41 PM Revision e10ab316 (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:39 PM Revision dbef5ecd (git): * include/ruby/defines.h: Fix a compilation error with
- i586-mingw32msvc-gcc of gcc-mingw32 package on Debian squeeze.
ruby/missing.h should be included before include/ruby/win32.h
because struct timespec, used in the clock_gettime declaration in
include/ruby/win32.h, is defined in ruby... -
12:00 PM Revision 21ecf88c (git): * gc.c: fix around GC_DEBUG.
- * gc.c (RVALUE::line): should be VALUE. On some environment
(such as mswin64), `int' introduces alignment mismatch.
* gc.c (newobj_of): add an assertion to check VALUE alignment.
* gc.c (aligned_malloc): `&' is low priority than `=='.
... -
11:45 AM Bug #5808: "a = []; a << a; puts JSON.dump(a)" aborted
- Oj and Yajl have no cycle detection or depth limit either.
Maybe it's worth contacting authors of all known JSON libraries, probably via the multi_json project. -
10:34 AM Feature #8751: Add offsets to method#source_location
- =begin
Although I think some other suggestion will be used if this issue gets addressed, I want to mention a cool implementation for representing source-code positions. I believe it would the right approach to take if things were done f... -
10:23 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- Sorry, I swapped | for + in the last message.
On Aug 18, 2013 5:01 PM, "David MacMahon" <[email protected]> wrote:
>
> On Aug 18, 2013, at 12:34 PM, fuadksd (Fuad Saud) wrote:
>
> > Matz rejected (({+})) for merging... -
08:59 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- Yes, you're right, I'm convinced now. +1 for it aliasing #| to
#reverse_merge.
Em 18/08/2013 18:25, "alexeymuranov (Alexey Muranov)" <[email protected]>
escreveu:
>
> Issue #7739 has been updated by alexeymuranov (Alexe... -
07:07 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- =begin
I still believe the original proposal is the most useful:
class Hash
def | other_hash
other_hash.merge self
end
end
Or, if taking the code from active support:
class Hash
def re... -
06:24 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> I'm not sure to be honest. I believe that's because in my head when I perform set1 |= set2 I read it as "discard any duplicate values in set2 when merging the values to set1" or "merge all va... -
05:50 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- Thomas, with regards to your example, I'd agree with all of it but aliasing #| to #reverse_merge instead of #merge. Having said that, in case the options are aliasing #| to #reverse_merge or not aliasing it at all, I'd prefer the former.
-
05:47 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- david_macmahon (David MacMahon) wrote:
> On Aug 17, 2013, at 5:44 PM, rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> ...
I'm not sure to be honest. I believe that's because in my head when I perform set1 |= set2 I read it as "discard any d... -
05:23 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- On Aug 18, 2013, at 12:34 PM, fuadksd (Fuad Saud) wrote:
> Matz rejected (({+})) for merging, as it is different than addition.
My understanding was that Matz rejected #+ for merging because of a concern about how to resolve key c... -
04:34 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- =begin
Matz rejected (({+})) for merging, as it is different than addition. reverse_merge would probably be closer to the concept od addition, as it only adds data to the receiver. Also, give this, isn't the reverse_merge less appropria... -
03:45 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- I certainly agree with everything in (the modified) [ruby-core:56720]#12 posting, except for the implementation of #reverse_merge!. As (currently) written, it modifies the operand in place rather than the receiver, but I suspect that I ...
- 09:38 AM Revision cc15ebe0 (git): merge revision(s) 42421,42422: [Backport #8746]
- * test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}):
mswin is not only mswin32 but also mswin64.
mswin is not only mswin32 but also mswin64. [Bug #8746]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub... - 09:35 AM Revision 66ecb1a9 (git): merge revision(s) 42429: [Backport #8750]
- * test/openssl/test_ssl.rb: Fix test for CVE-2013-4073.
Patch by Antonio Terceiro. [Bug #8750] [ruby-core:56437]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@42622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:32 AM Revision 37cdb7c1 (git): merge revision(s) 42282: [Backport #8785]
- * parse.y: fix build error with bison-3.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@42621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:32 AM Bug #8800 (Closed): Nodoc legacy constant
-
08:44 AM Revision 158f3547 (git): * test/ruby/test_fiber.rb: collect garbage fibers immediately.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:43 AM Revision e4f51f80 (git): * test/profile_test_all.rb: add `failed?' information.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:01 AM Revision 7f9f6c31 (git): process.c: retry fork if ENOMEM
- * process.c (retry_fork): retry with GC if ENOMEM occurred, to free
swap/kernel space.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:28 AM Bug #8802: Minor improvements in socket extension docs
- * Add a description for TCPServer#accept, so that the example below renders properly.
* Fix some indentation.
-
07:26 AM Bug #8802 (Closed): Minor improvements in socket extension docs
- 04:29 AM Revision 5a096edd (git): * include/ruby/win32.h (CLOCK_MONOTONIC): typo.
- * win32/win32.c: removed duplicated declarations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:03 AM Revision a3b42963 (git): configure.in: clock_gettime
- * configure.in (clock_gettime): should not overwrite cache variable
with different condtion. otherwise -lrt is not linked and the link
fails, after reconfig.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42616 b2dd03c8-39d4-4d8... -
03:57 AM Revision 0a0c9630 (git): * process.c (Init_process): Add constants: CLOCK_REALTIME_ALARM and
- CLOCK_BOOTTIME_ALARM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/18/2013
-
11:41 PM Revision e130ef20 (git): * .travis.yml (before_script): fix copy&paste miss.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:37 PM Revision 69cb8a79 (git): * .travis.yml (before_script): fix copy&paste miss.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 11:31 PM Revision dd4739c8 (git): * 2013-08-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:31 PM Revision 5dd1e83e (git): * .travis.yml (before_script): check if cached config works.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:14 PM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- Oops, fixed. Thanks. I've been writing Elixir code lately :-].
-
09:25 PM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- To condense the discussion down, would we agree to:
class Hash
def reverse_merge(h)
h.merge(self)
end
def reverse_merge!(h)
h.merge!(self)
end
def <<(pairs)
merge!(Hash === pai... -
06:19 PM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- =begin
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> As I stated in #8772, I believe #| being implemented as #reverse_merge instead of #merge is confusing. I believe the original example in the description makes sense though.
Rodrigo... -
04:59 PM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- On Aug 17, 2013, at 5:44 PM, rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> As I stated in #8772, I believe #| being implemented as #reverse_merge instead of #merge is confusing. I believe the original example in the description makes ... -
09:44 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- As I stated in #8772, I believe #| being implemented as #reverse_merge instead of #merge is confusing. I believe the original example in the description makes sense though.
-
03:27 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- =begin
While it's true that "#|=" cannot be a name for "#reverse_merge!", "#|" still can (and should, IMHO) be a name for "#reverse_merge", so using "hash |= other_hash" would still be useful (IMHO).
FWIW, I don't think one can even ... -
10:07 PM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- =begin
Allowing Hash#<< to take a key-value pair, i.e. [:a,1], provides useful polymorphism between hash and associative arrays. And that's because in Ruby the way it represents a key-value pair is via a two-element array. We see this wh... -
09:09 PM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- =begin
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> I understand how reverse_merge could be useful, but I believe that any of the alias above behaving as reverse_merge would be confusing.
Just in case, let me explain the motivation for... -
01:53 PM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- Agreed.
On Aug 17, 2013 9:37 PM, "rosenfeld (Rodrigo Rosenfeld Rosas)" <
[email protected]> wrote:
>
> Issue #8772 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas).
>
>
> I believe it would be confusing if we ha... -
09:37 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- I believe it would be confusing if we had anything different from:
#<<: alias for merge!
#|: alias for merge
I understand how reverse_merge could be useful, but I believe that any of the alias above behaving as reverse_merge wou... -
05:59 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- I don't think merge shoud be responsible for handling special cases like
the array. You really should convert the array to a hash before.
If you need to use such thing as reverse_merge!, why not use it like this:
user_opts |... -
04:31 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- trans (Thomas Sawyer) wrote:
> Actually I think #<< is good too. But it's definition needs to be a bit more flexible than just merge. That's because it needs to do this:
> ...
Thomas, why h[:a] = 1, h[:b] = 2 wouldn't work for you? Or ... -
04:26 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- david_macmahon (David MacMahon) wrote:
> Does Ruby even support compound operators like "<<|" and "<<&"?
They would need to be new operators, i think. -
04:23 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- Does Ruby even support compound operators like "<<|" and "<<&"?
Dave
On Aug 17, 2013, at 11:48 AM, alexeymuranov (Alexey Muranov) wrote:
>
> Issue #8772 has been updated by alexeymuranov (Alexey Muranov).
>
>
> =begin
>... -
03:48 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- =begin
How about (({Hash#<<})) for (({#merge!})) (plus maybe extra functionality suggested by Thomas), (({Hash#<<|})) for (({#reverse_merge!})) (plus extra), (({Hash#<<&})) for (({#merge!})) which only touches existing keys (plus extra):... -
03:23 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- On Aug 17, 2013, at 8:55 AM, alexeymuranov (Alexey Muranov) wrote:
> Maybe it is ok to use Hash#<< as #merge or similar. It would be nice however IMO to have something similar for #reverse_merge too.
I completely agree that it wo... -
12:55 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- david_macmahon (David MacMahon) wrote:
> On Aug 14, 2013, at 10:41 AM, alexeymuranov (Alexey Muranov) wrote:
> ...
I agree that Array#<<, Fixnum#<<, and String#<< are not awfully similar. Maybe it is ok to use Hash#<< as #merge! or simi... -
07:30 PM Bug #8716: segmation fault 正規表現で大量のグループを利用時
- 採用予定のパッチです。
https://github.com/k-takata/Onigmo/commit/b9fba1dc63ccb42a86e934011b468e6022fabb74
Windowsで落ちなくなったことは確認しましたが、それ以外の環境は未確認です。 -
04:37 PM Bug #5808: "a = []; a << a; puts JSON.dump(a)" aborted
- JoelMcCracken (Joel McCracken) wrote:
> I wonder what the correct behavior should be here? Recursive data structures are always tricky for serialization.
I believe current situation is not the "correct" one, at least.
If it's a JS... -
12:12 PM
Bug #8801: Splatted assignment with Enumerator::Lazy
- Good to know, thanks!
-
12:06 PM
Bug #8801 (Rejected): Splatted assignment with Enumerator::Lazy
- This is by design. Normal enumerators also work this way:
>> a = [1,2,3].each
=> #<Enumerator: ...>
> ...
=> #<Enumerator: ...>
>> b
=> #<Enumerator: ...>
> ...
=> []
Arrays are the only type of object that will unpack themsel... -
11:58 AM
Bug #8801 (Rejected): Splatted assignment with Enumerator::Lazy
- Actual:
>> a = [1,2,3].lazy
=> #<Enumerator::Lazy: [1, 2, 3]>
> ...
=> #<Enumerator::Lazy: [1, 2, 3]>
>> b
=> #<Enumerator::Lazy: [1, 2, 3]>
> ...
=> []
Expected:
>> a = [1,2,3].lazy
=> #<Enumerator::Lazy: [1, 2, 3]>
> ...
=>... -
11:27 AM Revision fe360c46 (git): * variable.c, vm_method.c: remove dead code.
- * test/ruby/test_fiber.rb, test/ruby/test_thread.rb:
change accordingly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:36 AM Revision 00b8bd5c (git): * error.c, object.c, ext/readline/README.ja: [DOC] $SAFE=4 is obsolete.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:36 AM Revision 04f0de74 (git): * error.c, file.c, gc.c, hash.c, thread.c, variable.c, vm_eval.c, bin/erb:
- $SAFE=4 is obsolete.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:53 AM Feature #8781: Use require_relative() instead of require() if possible
- FYI: For those of you who wants to estimate how a "real use case" looks
like, here I made tons of `require_relative`s on Rails
https://github.com/amatsuda/rails/compare/require_relative
Here I replaced all `require`s to `require_r... -
05:59 AM Feature #8781: Use require_relative() instead of require() if possible
- On Sat, Aug 17, 2013 at 09:00:34PM +0900, Nobuyoshi Nakada wrote:
> (13/08/17 13:13), Aaron Patterson wrote:
> > First, it *is* a real use case (as in, people actually use it in *real*
> > projects):
> >
> > [aaron@higgins ru... -
06:28 AM Bug #8800: Nodoc legacy constant
- Flaky internet made this be submitted twice, please close this in favor of #8799 :(
-
06:27 AM Bug #8800 (Closed): Nodoc legacy constant
- In lib/rss/xmparser.rb, there's a constant that's legacy only, so I nodoc'd it.
I wasn't 100% sure that this was the right decision, so I'm submitting this change on its own. -
06:25 AM Bug #8799 (Closed): Nodoc legacy constant
- In lib/rss/xmparser.rb, there's a constant that's legacy only, so I nodoc'd it.
I wasn't 100% sure that this was the right decision, so I'm submitting this change on its own. -
06:24 AM Bug #8798: Document all constants in lib/rss/rss.rb
- I got so excited I forgot to attach the patch :(
-
06:23 AM Bug #8798 (Closed): Document all constants in lib/rss/rss.rb
- There were a number of errors and other constants that weren't documented, so I documented them. :)
-
05:56 AM Bug #8797: Intermittent Segfault on 2.0.0-p247 when running 'bundle install'
- Oh, hm, looks like the backtrace got cut off. Here's the complete backtrace: https://gist.github.com/joevandyk/ec27393b41f421326149/raw/194a2646cbc83487b59198c8847ecdc9bcfec811/gistfile1.txt
-
05:43 AM Bug #8797 (Closed): Intermittent Segfault on 2.0.0-p247 when running 'bundle install'
- Running Ubuntu 12.04 32 bit in a VMWare Fusion guest on OSX. Installed ruby 2.0.0-p247 with no special compilation or install options.
I've been getting this segfault occasionally when doing bundle install's with bundler 1.3.5.
$ ... -
05:34 AM Revision 408b8110 (git): * process.c (rb_clock_gettime): Rename POSIX_TIME_CLOCK_REALTIME to
- ISO_C_TIME_CLOCK_REALTIME.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:26 AM Revision 5da36600 (git): * configure.in: Revert r42604. It causes linking librt on systems
- with newer glibc uselessly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:53 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- SASADA Koichi <[email protected]> wrote:
> (2013/08/16 10:47), normalperson (Eric Wong) wrote:
> > eventfd is a cheaper alternative to pipe for self-notification (signals) on Linux
> >
> > I will submit patches in the next few days... -
04:21 AM Revision 2a47ee5e (git): * process.c (Init_process): Add constants: CLOCK_REALTIME_COARSE,
- CLOCK_MONOTONIC_COARSE and CLOCK_BOOTTIME.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:41 AM Revision e7ad2426 (git): configure.in: clock_gettime
- * configure.in (clock_gettime): need to check with -lrt prior to check
for the function only. otherwise -lrt is not linked and the link
fails, when ac_cv_func_clock_gettime is cached as yes.
git-svn-id: svn+ssh://ci.ruby-lang.org/r... -
03:09 AM Bug #8778: lib/test/ documentation is too weak
- I have attached a patch that will do this. If there is no objection, please feel free to apply it. :)
-
01:07 AM Revision 36423762 (git): * bignum.c (rb_big2str1): Make an expression more explicit.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:03 AM Bug #8612: nil in ERB::Util.url_encode
- xibbar (Takeyuki FUJIOKA) wrote:
> Thank you.
Thank you for merging this.
08/17/2013
-
10:54 PM Feature #8765: Literal for symbol with interpolation
- > tenderlovemaking
What is your intention? -
09:23 PM Feature #8781: Use require_relative() instead of require() if possible
- Em 17-08-2013 01:16, Aaron Patterson escreveu:
> ...
>> I don't really think using require to allow such hacks is a good
>> enough reason to favor require instead of require_relative... After
>> all, Ruby already allows you to o... -
09:23 PM Feature #8781: Use require_relative() instead of require() if possible
- (13/08/17 13:13), Aaron Patterson wrote:
> First, it *is* a real use case (as in, people actually use it in *real*
> projects):
>
> [aaron@higgins ruby (trunk)]$ git grep require_relative | grep '\.\.' | wc -l
> 45
> ... -
08:51 PM Feature #8781: Use require_relative() instead of require() if possible
- But it doesn't matter *if* it is downward, b/c it is relative to the internal structure. If I move something around in my internal structure, that I might have alter a require statement is to be expected. In your example, if we move `foo...
-
01:23 PM Feature #8781: Use require_relative() instead of require() if possible
- On Fri, Aug 16, 2013 at 09:35:04AM -0300, Rodrigo Rosenfeld Rosas wrote:
> Em 16-08-2013 03:24, Aaron Patterson escreveu:
> >On Fri, Aug 16, 2013 at 03:00:59PM +0900, SASADA Koichi wrote:
> >>(2013/08/16 14:21), Aaron Patterson wr... -
01:23 PM Feature #8781: Use require_relative() instead of require() if possible
- On Sat, Aug 17, 2013 at 07:17:50AM +0900, trans (Thomas Sawyer) wrote:
>
> Issue #8781 has been updated by trans (Thomas Sawyer).
>
>
> > $ echo "require_relative '../../foo'" > lib/foo/bar/baz.rb
>
> Seriously? That i... -
07:17 AM Feature #8781: Use require_relative() instead of require() if possible
- > $ echo "require_relative '../../foo'" > lib/foo/bar/baz.rb
Seriously? That is not a real use case. Proper use of require_relative is downward, not upward. -
05:23 AM Feature #8781: Use require_relative() instead of require() if possible
- Thank you, Aaron, that was what I was trying to say, but put much better. <3
-
08:23 PM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- (2013/08/16 10:47), normalperson (Eric Wong) wrote:
> eventfd is a cheaper alternative to pipe for self-notification (signals) on Linux
>
> I will submit patches in the next few days/weeks unless there are objections
> (or some... -
06:53 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- Ignore my first patch, eventfd_compat function should have void return, not int.
Sorry for the confusion -
06:40 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- [PATCH] thread_pthread: use eventfd under Linux for timer thread
The timer thread is an ideal use case for eventfd because it is
only used to signal wakeups and not transfer data.
From eventfd(2) manpage:
Applications can us... -
07:20 PM Bug #8737: [BUG] Bus Error
- Ok, clear. Will work on an example.
-
06:04 PM Bug #8737: [BUG] Bus Error
- nijikon (Tomasz Pajor) wrote:
> Did anybody had a look at this? Is the backtrace enough?
It's not enough.
Please give us the code to reproduce your problem.
-
06:21 PM Revision c106d194 (git): * bignum.c (rb_big2str1): Use power_level instead of bitsize(xn).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:48 PM Revision 517c201e (git): * 2013-08-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:48 PM Revision 908e7312 (git): * bignum.c (BIGDIVREM_EXTRA_WORDS): Redefine to 1.
- (bigdivrem_num_extra_words): Removed.
(bigdivrem_normal): Simplefied.
(big2str_karatsuba): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:47 PM Bug #5808: "a = []; a << a; puts JSON.dump(a)" aborted
- I wonder what the correct behavior should be here? Recursive data structures are always tricky for serialization.
Edit: I should also mention that I just verified this bug's existence on 2.0.0-p0. -
02:25 PM Revision f79aeb60 (git): * test/ruby/test_time.rb: use the in_timezone() helper
- and define it at the top with other helpers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:20 PM Revision 43b80e09 (git): * test/ruby/test_time.rb (#in_timezone): fix typo of r42596
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:40 PM Revision 9b4e9244 (git): * ChangeLog: more description a bit. [Bug #8795]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:20 PM Revision 5685abe6 (git): time.c: ignore invalid data
- * time.c (time_mload): ignore invalid offset and zone.
[ruby-core:56648] [Bug #8795]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:23 AM Revision 61313ade (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:13 AM Revision ce34fce8 (git): * process.c: [DOC] MACH_ABSOLUTE_TIME_CLOCK_MONOTONIC is an
- available emulation for a monotonic clock on Darwin.
https://developer.apple.com/library/mac/qa/qa1398/_index.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:53 AM Feature #8796: Use GMP to accelerate Bignum operations
- 2013/8/17 Eric Wong <[email protected]>:
> Is there more performance improvement without the conversion?
>
> How about push the conversion cost to legacy C API users to make
> Bignum faster for pure-Ruby use in a future p... -
04:53 AM Feature #8796: Use GMP to accelerate Bignum operations
- "akr (Akira Tanaka)" <[email protected]> wrote:
> If a user don't want to use GMP, a configure option, --without-gmp,
> disables this feature.
> Since GMP is licensed as LGPL, some people would need it.
> However I think most people ... -
04:10 AM Feature #8796 (Closed): Use GMP to accelerate Bignum operations
- How about using GMP to accelerate Bignum operations?
GMP: The GNU Multiple Precision Arithmetic Library
http://gmplib.org/
I wrote a simple patch to use GMP to accelerate Bignum multiplication.
If a user don't want to use GMP, ... -
08:24 AM Revision 2a0482b4 (git): * process.c: revert r42591. Only an emulation is available on Darwin.
- [ruby-core:56672]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:22 AM Feature #8793 (Feedback): Ruby 2.0 and Threads under HPUX
- Does pthread_attr_init() set the current thread info?
-
01:25 AM Bug #8785 (Assigned): backport r42282 for 2.0 and 1.9.3
- r42590 で ruby_2_0_0 へバックポートしました。
担当者を変更しておきます。 -
01:03 AM Feature #8700: Integer#bitsize (actually Fixnum#bitsize and Bignum#bitsize)
- akr (Akira Tanaka) wrote:
> * bitsize may be used to estimate the time or space cost of an algorithm.
> ...
I found another reason bit_length is preferable over Math.log2.
Math.log2(n) returns Infinity when n is not representable ... -
12:40 AM Bug #8746: TestWEBrickCGI#test_cgi fails with mswin64 on English version of Windows
- r42421 およびその ChangeLog の追記である r42422 を r42589 で ruby_2_0_0 ブランチにバックポートしました。
-
12:37 AM Bug #8750: unit test fix for CVE-2013-4073 seems to be incomplete
- Backported to ruby_2_0_0 branch at r42588.