Activity
From 09/29/2014 to 10/05/2014
10/05/2014
-
11:37 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
- Ruby 自身が signal handler を設定していたとき以外は実際に kill(2) したほうがよさそうですね。
-
03:38 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
- r45911から以下のコードを実行してもkill(2)が呼ばれないようになっています。
これは意図された変更でしょうか。
~~~
$ ruby -e 'Process.kill(:TRAP, $$)'
~~~
# これまでの挙動に戻すべきだと主張するほどのものではないですが
# これでシグナルが飛ばせるとデバッグの際に便利です。
-
09:14 PM Feature #10328 (Assigned): [PATCH] make OPT_SUPPORT_JOKE a proper VM option
- This is not a joke :)
I worry about executable size with things like [Feature #10326],
and I noticed unused instructions are emitted even with jokes disabled
This reduces executable size slightly on x86-64-linux:
text | data... -
04:09 PM Feature #10327 (Open): Bool/False/True module for '==='
ruby-core:0237 から始まる Boolean Class の話題で Boolean Module が提案されていました。
それは必要とされているのか?という疑問とともに .true? メソッドなどが議論されていました。
それを読んで、=== メソッドを利用する Bool, False, True Module を書いてみました。
これを使うと case 式で when TrueClass, FalseClass ではなく when Bool と...- 03:31 PM Revision eb4e5247 (git): * 2014-10-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:31 PM Revision e1b5111f (git): io.c: ID instead of Symbol
- * io.c (get_kwargs_exception): rb_get_kwargs() expects IDs, but
not Symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:44 PM Revision 9deb5262 (git): update doc.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:49 PM Misc #10278: [RFC] st.c: use ccan linked list
- Since we'll need it for st_reverse_foreach_check ([ruby-core:65408]),
I've implemented list_for_each_rev_safe to ccan/list:
https://lists.ozlabs.org/pipermail/ccan/2014-October/thread.html
It applies on top of two of my others intend... -
10:20 AM Bug #10325: [PATCH] test_string (test_LSHIFT_neary_long_max): skip if low on memory
- nobu@ruby-lang.org wrote:
> I'm not against that check, but we may enable that test only on 64bit
> Windows, since it is nearly impossible to reproduce on other
> platforms, because of memory usage.
OK, can you add the 64-bit Wind... -
09:48 AM Bug #10325 (Assigned): [PATCH] test_string (test_LSHIFT_neary_long_max): skip if low on memory
- I'm not against that check, but we may enable that test only on 64bit Windows, since it is nearly impossible to reproduce on other platforms, because of memory usage.
-
02:29 AM Bug #10325 (Closed): [PATCH] test_string (test_LSHIFT_neary_long_max): skip if low on memory
- I've been skipping this test for a while on my weaker systems,
but this makes it automated so it avoids triggering a swap storm
for Linux users less familiar with the test suite.
I think this only affects Linux which defaults to ove... -
09:29 AM Feature #10326 (Rejected): [PATCH] optimize: recv << "literal string"
- Concatenating literal strings to existing strings seems fairly common
practice, so avoid extra garbage when doing it. I don't know if escape
analysis is coming to Ruby, but this seems easier-to-do for now:
vm2_strcat
~~~ruby
i ... -
06:39 AM Feature #10072: [PATCH] Implement Vector.basis
- On 2014/10/03 05:51, ruby-core@marc-andre.ca wrote:
> Issue #10072 has been updated by Marc-Andre Lafortune.
>
>
> Looks good, but I'm wondering if we should use named arguments as it's really difficult to remember the order without... -
02:15 AM Misc #10312: Give people more control over how the ruby parser sees code and lexical code elements (valid/invalid - toggle options) + macros
- > That sounds like heredoc syntax, which ruby already does.
Hmm I guess you are right - I can get it into a string
that way. But the problem is - I can already get it into
a String if I do this:
'jquery +'
so your suggestion w... -
02:04 AM Bug #10324 (Closed): [PATCH] do not link openssl to ext/digest/xxx when using --with-bundled-xxx
- Applied in changeset r47802.
----------
digest/*/extconf.rb: do not link openssl when using bundled
* ext/digest/{md5,rmd160,sha1,sha2}/extconf.rb: configure OpenSSL
only if bundled libraries is not used, so that OpenSSL is not
lin... -
02:03 AM Revision bb318692 (git): digest/*/extconf.rb: do not link openssl when using bundled
- * ext/digest/{md5,rmd160,sha1,sha2}/extconf.rb: configure OpenSSL
only if bundled libraries is not used, so that OpenSSL is not
linked unnecessarily. [ruby-core:65404] [Bug #10324]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@... -
01:39 AM Bug #10252 (Closed): [PATCH] digest/rmd160 looks for wrong OpenSSL function
- Applied in changeset r47801.
----------
rmd160/extconf.rb: fix function name
* ext/digest/rmd160/extconf.rb: fix transform function name to
check. [ruby-core:65091] [Bug #10252] -
01:38 AM Revision 38dbbf33 (git): rmd160/extconf.rb: fix function name
- * ext/digest/rmd160/extconf.rb: fix transform function name to
check. [ruby-core:65091] [Bug #10252]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/04/2014
-
11:33 PM Revision acf1ea1a (git): psych: typed data
- * ext/psych/psych_emitter.c (psych_emitter_type): turn into typed
data.
* ext/psych/psych_parser.c (psych_parser_type): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:33 PM Revision 163cb5b4 (git): openssl: typed data
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:33 PM Revision 1e46f023 (git): json/parser: typed data
- * ext/json/parser/parser.rl (JSON_Parser_type): turn into typed
data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:33 PM Revision bdfc2e29 (git): json/generator: typed data
- * ext/json/generator/generator.c (JSON_Generator_State_type): turn
into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:33 PM Revision ab7695fc (git): sdbm: typed data
- * ext/sdbm/init.c (sdbm_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:33 PM Revision 20904659 (git): gdbm: typed data
- * ext/gdbm/gdbm.c (dbm_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:33 PM Revision ad48d998 (git): dbm: typed data
- * ext/dbm/dbm.c (dbm_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:29 PM Revision ba0655eb (git): ext: protoize no-arguments functions
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:09 PM Revision 5540c1de (git): ext: protoize no-arguments functions
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:56 PM Feature #10319 (Closed): [PATCH] zlib: TypedData conversion - Applied in changeset r47791.
----------
ext/zlib/zlib.c: TypedData conversion
* ext/zlib/zlib.c (zstream_mark, zstream_free): update signature
(gzfile_mark, gzfile_free): ditto
(zstream_memsize): new function for rb_data_type->dsiz... - 08:56 PM Revision 02be147c (git): ext/zlib/zlib.c: TypedData conversion
- * ext/zlib/zlib.c (zstream_mark, zstream_free): update signature
(gzfile_mark, gzfile_free): ditto
(zstream_memsize): new function for rb_data_type->dsize
(gzfile_memsize): ditto
(zstream_data_type, gzfile_data_type): new data ty... -
08:51 PM Bug #10324 (Closed): [PATCH] do not link openssl to ext/digest/xxx when using --with-bundled-xxx
- Hello,
Ruby uses bundled digest implemetation when openssl is not avaiable. I also can select them using
configure option --with-bundled-xxx. However, even using it, openssl is still linked to ext/digest/<hash>/<hash>.so
In extcon... - 03:08 PM Revision ee3675e0 (git): * 2014-10-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:07 PM Revision bc512a37 (git): parse.y: remove unused argument
- * parse.y (list_concat): remove unused argument parser, since
never allocates new node.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:13 PM Revision 6557a6b9 (git): st.c: update st_reverse_foreach
- * st.c (st_reverse_foreach): update as st_foreach().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:31 PM Revision 27ce2d13 (git): test_gem_source_git.rb: drop intended error message
- * test/rubygems/test_gem_source_git.rb (test_rev_parse): dispose
error message by git, which should be intended.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:35 AM Revision 11ad7c4d (git): test/test_syslog.rb (TestSyslog#test_log): In AIX, each output line of LOG_PERROR to stderr has an additional empty line appended, so skip that line.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 07:11 AM Revision bebb4e9d (git): test/socket/test_unix.rb (TestSocket_UNIXSocket#test_too_long_path): sockaddr_un.sun_path in AIX is defined as char[1024], so "a" * 300 is not too long. "a" * 3000 would be enough.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:24 AM Feature #10072: [PATCH] Implement Vector.basis
- Interesting idea, but it has issues, like private new currently requiring an array, and it being two steps, the first one not too clear.
I think it's best to pick between the two possibilities I gave. -
02:12 AM Misc #10278: [RFC] st.c: use ccan linked list
- I like my original patch a little more, now, especially since it passes
the test in #10321. I'll squash the following simplfication on top
if I commit: http://80x24.org/spew/m/st-ll-foreach-simple%40whir.txt -
01:33 AM Feature #10323 (Closed): [PATCH] Improving doc for Math.atan2
- The doc of `Math.atan2` is a little bit difficult to understand, so I've improved it.
Please check it when you have a time. -
12:15 AM Feature #10322 (Closed): [PATCH] Improve doc for String#<=>
- I've added only a line for indicating when `String#<=>` return `nil`
I'm sorry for sending patch and taking your time in spite of such a little things.
Please check it when you have a time. -
12:13 AM Revision b4e9ffbd (git): * ext/win32ole/sample/example*.rb: Add wait input to quit for examples
- with patch provided by @windwiny [Fixes GH-705]
https://github.com/ruby/ruby/pull/705
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:09 AM Revision 34fcb5db (git): * ext/win32ole/win32ole.c: [DOC] Fix typo in :nodoc: reported by
- @windwiny to [Fix GH-705] https://github.com/ruby/ruby/pull/705
* ext/pty/pty.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:01 AM Revision 165625e8 (git): * ext/openssl/ossl_rand.c: [DOC] Add call signature for pseudo_bytes
- and random_bytes, wrap lines at 80 chars, and remove useless
comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/03/2014
-
11:51 PM Revision 27886620 (git): * ext/openssl/ossl_rand.c: [DOC] Add rdoc for method descriptions
- By @vipulnsward [Fixes GH-657] https://github.com/ruby/ruby/pull/657
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:24 PM Revision ce63c19c (git): * ext/openssl/ossl_rand.c: Use rb_define_module_function instead of
- macro. [Fixes GH-686] https://github.com/ruby/ruby/pull/686
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:52 PM Feature #10321 (Closed): [PATCH] test st_foreach{,_check} for packed-to-unpack change
- st: test packed-to-unpacked transitions during iteration
The st_foreach and st_foreach_check functions support transitioning
from a packed to an unpacked state during iteration. However, this
functionality did not get exercised by ... -
09:19 PM Feature #10072: [PATCH] Implement Vector.basis
- @Marc-Andre Lafortune
I get your point. I admire your taste.
After some agonizing, I come up with implementing `Vector.new` (like `Array.new`) also.
And implement `Vector#basis` as for `index`.
So I mean, how about using `Vector.... -
09:08 PM Revision f895ecdc (git): ext/win32ole/win32ole_method.c(olemethod_set_member): remove
- redundant NULL check.
ext/win32ole/win32ole_type.c(oletype_set_member): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:59 PM Feature #10073: [PATCH] Implement Laplace expansion for matrix.
- Sorry, I should make that be clear.
OK, I'll update patch. Please wait for some time.
-
08:40 PM Feature #9108: Hash sub-selections
- My personal preference would be for `Hash#select(*args)` and `Hash#reject(*args)`, but if we *really* must maintain backwards compatibility for `Hash#select/reject` with no args or block then I guess `Hash#select(enum)` and `Hash#reject(...
-
05:49 PM Bug #10026: Segmentation fault
- The version I am experiencing the issue is with 2.1.2 and 2.1.3.
-
04:54 PM Bug #10311 (Feedback): Segmentation fault when starting rails server (2.2.0-preview1 & 4.2.0-beta2)
- All extension libraries were installed after 2.2.0-preview1?
Could you attach DiagnosticReports files? -
04:48 PM Feature #10320: require into module
- So Wieso wrote:
> ~~~ruby
> ...
Why the first and the last use a symbol?
The second will be difficult as `require` is not a reserved word but a mere method call.
> * maybe also allow a binding as argument, not only a module?
Doe... -
04:41 PM Misc #10312: Give people more control over how the ruby parser sees code and lexical code elements (valid/invalid - toggle options) + macros
- Robert A. Heiler wrote:
> May be an option but I am not allowed to use a ' ' character?
> ...
Of course, you can.
> So preferentially I'd prefer it to be
> ...
That "dangling operator" looks very strange to me.
-
03:25 PM Revision 273af335 (git): * .travis.yml: removed needless preparation for gcc.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:09 PM Revision b9831d21 (git): * 2014-10-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:09 PM Revision bd4aa40f (git): NEWS: mentioned about [Bug #9593]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:41 PM Revision 5eed468b (git): * .travis.yml: enabled gcc build with osx on travis.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:27 PM Bug #10230 (Closed): make install fails with mingw ruby - Applied in changeset r47774.
----------
fake.rb.in: fix make install failure
* template/fake.rb.in: fix make install failure due to MSYS path
with mingw on MSYS environment.
[ruby-core:64965] [Bug #10230] -
02:27 PM Revision 438fb669 (git): fake.rb.in: fix make install failure
- * template/fake.rb.in: fix make install failure due to MSYS path
with mingw on MSYS environment.
[ruby-core:64965] [Bug #10230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:02 PM Revision 5207d9f1 (git): * test/ruby/test_io.rb (TestIO#test_advise): avoid to infinite loop.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:02 PM Revision d36f3e3b (git): * .travis.yml: enabled test results of linux.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:52 AM Bug #10313 (Closed): Randomly build failure on Travis container.
- Applied in changeset r47771.
----------
* test/ruby/test_io.rb (TestIO#test_advise): added workaround of fadvise(2)
with tmpfs and old linux kernel. [ruby-core:65355][Bug #10313] -
09:52 AM Revision 66b6179e (git): * test/ruby/test_io.rb (TestIO#test_advise): added workaround of fadvise(2)
- with tmpfs and old linux kernel. [ruby-core:65355][Bug #10313]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:22 AM Revision bf1814d9 (git): * .travis.yml: Disabled to generate document on travis.
- Reduce test running time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:18 AM Bug #10310 (Rejected): Segmentation fault when trying to install bundle on Ruby 2.2.0dev
-
06:00 AM Bug #10310: Segmentation fault when trying to install bundle on Ruby 2.2.0dev
- Could anyone please close this?
-
05:59 AM Bug #10310: Segmentation fault when trying to install bundle on Ruby 2.2.0dev
- When I use ruby 2.2.0dev (2014-10-03 trunk 47767) [x86_64-darwin12.0], I can install bundle without error so I think I should close this ticket.
Sorry for that.
- 03:44 AM Revision 5b46b07b (git): * lib/matrix.rb: Add hstack & vstack methods.
- Based on a patch by creasywuqiong. [Fix GH-344]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:38 AM Revision f59098d1 (git): * lib/matrix.rb: Fix Matrix.rows copy bug.
- Patch by Arron Mabrey. [Fix GH-707]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:02 AM Bug #10257: Generate X.509 certificate/request/CRL with elliptic curve keys
- I just ran across this issue as well. I monkey-patched in the private? method and was able to create the x509 cert, but it still doesn't appear to work for an OpenSSL connection ( when assigned to a server context ). Can you replicate th...
10/02/2014
-
10:44 PM Feature #10320 (Open): require into module
- When requiring a library, global namespace always gets polluted, at least with one module name. So when requiring a gem with many dependencies, at least one constant enters global namespace per dependency, which can easily get out of han...
- 09:17 PM Revision 1b5acebe (git): st.c (new_size): use next_pow2 function
- Reduces object size slightly on x86-64:
text data bss dec hex filename
2782359 22400 71880 2876639 2be4df ruby.orig
2781831 22400 71880 2876111 2be2cf ruby.pow2
And on 32-bit x86:
text data bss ... - 08:59 PM Revision 7f284516 (git): * 2014-10-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:59 PM Revision d2efc00b (git): vm_trace.c (rb_tp_t): pack 56 => 48 bytes on 64-bit
- 48 bytes is a common malloc size class on x86-64 machines which
require 16-byte alignment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:52 PM Feature #10073: [PATCH] Implement Laplace expansion for matrix.
- Just to be clear: you'd like me to wait for an updated patch, or should I make the small changes myself?
-
08:51 PM Feature #10072: [PATCH] Implement Vector.basis
- Looks good, but I'm wondering if we should use named arguments as it's really difficult to remember the order without looking it up.
Vector.basis(3, 0)
# or
Vector.basis(size: 3, index: 0)
Not sure. -
08:42 PM Feature #10319 (Closed): [PATCH] zlib: TypedData conversion
- Pretty trivial, this adds internal type-checking and allows us to have a more
accurate view of memory usage. *memsize functions may be more accurate by
making the zstream structure bigger, but memory usage is usually short-lived.
W... -
07:03 PM Misc #10312: Give people more control over how the ruby parser sees code and lexical code elements (valid/invalid - toggle options) + macros
- That sounds like heredoc syntax, which ruby already does.
-
06:07 AM Misc #10312: Give people more control over how the ruby parser sees code and lexical code elements (valid/invalid - toggle options) + macros
- Sorry, the `__END__` seemed to become bold - that was not
intentionally, I hope you guys still understand what I
was trying to say. -
06:06 AM Misc #10312: Give people more control over how the ruby parser sees code and lexical code elements (valid/invalid - toggle options) + macros
- I would also like to point out that there are already some
limited or perhaps indirect ways to "control" the parser,
in at least one regards, which is the
~~~ruby
__END__
~~~
construct.
"Invalid" arbitrary syntax can be put af... -
06:58 PM Misc #10278: [RFC] st.c: use ccan linked list
- A fixup patch for packed => unpacked transitions:
http://80x24.org/spew/m/st-ccan-ll-fixup-1%4080x24.org.txt
This needs tests, but it seems the packed => unpacked transitions during
iteration are totally untested in the current R... -
06:45 PM Feature #10318 (Open): [PATCH 0/n] Let underscore be positionally matched arg to omit binding obvious variable.
- I’m so sorry for just proposing this future without PATCH right now ...
(I suppose it contains too much issues.)
After some discussions, let me implement this future.
Of course I need to obtain your consent.
Anyway, I want to... -
05:01 PM Bug #10315: Override policy for duplicated keywords
- Agreed.
Matz. -
06:22 AM Bug #10315 (Closed): Override policy for duplicated keywords
```ruby
p({k1: 'a', k1: 'b'}) #=> {:k1=>"b"}
p({k1: 'a'}.merge({k1: 'b'})) #=> {:k1=>"b"}
p(k1: 'a', k1: 'b') #=> {:k1=>"b"}
p(k1: 'a', **{k1: 'b'}) #=> {:k1=>"a"}
```
IMO the last case should also outpu...-
02:37 PM Bug #10317: JSON::State is not using the parameter space_before
- Just adding a patch that fixes the issue
-
02:03 PM Bug #10317 (Third Party's Issue): JSON::State is not using the parameter space_before
- The parameter space_before, documented as a string that is put before a : pair delimiter, is never used.
-
10:06 AM Feature #10316 (Rejected): Failsafe CSV.foreach
- I've been looking for a CSV.foreach equivalent which either
- ignores malformed CSV rows
- or returns a nil row or a row with a parsed success flag.
Can I collaborate to develop this functionallity? Symply sending a patch here?
- 09:42 AM Revision 56fa18c9 (git): * ext/etc/etc.c (etc_nprocessors): Windows support.
- see [Feature #10267]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:57 AM Revision fe18cd01 (git): test_advice show OS and filesystem when failed.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:19 AM Bug #10314: Default argument lookup fails in Ruby 2.2 for circular shadowed variable names
- Loren Segal wrote:
> 1. This seems like a breaking change in Ruby 2.2.0-preview1 that was not announced in the changelog. My guess is this change may have been unintentional, but if it was we need a changelog entry at the very least.
... -
01:53 AM Bug #10314 (Closed): Default argument lookup fails in Ruby 2.2 for circular shadowed variable names
- The following code prints `nil` in Ruby 2.2.0-preview1 but worked in all previous version of Ruby back to 1.8.7:
~~~
class Foo
def foo; "abc" end
# this default param should resolve at runtime to the #foo method call
def ... -
03:28 AM Revision 253bd7b1 (git): Describe Etc.nprocessors.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:26 AM Feature #10267: Number of processors
- Ok.
It seems that there is no problem with the method name, Etc.nprocessors.
So I committed my patch (etc-nprocessors3.patch).
Please commit your patch, kosaki-san.
(I didn't commit the patch just because separate commits makes... -
03:23 AM Feature #10267 (Closed): Number of processors
- Applied in changeset r47761.
----------
* ext/etc/etc.c (etc_nprocessors): New method.
Accepted by matz at RubyKaigi 2014.
[ruby-core:65142] [Feature #10267] -
03:23 AM Revision 7b25bd8b (git): * ext/etc/etc.c (etc_nprocessors): New method.
- Accepted by matz at RubyKaigi 2014.
[ruby-core:65142] [Feature #10267]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:12 AM Bug #10313: Randomly build failure on Travis container.
- shibata.hiroshi@gmail.com wrote:
> We tested ruby trunk every commits, but it failed randomly with linux container on travis.
>
> build log is here: https://s3.amazonaws.com/archive.travis-ci.org/jobs/36822816/log.txt
>
> It's ca... -
01:42 AM Bug #10313 (Closed): Randomly build failure on Travis container.
- We tested ruby trunk every commits, but it failed randomly with linux container on travis.
build log is here: https://s3.amazonaws.com/archive.travis-ci.org/jobs/36822816/log.txt
It's caused by fadvice(2). it details is following:
...
10/01/2014
- 11:03 PM Revision 57da36eb (git): iseq.c (rb_iseq_line_trace_each): explicit cast
- Fix https://travis-ci.org/ruby/ruby/jobs/36814282
Tested with -Wconversion since my gcc lacks -Wshorten-64-to-32
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:49 PM Feature #10267: Number of processors
- Thanks Eric.
I also found a design issue in my patch. So, I wrote v2 patch from scratch.
-
09:20 PM Feature #10267: Number of processors
- kosaki.motohiro@gmail.com wrote:
> I wrote an incrementa patch on top of akr's etc-nprocessors3.patch for this purpose.
> (see attached etc-nprocessors-kosaki.patch file.)
>
> Comments are welcome!
Minor: we need to call CPU_FRE... -
09:00 PM Feature #10267: Number of processors
- > kosaki-san said he will improve the method for container on GNU/Linux.
> ...
I wrote an incrementa patch on top of akr's etc-nprocessors3.patch for this purpose.
(see attached etc-nprocessors-kosaki.patch file.)
Comments are welco... -
09:20 PM Misc #10249: [PATCH] set rb_event_flag_t to uint32_t
- ko1@atdot.net wrote:
> I'm not sure why it is valuable, but no problem to do it.
Committed r47759 - This can open up some tiny data structure packing
opportunities. I prefer small data structures in general, as Ruby keeps
getting... - 09:13 PM Revision 11f35267 (git): ruby.h: set rb_event_flag_t to uint32_t
- This ensures a consistent implementation between 32 and 64-bit
platforms, as vm_trace.c limits events to 32-bits. This can
also open up struct packing opportunities.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47759 b2dd03c8-39d4... - 08:36 PM Revision 3aab1f84 (git): io.c (fptr_finalize): free memory before GC sweep
- This releases memory on explict calls to rb_io_close,
reducing pressure on the GC.
Final massif snapshot shows reduced heap usage after RubyGems load
(valgrind --tool=massif ./ruby -e exit)
before:
mem_heap_B=4821992
me... - 08:29 PM Revision cfc56579 (git): * 2014-10-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:29 PM Revision a17ffebf (git): marshal.c: lazy compat_tbl allocation
- In some common cases, compat_tbl is unused in dump_arg/load_arg,
so avoid malloc/free costs for the unused table.
ruby -e 'h = {a: :b}; 600000.times { Marshal.load(Marshal.dump(h)) }'
before:
real 0m2.458s
user 0m... -
07:14 PM Misc #10312: Give people more control over how the ruby parser sees code and lexical code elements (valid/invalid - toggle options) + macros
- Hi,
The problem is that they are extremely similar to the other solutions
such as:
~~~
jquery :+
~~~
Like
~~~
jquery.+
~~~
Not counting the ' ' character, that one has the same amount of
tokens as the above varia... -
06:44 PM Misc #10312: Give people more control over how the ruby parser sees code and lexical code elements (valid/invalid - toggle options) + macros
- Here are a couple of options for your use case, if you want terse syntax that is valid ruby:
jquery.+
jquery.-
or:
+jquery
-jquery -
06:28 PM Misc #10312 (Open): Give people more control over how the ruby parser sees code and lexical code elements (valid/invalid - toggle options) + macros
- Hi,
I am aware that this proposal has most likely not a chance for
implementation, but I'd still like to make it - this is why I
put it here into misc rather than bugs or features. It's misc -
like ideas!
So first allow me to in... -
05:48 PM Feature #10064: &:symbol in when clause
- Yukihiro Matsumoto wrote:
> The original idea includes dispatch based on type (Symbol), which is not a good idea in general.
I'm not sure I understand. I think the original idea would work for other types too; the syntax would just b... -
09:47 AM Feature #10064: &:symbol in when clause
- What about allowing syntax like this:
~~~ruby
->&Proc.new{|y| y.zero?} #=> Should be equivalent to ->{|x| x.zero?}
->&:zero? #=> Should be equivalent to ->{|x| x.zero?} (Symbol#to_proc applies implicitly)
~~~
This... -
04:34 PM Bug #10311: Segmentation fault when starting rails server (2.2.0-preview1 & 4.2.0-beta2)
- upd.
I also tried new rails project with postgresql database and I got seg. fault with byebug now.
After removing byebug I have seg. fault with web console.
After removing web console it finally started.
Both error logs in attach... -
04:14 PM Bug #10311 (Closed): Segmentation fault when starting rails server (2.2.0-preview1 & 4.2.0-beta2)
- I've just installed `ruby 2.2.0-preview1` with `ruby-install` (I'm not using `rvm`/`rbenv`, just `ruby-install` and `chruby`) and `rails 4.2.0-beta2`.
I've created new project, ran `bundle install` and then tried to execute `bundle exec... -
03:14 PM Bug #10310 (Rejected): Segmentation fault when trying to install bundle on Ruby 2.2.0dev
- Hi, I've encountered following error when I tried to gem install bundle.
I'm not sure what's going on so I just attached a log file here.
If there is anything I can do to solve it please let me know.
~~~
git:master ❯ gem install ... - 12:16 PM Revision 3b841719 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:16 PM Revision 8d00b43b (git): ext/win32ole/win32ole_type.c: use typed data.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:44 AM Feature #4147: Array#sample で重みを指定したい
- gogo tanaka wrote:
> こんにちは.
> ...
この件については、結局どのような仕様を入れるのかというのがポイントな気がしますが、
パッチがあった方が話が早い可能性もあるかな、といったところでしょうか。
> 2年前という事で、他の文脈がある事やどなたかが着手されている事を危惧致しました.
わたしの知る限りでは進捗ないと思います。
うらべさん、あるいは他のどなたか何かありますか? -
03:34 AM Feature #4147: Array#sample で重みを指定したい
- こんにちは.
大変昔の話を掘り返すようで恐縮ですが、こちらてパッチを書いたら取り込まれる可能性てございますか?
(もちろんそのパッチ如何によるんでしょうが)
まずはパッチ書いてからにしろという話なら申し訳ございません、
2年前という事で、他の文脈がある事やどなたかが着手されている事を危惧致しました. -
09:15 AM Revision 2b0cc32c (git): * compile.c: remove commented out code.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:48 AM Revision f17b95f2 (git): test/fileutils/test_fileutils.rb: AIX does not allow a sticky bit on a regular file.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:33 AM Revision 1c916105 (git): Fix typo in ChangeLog header
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:32 AM Revision b9ef91ef (git): * NEWS: Add RubyGems update.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:30 AM Revision 69368346 (git): * 2014-10-01
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:30 AM Revision cec4f5a9 (git): * lib/rubygems: Update to RubyGems 2.4.2.
- * test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:07 AM Bug #10309 (Rejected): Unexpected keyword parameters becomes an additional mandatory parameter
- Ah, I'm sorry. It is duplicated ticket (I can't find another ticket).
My misunderstanding.
-
06:44 AM Bug #10309 (Rejected): Unexpected keyword parameters becomes an additional mandatory parameter
- Is it an intentional behaviour?
```ruby
def foo a, b, c, k1: 1
p [a, b, c, k1]
end
foo 1, 2, {k1: 3, k2: 4}
#=> [1, 2, {:k1=>3, :k2=>4}, 1]
foo 1, 2, k1: 3, k2: 4
#=> [1, 2, {:k1=>3, :k2=>4}, 1]
```
-
05:04 AM Feature #10298: Array#float_sum (like math.fsum of Python)
- Timing.
Of course it is fast.
```
$ uname -sprsv
Darwin 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 i386
$ sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i5-3210M... -
12:13 AM Feature #10095: Object#as
- Andrew Vit wrote:
> This feature also looks a lot like a pipeline.
> ...
related: #10308
I've actually done it too before, I just literally named it pipe:
https://github.com/baweaver/pipeable
or Stream which was something to t...
09/30/2014
-
11:21 PM Feature #10308: Pipes in Ruby
- Related: #10095
-
10:06 PM Feature #10308 (Open): Pipes in Ruby
- Much akin to the Unix and Elixir piping, I think it would be an interesting feature to consider in Ruby.
There have already been a number of hack implementations of it:
https://gist.github.com/pcreux/2f87847e5e4aad37db02
https://git... -
01:25 PM Revision ffe920d6 (git): parse.y: separate ripper data type
- * parse.y (parser_data_type): separate ripper data type for from
parser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:10 PM Feature #9999: Type Annotations (Static Type Checking)
- I like the principal idea behind it.
For instance, today I wrote ruby code like this (yes, hate me for using set_ methods
but I like it visually because my brain works that way):
def set_be_verbose(i)
@be_verbose = i
end... -
09:47 AM Revision d7b32ffd (git): * ext/win32ole/win32ole_typelib.c: use typed data.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:20 AM Feature #10274: [PATCH 0/2] more rb_iseq_t reductions (and more planned)
- I reject 0002, but I don't think 0001 hurts readability.
I will update arg_simple to 0..3 from nobu's comment. -
08:29 AM Revision b208e060 (git): ext/digest: hide metadata objects for internal use
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:25 AM Revision 28b9f11d (git): protoize no-arguments functions
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:13 AM Bug #10306 (Feedback): BigNum error
- What result did you get?
The word "obvious" is not obvious. -
02:30 AM Bug #10306: BigNum error
- On Darwin (Mac OS X), I made miniruby with /usr/bin/cc and /usr/local/bin/gcc (gcc-4.8.2 installed by myself).
I got the same correct results with both minirubys:
```
$ /usr/bin/cc --version
Apple LLVM version 5.1 (clang-503.0.40) ... -
01:17 AM Revision cf5450bb (git): common.mk: mark PHONY targets
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:17 AM Revision d2be0297 (git): common.mk: update only non-existing files
- * common.mk (update-config_files): update only non-existing files,
and get rid of trying to download existing files every time.
gitweb does not send Last-Modified header.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47742 b2dd0... - 12:51 AM Revision f2673b8c (git): * 2014-09-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:51 AM Revision d3a405b9 (git): * common.mk: fixed broken reference of update-config_files task
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
09/29/2014
-
08:26 PM Misc #10307 (Closed): Add doc for Array.reject, it maintains ordering
- Hi, I'm trying to follow the instructions in http://documenting-ruby.org/step-by-step-guide.html for submitting documentation.
I sent a pull request to https://github.com/documenting-ruby/ruby/pull/42 for quality review, but didn't ge... -
06:45 PM Bug #10306: BigNum error
- Cannot be reproduced on ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]. I get the correct result:
1000000000 ** 99
# => 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000... -
04:46 PM Bug #10306 (Closed): BigNum error
- Some calculations are wrong when dealing with large bignums.
For example, try 1000000000 ** 99, the result is obviously not right. -
02:13 PM Revision ef9d1349 (git): racc/cparse: private class
- * ext/racc/cparse/cparse.c (Init_cparse): Racc::CparseParams is a
private class, undefine allocate and initialize methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:05 PM Feature #10305 (Open): Method for resolving all autoload statements / Add warning on autoload when used with chroot
- Hi everyone,
I’m currently trying to make my way to create a chrooted process using Dir.chroot. However, once these lines are executed:
~~~ ruby
Dir.chroot("/some/path/here")
Dir.chdir("/")
~~~
all libraries that use the #aut... -
01:54 PM Revision edae1c72 (git): win32/file.c: fix no user exception
- * win32/file.c (append_wstr): set expanded length, not length of
appended string. fix "probable buffer overflow" bug.
[ruby-core:65317] [Bug #10304]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47738 b2dd03c8-39d4-4d8f-98ff-82... -
01:54 PM Bug #10304 (Closed): File.expand_path crashes with tilde on Windows
- Applied in changeset r47737.
----------
string.c: fix NOFREE
* string.c (str_make_independent_expand): drop NOFREE flag after
reallocation, static buffer is not pointed anymore.
[ruby-core:65317] [Bug #10304] -
09:43 AM Bug #10304 (Closed): File.expand_path crashes with tilde on Windows
- `File.expand_path` crashes with user home which starts with tilde using mingw ruby.
`TestFileExhaustive#test_expand_path_home` in test-all crashed.
```
$ ./miniruby -e 'File.expand_path("~aaaaaaaaaaaaaaaaaaaaaa")'
-e:1: [BUG] p... -
01:54 PM Revision ef08f005 (git): string.c: fix NOFREE
- * string.c (str_make_independent_expand): drop NOFREE flag after
reallocation, static buffer is not pointed anymore.
[ruby-core:65317] [Bug #10304]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47737 b2dd03c8-39d4-4d8f-98ff-823f... -
12:17 PM Revision 2f2f92b7 (git): digest: no check for hidden objects
- * ext/digest/digest.c (get_digest_base_metadata): metadata objects
are hidden from ruby level.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:06 PM Bug #10300: Encoding error in conversion from UTF-16LE to UTF-8 to CP850
- Hello,
I just experienced the same problem than Guillaume on Windows 7 and tried your patch. It solved the problem perfectly. -
08:38 AM Feature #10274: [PATCH 0/2] more rb_iseq_t reductions (and more planned)
- -1 because of readability.
But it is possible that nobody reads it.
I don't against it but I may fix it later.
-
08:09 AM Feature #10274: [PATCH 0/2] more rb_iseq_t reductions (and more planned)
- `arg_simple` is 0..3, not 0..2.
-
08:34 AM Misc #10249: [PATCH] set rb_event_flag_t to uint32_t
- I'm not sure why it is valuable, but no problem to do it.
-
08:10 AM Bug #6785 (Open): Documentation for RubyVM::InstructionSequence
- Please mark they are implementaton and version dependent methods.
-
07:44 AM Feature #10295: [PATCH] io.c (fptr_finalize): free memory (before GC sweep)
- +1.
-
07:16 AM Feature #10238: todo: remove dependency on malloc_usable_size
- Eric Wong wrote:
> malloc_usable_size shows up at or near the top of many profiles for me.
We can check the performance impact by enabling HAVE_MALLOC_USABLE_SIZE macro.
Try this program:
```ruby
require 'benchmark'
Benchmark... -
05:57 AM Misc #10297 (Closed): r47670 make benchmark/bm_vm_thread_create_join.rb slow
- 確認ありがとうございます。
> ハングしたときとかにスレッドが何者なのか ps で見れるようにするコストということでどうかなぁ。
そうですね。では閉じておきます。 -
02:20 AM Revision b5de461a (git): date_core.c: revert const
- * ext/date/date_core.c (SimpleDateData, ComplexDateData): revert
const for aggregation assignments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:45 AM Revision cedc0d1f (git): date_core.c: more write-barriers
- * ext/date/date_core.c (SimpleDateData, ComplexDateData): constify
VALUE members to find out missing write-barriers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:49 AM Revision 036acdab (git): date_core.c: write-barrier
- * ext/date/date_core.c (d_lite_type): add write-barrier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:49 AM Revision e912c167 (git): date_core.c: typed data
- * ext/date/date_core.c (d_lite_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e