Activity
From 01/20/2017 to 01/26/2017
01/26/2017
-
09:12 PM Bug #13161 (Closed): [DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array
- * Enumerable#{min,min_by,max,max_by} return a sorted array when +n+ argument is used. This isn't mentioned from the current documentation.
* "minimum n elements" in Enumerable#max_by should be "maximum n elements" -
05:41 PM Bug #13127: DRb `load': connection closed (DRb::DRbConnError) when client exit's from within a loop iterating over remote objects
- The Kernel.exit! works.
But why does the problem happen with the exit called? Isn't that a bug. -
05:39 PM Bug #13102: Confusing method name: Set#delete?
- Kai Kuchenbecker wrote:
> I think it is very surprising for a method ending in a question mark to have a side effect.
Indeed, that also applies to `Set#add?`.
> ...
Not really, `Set#delete` also modifies the receiver.
The actu... -
05:11 PM Bug #13160 (Closed): Socket c code breaks ruby interpreter
- When a client connects to a socket, the ruby interpreter crashes with the backtrace at the bottom (used the current version of my gem ICAPrb::Server (this gem has no native extensions))
the ruby vm should not when in receives a connec... -
03:14 PM Revision c71e1223 (git): [DOC] Use Integer instead of Fixnum [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:14 PM Revision 8eeadfe0 (git): * 2017-01-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:14 PM Revision e7cc3900 (git): lib/weakref.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:03 PM Feature #13153: Inconsistent sprintf formatting for 0 value
- Old ruby's results are `0x00`.
It changed between `1.9.0-0` and `1.9.0-5`.
```
% rbenv each ruby -ve 'puts "%#0.2x" % 0'
ruby 1.8.6 (2007-03-13 patchlevel 0) [x86_64-linux]
0x00
ruby 1.8.6 (2010-09-02 patchlevel 420) [x86_64-linu... -
01:44 PM Bug #12705: yielding args to a lambda uses block/proc rather than lambda/method semantics
- I encountered this bug myself today and while searching for a reason behind it, I found this:
https://github.com/ruby/ruby/blob/v2_4_0/vm_insnhelper.c#L2435
```c
static VALUE
vm_yield_with_cfunc(rb_thread_t *th,
const stru... -
01:29 PM Bug #13146: Float::NANs in Hashes are confusing (more than usual).
- Somehow, using `-Float::NAN` (for example in a hash or array) results in new objects being created:
```ruby
-Float::NAN.object_id
#=> -70362448918680
[-Float::NAN, -Float::NAN, -Float::NAN].map(&:object_id)
#=> [70362448604580, 70... - 12:47 PM Revision fdbb4bb3 (git): Add document for lib/rss/atom.rb
- [fix GH-1520]
Patch by Tsehau Chao. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:38 AM Bug #12688 (Feedback): Thread unsafety in autoload
- I can't reproduce headius's issue. It shows 50 dots and stop at next iteration because autoload is failed.
Inserting `$".pop` Shirosaki san suggested, I don't get any exception.
I tried on current trunk.
```
$LOAD_PATH.unshif... -
10:25 AM Feature #12967 (Rejected): Add a default for RUBY_GC_HEAP_GROWTH_MAX_SLOTS out-of-the-box
- > My suggestion is to ship with a far safer default of: RUBY_GC_HEAP_GROWTH_MAX_SLOTS=100000
To define "safe" is difficult. Providing tuning parameter is enough for this purpose. -
09:57 AM Bug #13030 (Closed): Unexpected T_IMEMO object when building with VMDEBUG
- Applied in changeset r57427.
----------
skip T_IMEMO for VMDEBUG
* vm_dump.c (vm_stack_dump_each): skip T_IMEMO object to display
for VMDEBUG=3. [Bug #13030] -
09:57 AM Revision 8fa99e64 (git): skip T_IMEMO for VMDEBUG
- * vm_dump.c (vm_stack_dump_each): skip T_IMEMO object to display
for VMDEBUG=3. [Bug #13030]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:40 AM Revision a4bc6c27 (git): * vm_dump.c: enable to compile with VMDEBUG == 3.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:19 AM Revision 599d7511 (git): * 2017-01-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:19 AM Revision 72ad0019 (git): Parallel gem configuration
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:09 AM Revision 17ee9196 (git): Fix function name for DBM on extension document.
- Patch by Yuji Yaginuma, @y-yagi <yuuji.yaginuma@gmail.com>
[ci skip][fix GH-1519]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01/25/2017
-
09:03 PM Bug #13159 (Closed): [DOC] Revise documentation for OpenStruct
- ```
* update paragraph on implementation:
define_singleton_method is used, not define_method
* add call-seq with return values for each_pair
* adopt description of dig from Array and Hash
* fix description of the hash method
* :n... -
02:34 PM Bug #13158 (Closed): UNIXServer#closed? returns false after UNIXServer#close called
- Applied in changeset r57422.
----------
io.c: close before wait
* io.c (io_close_fptr): notify then close, and wait for other
threads before free fptr. [ruby-core:79262] [Bug #13158] -
10:16 AM Bug #13158 (Closed): UNIXServer#closed? returns false after UNIXServer#close called
- When I tried the simple script below, ruby trunk works unexpectedly:
```ruby
require 'socket'
server = UNIXServer.new('/tmp/yaaaay')
thread = Thread.new do
begin
while sock = server.accept
p(here: "accepted", sock:... -
02:34 PM Revision 61701ae1 (git): io.c: close before wait
- * io.c (io_close_fptr): notify then close, and wait for other
threads before free fptr. [ruby-core:79262] [Bug #13158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:28 PM Revision a7bc6c1b (git): [DOC] Add empty example to enum.all? and any?
- [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:35 AM Feature #13156: In-tree copy of ruby/spec
- Koichi Sasada wrote:
> I'm not sure because I'm not a heavy github user, but most of github users feel happy on github contribution, doesn't it?
Anyone can of course keep contributing on GitHub.
But it's very inconvenient when chang... -
02:07 AM Feature #13156: In-tree copy of ruby/spec
- I'm not sure because I'm not a heavy github user, but most of github users feel happy on github contribution, doesn't it?
-
01:23 AM Feature #13156: In-tree copy of ruby/spec
- I'm neutral or somewhat positive to this. It sounds worth trying. At least I have no reason to object.
-
12:55 AM Feature #13156: In-tree copy of ruby/spec
- Benoit Daloze wrote:
> Was this discussed in the last developer meeting?
Apparently not (see https://docs.google.com/document/d/1ZKk-vxoYkq8b2H4ml2z4NhoHsi3GdZqhNXNgpB2vTv8/pub). I plan to be at the next meeting, and I hope we can di... -
06:08 AM Revision 7db9fbdf (git): regcomp.c: debug function [ci skip]
- * regcomp.c (print_indent_tree): make a function for debug static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:05 AM Revision 4f1a54d2 (git): .gdbinit: fix on empty strings [ci skip]
- * .gdbinit (output_string): get rid of "Invalid number 0 of
repetitions" error on empty strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:05 AM Revision 0da52e56 (git): .gdbinit: op symbols [ci skip]
- * .gdbinit (rp_id): add unhandled operator symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:45 AM Misc #13072: Current state of date standard library
- Victor Shepelev wrote:
> > Time is kept in core
> ...
Date and Time are incompatible both its philosophy, implementation, and API.
If we make Date compatible with Time, it needs Date to introduce incompatible API change.
If so, Date ... -
03:28 AM Feature #12901: Anonymous functions without scope lookup overhead
- I have thought about this a number of times, but never got around to writing a feature request: we already have a way to tell Ruby that we don't want to capture certain variables from the surrounding scope: block local variables. We also...
-
03:13 AM Feature #12901: Anonymous functions without scope lookup overhead
- Jeremy Evans wrote:
> It would probably be better if ruby could do analysis and if there are no references to local variables in the outer scope(s), automatically optimize such procs, so that you don't need to specify `scope: false`. I... -
03:07 AM Feature #12180: switch id_table.c variant
- Yura:
Sorry for my laziness. I committed it (remain only your algorithm) and cleanup source code.
Pls make another ticket to improve id_table structure.
-
03:03 AM Feature #12180 (Closed): switch id_table.c variant
- Applied in changeset r57416.
----------
swithc id_table data structure.
* id_table.c: swtich to "simple open addressing with quadratic probing"
by Yura Sokolov. For more detail measurements, see [Feature #12180]
* id_table.c: remove... - 03:03 AM Revision 26270bd2 (git): * 2017-01-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:03 AM Revision 4c2d014e (git): swithc id_table data structure.
- * id_table.c: swtich to "simple open addressing with quadratic probing"
by Yura Sokolov. For more detail measurements, see [Feature #12180]
* id_table.c: remove other algorithms to simplify the source code.
git-svn-id: svn+ssh://ci.... -
01:13 AM Bug #13157 (Closed): Rational doc bug
- On the ruby-doc page for Rational, the following example appears.
Rational(900) + Rational(1) #=> (900/1)
I think it should be
Rational(900) + Rational(1) #=> (901/1)
Ruby executes the expression correctly, i.e.... -
01:10 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- ~~~
$ nawk --version
awk version 20121220 (FreeBSD)
$ nawk 'END { printf("%d\n", -2 ** 4) }' < /dev/null
-16
~~~ -
01:10 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- By the way, about "/" and "%" operators, in Ruby:
~~~
irb(main):001:0> -10%3 # (-10) % 3 == 2
=> 2
irb(main):002:0> 0-10%3 # 0 - (10 % 3) == -1
=> -1
~~~
in Ada:
~~~
with Ada.Integer_Text_IO;
procedure modu is
begin
Ada... -
12:54 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Ada
~~~
with Ada.Integer_Text_IO;
procedure pow is
begin
Ada.Integer_Text_IO.Put (-2 ** 4);
end;
~~~
-16
01/24/2017
-
11:23 PM Feature #13153: Inconsistent sprintf formatting for 0 value
- FWIW, this is the exact same behavior in C since we're just calling through to `snprintf` for these format specifiers.
```
printf("%#0.2x %#04x %#0.2x %#04x\n", 0, 0, 1, 1)
``` -
11:33 AM Feature #13153 (Open): Inconsistent sprintf formatting for 0 value
- ```ruby
0.upto(5).map { |i| "%#0.2x" % i }
# expect: ["0x00", "0x01", "0x02", "0x03", "0x04", "0x05"]
# actual: ["00", "0x01", "0x02", "0x03", "0x04", "0x05"]
```
Notice that the 0x is omitted when i == 0. The 0x prefix is sp... -
09:08 PM Feature #13156: In-tree copy of ruby/spec
- Was this discussed in the last developer meeting?
Sorry for making this feature request a bit late.
-
09:05 PM Feature #13156 (Closed): In-tree copy of ruby/spec
- I would like to integrate an in-tree copy of ruby/spec under spec/rubyspec/
(at the same location ruby/spec is currently cloned to ease transition).
This way, implementation and tests can be changed in a single commit, just like with M... -
08:55 PM Feature #13124: Should #puts convert to external encoding?
- Thank you for the reply and pointer.
What do you think of having STDOUT, STDERR and STDIN internal_encoding be set by default?
It seems reasonable for those to use the locale encoding.
On the other hand, it seems useless to dump a w... -
08:43 PM Feature #12957: A more OO way to create lambda Procs
- Actually, it is possible to create a single block of code that can be proc or lambda with #send:
> Kernel.send(:lambda) {}.lambda?
=> true
> Kernel.send(:proc) {}.lambda?
=> false
I was surprised as well this wor... -
02:52 PM Revision 54fa9f9e (git): eval.c: copy special exception
- * eval.c (setup_exception): make unfrozen copy of special
exception before setting up a cause.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:43 PM Bug #13152: Numeric parsing differences between ruby <-> crystal
- FORTRAN
```
PROGRAM POW
WRITE (*,*) -2**4
STOP
END
```
=> -16 -
01:32 PM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
Lua result:
~~~
$ lua
Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
> ...
-16.0
> - 2 ^ 4
-16.0
> ...
16.0
~~~ -
01:15 PM Bug #13152: Numeric parsing differences between ruby <-> crystal
- https://www.google.co.jp/search?q=-2**4
> -(2 ** 4) =
> -16 -
10:05 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
here is METAFONT result.
~~~
This is METAFONT, Version 2.7182818 (TeX Live 2016/Debian) (preloaded base=mf)
**\relax
*... -
09:23 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
Here is dlang result:
~~~ cpp
import std.stdio;
void main()
{
writeln(-2 ^^ 4); // -16
writeln((-2) ^^ ... -
09:17 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
I tried it by nodejs v7.4.0.
~~~
console.log(process.version);
//=> v7.4.0
console.log(-2 ** 4);
//console.log(-2 *... -
05:26 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
Here we go:
```sh
zsh % /bin/sh
sh-3.2$ echo $((-2 ** 4))
16
sh-3.2$
```
```perl
zsh % perl -e 'warn(eval("-2 ** 4... -
05:17 AM Bug #13152 (Rejected): Numeric parsing differences between ruby <-> crystal
- It is intentional.
That unary minus is not considered a part of an integer literal. -
01:08 PM Bug #13155: Segfault testing Pry
- This appears to crash on Travis (Ubuntu) as well:
https://travis-ci.org/pry/pry/jobs/183781286 -
12:53 PM Bug #13155 (Closed): Segfault testing Pry
- Trying to fix Pry on Fedora Rawhide, I get random segfaults. Unfortunately, I can't see any pattern in them. The backtrace is always different. Attaching two logs in case it might make the issue more obvious. Here are some package versio...
-
12:11 PM Bug #13154: URI::Generic, == operator, normalize!
- Dmitry Sk wrote:
> But nil scheme actually equivalent to file
Are you sure? I thought a `URI::Generic` object with a `nil` scheme is a [relative reference](https://tools.ietf.org/html/rfc3986#section-4.2). See: [URI::Generic#merge](... -
11:45 AM Bug #13154 (Rejected): URI::Generic, == operator, normalize!
- This two URI means the same:
```
uri1 = URI::parse '/1/2/3'
uri2 = URI::parse 'file:///1/2/3'
```
but `uri1 == uri2` return **false**
it is cause of normalize! implementation that compare scheme this way:
```
if scheme && scheme ... -
07:52 AM Revision 7bf450d0 (git): parse.y (parser_yylex): remove wrong warning
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:38 AM Revision e22aa951 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:38 AM Revision 5d438215 (git): Update Rubygems 2.6.10
- * https://github.com/rubygems/rubygems/commit/2ee5bf9fd3bd7649d3e244bc40107ff32070ef47
* https://github.com/rubygems/rubygems/commit/be510dd4097e65c6a256a6e173d6b724a3a96472
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57412 b2dd0...
01/23/2017
-
11:49 PM Bug #13152 (Feedback): Numeric parsing differences between ruby <-> crystal
- A few questions:
- What is the result if this expression is written as a formula (i.e. with the exponent as a superscript)? Wouldn't this be the more 'intuitive' behavior?
- What would the backwards compatibility issues be for Ruby... -
07:29 PM Bug #13152: Numeric parsing differences between ruby <-> crystal
I noticed this difference between ruby and crystal when converting a gem.
puts `-2**4` -> -16 (ruby) || 16 (crystal)
puts `(-2)**4` -> 16 (both)
ruby parses `-2**4` as `-(2**4`), while crystal does `(-2)**4`, which is more int...-
07:26 PM Bug #13152 (Rejected): Numeric parsing differences between ruby <-> crystal
- I noticed this difference between ruby and crystal when converting a gem.
```ruby
puts -2**4 -> -16 (ruby) || 16 (crystal)
puts (-2)**4 -> 16 (both)
```
ruby parses `-2**4` as `-(2**4)`, while crystal does `(-2)**4`, which is... -
07:41 PM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
- naruse@ruby-lang.org wrote:
> Prevent GC by volatile [Bug #13150]
>
> test/ruby/test_marshal.rb test_context_switch (load) and test_gc (dump)
> are failed on FreeBSD 10.3 and gcc7 (FreeBSD Ports Collection) 7.0.0
>... -
04:58 PM Bug #13150 (Closed): TestMarshal failures on FreeBSD with gcc7 because of GC
- Applied in changeset r57410.
----------
Prevent GC by volatile [Bug #13150]
test/ruby/test_marshal.rb test_context_switch (load) and test_gc (dump)
are failed on FreeBSD 10.3 and gcc7 (FreeBSD Ports Collection) 7.0.0
20170115 (experime... -
04:58 PM Bug #13150 (Closed): TestMarshal failures on FreeBSD with gcc7 because of GC
- ```
1) Failure:
TestMarshal#test_context_switch [/home/naruse/ruby/test/ruby/test_marshal.rb:368]:
[StopIteration] exception expected, not.
Class: <RuntimeError>
Message: <"Marshal.dump reentered at marshal_dump">
---Backtrace---... -
05:46 PM Bug #13151 (Open): File.writable? doesn't report correctly if a directory is writable on Windows.
- I've tried installing a gem per user using a 64 Bit version of Ruby for Windows and recognized that this failed because of permission errors. Ruby wanted to write the successfully downloaded gem to a system wide cache dir and failed beca...
-
05:02 PM Bug #13147 (Closed): Update documentation for URI#escape
- Applied in changeset r57411.
----------
Fix typo of URI#escape [Bug #13147]
patched by Steve Hill <sghill.dev@gmail.com> -
05:02 PM Revision 6219b68f (git): Fix typo of URI#escape [Bug #13147]
- patched by Steve Hill <sghill.dev@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:58 PM Revision 7c1b30a6 (git): Prevent GC by volatile [Bug #13150]
- test/ruby/test_marshal.rb test_context_switch (load) and test_gc (dump)
are failed on FreeBSD 10.3 and gcc7 (FreeBSD Ports Collection) 7.0.0
20170115 (experimental); RB_GC_GUARD looks not worked well.
git-svn-id: svn+ssh://ci.ruby-lang.... - 03:47 PM Revision be220c4f (git): * 2017-01-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:47 PM Revision 0c9e2cf2 (git): test/test_tmpdir.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:16 AM Bug #13145 (Closed): Symbol#clone doesn't work correctly
- Applied in changeset r57407.
----------
object.c: no TypeError at Symbol
* object.c (special_object_p): uninterned Symbol also should not
raise a TypeError but return itself instead, as well as interned
Symbols. [ruby-core:79216] ... -
06:16 AM Revision 11e6bd5a (git): object.c: no TypeError at Symbol
- * object.c (special_object_p): uninterned Symbol also should not
raise a TypeError but return itself instead, as well as interned
Symbols. [ruby-core:79216] [Bug #13145]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57407 b2dd0... -
05:59 AM Bug #13149 (Closed): Ruby 2.4.0 の CSV の field_size_limit オプションで先読み文字数を制限できない
- Applied in changeset r57406.
----------
csv.rb: fix field_size_limit check
* lib/csv.rb (CSV#shift): the last column is an Array in extended
column since r55985. [ruby-dev:49964] [Bug #13149] -
04:27 AM Bug #13149 (Closed): Ruby 2.4.0 の CSV の field_size_limit オプションで先読み文字数を制限できない
- Ruby 2.4.0 から、指定文字数未満で例外が出る事も、指定文字数以上で例外が出ない事もあります。
以下、指定文字数未満で例外が出るケース。
~~~ruby
require 'csv'
CSV.new(DATA, field_size_limit: 4).each { |x| p x }
__END__
"a","b"
"
2
",""
~~~
~~~
$ ruby test.rb
["a", "b"]
~/.rben... -
05:59 AM Revision 5bb125c6 (git): csv.rb: fix field_size_limit check
- * lib/csv.rb (CSV#shift): the last column is an Array in extended
column since r55985. [ruby-dev:49964] [Bug #13149]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:49 AM Revision 9600fb38 (git): error.c: fixed doc [ci skip]
- * error.c (exc_message): fixed doc regarding the presence of
to_str. [Fix GH-1517]
Author: Marc Gauthier <marcg.gauthier@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:22 AM Revision 48d48903 (git): configure-ext.mk.tmpl: embed macros
- * template/configure-ext.mk.tmpl: embed MINIRUBY and SCRIPT_ARGS
to get rid of quoting problems of nmake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:51 AM Revision f41b7517 (git): Fix for nmake
- * common.mk (EXT_MK): use double-quotes and remove SCRIPT_ARGS
which contains both types of quotes.
* template/configure-ext.mk.tmpl (all): use single-quotes for MAKE
which is set by nmake and contains spaces in the path. do not
u... -
03:43 AM Revision abb8fc1b (git): configure-ext.mk.tmpl: FORCE
- * template/configure-ext.mk.tmpl (FORCE): add missing target for
BSD make.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:50 AM Revision 17b748df (git): Parallel ext configuration
- * ext/configure-ext.mk: configure each directories underneath ext
in parallel.
* template/exts.mk.tmpl: then collect the results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:47 AM Revision ee9f6fdf (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:47 AM Revision 80040c16 (git): improve C0 coverage of insns.def from 65.9% to 96.1%
- While I was developing my private topic branch I found that the VM
itself is not tested very much in `make test` tests. Of course
`make test-all` covers vast majority of the VM but running that task
is not an immediately possible thing ... -
02:19 AM Revision ea87854c (git): extinit.c.tmpl: drop after dot
- * template/extinit.c.tmpl: drop rest from the first dot in the
base name of a feature is ignored since r30464.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:18 AM Revision 7c30524b (git): * 2017-01-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:18 AM Revision eb411fad (git): extmk.rb: EXTINITS to sub make
- * ext/extmk.rb: pass EXTINITS to sub make. if the template for
extinit.c is modified after extinit.c got compiled, extinit.c
will be re-generated together with ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57396 b2dd03c8-...
01/22/2017
-
09:31 PM Bug #13146: Float::NANs in Hashes are confusing (more than usual).
- Robert A. Heiler wrote:
> To me I guess the surprise is that NAN in itself should be unique?
NaN is defined by IEEE to fail equality tests with all floats (including itself), so it could be argued it is more unique than any other v... -
08:56 PM Bug #13146: Float::NANs in Hashes are confusing (more than usual).
- This is actually interesting altogether.
First that Float::NAN becomes NaN in the display; this is the first surprise to me.
But second, that we have seemingly the same key twice (???), at the least in the display.
{NaN=>1, ... -
03:46 PM Bug #13146 (Rejected): Float::NANs in Hashes are confusing (more than usual).
- ```ruby
test = {Float::NAN => 1, -Float::NAN => 2}
=> {NaN=>1, NaN=>2}
test.values_at(Float::NAN, -Float::NAN)
=> [1, nil]
```
I don't know what the correct behaviour ought to be, but it seems inconsistent to create a hash with... -
09:23 PM Bug #13148 (Closed): [DOC] Small doc fix for Hash#dig and Struct#dig
- Use the correct parameter name in the method description.
-
06:50 PM Feature #6284: Add composition for procs
- fyi: Composing procs is way faster now. It beats all other algorithms in Paul's benchmark on ruby 2.3.3:
~~~
Warming up --------------------------------------
composing procs 135.483k i/100ms
chaining procs 55.595... -
05:44 PM Bug #13147 (Closed): Update documentation for URI#escape
- URI#escape documentation references URI.www_form_encode and URI.www_form_encode_component, but neither method exists. This patch updates the methods to URI.encode_www_form and URI.encode_www_form_component.
-
12:50 PM Revision 78b95b49 (git): template/extinit.c.tmpl
- * template/extinit.c.tmpl: separate from ext/extmk.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:04 AM Revision 709a60f9 (git): Makefile.sub: refine distclean-ext
- * win32/Makefile.sub (distclean-ext, realclean-ext): remove
extinit.c and suppress error message when failed to remove ext
directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:08 AM Bug #13145 (Closed): Symbol#clone doesn't work correctly
- Ruby 2.4.0 has a bug that `Symbol` converted from `String` at first cannot be cloned:
~~~ ruby
user@mypc ~$ irb
irb(main):001:0> :abc.clone # When :abc has not been created from String (e.g. 'abc'.to_s.to_sym), clone will work.
=... -
04:14 AM Revision 75dbfa13 (git): NEWS for SecureRandom's random source [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:02 AM Revision e80ae20c (git): NEWS for SipHash13 [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:20 AM Feature #12508 (Assigned): Integer#mod_pow
-
03:19 AM Bug #13127 (Closed): DRb `load': connection closed (DRb::DRbConnError) when client exit's from within a loop iterating over remote objects
- what's happen?
~~~
# S: drb_server_test.rb
# C: drb_client_test.rb
# (1) C send :each_with_index, &block to my_array in S.
remote_object.each_with_index
# (2) S send :yield to &block in C.
do ... - 03:06 AM Revision 8115e24a (git): * 2017-01-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:06 AM Revision 9985b759 (git): Hash#fetch: fix grammar in documentation.
- [Fix GH-1515][ci skip]
Author: Alyssa Ross <hi+services.github@alyssa.is>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:02 AM Bug #13141 (Assigned): Spurious Net::FTPReplyError
- Could you send us the debug output setting Net::FTP#debug_mode to true?
```
Net::FTP.open(SITE) do |ftp|
ftp.debug_mode = true
...
```
-
02:57 AM Feature #13129: Refinements cannot refine method_missing and respond_to_missing?
- Akira Matsuda wrote:
> Refinements with method_missing and respond_to_missing? behaves very strangely.
> ...
I think the behavior of 2.3 or later is expected because *_missing are
indirect method calls.
Matz, what do you think of c... -
01:57 AM Bug #13144: prettyprint doesn't detect cycles when wrapped inside Delegators
- Pull request with my fix and new test case: https://github.com/ruby/ruby/pull/1518
-
01:49 AM Bug #13144 (Closed): prettyprint doesn't detect cycles when wrapped inside Delegators
- The line count of the pretty print output for the following class grows factorially with the number of self-referencing SimpleDelegator instances created by the initializer. With an n of 8 the line count of the pretty print output is alm...
01/21/2017
-
09:33 PM Bug #13142 (Closed): Forwardable regression: cannot delegate to a constant since 2.4.0
- Before this commit
https://github.com/ch1c0t/tra/commit/96b15f042183f488413db99d6ede304d20503cbd
it works just fine on 2.3. But on 2.4.0:
```
/usr/lib/ruby/2.4.0/forwardable.rb:222:in `take': uninitialized constant ENUMERATOR (... -
06:36 PM Feature #13137: Hash Shorthand
- My apologies – I searched extensively and did not find the previous feature request. Thank you for the consideration.
-
12:21 PM Revision 562bbdf9 (git): lib/tempfile.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:24 AM Feature #13125: MRI has too much Qtrue : Qfalse;
- Someone suggested `RB_BOOL` at the meeting.
-
05:54 AM Feature #13125: MRI has too much Qtrue : Qfalse;
- Seem to me like `VALUE2BOOL`, except perhaps for the way it casts Qnil to Qtrue
- 06:17 AM Revision e81ed936 (git): * 2017-01-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:17 AM Revision ca3fe508 (git): Makefile.in: clean ruby-runner [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01/20/2017
-
05:11 PM Bug #13141 (Third Party's Issue): Spurious Net::FTPReplyError
- I have a script that downloads many files via FTP. `ftp.getbinaryfile` occasionally fails (about 7 times while downloading ~2000 files).
Here's the code:
~~~ ruby
Net::FTP.open(SITE) do |ftp|
ftp.login USER, PASS
ftp.passive... -
05:11 PM Feature #12180: switch id_table.c variant
- Oh, to reduce hash size either max serial_id should be 0x7fffffff instead of 0xffffffff
(cause 1 bit is stolen for collision check),
or collision bit removed (it will increase time for "miss" and decrease for "hit"). -
03:46 PM Feature #12180: switch id_table.c variant
- Excuse me for not reacting on discussion.
I forgot to turn on mail notifications for this issue.
> can you make a table more small with a few entries?
It could be 25% smaller for any size (on x86_64) at cost of second memory looku... -
03:17 AM Feature #12180: switch id_table.c variant
- We looked at this issue in yesterday's developer meeting.
(As ko1 measured before,) we confirmed that ffalcon's implementation is the fastest. Ko1 is assigned to switch to that. -
04:15 PM Bug #9285 (Rejected): Exception message of Errno::ENOENT contains strings @ rb_sysopen and @ dir_initialize in Ruby 2.1
- Through the experience in this three years, this error message sometimes help us to debug.
It is useful and kept as is. -
03:23 PM Bug #9285: Exception message of Errno::ENOENT contains strings @ rb_sysopen and @ dir_initialize in Ruby 2.1
- Is this worth of keeping open? It does not look it will be reverted. And seeing "temporary" workarounds such as [1] does not make the situation any better.
[1]: https://github.com/cucumber/cucumber-ruby/commit/60f2e3ab5f6a177435316c73... -
03:04 PM Feature #13125: MRI has too much Qtrue : Qfalse;
- How about `BOOL2RBOOL`?
-
02:11 PM Feature #13125: MRI has too much Qtrue : Qfalse;
- > "reverse" of RTEST()
How about ...
- CTEST()
- TEST2BOOL()
- C2BOOL()
Hope those help brainstorm a bit :) -
04:37 AM Feature #13125: MRI has too much Qtrue : Qfalse;
- We looked at this issue at yesterday's developer meeting. Nobody was against introducing a macro. No consensus over its name was made though.
- RBOOL() seems like a member of RSTRING(), RARRAY() and family so not very good.
- It is... -
01:33 PM Revision 121984da (git): Remove deprecated rbconfig/datadir
- This is deleted at
https://github.com/rubygems/rubygems/commit/0e3c2c1f04182990c4c7a0aa53435ad8427342fd
in upstream.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:26 PM Feature #13110: Byte-based operations for String
- > The "buffer gap" technique is very well known, I'm familiar with it since the early 90ies. I was thinking about it, but I think it won't work with UTF-8. If you have figured out how you would make it work with UTF-8, then please tell u...
-
10:21 AM Feature #13110: Byte-based operations for String
- Benoit Daloze wrote:
> Shugo Maeda wrote:
> ...
Yes, that's what I meant.
Shugo Maeda wrote:
> Martin Dürst wrote:
> ...
The "buffer gap" technique is very well known, I'm familiar with it since the early 90ies. I was thinking ... -
11:16 AM Misc #13072: Current state of date standard library
- > Time is kept in core
> ...
What problems will it solve? Just `date` becoming "not my problem" for core/stdlib maintainers?
Date is widely used, and its compatibility with Time (for comparisons, for example) is a huge pain. Being sep... -
10:36 AM Misc #13072: Current state of date standard library
- Victor Shepelev wrote:
> The facts that I've been able to gather (not supported by links, so please forgive me if I am misquoting/misunderstanding):
> ...
I agree with this understandings.
And some people continually discussing about ... -
10:59 AM Revision ef31fedd (git): extmk.rb: ignore generated sources
- * ext/extmk.rb (extract_makefile): ignore generated source files
not to reconfigure when in-place build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:10 AM Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
- The use of `:nodoc:` for these situations it is not a valid option in my opinion.
The reason being because `Object#public_methods` will not be inline with the documentation.
From that fact the developer cannot anymore trust the code. ... -
09:54 AM Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
- My proposal of [Internal intefaces](https://bugs.ruby-lang.org/issues/9992) comes in line with this proposal.
I would love to have this functionality in place.
Would make code integrity so much better.
Maybe the use of the new `inte... -
03:29 AM Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
- We looked at this issue yesterday at developers meeting.
While I understand the needs to distinguish official API and internal ones, (ab)using `protected` for that purpose was not recommended by the attendees. If you could isolate th... -
09:47 AM Feature #9992: Access Modifiers (Internal Interfaces)
- Matthew Draper presented a feature request to [extended 'protected' access modifier](https://bugs.ruby-lang.org/issues/12962) that comes in line with my current proposal.
Matthew presents the problem in a different angle so maybe that w... -
08:19 AM Feature #12969: Allow optional parameter in String#strip and related
- Yukihiro Matsumoto wrote:
> Removing pattern may not be set of single character, or may be complex.
> ...
I agree. It would also allow to specify character ranges and character properties.
-
08:00 AM Bug #9569 (Closed): SecureRandom should try /dev/urandom first
- Applied in changeset r57384.
----------
SecureRandom should try /dev/urandom first [Bug #9569]
* random.c (InitVM_Random): rename Random.raw_seed to
Random.urandom. A quick search seems there are no practical use
of this method... -
08:00 AM Revision abae70d6 (git): SecureRandom should try /dev/urandom first [Bug #9569]
- * random.c (InitVM_Random): rename Random.raw_seed to
Random.urandom. A quick search seems there are no practical use
of this method than securerandom.rb so I think it's OK to rename
but if there are users ... -
07:50 AM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
- Herwin W wrote:
> Regarding `String#gsb` and `String#sb`: It is far from clear what the difference between `#sub` and `#sb` is just by the method names. And personally I don't care that much about the length of the method names, I prefe... -
07:45 AM Revision e95eb958 (git): Keep -jN option
- * {cygwin,template}/GNUmakefile.in (MFLAGS, MAKEFLAGS): keep -jN
option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:01 AM Feature #13017 (Closed): Switch SipHash from SipHash24 to SipHash13
- Applied in changeset r57382.
----------
switch SipHash from SipHash24 to SipHash13 variant
SipHash13 is secure enough to be used in hash-tables,
and SipHash's author confirms that.
Rust already considered switch to SipHash13:
https:/... -
06:01 AM Revision 04c94f95 (git): switch SipHash from SipHash24 to SipHash13 variant
- SipHash13 is secure enough to be used in hash-tables,
and SipHash's author confirms that.
Rust already considered switch to SipHash13:
https://github.com/rust-lang/rust/issues/29754#issue-116174313
Jean-Philippe Aumasson confirmation:
... -
05:34 AM Bug #13140 (Rejected): unmatched parenthesis error on regexp with "x" option when all parens are matched
- http://ruby-doc.org/core-2.4.0/doc/regexp_rdoc.html#label-Free-Spacing+Mode+and+Comments
-
05:08 AM Bug #13140: unmatched parenthesis error on regexp with "x" option when all parens are matched
- Realized the problem.
The error is caused because the x option also ignores text after # and two # appear in the regex.
If these are escaped then the error goes away. -
04:42 AM Bug #13140 (Rejected): unmatched parenthesis error on regexp with "x" option when all parens are matched
- See the attached source file.
When the attached file is executed as is, the following error is emitted:
test.rb:39: end pattern with unmatched parenthesis: /^(%([^%]+)%)?+((_?+)([^#]+))(#|$)/x
There are no unmatched parens in t... -
05:24 AM Bug #13104: mathn.rb affects Rational literals
- Just "don't use math"?
-
04:26 AM Bug #13104: mathn.rb affects Rational literals
- We looked at this issue at yesterday's developer meeting.
The intension was not made clear, but we confirmed that mathn's global side-effects are the nature of that library. Maybe requiring it implies your willing to accept such surp... -
05:14 AM Bug #13079 (Feedback): linked list corruption (probable race condition)
- I'm not sure correctly, but you may violate something MRI requires.
Currently, I can't understand anything.
If you can make a reproducible source set, please submit again.
Thanks,
Koichi -
04:41 AM Feature #11925: Struct construction with kwargs
- Another idea is introducing another method to define own struct, such as `T = Struct.define(:a, :b); T.new(a: 1, b: 2)` and so on.
(just idea) Moreover we can extend Struct with some properties, like: `Struct.define(:a, b: :read_only)`... -
04:28 AM Bug #13139 (Closed): bug in the Ruby interpreter or extension for new AIX VM chef-client run.
- Good to hear the problem disappeared.
-
03:10 AM Bug #13139: bug in the Ruby interpreter or extension for new AIX VM chef-client run.
- This problem goes away either after waiting for a while and retrying... or by forcing the upload of the missing cookbooks from the client sync list again.
e.g. from the ChefDK..... knife upload cookbook <cookbok name> --force -
04:27 AM Revision f81c1c24 (git): compile.c: optimization of defined? in condition
- * compile.c (compile_branch_condition): trivial optimization of
defined? expression in a branch condition, where a string is not
needed, but just a boolean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57381 b2dd03c8-39d4-4d8f-... -
04:22 AM Bug #13064: Inconsistent behavior with `next` inside `begin`/`end` across different implementations.
- We looked at this issue at yesterday's developer meeting.
While Ko1 and Matz already replied that the current MRI behaviour is their intension, I confirmed that ISO/IEC 30170 says nothing about this situation. So this is at least not... -
04:01 AM Feature #13048: Better way to do Regexp.new(Regexp.escape("some string"))
- We looked at this issue at yesterday's developer meeting.
While looking at "Regexp.new Regexp.escape" search result of GitHub, we felt in common that some (if not most) of those usage are questionable. For instance multiple copies of... -
03:41 AM Feature #13016 (Rejected): String#gsub(hash)
- We looked at this issue in yesterday's developer meeting.
While I claimed the use of regular expression is an implementation detail that I don't want to care about, attendees there said it is better to expose compiled structure (be th... -
03:33 AM Feature #12967: Add a default for RUBY_GC_HEAP_GROWTH_MAX_SLOTS out-of-the-box
- We looked at this issue at yesterday's developer meeting.
Ko1 said he was not sure if the proposed default value is decent. Also he said to me that there should be some kind of comprehensive approach to parameterize GC. It seems he ... -
03:23 AM Misc #12935: Webrick: Update HTTP Status codes, share them
- We looked at this issue at yesterday's developer meeting and decided to let naruse (who was there) handle this issue.
-
02:39 AM Bug #13136 (Closed): large_array.sample(11)が遅い
- Applied in changeset r57380.
----------
array.c: improve Array#sample
* array.c (rb_ary_sample): improve performance when many samples
from a large array. based on the patch by tomoya ishida
<tomoyapenguin AT gmail.com> in [ruby-d... -
12:59 AM Bug #13136: large_array.sample(11)が遅い
- 別案としてhashの代わりに配列で覚えておくという方法もありますが、元の配列に比例した作業領域を使うのでそのコストが高いかもしれません。
```diff
diff --git a/array.c b/array.c
index a19e7bb710..4294de640a 100644
--- a/array.c
+++ b/array.c
@@ -131,6 +131,11 @@ static ID id_cmp, id_div, id_power;
... -
02:39 AM Revision 2de1dbdf (git): array.c: improve Array#sample
- * array.c (rb_ary_sample): improve performance when many samples
from a large array. based on the patch by tomoya ishida
<tomoyapenguin AT gmail.com> in [ruby-dev:49956]. [Bug #13136]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr... -
02:27 AM Revision 8f76ad37 (git): benchmarks for Bug#13136
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:27 AM Feature #13137: Hash Shorthand
- While I understand the primary reasoning behind it - less to type - I do not like the syntax proposal.
To me it looks as if there is something missing in the build-up of the hash elements.
It appears to put load onto my brain and a... - 01:02 AM Revision dfac1f5a (git): * 2017-01-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:02 AM Revision 1d4976c0 (git): error.c: print default RS
- * error.c (rb_warn_m): print the default RS instead of an empty
string with a newline. [Feature #12944]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e