[#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:65911] [ruby-trunk - Bug #10429] [Open] Ruby 2.x exponents produce wildly varying precision for integers vs decimals
Issue #10429 has been reported by Matt Dressel. ---------------------------------------- Bug #10429: Ruby 2.x exponents produce wildly varying precision for integers vs decimals https://bugs.ruby-lang.org/issues/10429 * Author: Matt Dressel * Status: Open * Priority: Normal * Assignee: * Category: core * Target version: * ruby -v: 2.0.0-p576, 2.1.3 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- ## 2.0.0 ``` > 1.1.to_d ** -1.9999999 => #<BigDecimal:7fdcc1fcdfa0,'0.8264462888 68609939E0',18(45)> > 1.1.to_d ** -2 => #<BigDecimal:7fdccd3e8d00,'0.8264462809 9173553719 0082644628 0991735537 1900826446 2809917355 3719008264 46E0',72(72)> > 1.1.to_d ** -2.0 => #<BigDecimal:7fdccd3e8d00,'0.8264462809 9173553719 0082644628 0991735537 1900826446 2809917355 3719008264 46E0',72(72)> > 1.1.to_d ** -2.0000001 => #<BigDecimal:7fdcc1f702d8,'0.8264462731 14861211E0',18(45)> ``` ## 2.1.3 ``` > 1.1.to_d ** -1.9999999 => #<BigDecimal:7ff690a7d6c0,'0.8264462888 68609938E0',18(36)> > 1.1.to_d ** -2 => #<BigDecimal:7ff690ace0c0,'0.8264462809 9173553719 0082644628 0991735537 1900826446 2809917355 371E0',63(63)> > 1.1.to_d ** -2.0 => #<BigDecimal:7ff690ace0c0,'0.8264462809 9173553719 0082644628 0991735537 1900826446 2809917355 371E0',63(63)> > 1.1.to_d ** -2.0000001 => #<BigDecimal:7ff674c0b0a8,'0.8264462731 1486121E0',18(36)> ``` Additionally, when the integer value increases, the precision increases: ## 2.0.0 ``` > 1.1.to_d ** 2 => #<BigDecimal:7fb0969fb7f0,'0.121E1',18(72)> > 1.1.to_d ** 3 => #<BigDecimal:7fb096928468,'0.1331E1',18(90)> > 1.1.to_d ** 4 => #<BigDecimal:7fb096a05890,'0.14641E1',18(117)> > 1.1.to_d ** 5 => #<BigDecimal:7fb096a0fbb0,'0.161051E1',18(135)> > 1.1.to_d ** 6 => #<BigDecimal:7fb096a1e110,'0.1771561E1',18(153)> ``` -- https://bugs.ruby-lang.org/