Activity
From 01/06/2017 to 01/12/2017
01/12/2017
-
05:07 PM Feature #12957: A more OO way to create lambda Procs
- I want this too
```ruby
MyLambda = Class.new Proc
```
I want `MyLambda{|x| x + 1}.lambda?` to == `true`
I only want it when initializing the new lambdas. I want easy initialization with a block
Maybe allow `Proc.new` to a... -
12:57 PM Bug #13126 (Closed): __dir__ in eval returns nil
- ~~~
$ ruby -e 'eval "p File.dirname(__FILE__); p __dir__"'
"."
nil
~~~
-
12:17 PM Revision 6ca3028e (git): lib/net/smtp.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:56 AM Feature #13125 (Closed): MRI has too much Qtrue : Qfalse;
- ```
% git grep -P 'Q(true|false|nil|undef)\s+:\s+Q(true|false|nil|undef)' | wc -l
211
```
Out of those 211 occurrences the most interesting lines include:
```
complex.c:#define f_boolcast(x) ((x) ? Qtrue : Qfalse)
math.c:#defi... -
07:41 AM Revision 14a730e9 (git): immediate message mode of compile error
- * compile.c (append_compile_error): set Qtrue for erred state with
showing the message immediately.
* iseq.c (prepare_iseq_build): make immediate message mode if main
or top level context, not to show the failed path twice in the
... -
05:43 AM Revision 257fd901 (git): compile.c: invalid yield in main
- * compile.c (iseq_compile_each): yield cannot be in the main
context as well as a top context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:20 AM Bug #13018: end of file reached (EOFError) from SMTP
- Shugo Maeda wrote:
> Can we close this issue by fixing backtrace information?
Closed by r57311, but feel free to reopen if you don't like it.
-
02:19 AM Bug #13018 (Closed): end of file reached (EOFError) from SMTP
- Applied in changeset r57311.
----------
lib/net/protocol.rb: preserve backtrace information
BufferedIO#rbuf_fill should preserve backtrace information when raising
EOFError. Otherwise, users get confused when EOFError is leaked out fr... -
01:42 AM Bug #13018: end of file reached (EOFError) from SMTP
- Shugo Maeda <shugo@ruby-lang.org> wrote:
> May I fix it to preserve the backtrace information, or would you?
Sure, you can :) -
01:32 AM Bug #13018: end of file reached (EOFError) from SMTP
- Toby Murray wrote:
> Someone has commented on the Rails issue here: https://github.com/rails/rails/issues/27298#issuecomment-269980037 that this is one of a handful of errors that leak out. Not sure whether the ones mentioned there me... -
02:19 AM Revision 58935eb8 (git): lib/net/protocol.rb: preserve backtrace information
- BufferedIO#rbuf_fill should preserve backtrace information when raising
EOFError. Otherwise, users get confused when EOFError is leaked out from
Net::SMTP etc. [ruby-core:78550] [Bug #13018]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
01/11/2017
- 11:53 PM Revision d9421e13 (git): test/rinda/test_rinda: skip multicast tests for unsupported systems
- This allows "test-all" to pass on systems without multicast
support. I leave CONFIG_IP_MULTICAST unset in my Linux kernel
.config, nowadays.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 11:46 PM Revision 5c244d73 (git): test/fiddle/helper: remove special case for x86_64-linux
- RUBY_PLATFORM is "x86_64-linux" on a 32-bit (x86) Ruby built and
running on a 64-bit Linux kernel. I also have a /lib64
directory nowadays because I just installed multi-arch support
in userspace. So, fall back to loading based in the ... -
11:07 PM Bug #13116 (Rejected): modulo, divmod range problem: float_val % 1 may return 1.0
- `1.0 - 0.0.prev_float` results in 1.0 because of the finite precision.
-
04:51 PM Bug #13116: modulo, divmod range problem: float_val % 1 may return 1.0
- For what it's worth, this result fits in with with `modulo` is documented to be. The documentation states
> `x.modulo(y) means x-y*(x/y).floor`
I implemented this in C to check if the results held and they did. (Note that `0.0.prev_... -
10:51 PM Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
- kosaki.motohiro@gmail.com wrote:
> SYS_getrandom and __NR_getrandom are defined in different headers. but
> your patch doesn't change any #include directive. It seems odd.
Yes. sys/syscall.h (glibc, libc6-dev on Debian) pulls in
... -
02:44 PM Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
- SYS_getrandom and __NR_getrandom are defined in different headers. but your patch doesn't change any #include directive. It seems odd.
Anyway I have no objection. -
04:41 AM Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
- normalperson@yhbt.net wrote:
> ----------------------------------------
> Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
> https://bugs.ruby-lang.org/issues/13103
Any comments? I may com... - 10:38 PM Revision 1807c052 (git): * 2017-01-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 10:38 PM Revision 208018fb (git): random.c (fill_random_bytes_syscall): use "__NR_" prefix on Linux
- glibc still does not define the SYS_getrandom alias for
__NR_getrandom in the Linux kernel. However, installing
up-to-date Linux kernel headers (linux-libc-dev >= 3.17 package
on Debian) will get the __NR_getrandom syscall number define... -
10:03 PM Bug #13018: end of file reached (EOFError) from SMTP
- shugo@ruby-lang.org wrote:
> Assignee changed from Shugo Maeda to Eric Wong
>
> Toby Murray wrote:
> > Yields `end of file reached (EOFError)`. From the discussion there, it seems like the SMTP relay is inappropriately killing the ... -
09:32 PM Bug #13018: end of file reached (EOFError) from SMTP
- Someone has commented on the Rails issue here: https://github.com/rails/rails/issues/27298#issuecomment-269980037 that this is one of a handful of errors that leak out. Not sure whether the ones mentioned there mean much in this context,...
-
03:13 PM Bug #13120: p [].class shows ThreadSafe::Array when it expects to show Array
- Verified that it has been addressed by using revision 57306.
~~~
$ ruby -v
ruby 2.5.0dev (2017-01-11 trunk 57306) [x86_64-linux]
$ bundle -v
Bundler version 1.13.7
$ git clone -b ruby250 https://github.com/yahonda/array_bug.git
... -
04:13 AM Bug #13120 (Closed): p [].class shows ThreadSafe::Array when it expects to show Array
- Applied in changeset r57305.
----------
variable.c: fix the condition to cache
* variable.c (rb_const_set): fix the condition to cache the class
path and cache permanent or temporary path corresponding to the
outer klass. [ruby-co... -
02:25 AM Bug #13120 (Open): p [].class shows ThreadSafe::Array when it expects to show Array
-
02:18 AM Bug #13120 (Closed): p [].class shows ThreadSafe::Array when it expects to show Array
-
01:42 AM Bug #13120 (Open): p [].class shows ThreadSafe::Array when it expects to show Array
-
01:03 AM Bug #13120 (Closed): p [].class shows ThreadSafe::Array when it expects to show Array
-
02:54 PM Bug #13114 (Closed): test failures since r57284
- r57305 で直ったようなので閉じます。
-
02:48 PM Revision 3e34d8a4 (git): lib/net/protocol.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:48 PM Feature #13124 (Open): Should #puts convert to external encoding?
- For instance:
puts "?\x00\x42\x30".force_encoding(Encoding::UTF_16LE)
?B0
puts "?\x00\x42\x30".force_encoding(Encoding::UTF_16LE).encode("utf-8")
?あ
The first result is surprising to me. It seems to treat the S... -
01:32 PM Bug #13119: String#scrub ignores the block if the string encoding is not ASCII-compatible
- Thanks nobu for the amazingly quick fix!
-
01:41 AM Bug #13119 (Closed): String#scrub ignores the block if the string encoding is not ASCII-compatible
-
09:35 AM Feature #13123: NilClass#dig
- Tl;dr: use &.
Longer story:
Generally speaking, there are two major ways of how a null-ish object behaves; whether it should silently ignore methods that makes sense for other classes, or to explicitly raise exceptions for such case... -
07:07 AM Feature #13123 (Closed): NilClass#dig
- We now have `Hash#dig`. We often have a variable that is either a hash or nil but we are not sure which. In such cases, it would be convenient if we can apply `dig` without conditioning on whether it is a hash or nil.
```ruby
h = {a:... -
05:06 AM Feature #13122: Special syntax for Hash#default_proc
- Realized I forgot commas in the examples:
~~~ruby
my_hash = {
key: "value",
*: proc { |h, k| h[k] = "other value" },
}
~~~
and
~~~ruby
my_hash = {
"key" => "value",
* => proc { |h, k| h[k] = "other value" },
}... -
04:52 AM Feature #13122: Special syntax for Hash#default_proc
- Nobuyoshi Nakada wrote:
> What about
> ...
Ah, I forgot about that...
That definitely works, and solves the problem without a need for new syntax. Please close if you don't see the need for these changes.
Thanks! -
02:12 AM Feature #13122: Special syntax for Hash#default_proc
- What about
```ruby
MY_HASH = Hash.new {|h, k| "other value"}.update(
key: "value",
).freeze
```
?
-
01:46 AM Feature #13122 (Rejected): Special syntax for Hash#default_proc
- The current Hash#default_proc flow usually looks something like this:
~~~ ruby
my_hash = { key: "value" }
my_hash.default_proc = proc { |h, k| h[k] = "other value" }
~~~
This makes the common practice of freezing large constant ... -
04:12 AM Revision 1df80905 (git): variable.c: fix the condition to cache
- * variable.c (rb_const_set): fix the condition to cache the class
path and cache permanent or temporary path corresponding to the
outer klass. [ruby-core:79039] [Bug #13120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57305 b... -
02:31 AM Revision 90294641 (git): string.c: replacement and block
- * string.c (rb_enc_str_scrub): only one of replacement and block
is allowed. [ruby-core:79038] [Bug #13119]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:18 AM Revision a3aa4da7 (git): string.c: yield invalid part
- * string.c (rb_enc_str_scrub): yield the invalid part only with
ASCII-incompatible. [ruby-core:79039] [Bug #13120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:06 AM Bug #13121 (Closed): Backport r57108 (fix memory corruption by width underflow)
-
01:03 AM Revision c763f0fb (git): string.c: block for scrub with ASCII-incompatible
- * string.c (rb_enc_str_scrub): honor the given block with
ASCII-incompatible encoding. [ruby-core:79039] [Bug #13120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:54 AM Bug #12924: Fiddle::TestFunction#test_nogvl_poll fails on macOS 10.12-10.12.1 Sierra
- Yes. This issue is marked "Third Party's Issue", which means we have nothing to do. This state is kind of close.
-
12:50 AM Feature #13118 (Closed): Array#at(*indexes); Array#at([indexes])
- No problem. Thank you anyway.
-
12:40 AM Feature #13118: Array#at(*indexes); Array#at([indexes])
- Well, I am an idiot. Read through the array spec twice and missed it both times. Please close.
01/10/2017
-
10:31 PM Bug #13120 (Closed): p [].class shows ThreadSafe::Array when it expects to show Array
- It has been filed as Rails issue https://github.com/rails/rails/issues/27631 and found there was a similar bug reported https://bugs.ruby-lang.org/issues/11977 . It looks it reproduces again.
Steps to reproduce:
```
$ ruby -v
rub... -
04:50 PM Bug #13119 (Closed): String#scrub ignores the block if the string encoding is not ASCII-compatible
- String#scrub completely ignores the block if the string encoding is not ASCII-compatible.
This does not seem intended and is counter-intuitive as ASCII-compatible strings use it.
"\x00\xD8\x42\x30".force_encoding(Encoding::UTF_16... -
03:42 PM Feature #13118: Array#at(*indexes); Array#at([indexes])
- `Array#values_at` already exists for this purpose:
~~~ ruby
a.values_at(0,1) #=> ["a", "b"]
a.values_at(0,0) #=> ["a", "a")
a.values_at(*[2,3]) #=> ["c", "d"]
a.values_at(*[-1,1]) #=> ["e", "b"]
~~~ -
01:52 PM Feature #13118 (Closed): Array#at(*indexes); Array#at([indexes])
- It is useful to have Array return a repeated permutation. Rather than add another method, we could overload Array#at to take multiple indexes.
~~~ruby
a = [ "a", "b", "c", "d", "e" ]
a.at(0) #=> "a"
a.at(-1) #=> "e"
#New st... -
03:28 PM Bug #12613 (Closed): iseq_set_sequence: adjust bug -1 < 0 (retry inside begin/rescue)
- Applied in changeset r57300.
----------
compile.c: check compile
* compile.c (iseq_compile_each): check if sub nodes succeeded.
[ruby-core:76531] [Bug #12613] - 03:28 PM Revision e4a2dd5f (git): * 2017-01-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:28 PM Revision 52b02ad2 (git): compile.c: check compile
- * compile.c (iseq_compile_each): check if sub nodes succeeded.
[ruby-core:76531] [Bug #12613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:10 PM Bug #12924: Fiddle::TestFunction#test_nogvl_poll fails on macOS 10.12-10.12.1 Sierra
- Close? Seems to be fixed. OSX Sierra introduced breaking changes for loading dynamic libraries. Haskell 8 was broken until they released the Darwin source in late November 2016, and Valgrind is still broken on OSX Sierra.
$ sw_vers
Pr... -
01:41 PM Revision a3fb17f3 (git): rational.c: short circuit optimization
- * rational.c (nurat_reduce): short circuit when arguments are ONE,
nothing is needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:37 PM Revision 14b3dc1e (git): rational.c: f_idiv
- * rational.c (f_idiv): call rb_int_idiv directly if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:29 PM Feature #12854: Proc#curry should return an instance of the class, not Proc
- Another pattern is Proc#multilens(tin, lenses, tout); where "tin" is a transformation from the input argument list to lenses, "lenses" are the intermediate functions, and "tout"is a mapping from the intermediate functions to an output ar...
-
02:06 AM Feature #12854: Proc#curry should return an instance of the class, not Proc
- Defining complex functions with curry would be nontrivial:
~~~ ruby
double = ->(a)(a+a)
g = ->(a,b,c){ f.call(1,c, double.call(a))}
~~~
I suggest adding Proc#trans and Proc#lens.
Proc#trans applies a transformation (repeated ... -
12:32 PM Revision 1dd076c5 (git): lib/net/pop.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:18 PM Revision 3c199bb7 (git): numeric.c: short circuit optimization
- * numeric.c (fix_mul): short circuit when multiplication of Bignum
and 0 or 1 not to make a Bignum unnecessarily.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 10:57 AM Revision 93ff30bf (git): * 2017-01-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:57 AM Revision c54c60da (git): thread.c: fix todo
- * thread.c (rb_threadptr_pending_interrupt_check_mask): traverse
the super class chain instead of making ancestors array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:56 AM Misc #13117 (Closed): Remove Japanese comment from lib/irb/slex.rb
- OK, closing. Please reopen in case something remains.
-
03:16 AM Misc #13117: Remove Japanese comment from lib/irb/slex.rb
- Can this ticket be closed now that Nobu change the comment to english?
01/09/2017
-
10:50 PM Feature #13110: Byte-based operations for String
- Benoit Daloze wrote:
> Shugo Maeda wrote:
> ...
They are better, but I prefer UTF-8 because it can be used as source encoding and has
better interoperability with other libraries.
-
03:03 PM Feature #13110: Byte-based operations for String
- Shugo Maeda wrote:
> Martin Dürst wrote:
> ...
What about UTF-32BE or UTF-32LE? -
12:41 PM Feature #13110: Byte-based operations for String
- Martin Dürst wrote:
> Shugo Maeda wrote:
> ...
UTF-32 is not useful because it's a dummy encoding.
> > Once a string is scanned, we have a byte offset, so we don't need
> ...
Theses ways seem worth considering.
> > In the follow... -
09:35 AM Feature #13110: Byte-based operations for String
- Shugo Maeda wrote:
> Let me clarify my intention.
> ...
What about using UTF-32? It will use some additional memory, but give you the speed you want.
> Once a string is scanned, we have a byte offset, so we don't need
> ...
One w... -
09:47 PM Bug #13107: def_delegators causes random errors in MRI 2.4.0
- This appears to be fixed in latest trunk now. Is there any info on when a 2.4.1 will be released - seems like a pretty serious issue.
-
03:01 AM Bug #13107: def_delegators causes random errors in MRI 2.4.0
- When interrupted by a finalizer during setting up tailcall frame, a block argument on the stack was overwritten by the magic number in the finalizer frame which looks an `Integer`.
I tried in vain to make a test case, but a failure in m... -
02:55 AM Bug #13107 (Closed): def_delegators causes random errors in MRI 2.4.0
- Applied in changeset r57293.
----------
vm_insnhelper.c: block argument at tailcall
* vm_insnhelper.c (vm_call_iseq_setup_tailcall): check interrupts
after set up the new frame, not the passed block to be clobbered
by invoked final... -
12:32 AM Bug #13107 (Feedback): def_delegators causes random errors in MRI 2.4.0
- Enabling trace instruction disables tail call optimization, too.
It seems like a bug of the optimization and GC.
How can I reproduce it briefly? -
10:21 AM Feature #13095: [PATCH] io.c (rb_f_syscall): remove deprecation notice
- xkernigh@netscape.net wrote:
> Kernel.syscall was a wrapper around syscall() or \_\_syscall() in libc, but it didn't use the correct types for arguments and return values. I suggest to use Fiddle to call syscall() or \_\_syscall() with... -
04:25 AM Feature #13095: [PATCH] io.c (rb_f_syscall): remove deprecation notice
- `Kernel.syscall` was a wrapper around `syscall()` or `__syscall()` in libc, but it didn't use the correct types for arguments and return values. I suggest to use Fiddle to call `syscall()` or `__syscall()` with the correct types for your...
-
09:06 AM Bug #13102: Confusing method name: Set#delete?
- Ryan Davis wrote:
> http://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html#method-i-delete-3F
> ...
Exactly, it is the duality we all know from methods such as Array's #uniq and #uniq!, #select and #select!, #flatten and #flatten! o... -
08:07 AM Bug #9569: SecureRandom should try /dev/urandom first
- Bart de Water wrote:
> Akira Tanaka wrote:
> ...
Very good news. Thank you for letting us know this.
Now I think we have no reason to avoid /dev/urandom. It doesn't immediately mean OpenSSL became bad but I understand the OP's mot... -
07:51 AM Feature #13017: Switch SipHash from SipHash24 to SipHash13
- Yura Sokolov wrote:
> Crypto-analyse of SipHash (and best result for SipHash13)
> ...
Thank you for the info. From what I read the "best result" the paper says for SipHash13 is collision probability of 2^-167. Because SipHash's inter... -
03:52 AM Bug #12705: yielding args to a lambda uses block/proc rather than lambda/method semantics
- What's the status?
Is the current behavior on a lambda proc is intentional, and has the spec been changed since 2.2?
And is the difference between a method proc and a lambda proc intentional, or not?
If it is unintentional, splat fo... -
03:32 AM Bug #12705 (Assigned): yielding args to a lambda uses block/proc rather than lambda/method semantics
-
02:55 AM Revision ff3496b0 (git): vm_insnhelper.c: block argument at tailcall
- * vm_insnhelper.c (vm_call_iseq_setup_tailcall): check interrupts
after set up the new frame, not the passed block to be clobbered
by invoked finalizers and so on. [ruby-core:78981] [Bug #13107]
git-svn-id: svn+ssh://ci.ruby-lang.o... - 02:45 AM Revision d4983225 (git): * 2017-01-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:45 AM Revision 474a7301 (git): slex.rb: japanese comment [ci skip]
- * lib/irb/slex.rb (postproc): translated a japanese comment in
ISO-2022-JP. [ruby-core:79017] [Misc #13117]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:09 AM Misc #13117 (Closed): Remove Japanese comment from lib/irb/slex.rb
- The file lib/irb/slex.rb contains Japanese comment in ISO-2022-JP. This patch removes it.
01/08/2017
-
03:42 PM Bug #13116 (Rejected): modulo, divmod range problem: float_val % 1 may return 1.0
- mod, divmod range problem: float_val % 1 may return 1.0
x % y sometimes returns y (not in 0 <= result < y)
```ruby
float_val = 0.0.prev_float
float_val % 1 #=> 1.0
Math.sin(2*Math::PI) % 10 #=> 10.0
```
I not sure this is a bu... -
11:50 AM Bug #13115 (Closed): `YAML.dump` outputs deperecated message even with delegated object
- `YAML.dump` outputs deprecated message if it calls with delegated object
but doesn't with inherited object:
~~~ ruby
require 'yaml'
require 'delegate'
$VERBOSE = true
class Delegated < DelegateClass(Object)
def initialize
... -
05:51 AM Bug #13100 (Assigned): OpenSSL::PKey::EC#public_keyでGroup情報がコピーされない。
-
05:49 AM Bug #13114 (Closed): test failures since r57284
- r57284 の変更でいくつかのテストが失敗します。
最小の再現条件を絞り込もうとしたのですが、webrick/httpauth/basicauth だと再現するのに、個別の webrick/httpstatus と webrick/httpauth/authenticator だと再現しないなど、条件がよくわかりませんでした。
```
% ruby -r webrick/httpauth/basicauth -e 'p WEBrick::HTTPStat... -
04:17 AM Revision 6a680a5c (git): lib/getoptlong.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:04 AM Revision 868700a7 (git): test_io_console.rb: fix of old CentOS5
- * test/io/console/test_io_console.rb (test_winsize): on old CentOS5
window size seems unable to be set across a pty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:51 AM Revision 4794ce55 (git): driver.rb: measure_target option [ci skip]
- * benchmark/driver.rb (BenchmarkDriver.load): restore
measure_target option from the loaded results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:50 AM Revision 437a8cc4 (git): driver.rb: out output file when loading [ci skip]
- * benchmark/driver.rb: default output file is not used when
loading rawdata.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:46 AM Revision caca9a47 (git): driver.rb: extract loop times [ci skip]
- * benchmark/driver.rb (BenchmarkDriver.load): extract loop times
from the loaded results to adjust the results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:45 AM Revision 1bf10e33 (git): driver.rb: adjust name width [ci skip]
- * benchmark/driver.rb (show_results): count adjusted result marks
as the name width.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:34 AM Bug #13107: def_delegators causes random errors in MRI 2.4.0
- Here's another patch that also fixes the problem, while keeping the optimisation from r55376.
I'll admit that I have no idea what this option does or how it could cause this bug - I noticed that the "portable" implementation of `forwa... -
02:11 AM Bug #13107: def_delegators causes random errors in MRI 2.4.0
- The `mongo` gem is also affected by this bug (https://jira.mongodb.org/browse/RUBY-1191). Running the tests in the `spec/mongo/grid/stream/read_spec.rb` file reliably reproduces it.
I bisected the changes to forwardable.rb between v2.... -
02:13 AM Bug #13113: Performance issue, const_set Module.new is too slow in Ruby 2.4
- benchmark results:
Execution time (sec)
name | 2.3.3| r57281| r57284
-------------------------|-------:|-------:|--------
loop_whileloop2 | 0.146| 0.135| 0.106
vm2_module_ann_const_set*| 9.... -
01:46 AM Bug #13113 (Closed): Performance issue, const_set Module.new is too slow in Ruby 2.4
- Applied in changeset r57283.
----------
benchmarks for [Bug #13113] [ci skip] -
12:14 AM Bug #13113: Performance issue, const_set Module.new is too slow in Ruby 2.4
- Since r53376, anonymous module is resolved immediately by assignment to a constant, including the outer module.
-
01:59 AM Revision faf472a2 (git): variable.c: resolve permanent name only
- * variable.c (rb_const_set): resolve and cache class name
immediately only if the outer class/module has the name,
otherwise just set the ID. [ruby-core:79007] [Bug #13113]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57284 b2... -
01:46 AM Revision 8e980027 (git): benchmarks for [Bug #13113] [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01/07/2017
-
11:02 PM Revision b4a55c1c (git): console.c: unpaired size
- * ext/io/console/console.c (console_set_winsize): reject unpaired
pixel size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:52 PM Bug #13112 (Closed): io/console io.winsize=[rows,cols] throws TypeError: no implicit conversion of false into Integer
- Applied in changeset r57280.
----------
console.c: OOB access
* ext/io/console/console.c (console_set_winsize): fix
out-of-bounds access. [ruby-core:79004] [Bug #13112] -
06:19 AM Bug #13112 (Closed): io/console io.winsize=[rows,cols] throws TypeError: no implicit conversion of false into Integer
- The doc says
~~~
winsize = [rows, columns]
Tries to set console size. The effect depends on the platform and the running environment.
You must require 'io/console' to use this method.
https://docs.ruby-lang.org/en/2.4.0/IO.html#me... - 10:52 PM Revision 945934cc (git): * 2017-01-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:52 PM Revision 5b856ee1 (git): console.c: OOB access
- * ext/io/console/console.c (console_set_winsize): fix
out-of-bounds access. [ruby-core:79004] [Bug #13112]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:51 PM Bug #13113 (Closed): Performance issue, const_set Module.new is too slow in Ruby 2.4
- In Ruby 2.4, the following code is too slow.
~~~ ruby
5000000.times { Module.new.const_set(:X, Module.new) }
~~~
In Ruby 2.4, it took 115.68 seconds to run this code.
However, in Ruby 2.3.3, it took 7.36 seconds.
And if c... -
11:54 AM Revision d59dfcdb (git): adjust indent [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:31 AM Bug #12855 (Closed): Inconsistent keys identity in compare_by_identity Hash when using literals
- Applied in changeset r57278.
----------
fix optimization for hash aset/aref with fstring
Patch by Eric Wong [ruby-core:78797].
I don't like the idea of making insns.def any bigger to support
a corner case, and "test_hash_aref_fstring_i... -
11:31 AM Revision ac9f8145 (git): fix optimization for hash aset/aref with fstring
- Patch by Eric Wong [ruby-core:78797].
I don't like the idea of making insns.def any bigger to support
a corner case, and "test_hash_aref_fstring_identity" shows
how contrived this is.
[ruby-core:78783] [Bug #12855]
git-svn-id: svn+ssh:... -
08:31 AM Revision 4dbbcc48 (git): bignum.c: unnecessary check
- * bignum.c (rb_cstr_parse_inum): remove unnecessary check.
successive sign is rejected by conv_digit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:40 AM Feature #13110: Byte-based operations for String
- Nobuyoshi Nakada wrote:
> How about to let `s.index(/ああ/n, 4)` return 18?
What does `/ああ/n` represent in this context?
As I stated in the previous comment, I'd like to handle multibyte characters.
For example, `.` should match wi... -
03:01 AM Feature #13110: Byte-based operations for String
- How about to let `s.index(/ああ/n, 4)` return 18?
-
04:39 AM Bug #13111: Degraded performance for delegated methods through Forwardable module
- ***Update***:
I talked to @Yuki Nishijima and he pointed out that it is an issue with an `UnboundMethod` instance being created on every delegated call here: https://github.com/ruby/ruby/blob/2283d14cc9fefa278dfde02bdf8d84ce50cfe16f/l... -
04:30 AM Bug #13111 (Closed): Degraded performance for delegated methods through Forwardable module
- After upgrading to Ruby 2.4.0 on my local machine while developing some changes on this gem: https://github.com/gonzedge/rambling-trie, there was a noticeable performance degradation with any delegated methods through `Forwardable`. I ha...
- 02:14 AM Revision 60172f01 (git): * 2017-01-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:14 AM Revision 9144d57b (git): lib/fileutils.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01/06/2017
-
11:54 PM Feature #13110: Byte-based operations for String
- Eric Wong wrote:
> For reading and parsing operations, I'm not sure they're needed
> ...
Let me clarify my intention.
I'd like to handle not only singlebyte characters but multibyte
characters efficiently by byte-based operations.... -
09:31 PM Feature #13110: Byte-based operations for String
- Kirk Haines <wyhaines@gmail.com> wrote:
> My software makes use of buffers of network data where the character
> encodings are irrelevant. They are just streams of bytes being moved
> around, and sometimes manipulated along the way, ... -
04:24 PM Feature #13110: Byte-based operations for String
- Let me share my use case.
I'm implementing a text editor, in which the point of a buffer is represented by a byte-based offset for speed.
We can get substrings of a buffer by byteslice, but we need force_encoding(Encoding::ASCII_8BIT... -
04:02 PM Feature #13110 (Closed): Byte-based operations for String
- How about to add byte-based operations for String?
```ruby
s = "あああいいいあああ"
p s.byteindex(/ああ/, 4) #=> 18
x, y = Regexp.last_match.byteoffset(0) #=> [18, 24]
s.bytesplice(x...y, "おおお")
p s #=> "あああいいいおおおあ"
```
-
01:47 PM Bug #9569: SecureRandom should try /dev/urandom first
- Akira Tanaka wrote:
> Please update the man page first, if it is really out-dated.
This has happened with the Linux 4.09 release according to https://bugzilla.kernel.org/show_bug.cgi?id=71211. The random(4) man page at http://man7.or... -
12:43 PM Bug #13099: Binding#irb does not work outside of irb
- Shyouhei Urabe wrote:
> Silently requiring something reminds me of multi-threaded autoload situation. Is it OK?
Since require is thread-safe, I think the only requirement in this case is that all threads trying to touch IRB first ne... -
04:04 AM Bug #13099: Binding#irb does not work outside of irb
- Silently requiring something reminds me of multi-threaded autoload situation. Is it OK?
-
06:08 AM Bug #13102: Confusing method name: Set#delete?
- http://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html#method-i-delete-3F
Compare to regular delete, which always returns self... -
04:27 AM Feature #13109: `using` in refinements is required to be physically placed before the refined method call
- I consider it's an intended behavior, but there's a room for improvement.
So I made this issue as a feature request.
Matz. -
01:15 AM Feature #13109 (Rejected): `using` in refinements is required to be physically placed before the refined method call
- When using refinements in one file, the `using` call needs to be physically placed before the refined method call.
For example, this works:
```
using Module.new {
refine Object do
def foo() p 'hello'; end
end
}
clas... -
03:11 AM Revision 7802f01d (git): prelude.rb: Binding#irb [ci skip]
- * prelude.rb (Binding#irb): [EXPERIMENTAL] automatically require
irb and run. [ruby-core:78960] [Bug #13099]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:02 AM Revision 93824a5f (git): test_io.rb: squiggly heredoc
- * test/ruby/test_io.rb (test_threaded_flush): use squiggly here
document to strip leading spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:05 AM Revision 32a75a9c (git): * 2017-01-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:05 AM Revision 761dd9a7 (git): lib/delegate.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e