[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...
Issue #10333 has been updated by Koichi Sasada.
ko1@atdot.net wrote:
Eric Wong <normalperson@yhbt.net> wrote:
Eric Wong <normalperson@yhbt.net> wrote:
On 2014/10/09 11:04, Eric Wong wrote:
SASADA Koichi <ko1@atdot.net> wrote:
[#65453] [ruby-trunk - Feature #10328] [PATCH] make OPT_SUPPORT_JOKE a proper VM option — ko1@...
Issue #10328 has been updated by Koichi Sasada.
[#65559] is there a name for this? — Xavier Noria <fxn@...>
When describing stuff about constants (working in their guide), you often
On 2014/10/09 20:41, Xavier Noria wrote:
On Thu, Oct 9, 2014 at 1:59 PM, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
[#65566] [ruby-trunk - Feature #10351] [Open] [PATCH] prevent CVE-2014-6277 — shyouhei@...
Issue #10351 has been reported by Shyouhei Urabe.
[#65741] Re: [ruby-cvs:55121] normal:r47971 (trunk): test/ruby/test_rubyoptions.rb: fix race — Nobuyoshi Nakada <nobu@...>
On 2014/10/16 10:10, normal@ruby-lang.org wrote:
Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
2014-10-16 12:48 GMT+09:00 Eric Wong <normalperson@yhbt.net>:
[#65753] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...
Issue #10333 has been updated by Koichi Sasada.
[#65818] [ruby-trunk - Feature #10351] [PATCH] prevent CVE-2014-6277 — shyouhei@...
Issue #10351 has been updated by Shyouhei Urabe.
[ruby-core:65575] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string
Current patch (named "opt_str_lit" insn):
http://80x24.org/spew/m/opt-str-lit-v1%40m.txt
One VM instruction now optimizes away object allocation for string
literals in the following cases:
* "lit" % obj
* str << "lit"
* "lit" + str
* str + "lit"
* "lit" * num
* "lit" === obj
* obj === "lit"
* "lit" == str
* str == "lit"
* "lit" != str
* str != "lit"
* hash["lit"]
* hash["lit"] = obj
It is also in the "opt_str_lit" branch of git://bogomips.org/ruby.git
We may rework the current BOP_ redefinition checks via generated code
to make it easier to extend to args of common operations:
* String#{gsub,tr,delete,squeeze,split,unpack})
* Hash#{include?,#key?} ...
* Array#{pack,include?,join} ...
Basically any common operation which takes a string literals.