[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...
Issue #10333 has been updated by Koichi Sasada.
9 messages
2014/10/07
[#65458] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string
— Eric Wong <normalperson@...>
2014/10/07
[email protected] wrote:
[#65502] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string
— Eric Wong <normalperson@...>
2014/10/08
Eric Wong <[email protected]> wrote:
[#65538] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string
— Eric Wong <normalperson@...>
2014/10/09
Eric Wong <[email protected]> wrote:
[#65549] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string
— SASADA Koichi <ko1@...>
2014/10/09
On 2014/10/09 11:04, Eric Wong wrote:
[#65551] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string
— Eric Wong <normalperson@...>
2014/10/09
SASADA Koichi <[email protected]> wrote:
[#65453] [ruby-trunk - Feature #10328] [PATCH] make OPT_SUPPORT_JOKE a proper VM option — ko1@...
Issue #10328 has been updated by Koichi Sasada.
3 messages
2014/10/07
[#65559] is there a name for this? — Xavier Noria <fxn@...>
When describing stuff about constants (working in their guide), you often
7 messages
2014/10/09
[#65560] Re: is there a name for this?
— Nobuyoshi Nakada <nobu@...>
2014/10/09
On 2014/10/09 20:41, Xavier Noria wrote:
[#65561] Re: is there a name for this?
— Xavier Noria <fxn@...>
2014/10/09
On Thu, Oct 9, 2014 at 1:59 PM, Nobuyoshi Nakada <[email protected]> wrote:
[#65566] [ruby-trunk - Feature #10351] [Open] [PATCH] prevent CVE-2014-6277 — shyouhei@...
Issue #10351 has been reported by Shyouhei Urabe.
3 messages
2014/10/09
[#65741] Re: [ruby-cvs:55121] normal:r47971 (trunk): test/ruby/test_rubyoptions.rb: fix race — Nobuyoshi Nakada <nobu@...>
On 2014/10/16 10:10, [email protected] wrote:
5 messages
2014/10/16
[#65742] Re: [ruby-cvs:55121] normal:r47971 (trunk): test/ruby/test_rubyoptions.rb: fix race
— Eric Wong <normalperson@...>
2014/10/16
Nobuyoshi Nakada <[email protected]> wrote:
[#65750] Re: [ruby-cvs:55121] normal:r47971 (trunk): test/ruby/test_rubyoptions.rb: fix race
— Tanaka Akira <akr@...>
2014/10/16
2014-10-16 12:48 GMT+09:00 Eric Wong <[email protected]>:
[#65753] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...
Issue #10333 has been updated by Koichi Sasada.
3 messages
2014/10/16
[#65818] [ruby-trunk - Feature #10351] [PATCH] prevent CVE-2014-6277 — shyouhei@...
Issue #10351 has been updated by Shyouhei Urabe.
3 messages
2014/10/20
[ruby-core:65360] [ruby-trunk - Feature #10267] Number of processors
From:
akr@...
Date:
2014-10-02 03:26:41 UTC
List:
ruby-core #65360
Issue #10267 has been updated by Akira Tanaka. Ok. It seems that there is no problem with the method name, Etc.nprocessors. So I committed my patch (etc-nprocessors3.patch). Please commit your patch, kosaki-san. (I didn't commit the patch just because separate commits makes "svn ann" more clearer.) ---------------------------------------- Feature #10267: Number of processors https://bugs.ruby-lang.org/issues/10267#change-49166 * Author: Akira Tanaka * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- How about a method to obtain number of processors? Several committers discussed this feature at RubyKaigi 2014. The number is important to use all available processing power. Too few processes doesn't use all processors. Too much processes wastes processing power. For example, test/lib/test/unit has -j N option for parallel tests and N is the number of processes to run simultaneously. But we must specify N explicitly. I think it should have reasonable default. I propose a primitive method to obtain number of processors for such purpose: Etc.nprocessors_online. It is implemented using sysconf(_SC_NPROCESSORS_ONLN). It is not standardized but available on many platforms: GNU/Linux, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, OpenIndiana, Mac OS X and AIX. usa-san said he will implement on Windows (after this feature is implemented). kosaki-san said he will improve the method for container on GNU/Linux. (If a process is run in a container, usable number of processors may be restricted. So sysconf(_SC_NPROCESSORS_ONLN) may be not approprate.) matz accepted this feature including the method name, Etc.nprocessors_online. However kosaki-san said he will try to find better name (by survey container technology). So I'm waiting. ---Files-------------------------------- etc-nprocessors.patch (1.91 KB) etc-nprocessors2.patch (2.31 KB) etc-nprocessors3.patch (2.29 KB) etc-nprocessors-kosaki.patch (3.06 KB) etc-nprocessors-kosaki2.patch (3.68 KB) -- https://bugs.ruby-lang.org/