Project

General

Profile

Activity

From 04/26/2018 to 05/02/2018

05/02/2018

11:52 PM Bug #14713: <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
Thanks for solving this problem. Your patch was much more thorough.
Any change to back port this?
ioquatix (Samuel Williams)
11:36 PM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
> I don't care for those rigid definitions. They're all just
> bytes that's scheduled in userland and not the kernel...
ioquatix (Samuel Williams)
11:03 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
[email protected] wrote:
> I found an interesting summary of EPOLLET, which I think explains it better than ...
normalperson (Eric Wong)
08:38 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
I found an interesting summary of EPOLLET, which I think explains it better than I did: https://stackoverflow.com/a/4... ioquatix (Samuel Williams)
08:04 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
[email protected] wrote:
> So, it seems like your design has unavoidable contention (and
> therefore latenc...
normalperson (Eric Wong)
05:20 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
Thanks for the detailed information.
So, it seems like your design has unavoidable contention (and therefore laten...
ioquatix (Samuel Williams)
11:22 PM Bug #14732: CGI.unescape returns different instance between Ruby 2.3 and 2.4
> > https://bugs.ruby-lang.org/issues/14732

r63328 This also affects 2.3 for unescapeHTML.
normalperson (Eric Wong)
11:19 PM Bug #14732 (Closed): CGI.unescape returns different instance between Ruby 2.3 and 2.4
Applied in changeset trunk|r63328.
----------
ext/cgi/escape: preserve String subclass in result
* ext/cgi/escape/e...
normalperson (Eric Wong)
11:04 PM Bug #14732: CGI.unescape returns different instance between Ruby 2.3 and 2.4
[email protected] wrote:
> Bug #14732: CGI.unescape returns different instance between Ruby 2.3 and 2.4
> https://bugs....
normalperson (Eric Wong)
09:42 PM Bug #14732 (Closed): CGI.unescape returns different instance between Ruby 2.3 and 2.4
In Ruby 2.3, CGI.unescape always returns String object:
~~~ ruby
$ ruby -v -rcgi/util -e 'class S < String; end; ...
jnchito (Junichi Ito)
11:18 PM Revision 6afea140 (git): ext/cgi/escape: preserve String subclass in result
* ext/cgi/escape/escape.c (optimized_escape_html): use rb_str_new_with_class
(optimized_unescape_html): ditto
(op...
Eric Wong
09:24 PM Bug #10212: MRI is not for lambda calculus
mvasin (Mikhail Vasin) wrote:
> Ruby is manifested as a multi-paradigm language, but recursion and lambdas are way t...
Eregon (Benoit Daloze)
08:16 AM Bug #10212: MRI is not for lambda calculus
This code
```
def fib(x)
return x if x == 0 || x == 1
fib(x-1) + fib(x-2)
end
t = Time.now; fib(40); puts...
mvasin (Mikhail Vasin)
02:12 AM Bug #10212: MRI is not for lambda calculus
On 2018/05/02 2:02, [email protected] wrote:
> One can think that JavaSscript is 35,5 times faster then Ruby.....
ko1 (Koichi Sasada)
09:16 PM Feature #14724: chains of inequalities
gotoken (Kentaro Goto) wrote:
> 1. if a non-boolean is returned, treats the rest of chain in the compatible manner.
...
Eregon (Benoit Daloze)
02:10 PM Feature #14724: chains of inequalities
> And implementing it even for other operators would silently break
> existing code which I don't think is justifiab...
shevegen (Robert A. Heiler)
01:53 PM Feature #14724: chains of inequalities
I heard non-comparison use of `#<` in shell.rb http://ruby-doc.org/stdlib-2.5.0/libdoc/shell/rdoc/Shell.html#class-Sh... gotoken (Kentaro Goto)
01:49 PM Feature #14724: chains of inequalities
graywolf (Gray Wolf) wrote:
> Just pointing out that this would be a breaking change since
>
> ```
> a < b == c
...
gotoken (Kentaro Goto)
01:48 PM Feature #14724: chains of inequalities
duerst (Martin Dürst) wrote:
> Mentioned at #14698 (DevelopersMeeting20180517Japan). Fixed subject.
Thanks for ch...
gotoken (Kentaro Goto)
07:28 AM Feature #14724: chains of inequalities
if `x <= y <=z` is expanded to `(x <= y) && (y <= z)`
then if (x <= y) would return something else than boolean, w...
Hanmac (Hans Mackowiak)
07:17 AM Feature #14724: chains of inequalities
phluid61 (Matthew Kerwin) wrote:
> No, not breaking existing code; but removing a syntax error introduces the chance...
graywolf (Gray Wolf)
07:13 AM Feature #14724: chains of inequalities
I don't think this can be reasonably implemented. Implementing it as it is now ("chains of inequalities") would be wa... graywolf (Gray Wolf)
02:05 AM Feature #14724: chains of inequalities
shan (Shannon Skipper) wrote:
>
> How does this patch make things harder for experienced programmers? Reading the ...
phluid61 (Matthew Kerwin)
09:03 PM Feature #14718: Use jemalloc by default?
[email protected] wrote:
> An alternative is to tune glibc by reducing the number of arenas. Call this on startup:
...
normalperson (Eric Wong)
05:31 PM Feature #14718: Use jemalloc by default?
Blog post this morning on the massive improvements from jemalloc for one heavy Ruby user:
https://brandonhilkert.c...
mperham (Mike Perham)
04:27 PM Revision d54e2286 (git): test_jit.rb: test local variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e k0kubun (Takashi Kokubun)
04:04 PM Revision db8e9558 (git): test_jit.rb: test opt_aref_with again
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e k0kubun (Takashi Kokubun)
03:41 PM Revision f15ce493 (git): test_jit.rb: make it possible to automatically find
untested insns. Resolved some warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63325 b2dd03c8-39d4-4d8f-9...
k0kubun (Takashi Kokubun)
03:16 PM Bug #14729: Float("long_invalid_string") fails to throw an exception
shevegen (Robert A. Heiler) wrote:
> I think that particular reasoning is incorrect in regards to underscores, as
>...
samiam (Sam Napolitano)
03:13 PM Bug #14731 (Closed): Float() ignores exponent in long string
Applied in changeset trunk|r63322.
----------
object.c: fix exponent with underscore
* object.c (rb_cstr_to_dbl_rai...
nobu (Nobuyoshi Nakada)
01:32 PM Bug #14731 (Closed): Float() ignores exponent in long string
Related to #14729:
```ruby
Float("1."+"00000"*Float::DIG+"0e10") #=> 10000000000.0
Float("1."+"00000"*Float::DIG...
nobu (Nobuyoshi Nakada)
03:12 PM Revision 41dc02c6 (git): * 2018-05-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:12 PM Revision d48efc4c (git): test_jit.rb: verify tested insns
and fix some untested insns
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63323 b2dd03c8-39d4-4d8f-98ff-823fe69b...
k0kubun (Takashi Kokubun)
01:55 PM Bug #14730: [MJIT] lambda stack consistency error
confirmed, thanks ahorek (Pavel Rosický)
01:01 PM Bug #14730 (Closed): [MJIT] lambda stack consistency error
Thanks for a very good bug report. I fixed this bug in r63320. Please confirm that.
I have some ideas to systemati...
k0kubun (Takashi Kokubun)
01:37 PM Revision 85370712 (git): object.c: fix exponent with underscore
* object.c (rb_cstr_to_dbl_raise): do not ignore exponent part
when the input string longer than internal buffer co...
nobu (Nobuyoshi Nakada)
01:11 PM Revision 2af97e03 (git): test_jit.rb: add missing dependency
The test works with make test-all, but I sometimes want to do a thing like:
`.ruby-svn/ruby -Itest/lib test/ruby/test...
k0kubun (Takashi Kokubun)
12:57 PM Bug #14561: Consistent 2.5.0 seg fault in GC, related to accessing an enumerator in a thread
By the way, it only happened once. Re-running the same spec several more times didn't generate any further odd output. ioquatix (Samuel Williams)
12:56 PM Bug #14561: Consistent 2.5.0 seg fault in GC, related to accessing an enumerator in a thread
I don't know if this is related or not, but I just now saw a very odd error.
```
Traceback (most recent call last...
ioquatix (Samuel Williams)
12:55 PM Revision 14a3499c (git): compile.c: mark catch_except_p of iseq
which has throw insn, not only ancestor iseqs of it.
I think we should remove catch_except_p flag and try to simplify...
k0kubun (Takashi Kokubun)
10:06 AM Bug #14714: Ruby 2.5.1 Segmentation Fault in GC
I also tried to isolate my vips-related code in a new Ruby program, and ran it 100 times with `GC.stress = true`, wit... renchap (Renaud Chaput)
09:10 AM Bug #14728: OptionParser takes other options as argument values
nobu (Nobuyoshi Nakada) wrote:
> If `--custom` with no argument is allowed, it is not "MANDATORY".
>
> Try:
>
...
xz0r (xz0r xz0r)
08:22 AM Feature #14723: [WIP] sleepy GC
[email protected] wrote:
> require 'benchmark/ips'

> So this moves us from 200-210 ops/s to 240 ops/s. This ...
normalperson (Eric Wong)
06:33 AM Feature #14723: [WIP] sleepy GC
On 2018/05/02 14:00, Eric Wong wrote:
> I also added some benchmarks, but I'm not sure if dependency on
> /dev/ura...
ko1 (Koichi Sasada)
05:19 AM Feature #14723: [WIP] sleepy GC
I can confirm this has a MAJOR benefit for particular workloads with the pg gem. In particular if you are using async... sam.saffron (Sam Saffron)
05:04 AM Feature #14723: [WIP] sleepy GC
Koichi Sasada <[email protected]> wrote:
> On 2018/05/02 13:08, Eric Wong wrote:
> >Sure. Should I commit after addin...
normalperson (Eric Wong)
04:22 AM Feature #14723: [WIP] sleepy GC
On 2018/05/02 13:08, Eric Wong wrote:
> Sure. Should I commit after adding "else" to mutex_lock?

I want to ask ...
ko1 (Koichi Sasada)
04:12 AM Feature #14723: [WIP] sleepy GC
Koichi Sasada <[email protected]> wrote:
> OK. I assumed that this "step" API is used with "rb_gc_inprogress()". But it...
normalperson (Eric Wong)
03:52 AM Feature #14723: [WIP] sleepy GC
On 2018/05/02 11:49, Eric Wong wrote:
> I fetch and run "git diff" locally which gives me many options
>
> REMOT...
ko1 (Koichi Sasada)
02:52 AM Feature #14723: [WIP] sleepy GC
Koichi Sasada <[email protected]> wrote:
> On 2018/05/01 17:46, Eric Wong wrote:
> >Individual patches available at:
...
normalperson (Eric Wong)
02:22 AM Feature #14723: [WIP] sleepy GC
On 2018/05/01 17:46, Eric Wong wrote:
> Individual patches available at:
> https://80x24.org/spew/20180501080844.2...
ko1 (Koichi Sasada)
02:07 AM Revision 0d492003 (git): common.mk: Update dependencies on tool/ruby_vm scripts
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
12:57 AM Revision 18c40b16 (git): tool/ruby_vm/views/_insn_name_info.erb: Auto-detect the longest insn name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
12:57 AM Revision 8bfc46a1 (git): iseq.c (rb_iseq_disasm_insn): Change the width of insn names
Currently "trace_opt_send_without_block" (28 letters) is the longest
insn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
mame (Yusuke Endoh)

05/01/2018

11:47 PM Feature #14724: chains of inequalities
phluid61 (Matthew Kerwin) wrote:
> shan (Shannon Skipper) wrote:
> > I've often seen new Rubyists try this syntax i...
shan (Shannon Skipper)
10:03 PM Feature #14724: chains of inequalities
shan (Shannon Skipper) wrote:
> I've often seen new Rubyists try this syntax intuitively. I think this is a really n...
phluid61 (Matthew Kerwin)
08:15 PM Feature #14724: chains of inequalities
If it works for classes you might have just allowed for some fun stuff like this:
```ruby
class Proc
def >=(o)...
baweaver (Brandon Weaver)
08:05 PM Feature #14724: chains of inequalities
I've often seen new Rubyists try this syntax intuitively. I think this is a really nice change. +1 shan (Shannon Skipper)
07:47 PM Feature #14724: chains of inequalities
Just pointing out that this would be a breaking change since
```
a < b == c
```
is already valid syntax meani...
graywolf (Gray Wolf)
10:31 AM Feature #14724: chains of inequalities
Mentioned at #14698 (DevelopersMeeting20180517Japan). Fixed subject. duerst (Martin Dürst)
01:32 AM Feature #14724: chains of inequalities
It would be nice to have this in Ruby. I have assigned it to Matz, because it's a syntax change that he should check ... duerst (Martin Dürst)
11:00 PM Feature #14697: Introducing Range#% as an alias to Range#step
I understand.
I guess it's a way to make `Enumerator::ArithmeticSequence` even more "core", even if it's rarely used...
marcandre (Marc-Andre Lafortune)
08:55 PM Misc #14720 (Closed): [PATCH] cont.c: cleanup needless cast
Applied in changeset trunk|r63315.
----------
cont.c: cleanup needless cast
It seems like leftover development step...
normalperson (Eric Wong)
02:48 AM Misc #14720: [PATCH] cont.c: cleanup needless cast
Thank you. No problem.
ko1 (Koichi Sasada)
08:55 PM Revision d64c9c78 (git): * 2018-05-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:55 PM Revision 74fdf523 (git): cont.c: cleanup needless cast
It seems like leftover development step from r59557
("refactoring Fiber status").
I will make fiber_status use BITFI...
Eric Wong
07:42 PM Bug #14730 (Closed): [MJIT] lambda stack consistency error
```ruby
fib = lambda do |x|
return x if x == 0 || x == 1
fib.call(x-1) + fib.call(x-2)
end
fib.call(35)
```...
ahorek (Pavel Rosický)
05:02 PM Bug #10212: MRI is not for lambda calculus
I guess this is related, so I'll post it here.
Today I tried this code sample in MRI 2.5
```
fib = lambda {|x| r...
mvasin (Mikhail Vasin)
03:27 PM Bug #14729: Float("long_invalid_string") fails to throw an exception
> This behavior is inconsistent; underscores are verified throughout the entire
> string so why not look for other i...
shevegen (Robert A. Heiler)
03:25 PM Bug #14729: Float("long_invalid_string") fails to throw an exception
> Should Float() accept any size string or limit it?
I think the method Float() should behave in the same way
as ...
shevegen (Robert A. Heiler)
02:37 PM Bug #14729 (Closed): Float("long_invalid_string") fails to throw an exception
When Float() is used to convert a string into a float, invalid characters in the string throw an error.
But when a...
samiam (Sam Napolitano)
12:54 PM Bug #14728 (Rejected): OptionParser takes other options as argument values
If `--custom` with no argument is allowed, it is not "MANDATORY".
Try:
```ruby
opts.on("-q","--custom [CUSTO...
nobu (Nobuyoshi Nakada)
12:10 PM Bug #14728 (Rejected): OptionParser takes other options as argument values
`test.rb`
~~~ ruby
require 'optparse'
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: test.r...
xz0r (xz0r xz0r)
10:35 AM Bug #14725: fatal: No live threads left. Deadlock? since Revision 63215
Thanks for the update. I have confirmed this error does not reproduce with revision 63314.
~~~
$ ruby -v
ruby ...
yahonda (Yasuo Honda)
12:05 AM Bug #14725: fatal: No live threads left. Deadlock? since Revision 63215
[email protected] wrote:
> fatal: No live threads left. Deadlock?
> 5 threads, 5 sleeps current:0x000055f8f856...
normalperson (Eric Wong)
10:29 AM Misc #14698: DevelopersMeeting20180517Japan
* [Feature #14724] chains of inequalities
* Proposal by gotoken (Kentaro Goto) to allow `0 <= a < 10` as a short...
duerst (Martin Dürst)
08:52 AM Feature #14723: [WIP] sleepy GC
Koichi Sasada <[email protected]> wrote:
> On 2018/05/01 12:47, Eric Wong wrote:
> >Oh sorry, I realize I was using th...
normalperson (Eric Wong)
03:52 AM Feature #14723: [WIP] sleepy GC
On 2018/05/01 12:47, Eric Wong wrote:
> Oh sorry, I realize I was using the wrong gc.c functions :x
> Something li...
ko1 (Koichi Sasada)
03:52 AM Feature #14723: [WIP] sleepy GC
Koichi Sasada <[email protected]> wrote:
> On 2018/05/01 12:18, Eric Wong wrote:
> >>`gc_rest()` do all of rest steps....
normalperson (Eric Wong)
03:33 AM Feature #14723: [WIP] sleepy GC
On 2018/05/01 12:18, Eric Wong wrote:
>> `gc_rest()` do all of rest steps. Is it intentional?
>
> I thought abo...
ko1 (Koichi Sasada)
03:22 AM Feature #14723: [WIP] sleepy GC
[email protected] wrote:
> My understanding, your proposal in pseudo code is (pls correct me if it is wrong):
>

Co...
normalperson (Eric Wong)
02:31 AM Feature #14723: [WIP] sleepy GC
My concerns are:
(1) Full GC (like GC.start) or step incremental marking/sweeping (to guarantee (or to reduce) the...
ko1 (Koichi Sasada)
01:22 AM Feature #14723: [WIP] sleepy GC
[email protected] wrote:
> Implementation wise it seems like you only have it on rb_wait_for_single_fd, is ther...
normalperson (Eric Wong)
08:35 AM Revision 45255c42 (git): use list_head_init instead of open-coding it
While we cannot use LIST_HEAD since r63312, we can at
least use list_head_init to make our code more readable.
git-s...
Eric Wong
06:55 AM Revision 41f4ac6a (git): ast.c: use enum in switch for warnings
* ext/-test-/ast/ast.c (node_children): use enum instead of int
for not-handled enumeration value in switch warning...
nobu (Nobuyoshi Nakada)
04:41 AM Revision 496ddbc2 (git): LIST_HEAD as a local variable is a C99ism.
Address of a variable whose storage duration is `auto` is _not_ a
compile time constant, according to ISO 9899 sectio...
shyouhei (Shyouhei Urabe)
04:27 AM Bug #14726: wrong message when superclass is not a Class
なるほど、それは気づきませんでした。すると、こうでしょうか。
```c
rb_raise(rb_eTypeError, "superclass must be a Class (given a(n) %"PRIsVALUE")...
yugui (Yuki Sonoda)
04:05 AM Bug #14726: wrong message when superclass is not a Class
……で、不定冠詞を付ける場合、例えば`Integer`のインスタンスが来たら`an`にしないといけないのでは、という問題が……。 usa (Usaku NAKAMURA)
03:58 AM Bug #14726: wrong message when superclass is not a Class
なるほど、確かに冠詞があればインスタンスが来たとわかるのでいいかも。
私の案だとモジュールが来た時わかりにくいというのも納得です。
usa (Usaku NAKAMURA)
02:34 AM Bug #14726: wrong message when superclass is not a Class
ああ、補足ですが、`super` の属するクラスではなく `super` の文字列表現を表示するというパッチの案に対しては、誤ってmoduleを渡した場合が心配です。
そのmoduleをクラスだと思い込んでいると却って分かりづらいの...
yugui (Yuki Sonoda)
02:31 AM Bug #14726: wrong message when superclass is not a Class
どちらかというと元の仕様のほうに賛成で、これはバグではないという認識です。Classオブジェクトを期待していたのにC1オブジェクトが来たというのはどちらも `super` の属するクラスの話をしていて、そのパッチよりもバランスが取れて... yugui (Yuki Sonoda)
01:49 AM Bug #14726 (Closed): wrong message when superclass is not a Class
クラス定義の際に親クラスとして`Class`でないものを与えると`TypeError`になりますが、その際にエラーメッセージに与えられたもののクラス名が表示されるため、メッセージだけ見ると何が間違ってるのかわけがわからなくなっています... usa (Usaku NAKAMURA)
03:12 AM Revision 766ee6e5 (git): rexml: Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
02:59 AM Bug #14727: TestQueue#test_queue_with_trap always timeout on Windows10
いちおう、手元(というかなんというか)での再現状況は、
- □ Windows 7
- □ Windows Server 2012 R2 (Windows 8.1相当)
- ☑ Windows 10
という感じです。
usa (Usaku NAKAMURA)
02:43 AM Bug #14727: TestQueue#test_queue_with_trap always timeout on Windows10
私も Windows 10 にして再現していました。
私が理解している範囲で、現象をちょっと書いておきます。
(1) GVL に Win32 の Mutex を使っている
(2) Win32 Mutex は、以前はスケジュー...
ko1 (Koichi Sasada)
02:27 AM Bug #14727 (Assigned): TestQueue#test_queue_with_trap always timeout on Windows10
表題の通りです。ささださんも把握しているそうなので、備忘録として。
```
[19/35] TestQueue#test_queue_with_trap = 10.13 s
1) Error:
TestQueue#te...
usa (Usaku NAKAMURA)
01:46 AM Feature #14718: Use jemalloc by default?
mperham (Mike Perham) wrote:
> For `strdup`, can we use jemalloc prefix mode so Ruby uses `je_malloc` and `je_free` ...
shyouhei (Shyouhei Urabe)

04/30/2018

11:53 PM Revision f5db4a0c (git): test/thread/test_cv.rb: test CV usability inside forked child
* test/thread/test_cv.rb (def test_condvar_fork): new test
[Bug #14725]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
Eric Wong
11:47 PM Bug #14725 (Closed): fatal: No live threads left. Deadlock? since Revision 63215
Applied in changeset trunk|r63309.
----------
thread_sync.c (condvar_ptr): reset fork_gen after forking
Otherwise t...
normalperson (Eric Wong)
11:33 PM Bug #14725: fatal: No live threads left. Deadlock? since Revision 63215
Investigating... normalperson (Eric Wong)
10:31 PM Bug #14725 (Closed): fatal: No live threads left. Deadlock? since Revision 63215
## Steps to reproduce
~~~ text
$ sudo gem install bundler
$ git clone https://github.com/rails/rails.git
$ cd rai...
yahonda (Yasuo Honda)
11:47 PM Revision d2f52a5f (git): thread_sync.c (condvar_ptr): reset fork_gen after forking
Otherwise the condition variable waiter list will always
be empty, which is wrong :x
[Bug #14725] [Bug #14634]
git-...
Eric Wong
11:12 PM Revision 5e5b2fe6 (git): * 2018-05-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:12 PM Revision ce70bff3 (git): thread.c (vm_living_thread_num): constify vm arg
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
06:51 PM Feature #6284: Add composition for procs
I just realized that infix operators evaluate before `to_proc`, allowing something like this:
```ruby
[1,2,3].map...
baweaver (Brandon Weaver)
06:17 PM Feature #14724: chains of inequalities
That works fine for me! Thanks for your patch. That works for not only numerics but also for hashes or classes.
And...
gotoken (Kentaro Goto)
08:45 AM Feature #14724: chains of inequalities
https://github.com/nobu/ruby/tree/feature/cmpseq nobu (Nobuyoshi Nakada)
06:36 AM Feature #14724 (Assigned): chains of inequalities
In mathematics, chain of inequations is a shorthand notation for the conjunction of several inequations involving com... gotoken (Kentaro Goto)
04:53 PM Bug #14702: On Ruby 2.5.1, tracepoint isn't working on the file that is loaded by load_iseq
How is the issue?
In addition to above, I confirm the issue in following example that does not use 3rd party gem.
...
[email protected] (Makoto Tajitsu)
03:57 PM Feature #14718: Use jemalloc by default?
So is it impossible for Ruby to use jemalloc by default? jemalloc reduces Ruby memory usage 50-75% on large Rails ap... mperham (Mike Perham)
03:22 PM Bug #14714: Ruby 2.5.1 Segmentation Fault in GC
I think I am seeing a similar bug.
My test suite (Rails system tests, using Minitest and Capybara) is crashing on ...
renchap (Renaud Chaput)
10:52 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
[email protected] wrote:
> If you use any kind of thread-safe shared mutable state (e.g.
> a queue), you wi...
normalperson (Eric Wong)
10:32 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
[email protected] wrote:
>
> > Using a background thread is your mistake.

> Don't assume I made this de...
normalperson (Eric Wong)
01:37 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
> IPC? Interprocess communication? What? There's no processes, here.
Sorry, my terminology wasn't so clear. Howeve...
ioquatix (Samuel Williams)
01:24 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
> Using a background thread is your mistake.
Don't assume I made this design. It was made by other people. I merel...
ioquatix (Samuel Williams)
10:01 AM Revision cb67e0bd (git): Use `&.` instead of modifier if
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:05 AM Bug #14719: FalseClass wrapped in a SimpleDelegator evaluates to true in an IF statement
Thanks Marc-Andre. Appreciate the quick response. theirishpenguin (Declan McGrath)
06:54 AM Revision 4602d8e2 (git): NEWS: Add recent REXML changes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
04:42 AM Feature #14723: [WIP] sleepy GC
[email protected] wrote:
> I really really like this, its a free performance boost with
> almost no downsides....
normalperson (Eric Wong)
02:17 AM Bug #14713 (Closed): <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
Applied in changeset trunk|r63304.
----------
io.c: workaround for EPROTOTYPE
* io.c (internal_write_func, internal...
nobu (Nobuyoshi Nakada)
02:17 AM Revision 7727b22e (git): io.c: workaround for EPROTOTYPE
* io.c (internal_write_func, internal_writev_func): retry at
unexpected EPROTOTYPE on macOS, to get rid of a kernel...
nobu (Nobuyoshi Nakada)
12:28 AM Revision 9cd48348 (git): * 2018-04-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:28 AM Revision 6073edd6 (git): io.c: reuse internal_write_func
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

04/29/2018

11:50 PM Feature #14723: [WIP] sleepy GC
I really really like this, its a free performance boost with almost no downsides.
I guess the simplest way of mea...
sam.saffron (Sam Saffron)
11:03 AM Feature #14723: [WIP] sleepy GC
Eric Wong <[email protected]> wrote:
> I'm not sure if native_sleep() is worth doing GC on in most
> cases (Mu...
normalperson (Eric Wong)
09:22 AM Feature #14723: [WIP] sleepy GC
Also, added "thread.c (do_select): perform GC if idle"

https://80x24.org/spew/20180429090250.GA15634@dcvr/raw

...
normalperson (Eric Wong)
07:42 AM Feature #14723: [WIP] sleepy GC
Eric Wong <[email protected]> wrote:
> This is a quick check and even optimized inside the Linux kernel[1].

...
normalperson (Eric Wong)
06:04 AM Feature #14723: [WIP] sleepy GC
"Atdot.net" <[email protected]> wrote:
> Could you give us more detail algorithm?

Pretty simple and I thought the pa...
normalperson (Eric Wong)
04:52 AM Feature #14723: [WIP] sleepy GC
Could you give us more detail algorithm?

2018/04/29 12:57、[email protected]のメール:

> Issue #14723 has been r...
ko1 (Koichi Sasada)
03:57 AM Feature #14723 (Open): [WIP] sleepy GC
The idea is to use "idle time" when process is otherwise sleeping
and using no CPU time to perform GC. It makes sen...
normalperson (Eric Wong)
01:45 PM Revision 6199c9ac (git): * spec/ruby/command_line/dash_upper_i_spec.rb: skip symlink on Windows like
other specs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:25 PM Bug #14713: <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
I made a patch for write_nonblock. But this probably equally applies to send, sendmsg, etc. Perhaps we can discuss th... ioquatix (Samuel Williams)
01:17 PM Bug #14713: <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
I've made a PR which fixes the issue.
https://github.com/ruby/ruby/pull/1868
I believe it would make sense to b...
ioquatix (Samuel Williams)
12:40 PM Bug #14713: <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
It seems that in this specific case, EPROTOTYPE is the same as EPIPE. It's a bug in the kernel code. I wonder if we s... ioquatix (Samuel Williams)
12:35 PM Bug #14713: <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
I tried digging into this issue.
I found some other people with similar problems: https://github.com/nodejs/node/...
ioquatix (Samuel Williams)
02:20 AM Bug #14713: <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
> It happens often on macOS.
I don't have this experience. I can't systematically reproduce the issue. It only hap...
ioquatix (Samuel Williams)
11:15 AM Revision de2bfd3d (git): Remove the teeny part from the shared library name on macOS
This will prevent macOS users from having to rebuild all extension
libraries every time they upgrade ruby to a new te...
Akinori MUSHA
08:21 AM Feature #14718: Use jemalloc by default?
mperham (Mike Perham) wrote:
> Since MRI offers --with-jemalloc, I assume it is safe
That's not the reason for i...
shyouhei (Shyouhei Urabe)
07:12 AM Revision 058949ac (git): range.c: optimize range_each for Bignum
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:50 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
Maybe I don't get the point though, if `Numo::NArray#inplace` and `inplace.+` always return identical object, `#inpla... gotoken (Kentaro Goto)
03:20 AM Revision 394418c9 (git): _mjit_compile_send.erb: fix pointer conversion warning
/var/folders/b0/9hgj_tyx10zgkcbyx3_j2dlr0000gn/T//_ruby_mjit_p72619u0.c:37:58: warning: incompatible integer to point... k0kubun (Takashi Kokubun)

04/28/2018

11:31 PM Revision 797d2ab5 (git): range.c: endless symbol range
* range.c (range_each): shortcirtuit endless symbol range too, as
well as `#step`.
git-svn-id: svn+ssh://ci.ruby-l...
nobu (Nobuyoshi Nakada)
11:04 PM Revision 54701725 (git): Generalize the check to MRI in the -I spec
* The current check seems to fail with AppVeyor.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63296 b2dd03c8-39...
Eregon (Benoit Daloze)
08:37 PM Revision aaac5df3 (git): Ignore the extension of miniruby on Windows in the -I spec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
08:33 PM Feature #14718: Use jemalloc by default?
Hi Nobu, GitHub, GitLab and Discourse are all running jemalloc in production. Since MRI offers --with-jemalloc, I as... mperham (Mike Perham)
07:52 PM Feature #14718: Use jemalloc by default?
Unfortunately, I have to object it.
As functions in libc, e.g., `strdup`, cannot be replaced by jemalloc and contin...
nobu (Nobuyoshi Nakada)
04:36 AM Feature #14718: Use jemalloc by default?
On Ubuntu Linux, with Rails Ruby Bench, jemalloc gives an overall speedup (not just memory, end-to-end speedup) of ar... noahgibbs (Noah Gibbs)
07:50 PM Revision ebb69738 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:50 PM Revision 4fbb9aa3 (git): Update to ruby/spec@6f38a82
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
07:49 PM Revision b864bd05 (git): * 2018-04-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:49 PM Revision 702eb2c8 (git): Update to ruby/mspec@b5b13de
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
06:11 PM Feature #14722: python's buffer protocol clone
The article is an oversimplification, I do agree. But some common mechanism to pass chunks of memory to C libs (gsl, ... jsaak (jsaak jsaak)
08:41 AM Feature #14722: python's buffer protocol clone
I do not think that the above article describes as to why python has
become so popular. It is DEFINITELY not because...
shevegen (Robert A. Heiler)
06:38 AM Feature #14722 (Closed): python's buffer protocol clone
Is there a way to implement, or even copy Python's buffer protocol in ruby?
There is an article that describes the...
jsaak (jsaak jsaak)
03:55 PM Feature #12912: An endless range `(1..)`
nobu (Nobuyoshi Nakada) wrote:
> Why is `(1..).size` `nil`, but not `Float::INFINITY`?
It's a bug, see #14699
marcandre (Marc-Andre Lafortune)
01:25 PM Feature #12912: An endless range `(1..)`
Why is `(1..).size` `nil`, but not `Float::INFINITY`? nobu (Nobuyoshi Nakada)
11:16 AM Revision 703a5dd3 (git): string.c: adjust to rb_str_upto_each
* range.c (range_each_func): adjust the signature of the callback
function to rb_str_upto_each, and exit the loop i...
nobu (Nobuyoshi Nakada)
09:22 AM Revision d025f64a (git): test_open3.rb: let test_popen2 work with --jit
test/lib/jit_support.rb: add .remove_mjit_logs to normalize stderr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
k0kubun (Takashi Kokubun)
09:11 AM Revision 60902062 (git): test_rubyoptions.rb: let all tests work with --jit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e k0kubun (Takashi Kokubun)
09:02 AM Revision acacd7a1 (git): test_bug_reporter.rb: make it work with --jit
test_rubyoptions.rb: replace gsub with sub because it's suboptimal for
this
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
k0kubun (Takashi Kokubun)
08:52 AM Revision 0b01776d (git): test_rubyoptions.rb: let test_verbose work w/ --jit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e k0kubun (Takashi Kokubun)
08:41 AM Revision 9aab4b6b (git): test_parallel.rb: extend timeout for --jit-wait
testing. 10s was long enough for my machine, but not for travis.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6...
k0kubun (Takashi Kokubun)
08:39 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
nobu (Nobuyoshi Nakada) wrote:
> What about
>
> ```ruby
> na = Numo::Int32[5, 6]
> a = na.inplace
> a += 1
> ...
naitoh (Jun NAITOH)
08:24 AM Revision ada41984 (git): test_ftp.rb: extend read_timeout for --jit-wait
testing. I'm running `make test-all RUN_OPTS='--jit-wait'` and the
read_timeout was too slow for it.
git-svn-id: svn...
k0kubun (Takashi Kokubun)
07:31 AM Revision d07861fb (git): range.c: each on endless range
* range.c (range_each): endless range begins with string-like
object should iterate from the converted result strin...
nobu (Nobuyoshi Nakada)
06:23 AM Revision b6e28514 (git): thread_sync.c: remove "volatile" qualifiers
I may store ->ec in rb_mutex_t instead of ->th to support green
thread. For now, "volatile" is useless for thread-sa...
Eric Wong
06:00 AM Revision 0d77b73d (git): thread_sync.c: remove unused list_heads
I forgot to clean these up in r63215
* thread_sync.c (szqueue_list, queue_list, condvar_list): remove
git-svn-id: s...
Eric Wong
05:45 AM Bug #14721 (Closed): Backport request patch for rubygems 2.6
rubygems 2.6.14.1 has a problem with Windows platform.
Please see details: https://github.com/rubygems/rubygems/pu...
hsbt (Hiroshi SHIBATA)
05:12 AM Misc #14720: [PATCH] cont.c: cleanup needless cast
[email protected] wrote:
> > 0001-cont.c-cleanup-needless-cast (0 Bytes)

Reattached. Also posted to [email protected]:...
normalperson (Eric Wong)
04:47 AM Misc #14720: [PATCH] cont.c: cleanup needless cast
> 0001-cont.c-cleanup-needless-cast (0 Bytes)
it seems redmine system error.
ko1 (Koichi Sasada)
03:49 AM Misc #14720 (Closed): [PATCH] cont.c: cleanup needless cast
It seems like leftover development step from r59557
("refactoring Fiber status").
I will make fiber_status use BI...
normalperson (Eric Wong)
01:47 AM Revision f1140895 (git): Merge Pysch 3.0.3.pre1.
I added the following additional commits from 3.0.3.pre1:
* https://github.com/ruby/psych/pull/356
* https://...
hsbt (Hiroshi SHIBATA)
01:45 AM Revision 13dc8e4e (git): mjit_config.h: expand min header name
* Makefile.in, win32/Makefile.sub (mjit_config.h): expand min
header name, including the version number and the suf...
nobu (Nobuyoshi Nakada)
01:36 AM Revision 1d67b9de (git): rexml: disable XPath 1.0 compatible "#{ELEMENT_NAME}" processing by default
It breaks backward compatibility than I thought. So it's disabled by
default. It means that REXML's XPath processor i...
Sutou Kouhei

04/27/2018

11:58 PM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
matz (Yukihiro Matsumoto) wrote:
> Use `append` instead of `+=` for arrays. Changing the behavior of `+=` would have...
naitoh (Jun NAITOH)
10:19 PM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
Alternative idea: If Ruby has a feature like:
~~~ ruby
x = x.left_variable? # => true
y = x.left_variable? # => ...
masa16 (Masahiro Tanaka)
09:58 PM Feature #14718: Use jemalloc by default?
I have a Sidekiq benchmark[1] which processes 100,000 jobs through Redis, exercising networking, threading and JSON h... mperham (Mike Perham)
07:59 PM Feature #14718: Use jemalloc by default?
Regarding performance, it's subjective as always. What are your server's specifications? Usually RAM is not cheap, wh... rosenfeld (Rodrigo Rosenfeld Rosas)
07:28 PM Feature #14718: Use jemalloc by default?
The compile option to use jemalloc is already provided by Ruby from my understanding, this issue is about making it t... rosenfeld (Rodrigo Rosenfeld Rosas)
06:50 PM Feature #14718: Use jemalloc by default?
I know way too little about the topic at hand, so I can not really
comment on it, the usability, gains and so forth....
shevegen (Robert A. Heiler)
06:22 PM Feature #14718: Use jemalloc by default?
On 2018/04/28 3:12, Eric Wong wrote:
> Long-term (unlikely this year) I hope to work with glibc team to
> improve ...
ko1 (Koichi Sasada)
06:13 PM Feature #14718: Use jemalloc by default?
[email protected] wrote:
> https://bugs.ruby-lang.org/issues/14718

Agreed. I think it's acceptable to enable je...
normalperson (Eric Wong)
04:38 PM Feature #14718: Use jemalloc by default?
It's also quite possible that jemalloc will give us a small performance increase. Another data point:
https://medi...
mperham (Mike Perham)
04:30 PM Feature #14718: Use jemalloc by default?
If Ruby decides to ship with jemalloc, let's make sure to be like Redis and only use it by default on Linux (as menti... jeremyevans0 (Jeremy Evans)
04:14 PM Feature #14718 (Open): Use jemalloc by default?
I know Sam opened #9113 4 years ago to suggest this but I'm revisiting the topic to see if there's any movement here ... mperham (Mike Perham)
09:24 PM Bug #14719 (Rejected): FalseClass wrapped in a SimpleDelegator evaluates to true in an IF statement
I'm afraid you can not achieve what you want to achieve in Ruby. The only two objects that are falsy in Ruby are `nil... marcandre (Marc-Andre Lafortune)
04:33 PM Bug #14719 (Rejected): FalseClass wrapped in a SimpleDelegator evaluates to true in an IF statement
Hi, thanks for Ruby :-)
I have run into a problem. When I wrap the boolean false in a SimpleDelegator it breaks th...
theirishpenguin (Declan McGrath)
08:25 PM Revision 75f4f699 (git): * 2018-04-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:25 PM Revision 743c6edd (git): NEWS: fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e stomar (Marcus Stollsteimer)
06:19 PM Feature #12607: Ruby needs an atomic integer
Oh, sorry, I just noticed this issue isn't about changing Ruby's syntax, it was just my comment on the other related ... rosenfeld (Rodrigo Rosenfeld Rosas)
06:08 PM Feature #12607: Ruby needs an atomic integer
I'm not sure if type was set to Bug on purpose, so I'm changing it to Feature instead, but feel free to change it bac... rosenfeld (Rodrigo Rosenfeld Rosas)
06:07 PM Feature #12607: Ruby needs an atomic integer
Just to make it clearer, since I was mentioned by Shyouhey in the issue's description, performance has never been the... rosenfeld (Rodrigo Rosenfeld Rosas)
07:14 AM Feature #12607: Ruby needs an atomic integer
I think that you might not have understood his concern. Getting multi-threaded code right is hard, no matter the pri... Student (Nathan Zook)
02:11 AM Feature #12607: Ruby needs an atomic integer
We have already shown the benefits of atomic integers very well. What Ko1 says is the downside of it ("it is too har... shyouhei (Shyouhei Urabe)
02:40 PM Bug #14350: Strange behavior for Array.min in ruby 2.5.0
This change afects PrawnPDF gems (I'm a maintainer).
From the maths point of view it is indeed insignificant, but ...
cheba (Alexander Mankuta)
01:14 PM Revision 0dd9f7cc (git): iseq.c: consistent rb_bug messages
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:14 PM Revision e858f865 (git): mjit.c: remove undef
* mjit.c (clean_so_file): removed unnecessary undef of `Sleep`
which is redfined as rb_w32_sleep. eventually, retr...
nobu (Nobuyoshi Nakada)
09:44 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
We checked that by executing 'cat /dev/urandom' and we did see an output.
So dont think thats an issue.
We suspec...
snehavas (sneha vasanth)
09:23 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
I can reproduce the situation using this Dockerfile https://github.com/shyouhei/docker-library/blob/master/%2314716/D... shyouhei (Shyouhei Urabe)
08:54 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
naruse (Yui NARUSE) wrote:
> r57307 changed to use __NR_getrandom (kernel header) from SYS_getrandom (glibc header)....
naruse (Yui NARUSE)
08:45 AM Bug #14716 (Open): SecureRandom throwing an error in Ruby 2.5.1
r57307 changed to use __NR_getrandom (kernel header) from SYS_getrandom (glibc header).
But __NR_getrandom is from v...
naruse (Yui NARUSE)
07:36 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
The Kernel version is 3.13.0-145-generic snehavas (sneha vasanth)
07:34 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
We are using Ubuntu 14.04.5 LTS snehavas (sneha vasanth)
06:29 AM Bug #14716 (Feedback): SecureRandom throwing an error in Ruby 2.5.1
It depends on your OS.
What OS and the kernel version?
nobu (Nobuyoshi Nakada)
06:19 AM Bug #14716 (Closed): SecureRandom throwing an error in Ruby 2.5.1
Hi,
We recently upgraded from ruby 2.3.6 to 2.5.1.
We use SecureRandom.uuid to generate a random number for our s...
snehavas (sneha vasanth)
08:25 AM Feature #14709: Proper pattern matching
I've gone and done something exceptionally bad to Ruby, but this should be an interesting proof of concept nonetheles... baweaver (Brandon Weaver)
02:01 AM Feature #14709: Proper pattern matching
Whenever I feel I need pattern matching, I'm trying to handle method args. With some of the ideas presented here, lik... jgaskins (Jamie Gaskins)
08:14 AM Feature #14717: [PATCH] thread: allow disabling preempt
https://80x24.org/spew/[email protected]/raw
normalperson (Eric Wong)
08:09 AM Feature #14717 (Closed): [PATCH] thread: allow disabling preempt
In some cases, it may be beneficial to disable preemptibility to
have more predictable behavior than increasing Thre...
normalperson (Eric Wong)
07:44 AM Feature #12912: An endless range `(1..)`
I tried to structure my post to make it clear that there a two different types of uses for ranges. Of course `..5` wh... sowieso (So Wieso)
07:19 AM Feature #12912: An endless range `(1..)`
sowieso (So Wieso) wrote:
> >It is better to have ary[..1] as a consistency. But it will cause a shift/reduce conf...
duerst (Martin Dürst)
06:24 AM Feature #12912: An endless range `(1..)`
I like this change.
**As for general ranges**:
I was somewhat comfortable with `.step`, but this is much nicer. ...
sowieso (So Wieso)
07:39 AM Revision fa7fa928 (git): mjit.c: clean so file on Windows
* mjit.c (dlclose): use FreeLibrary to manage the reference count
on the loaded module properly.
* mjit.c (clean_s...
nobu (Nobuyoshi Nakada)
05:20 AM Revision ea631cc1 (git): mjit.c: fix cc arguments
* mjit.c (CC_LIBS): MJIT_LIBS is used only on Windows.
* mjit.c (compile_c_to_so): moved source and shared object fi...
nobu (Nobuyoshi Nakada)
05:20 AM Revision 6dafb4c9 (git): ruby.c: moved libdir
* ruby.c (ruby_init_loadpath_safe): moved libdir name inside
LOAD_RELATIVE.
git-svn-id: svn+ssh://ci.ruby-lang.org...
nobu (Nobuyoshi Nakada)
04:36 AM Revision 4eb2c1e1 (git): ruby.c: fix compilation error
* ruby.c (ruby_init_loadpath_safe): fix compilation error when
ENABLE_MULTIARCH but not universal binary.
git-svn-...
nobu (Nobuyoshi Nakada)
02:02 AM Revision 67800ea9 (git): mjit.c: prefix and archdir in init
* ruby.c (ruby_init_loadpath_safe): store prefix and archlibdir
paths.
* mjit.c (compile_c_to_so, init_header_file...
nobu (Nobuyoshi Nakada)
01:58 AM Revision 9ce0a846 (git): rbinstall.rb: fix timing to read stub
* tool/rbinstall.rb ($script_installer.stub): read stub file on
demand. as `$cmdtype` is set to "exe" in parse_arg...
nobu (Nobuyoshi Nakada)
12:30 AM Bug #14607: Fix use of the rb_profile_frames start parameter
I need to remember why such special (additional) calculation is done, so I left this ticket.
I need to remember...
ko1 (Koichi Sasada)
12:15 AM Bug #14607 (Open): Fix use of the rb_profile_frames start parameter
ko1 said I shouldn't have committed the patch, so I reverted. Sorry! tenderlovemaking (Aaron Patterson)
12:13 AM Revision c03f86b3 (git): Revert "Fix use of `rb_profile_frames` start parameter"
This reverts commit r63265.
ko1 said I should not have committed this! I'm sorry!
git-svn-id: svn+ssh://ci.ruby-lan...
tenderlovemaking (Aaron Patterson)

04/26/2018

10:49 PM Bug #14607 (Closed): Fix use of the rb_profile_frames start parameter
Applied in changeset trunk|r63265.
----------
Fix use of `rb_profile_frames` start parameter
rb_profile_frames was ...
tenderlovemaking (Aaron Patterson)
10:49 PM Revision 707cbe6f (git): * 2018-04-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:49 PM Revision d676ad10 (git): Fix use of `rb_profile_frames` start parameter
rb_profile_frames was always behaving as if the value given for the
start parameter was 0.
The reason for this was t...
tenderlovemaking (Aaron Patterson)
09:04 PM Feature #12607: Ruby needs an atomic integer
I don't like pulling in the entire concurrent-ruby gem only for a few lines of code. I've implemented my own slow bu... mperham (Mike Perham)
12:37 PM Feature #14715 (Open): Pathname#== should compare by #realpath instead of #to_s
Hi Core Team,
I'd like to report a confusing behaviour I noticed with Pathname#== comparison method.
See the fo...
hspazio (Fabio Pitino)
12:36 PM Revision 81f02142 (git): win32/Makefile.sub: LIBDIR_BASENAME
* mjit.c (init_header_filename): support LIBDIR_BASENAME.
* win32/Makefile.sub (config.h): ditto.
git-svn-id: svn+s...
nobu (Nobuyoshi Nakada)
12:36 PM Revision 8036af48 (git): ruby.c (ruby_init_loadpath_safe): constify
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:51 AM Bug #14714: Ruby 2.5.1 Segmentation Fault in GC
As it occurs in GC, it may reproduce with a few test by setting `GC.stress` to `true`. nobu (Nobuyoshi Nakada)
11:02 AM Bug #14714: Ruby 2.5.1 Segmentation Fault in GC
I have reverted to ruby 2.4.4 and done rspec/spec/features and the problem does not occur, to this increases the prob... obromios (Chris Drane)
10:28 AM Bug #14714 (Closed): Ruby 2.5.1 Segmentation Fault in GC
I am using Ruby 2.5.1, and running ruby on rails 5.1.4 with rspec-rails 3.7.2 and capybara 3.0.2.
When I run my fe...
obromios (Chris Drane)
11:05 AM Bug #11779: Module#using does not make sense as a method
From RSpec:
~~~ ruby
let(:test_class) do
Class.new(described_class) do
private
using SomeRefiningM...
AlexWayfer (Alexander Popov)
09:32 AM Bug #14713: <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
ioquatix (Samuel Williams) wrote:
> Very occasionally on macOS, using Ruby 2.5.0, I get the above error.
It happe...
nobu (Nobuyoshi Nakada)
05:00 AM Bug #14713 (Closed): <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
Very occasionally on macOS, using Ruby 2.5.0, I get the above error.
```
Traceback (most recent call last):
23:...
ioquatix (Samuel Williams)
09:30 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
I think it is enough to change the meaning of
~~~ ruby
x += a
~~~
to
~~~ ruby
if x.respond_to?(:'+=')
...
masa16 (Masahiro Tanaka)
09:28 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
nobu (Nobuyoshi Nakada) wrote:
> It seems a different story from `+=`.
I am sorry for getting off the point, but ...
masa16 (Masahiro Tanaka)
08:56 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
masa16 (Masahiro Tanaka) wrote:
> Former NArray had `add!` method, but it results in a confused result.
It seems ...
nobu (Nobuyoshi Nakada)
07:21 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
As first thing to say, we do not expect changing behavior of `+=` for ruby built-in types such as string or array.
...
sonots (Naotoshi Seo)
06:03 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
I agree with matz and eregon.
Honestly, I first thought that it was a good idea to split `+` and `+=`. But by inv...
mame (Yusuke Endoh)
04:24 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
> Most notably, it means other variables pointing to the same NArray would get modified in place by +=, which seems h... sonots (Naotoshi Seo)
03:58 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
What about
```ruby
na = Numo::Int32[5, 6]
a = na.inplace
a += 1
```
nobu (Nobuyoshi Nakada)
01:17 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
Former NArray had `add!` method, but it results in a confused result.
~~~ ruby
require 'narray'
a = NArray.int...
masa16 (Masahiro Tanaka)
06:04 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
[email protected] wrote:
> If you are unsure of a good definition for the reactor
> pattern, I think this i...
normalperson (Eric Wong)
04:57 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
If you are unsure of a good definition for the reactor pattern, I think this is a good one: https://en.wikipedia.org/... ioquatix (Samuel Williams)
12:12 AM Bug #14712 (Closed): test_step does not work for implementations with full 64-bit fixnum
Applied in changeset trunk|r63261.
----------
test_numeric.rb: loose precision assertion
* test/ruby/test_numeric.r...
nobu (Nobuyoshi Nakada)
12:12 AM Revision 4ac77028 (git): * 2018-04-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:12 AM Revision b7d260f1 (git): test_numeric.rb: loose precision assertion
* test/ruby/test_numeric.rb (TestNumeric#test_step): remove a
loose precision assertion, as Float cannot keep compl...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom