Project

General

Profile

Activity

From 08/04/2015 to 08/10/2015

08/10/2015

11:26 PM Feature #11429: Local variable assignment via regex ===
They are different stories.
Enabling assignment via `Regexp#===` doesn't mean it via `when`.
nobu (Nobuyoshi Nakada)
08:42 PM Feature #11429 (Open): Local variable assignment via regex ===
Currently, this assigns the `username` variable:
```ruby
/(?<username>.*)@.*\..*/ =~ "seanlinsley@example.com"
```
But this does not:
```ruby
/(?<username>.*)@.*\..*/ === "seanlinsley@example.com"
```
If it did, it would ...
seanlinsley (Sean Linsley)
09:27 PM Bug #11430 (Closed): Redefining a lazy-loaded variable in child context within RSpec spec causes crash
I had something like the following in my spec. While not great code design, it does successfully crash Ruby.
~~~ruby
let(:my_hash) do
{
key_one: 'val_one'
}
end
subject { post :create, my_hash, format: :json }
conte...
andrewchhwong (Andrew Wong)
06:18 PM Bug #11423: ruby_cleanup does not reset initialized flag
nobu@ruby-lang.org wrote:
> That cycle is not guaranteed until MVM is supported.

Is MVM still on the roadmap? [ruby-core:64626]
I may take another look at cleaning up internals for MVM
normalperson (Eric Wong)
05:11 PM Bug #11344: Thread.handle_interrupt(TimeoutError => :never) が効かない
r51523 で `ruby_2_2` への r51213 の backport + Timeout::ExitException の Timeout::Error の別名として追加を行いました。 nagachika (Tomoyuki Chikanaga)
05:08 PM Revision 40270906 (git): merge revision(s) 51213: [Backport #11344]
* lib/timeout.rb (ExitException): removed internal exception class
and use Timeout::Error instead, as using throw/catch to isolate
each timeouts now. [ruby-dev:49179] [Bug #11344]
* lib/timeout.rb (ExitExcep...
nagachika (Tomoyuki Chikanaga)
04:55 PM Bug #11382: Keyword arguments randomly nullified
I've tried with 2.2.0-dev and it worked. Thanks! zogash (Milovan Zogovic)
03:20 AM Bug #11382 (Closed): Keyword arguments randomly nullified
Hello, Thank you for your report.
I think it is related to #11027 and already finxed on trunk and ruby_2_2 branch HEAD.
~~~
$ ruby -v bug11382.rb
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
a: "A", b: nil, othe...
nagachika (Tomoyuki Chikanaga)
04:47 PM Bug #11285: Net::HTTP should handle content-coding with case-insensitive
r51061, r51063 and r51091 were backported into `ruby_2_2` branch at r51522. nagachika (Tomoyuki Chikanaga)
04:47 PM Revision 3b90cf70 (git): merge revision(s) 51061,51063,51091: [Backport #11285]
* lib/net/http/response.rb (inflater): CONTENT_ENCODING can be upper
case. [ruby-core:69670] [Bug #11285] patched by Andy Chu
* test/net/http/test_httpresponse.rb
(HTTPResponseTest#test_read_body_content_encodi...
nagachika (Tomoyuki Chikanaga)
04:32 PM Bug #11411: Crash in rb_gc_mark() during Rails app boot with GC.stress=1
The fixes are backported into `ruby_2_2` branch at r51521 (for #11352). nagachika (Tomoyuki Chikanaga)
04:31 PM Bug #11352: Sample code Garbage collection dies with an address is T_NONE
Backported into `ruby_2_2` branch at r51521. nagachika (Tomoyuki Chikanaga)
04:31 PM Revision e49c2e35 (git): merge revision(s) 51263,51264: [Backport #11352]
* vm.c (m_core_hash_merge_ptr): copy the arguments to the machine
stack before rewinding the control frame pointer and leaving the
arguments outside valid region of the value stack.
[ruby-core:69969] [Bug #1...
nagachika (Tomoyuki Chikanaga)
04:29 PM Bug #11418: spawn segfaults
Because,
> Until 2.2, this has not appeared since `Process.spawn` didn't use `ALLOCV_N`.
Other methods storing `VALUE`s in `ALLOCV`ed buffers may cause segfaults.
nobu (Nobuyoshi Nakada)
03:03 PM Bug #11418: spawn segfaults
Hi, nakada san.
> Maybe unnecessary before 2.2.
But Backport field was filled with REQUIRED for 2.0.0 and 2.1. Which is your intention?
Anyway, I try to reproduce the issue on ruby_2_2 branch with the following patch.
~~~
In...
nagachika (Tomoyuki Chikanaga)
04:19 PM Bug #11387: String#force_encoding と String#reverse の後にSEGV
Backported into `ruby_2_2` branch at r51520. nagachika (Tomoyuki Chikanaga)
04:19 PM Revision 00d49999 (git): merge revision(s) 51344: [Backport #11387]
* string.c (rb_str_reverse): reversed string is not a substring,
and should not set coderange of the original string.
[ruby-dev:49189] [Bug #11387]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51520...
nagachika (Tomoyuki Chikanaga)
04:09 PM Bug #11389: Regression in method parameter parsing
r51350 was backported into ruby_2_2 branch at r51519. nagachika (Tomoyuki Chikanaga)
04:08 PM Bug #11380: Parser regression in 2.3?
Backported into `ruby_2_2` branch at r51519. nagachika (Tomoyuki Chikanaga)
04:08 PM Revision 8fcdc4e2 (git): merge revision(s) 51350: [Backport #11380] [Backport #11389]
* parse.y (lambda_body): pop cmdarg stack for lookahead
token. [ruby-core:70067] [Bug #11380]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:53 PM Bug #11426: moving RClass does shows warning even if RClass itself is not used
"gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13)" shipped with Ubuntu
EDIT: i fixed the warning with doing this:
```c
#define RClass RClassDeprecated
struct DEPRECATED_TYPE(("RClass is internal use only"),
RClass {
struct RBasic ba...
Hanmac (Hans Mackowiak)
01:57 PM Bug #11426 (Feedback): moving RClass does shows warning even if RClass itself is not used
What version of `gcc`? nobu (Nobuyoshi Nakada)
07:13 AM Bug #11426 (Closed): moving RClass does shows warning even if RClass itself is not used

i got the following warning when i want to build my binding with using ruby from trunk
~~~
/usr/local/rvm/rubies/ruby-head/include/ruby-2.3.0/ruby/ruby.h:827:16: warning: attribute ignored in declaration of ‘struct RClassDeprecat...
Hanmac (Hans Mackowiak)
03:35 PM Bug #11342 (Feedback): ruby 2.2.2 will not compile on Solaris 11.2 32 or 64 bit
r50089 was backported into `ruby_2_2` branch at r51518. But I don't change Backport field because this ticket is not `Closed` yet.
nagachika (Tomoyuki Chikanaga)
03:34 PM Bug #11342 (Closed): ruby 2.2.2 will not compile on Solaris 11.2 32 or 64 bit
Applied in changeset backport22:r51518.
----------
merge revision(s) 50089: [Backport #11342]
* ext/socket/extconf.rb: Solaris 11 has struct tcp_info.tcpi_ca_state,
but it is a dummy.
* ext/socket/option.c: Solaris 11 doesn't hav...
nagachika (Tomoyuki Chikanaga)
01:53 AM Bug #11342: ruby 2.2.2 will not compile on Solaris 11.2 32 or 64 bit
Anyway, I'll backport r50089 into `ruby_2_2` branch later.
nagachika (Tomoyuki Chikanaga)
03:33 PM Revision 23f12a06 (git): merge revision(s) 50089: [Backport #11342]
* ext/socket/extconf.rb: Solaris 11 has struct tcp_info.tcpi_ca_state,
but it is a dummy.
* ext/socket/option.c: Solaris 11 doesn't have u_intN_t.
* ext/socket/option.c: Solaris 11 needs inspect_tcpi_msec.
...
nagachika (Tomoyuki Chikanaga)
02:42 PM Bug #11425: super_method fails to find the super method when combined with Module#prepend
Another issue, `UnboundMethod#inspect` in 2.2 also seems wrong.
It should be `"#<UnboundMethod: C#a>"`.
nobu (Nobuyoshi Nakada)
02:35 PM Bug #11424 (Rejected): Documentation bug: Module: Enumerable, detect
`find` and `detect` are aliases.
They share their documentation.
marcandre (Marc-Andre Lafortune)
02:33 PM Bug #10856: Splat with empty keyword args gives unexpected results
I feel this has to be fixed.
`foo(**{})` should === `foo(**Hash.new)` in all cases, and I feel it should not raise an error.
marcandre (Marc-Andre Lafortune)
12:27 PM Bug #10856: Splat with empty keyword args gives unexpected results
Hi Matz,
I think I just found a real-world use-case for exactly this issue - please take a look at the (simplified) example below.
~~~ruby
class Dispatcher
def call(event, args)
public_send(event, **args)
end
def f...
teamon (Tymon Tobolski)
12:34 PM Feature #11428 (Open): system/exec/etc. should to_s their argument to restore Pathname functionality as it was in 1.8
The safest way to interact with Unix shell with ruby is using `Pathname` and multi-argument system/exec/etc. commands.
In 1.8 days (and early 1.9) it was possible to do nice things like:
path = Pathname("/dev/null"); system "ls...
taw (Tomasz Wegrzanowski)
09:49 AM Bug #11427 (Closed): Fix documentation for String#slice
In the String#slice description [slice(start, length) → new_str or nil]
the word 'index' was displayed in +code+ font but the argument in the signature is called 'start'.
(screenshot attached)
liptonshmidt (Alexey Lipnyagov)
05:19 AM Revision 3c402604 (git): win32.c: use ruby_strdup
* win32/win32.c (getifaddrs): use ruby_strdup instead of
combination ruby_xmalloc, lstrlen and lstrcpy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:15 AM Bug #11392 (Third Party's Issue): proj4_c_impl.bundle: [BUG] Segmentation fault at 0x00000000000440
As shown in the following line, it seems the issue of rgeo.gem. Please report to the project (https://github.com/rgeo/rgeo/issues).
~~~
/Users/moboyle/.rvm/gems/ruby-2.2.2/gems/rgeo-0.3.20/lib/rgeo/coord_sys/proj4_c_impl.bundle: [BUG...
nagachika (Tomoyuki Chikanaga)
02:09 AM Bug #11393: segfault on trivial application, embedding in C app.
You must call `ruby_sysinit()` first. nobu (Nobuyoshi Nakada)
01:48 AM Bug #11349: irb crashes immediately with most (any?) REPL input
Hi, Maciek.
Thank you for your report. And sorry for late reply.
Could you try with trunk? You can install ruby trunk version with rbenv as follows.
rbenv install 2.3.0-dev
nagachika (Tomoyuki Chikanaga)
01:39 AM Feature #11348 (Assigned): TracePoint API needs events for fiber's switching
nagachika (Tomoyuki Chikanaga)
01:09 AM Revision 919ab7a3 (git): * 2015-08-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:08 AM Revision b96499f0 (git): objspace.c: use rb_ident_hash_new
* ext/objspace/objspace.c (reachable_objects_from_root): use
rb_ident_hash_new instead of funcall Hash#compare_by_id.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:07 AM Revision 1d2d307c (git): eval.c: use rb_ident_hash_new
* eval.c (hidden_identity_hash_new): use rb_ident_hash_new instead
of funcall Hash#compare_by_id.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:36 AM Bug #11421: .gem/ruby/2.2.2/gems/json-1.8.3/lib/json/ext/parser.bundle: Segmentation fault at 0x00000000000418
It's chruby issue. Please submit issue to chruby's repository. hsbt (Hiroshi SHIBATA)

08/09/2015

08:22 PM Bug #11425: super_method fails to find the super method when combined with Module#prepend
This happens only for `UnboundMethod`.
~~~ruby
C.new.method(:a).super_method
~~~
correctly returns a `Method`.
Attached a patch with a failing test case.
matsuda (Akira Matsuda)
08:10 PM Bug #11425 (Closed): super_method fails to find the super method when combined with Module#prepend
`super_method` now fails to find the target method of `Module#prepend` maybe since commit:51501 https://github.com/ruby/ruby/commit/6b7c4df
~~~ruby
class C; def a() end end
module M def a() end end
C.prepend M
p C.instance_method(...
matsuda (Akira Matsuda)
05:33 PM Bug #11421: .gem/ruby/2.2.2/gems/json-1.8.3/lib/json/ext/parser.bundle: Segmentation fault at 0x00000000000418
If it helps in anyway, I compile ruby 2.2.2 without sudo using:
>>> Compiling ruby 2.2.2 ...
CC = clang
LD = ld
LDSHARED = clang -dynamic -bundle
CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-pare...
Anonymous
05:09 PM Bug #11421: .gem/ruby/2.2.2/gems/json-1.8.3/lib/json/ext/parser.bundle: Segmentation fault at 0x00000000000418
Usaku NAKAMURA wrote:
> Keith Salisbury wrote:
> ...
Hi Usaku,
Thanks for highlighting that, do you have any suggestion how to find out what is causing this?
I didn't intentionally select libruby.2.0.0.dylib. Is this something to ...
Anonymous
01:43 PM Revision f23a72a6 (git): test_gc.rb: check signal first
* test/ruby/test_gc.rb (test_interrupt_in_finalizer): check
the signal terminated the process before messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:04 PM Bug #11424 (Rejected): Documentation bug: Module: Enumerable, detect
http://ruby-doc.org/core-2.2.2/Enumerable.html#method-i-detect
In the second line of the example code find() is called instead of detect(). Both lines should call detect().
latency (Reed Mangino)
01:00 PM Feature #10211: Implement Signal.current_trap(sig)
I think we can close this. Thanks everyone for help! I finally figured out how to do that without modifying Ruby.
I updated https://github.com/kyrylo/multitrap
kyrylo (Kyrylo Silin)
09:55 AM Feature #10181: New method File.openat()
No movement in almost a year. Will this proposal be accepted? technorama (Technorama Ltd.)
08:09 AM Bug #11406: Inconsistent behavior when creating a range of strings which end in an integer greater than 10
Hans Mackowiak wrote:
> i think that might break some things ... (it might break some applications)
> ...
`String#succ` isn't changed at all with my patch, but only `String#upto` when the receiver and the limit share common prefix and ...
nobu (Nobuyoshi Nakada)
06:52 AM Bug #11406: Inconsistent behavior when creating a range of strings which end in an integer greater than 10
i think that might break some things ... (it might break some applications)
like with "1.2.9".succ, i dont know if that still work
Hanmac (Hans Mackowiak)
03:36 AM Bug #11406: Inconsistent behavior when creating a range of strings which end in an integer greater than 10
https://github.com/nobu/ruby/tree/bug/11406-String%23upto-numeric-suffix nobu (Nobuyoshi Nakada)
06:31 AM Bug #11422 (Rejected): All common set operations produce incorrect (and surprising) results on a set of sets
This is as per spec, a set of sets is not the same as the union of those sets.
You may want to use `abc = ab + c` instead of `abc = Set.new([ab, c])`?
marcandre (Marc-Andre Lafortune)
05:16 AM Bug #11423 (Closed): ruby_cleanup does not reset initialized flag
Applied in changeset r51511.
----------
vm.c: frozen_strings in rb_vm_t
* vm.c (Init_vm_objects, rb_vm_fstring_table): use frozen_strings
table in rb_vm_t. [ruby-core:70274] [Bug #11423]
nobu (Nobuyoshi Nakada)
05:15 AM Bug #11423: ruby_cleanup does not reset initialized flag
That cycle is not guaranteed until MVM is supported.
nobu (Nobuyoshi Nakada)
05:16 AM Revision 51dcb02c (git): * 2015-08-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:15 AM Revision f7ab0906 (git): vm.c: frozen_strings in rb_vm_t
* vm.c (Init_vm_objects, rb_vm_fstring_table): use frozen_strings
table in rb_vm_t. [ruby-core:70274] [Bug #11423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

08/08/2015

06:48 PM Bug #11423: ruby_cleanup does not reset initialized flag
Actually, the problem is worse than that: I tried making a simple change to have `ruby_cleanup` reset the global flag, but it looks like modules never clean up after themselves!
E.g.
~~~c
void
Init_frozen_strings(void)
{
as...
scorpion007 (Alex Budovski)
05:33 PM Bug #11423 (Closed): ruby_cleanup does not reset initialized flag
`ruby_setup` checks for this static initialized to determine whether to run.
~~~c
int
ruby_setup(void)
{
static int initialized = 0;
int state;
if (initialized)
return 0;
initialized = 1;
~~~
But `ruby_c...
scorpion007 (Alex Budovski)
04:08 PM Bug #11422: All common set operations produce incorrect (and surprising) results on a set of sets
Mon_Ouie [pointed out](https://gist.github.com/Mon-Ouie/5efdab278cbabc3922ac) at freenode #Ruby irc channel, that I have different number of levels that I compare.
This works:
```ruby
pry(main):9> abc > Set.new([c]) ...
peterhil (Peter Hillerström)
03:31 PM Bug #11422 (Rejected): All common set operations produce incorrect (and surprising) results on a set of sets
# Set operations on a set of sets produce incorrect results
It seems that almost all common set operations (subtract, superset?, subset?, difference, etc...)
produce (mathematically) incorrect results on a set of sets, in that they j...
peterhil (Peter Hillerström)
03:17 PM Bug #11421 (Rejected): .gem/ruby/2.2.2/gems/json-1.8.3/lib/json/ext/parser.bundle: Segmentation fault at 0x00000000000418
Keith Salisbury wrote:
> 4 libruby.2.0.0.dylib 0x00000001088820fa rb_newobj + 31
You mixed ruby 2.2 and 2.0.
usa (Usaku NAKAMURA)
02:57 PM Bug #11421: .gem/ruby/2.2.2/gems/json-1.8.3/lib/json/ext/parser.bundle: Segmentation fault at 0x00000000000418
I tried commenting out the `require 'json/ext/parser'` line and no longer get a seg fault, but get errors about no json parser obviously.
I also tried locking my version of json to 1.8.1 and 1.8.2 and I get an error about Nokogiri inste...
Anonymous
02:43 PM Bug #11421 (Rejected): .gem/ruby/2.2.2/gems/json-1.8.3/lib/json/ext/parser.bundle: Segmentation fault at 0x00000000000418
Installed ruby 2.2.2 using ruby-install on a Macbook Air, running OSX Yosemite 10.10.4
Please let me know if you require further information.
I encounter the following error running any "bundle exec x" ruby commands.
This one is ...
Anonymous
12:33 AM Revision ef539766 (git): transcode_data.h: missing cast
* transcode_data.h (o4): add missing cast to get rid of implicit
signed extension and suppress shift-overflow warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:29 AM Revision b0e866a5 (git): transcode_data.h: adjust style
* transcode_data.h (o2, o3, o4, g4): fold long lines.
* transcode_data.h (rb_transcoder_asciicompat_type_t): adjust
indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

08/07/2015

10:39 PM Bug #10906: Problem building on Solaris 10 - symbol rb_infinity not found
Adding CFLAGS="-std=iso9899:1999" worked for me. daqo (David Qorashi)
07:00 PM Revision f47473ac (git): * object.c: [DOC] Improve grammar for Module#===
Patch by @SkyBirdSoar in documenting-ruby/ruby#52:
https://github.com/documenting-ruby/ruby/pull/52
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
06:47 PM Feature #10452 (Assigned): Add documentation for Digest
zzak (zzak _)
06:42 PM Revision d4917bfe (git): * 2015-08-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:42 PM Revision cdb58a19 (git): * hash.c: [DOC] Improve description of symbol key syntax
Patch by Raphael Das Gupta in documenting-ruby/ruby#51:
https://github.com/documenting-ruby/ruby/pull/51
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
03:46 PM Bug #11407 (Third Party's Issue): Net::FTP nlst method return wrong data and don't raise Error when path is wrong
shugo (Shugo Maeda)
12:04 PM Revision 48baa71e (git): parse.y: shrink parser_params
* parse.y (parser_params): turn in_def and in_single into bit
flags and reduce the size by 2-words.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:30 AM Revision ebdf35e1 (git): parse.y: remove prefixes
* parse.y (parser_params): remove redundant prefixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:23 AM Revision 3168ffbd (git): parse.y: require pure parser
* parse.y (yylex): non-pure parser has not been supported since
merger of ripper. change argument types from void pointers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:08 AM Bug #11419 (Closed): super_method segfaults when looking for a super_method of Object's UnboundMethod
Applied in changeset r51501.
----------
proc.c: fix for uncallable method
* proc.c (method_super_method): uncallable method entry does not
have the defined class, use the owner instead.
[ruby-core:70254] [Bug #11419]
* test/ruby/te...
nobu (Nobuyoshi Nakada)
08:08 AM Revision af191e7e (git): * 2015-08-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:07 AM Revision 6b7c4dfa (git): proc.c: fix for uncallable method
* proc.c (method_super_method): uncallable method entry does not
have the defined class, use the owner instead.
[ruby-core:70254] [Bug #11419]
* test/ruby/test_method.rb (test_super_method_unbound): add test
by Akira Matsuda.
git-...
nobu (Nobuyoshi Nakada)
07:21 AM Feature #6284: Add composition for procs
Martin Dürst wrote:
> I'm teaching Haskell in a graduate class, so I'm quite familiar with function composition and use it a lot, but the original example isn't convincing at all. For me, in Ruby, something like val.strip.capitalize rea...
systho (Philippe Van Eerdenbrugghe)

08/06/2015

06:54 PM Feature #11420: Introduce ID key table into MRI
> Which implementation do you like?
The one which will be faster.
Quadratic probing is simpler, so if it is not slower (or with in couple of percents)
than coalesced chaining in usual application (big rails application :) ), then ...
funny_falcon (Yura Sokolov)
06:18 PM Feature #11420: Introduce ID key table into MRI
On 2015/08/06 23:02, funny.falcon@gmail.com wrote:
> Koichi Sasada , i've made another one "hash" for your experiments

Thank you!
Which implementation do you like?

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
02:02 PM Feature #11420: Introduce ID key table into MRI
Koichi Sasada , i've made another one "hash" for your experiments
https://github.com/ko1/ruby/pull/1
funny_falcon (Yura Sokolov)
01:42 PM Feature #11420: Introduce ID key table into MRI
Indeed, I'm using machines with 2TB or 3TB main memory, and
theoretically the upper limit of 1,374,389,534,720 = 1.3TB
can be reached today.
(though this may be very rare case in practice)
I think to prepare a compile-time option t...
ngoto (Naohisa Goto)
12:08 PM Feature #11420: Introduce ID key table into MRI
Go ahead and experiment the idea.
Matz.
matz (Yukihiro Matsumoto)
08:54 AM Feature #11420 (Closed): Introduce ID key table into MRI
Let's introduce ID key table to optimization.
# Background
Now, most of tables are implemented by st_table.
st_table is O(1) hash data structure.
MRI uses ID keys tables for many purpose like:
* method tables (mtbl) for classe...
ko1 (Koichi Sasada)
05:50 PM Bug #11048: blocks raise on missing and extra keyword args
bug hit wrote:
> another use case for this is hash destructuring
> ...
Please comment on the use case of hash destructuring via block keyword args.
bughit (bug hit)
08:10 AM Bug #11419: super_method segfaults when looking for a super_method of Object's UnboundMethod
Attached is a reproducing test case. matsuda (Akira Matsuda)
08:02 AM Bug #11419 (Closed): super_method segfaults when looking for a super_method of Object's UnboundMethod
This code segfaults on 2.3 trunk (does not segfault on 2.2 stable):
~~~
% ruby -e 'Object.instance_method(:tap).super_method'
-e:1: [BUG] Segmentation fault at 0x00000000000010
ruby 2.3.0dev (2015-08-06 trunk 51500) [x86_64-darwin1...
matsuda (Akira Matsuda)
01:56 AM Revision 95c84eac (git): gc.c: move tmp buffer functions
* gc.c (rb_alloc_tmp_buffer, rb_free_tmp_buffer): move from
node.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:50 AM Revision 8b6a0f73 (git): node.c: check size
* node.c (rb_alloc_tmp_buffer): round up the size and check the
range.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:44 AM Revision ec10c033 (git): ruby_atomic.h: atomic VALUE operations
* ruby_atomic.h (ATOMIC_VALUE_EXCHANGE, ATOMIC_VALUE_CAS): add
atomic operations for VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

08/05/2015

11:17 PM Revision ff7eb4c6 (git): * ext/openssl/lib/openssl/ssl.rb (module OpenSSL): move
SSLSocket#sysclose to Ruby.
* ext/openssl/ossl_ssl.c (ossl_ssl_close): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
10:59 PM Revision 17586284 (git): * ext/openssl/lib/openssl/ssl.rb (module OpenSSL): move nonblock
enable to SSLSocket#initialize and remove Nonblock module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
10:55 PM Revision b830786f (git): * ext/openssl/lib/openssl/ssl.rb (module OpenSSL): move
OpenSSL::SSL::SSLSocket#initialize to Ruby.
* ext/openssl/ossl_ssl.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
10:26 PM Revision 46bd8e86 (git): test/ruby/test_process.rb (test_many_args): increase timeout
Some machines take a while to run this test, apparently.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
05:26 PM Bug #11418 (Closed): spawn segfaults
Applied in changeset r51492.
----------
node.c: NODE_ALLOCA for ALLOCV
* node.c (rb_alloc_tmp_buffer): use NODE_ALLOCA to mark locations
like as builtin alloca. [ruby-core:70251] [Bug #11418]
nobu (Nobuyoshi Nakada)
05:01 PM Bug #11418 (Closed): spawn segfaults
`Process.spawn` sometimes segfaults, because buffer allocated by `ALLOCV_N` is not marked, when the size exceeds 1024 bytes.
In these days, `TestEncodingConverter#test_default_external` has occasionally segfaulted by this problem.
Un...
nobu (Nobuyoshi Nakada)
05:25 PM Revision 0777dd02 (git): * 2015-08-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:25 PM Revision fb258336 (git): node.c: NODE_ALLOCA for ALLOCV
* node.c (rb_alloc_tmp_buffer): use NODE_ALLOCA to mark locations
like as builtin alloca. [ruby-core:70251] [Bug #11418]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:32 PM Bug #11168: object allocation during garbage collection phase when rake assets:precompile on 2.2.2
+1, experiencing similar output on rake tasks on our production (linux) servers, like many other people. here is a gist of a stack trace :
https://gist.github.com/bmishkin/2766109621a6744a3311
Checkout these links too :
- https:...
salimane (Salimane Adjao Moustapha)
10:43 AM Feature #11266: [PATCH] WEBrick: allow subclassing of Response and Request
Is there still anything I can do/change? julik (Julik Tarkhanov)
09:48 AM Bug #11417 (Closed): Wrong description for `limit` parameter for IO#gets
It says:
"If the first argument is an integer, or optional second argument is given, the returning string would not be longer than the given value in bytes."
But:
~~~
require "stringio"
io = StringIO.new "こんにちは"
string = io...
asterite (Ary Borenszweig)
06:32 AM Revision 7918dc35 (git): socket.c: suppress warnings
* ext/socket/socket.c (socket_s_ip_address_list): suppress
warnings to assign pointers to literal strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:43 AM Revision db45ec98 (git): insns.def: redundant call
* insns.def (leave): remove redundant function call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:40 AM Revision b55217c6 (git): transcode.c: GC guards
* transcode.c (econv_init): add guards to prevent source encoding
name and destination encoding name from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:38 AM Bug #11416 (Closed): TestEncodingConverter#test_newline_option fails under GC stress
Applied in changeset r51488.
----------
transcode.c: fix dangling pointers
* transcode.c (rb_econv_open0): rb_econv_t::source_encoding_name
and rb_econv_t::destination_encoding_name should refer static
strings always or NULL. [rub...
nobu (Nobuyoshi Nakada)
05:35 AM Bug #11416 (Closed): TestEncodingConverter#test_newline_option fails under GC stress
`rb_econv_t::source_encoding_name` and `rb_econv_t::destination_encoding_name` refer dangling pointers, after creation. nobu (Nobuyoshi Nakada)
05:37 AM Revision 3969b186 (git): transcode.c: fix dangling pointers
* transcode.c (rb_econv_open0): rb_econv_t::source_encoding_name
and rb_econv_t::destination_encoding_name should refer static
strings always or NULL. [ruby-core:70247] [Bug #11416]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
nobu (Nobuyoshi Nakada)
02:28 AM Feature #11415 (Open): autoload with a Proc
`autoload` currently allows you to run arbitrary code when a constant is referenced, as long as that code is written to a file.
I propose extending `autoload` to also accept a Proc in place of the string filename.
Usage:
a...
matthewd (Matthew Draper)
01:48 AM Revision 4b193223 (git): ossl_ssl.c: remove unused variables
* ext/openssl/ossl_ssl.c (ossl_call_client_cert_cb),
(ossl_call_tmp_dh_callback, ossl_call_tmp_ecdh_callback),
(ossl_call_session_get_cb, ossl_call_session_new_cb): remove no
longer used variables.
git-svn-id: svn+ssh://ci.ruby-la...
nobu (Nobuyoshi Nakada)

08/04/2015

11:56 PM Revision 1cb9949f (git): * ext/openssl/lib/openssl/ssl.rb (module OpenSSL): extract callback
lookup to private Ruby methods. This means we can keep the default
DH callback logic hidden from consumers. Also, since the SSLSocket
always has a context, we can remove conditionals about that
instance.
* ext/openssl/ossl_ssl.c:...
tenderlovemaking (Aaron Patterson)
10:31 PM Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177
Ben Mishkin wrote:
> trace: https://gist.github.com/bmishkin/2766109621a6744a3311
It's [Bug #10933].
nobu (Nobuyoshi Nakada)
05:09 PM Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177
possibly related
Rails version 4.2.3
Ruby version 2.2.2-p95 (x86_64-linux)
RubyGems version 2.4.6
Rack version 1.6.4
Ubuntu 12.04
trace: https://gist.github.com/bmishkin/2766109621...
bmishkin1 (Ben Mishkin)
03:36 PM Revision 6373a1ac (git): * 2015-08-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:36 PM Revision 759538da (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
08:28 AM Feature #11375: Decreased Object Allocation in Pathname.rb
richard.schneeman@gmail.com wrote:
> I think I figured out why i'm not getting emails and I believe I've
> ...
No worries, I barely have Internet access the past few weeks.
I'm only subscribed to ruby-core, though.
<snip>
I unde...
normalperson (Eric Wong)
03:10 AM Feature #11375: Decreased Object Allocation in Pathname.rb
Eric Wong <normalperson@yhbt.net> wrote:
> richard.schneeman@gmail.com wrote:
> ...
NAK on my own patch to compile.c
`st_lookup` is still faster when there is no match in the `case`/`when`,
or when there's multiple "when" statement...
normalperson (Eric Wong)
07:55 AM Revision 63ee970f (git): contributing.rdoc: double quotes [ci skip]
* doc/contributing.rdoc: double quotes to expand an environment
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:42 AM Feature #11414 (Closed): Relax ID table ordering
Applied in changeset r51482.
----------
* test/ruby/test_module.rb: should not expect a method table ordering.
[Feature #11414]
ko1 (Koichi Sasada)
07:24 AM Feature #11414: Relax ID table ordering
Ordering is not included in the specified behavior.
Matz.
matz (Yukihiro Matsumoto)
07:21 AM Feature #11414 (Closed): Relax ID table ordering
Can we relax ordering rule for ID table such as method table, ivar table, and so on?
I believe nobody care about method table ordering, ivar table ordering.
# background
From Ruby 1.9, Hash objects have order (insertion order).
T...
ko1 (Koichi Sasada)
07:41 AM Revision 91f20981 (git): * test/ruby/test_module.rb: should not expect a method table ordering.
[Feature #11414]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:48 AM Revision 6ed8d39d (git): contributing.rdoc: portable substitution [ci skip]
* doc/contributing.rdoc: use portable substitution syntax
available in plain bourne shell.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:36 AM Bug #11409 (Closed): {instance,module}_eval(&:foo) segfaults since r51243.
Applied in changeset r51480.
----------
* proc.c (rb_block_clear_env_self): clear by Qfalse intead of Qnil.
[Bug #11409]
* test/ruby/test_eval.rb: add tests for this issue,
written by @0x0dea.
https://github.com/ruby/ruby/pull/988
ko1 (Koichi Sasada)
06:35 AM Revision 033e0933 (git): * proc.c (rb_block_clear_env_self): clear by Qfalse intead of Qnil.
[Bug #11409]
* test/ruby/test_eval.rb: add tests for this issue,
written by @0x0dea.
https://github.com/ruby/ruby/pull/988
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:13 AM Revision 1e6a643f (git): variable.c: wrap long lines
Make code easier to read and hunt for bugs with my tiny terminal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
03:06 AM Bug #11380: Parser regression in 2.3?
This still needs to be backported. felixbuenemann (Felix Bünemann)
12:35 AM Revision d91e11b5 (git): * proc.c: Removing duplicate doc [fix GH-987][ci skip]
Patch by @ronakjangir47
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:24 AM Revision 06a7b2ff (git): * 2015-08-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:22 AM Revision 40e2bed3 (git): * doc/contributing.rdoc: fixed wrong instructions with OS X
[fix GH-989][ci skip] Patch by @schneems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
 

Also available in: Atom