Nobuyoshi Nakada
d8fb0bca54
Removed excess stringizations on regstr [Bug #17532 ]
2021-01-13 12:47:42 +09:00
Nobuyoshi Nakada
083c5f08ec
Check stack overflow in recursive glob_helper [Bug #17162 ]
2021-01-13 12:16:00 +09:00
Kenta Murata
a5b4b806de
[ruby/bigdecimal] Allow digits=0 in BigDecimal(flt) and Float#to_d
...
Using dtoa of mode=0, we can determine the number of digits in decimal that is
necessary to represent the given Float number without errors.
This change permits digits=0 in BigDecimal(flt) and Float#to_d, and these
methods use dtoa of mode=0 when the given digits is 0.
Internal implicit conversion from Float also uses digits=0.
[Fix GH-70]
https://github.com/ruby/bigdecimal/commit/2dbe170e35
2021-01-13 11:49:18 +09:00
Hiroshi SHIBATA
30f1316401
Skip test when UDP server is no response.
2021-01-13 11:27:30 +09:00
Kenta Murata
0a4f719a06
Update ext/bigdecimal/depend
2021-01-13 09:36:17 +09:00
Kenta Murata
28321e400e
Update ext/bigdecimal/depend
2021-01-13 09:08:48 +09:00
Kenta Murata
4ba3a4491e
[ruby/bigdecimal] Optimize rb_float_convert_to_BigDecimal by using dtoa
...
This improve the conversion speed several times faster than before.
```
RUBYLIB= BUNDLER_ORIG_RUBYLIB= /home/mrkn/.rbenv/versions/3.0.0/bin/ruby -v -S benchmark-driver /home/mrkn/src/github.com/ruby/bigdecimal/benchmark/from_float.yml
ruby 3.0.0p0 (2020-12-25 revision 95aff21468
) [x86_64-linux]
Calculating -------------------------------------
bigdecimal 3.0.0 master
flt_e0 156.400k 783.356k i/s - 100.000k times in 0.639388s 0.127656s
flt_ep10 158.640k 777.978k i/s - 100.000k times in 0.630359s 0.128538s
flt_ep100 101.676k 504.259k i/s - 100.000k times in 0.983512s 0.198311s
flt_em10 103.439k 726.339k i/s - 100.000k times in 0.966751s 0.137677s
flt_em100 79.675k 651.446k i/s - 100.000k times in 1.255095s 0.153505s
Comparison:
flt_e0
master: 783355.6 i/s
bigdecimal 3.0.0: 156399.5 i/s - 5.01x slower
flt_ep10
master: 777977.6 i/s
bigdecimal 3.0.0: 158639.7 i/s - 4.90x slower
flt_ep100
master: 504259.4 i/s
bigdecimal 3.0.0: 101676.5 i/s - 4.96x slower
flt_em10
master: 726338.6 i/s
bigdecimal 3.0.0: 103439.2 i/s - 7.02x slower
flt_em100
master: 651446.3 i/s
bigdecimal 3.0.0: 79675.3 i/s - 8.18x slower
```
https://github.com/ruby/bigdecimal/commit/5bdaedd530
https://github.com/ruby/bigdecimal/commit/9bfff57f90
https://github.com/ruby/bigdecimal/commit/d071a0abbb
2021-01-13 02:11:18 +09:00
Kenta Murata
2175c2c957
[ruby/bigdecimal] Use pre-allocated objects for special values
...
https://github.com/ruby/bigdecimal/commit/95c201f2d3
2021-01-13 01:58:23 +09:00
Kenta Murata
6670de82c2
[ruby/bigdecimal] Fix exception message raised in Kernel.BigDecimal
...
https://github.com/ruby/bigdecimal/commit/d163f170a4
https://github.com/ruby/bigdecimal/commit/ff8eeeb064
2021-01-13 01:27:04 +09:00
git
79d236a9f1
* 2021-01-13 [ci skip]
2021-01-13 01:13:31 +09:00
aycabta
0e44247508
[ruby/reline] Version 0.2.1
...
https://github.com/ruby/reline/commit/a3b3c6ee60
2021-01-13 01:12:54 +09:00
aycabta
eb5a094fc0
[ruby/reline] Move the cursor correctly when deleting at eol
...
This fixes ruby/reline#246 .
https://github.com/ruby/reline/commit/07a73ba601
2021-01-13 01:12:54 +09:00
aycabta
44817db28b
[ruby/reline] Handle ed_search_{prev,next}_history in multiline correctly
...
The current line was being handled incorrectly when displaying the hit
history, so it has been fixed to be correct.
https://github.com/ruby/reline/commit/a3df4343b3
2021-01-13 01:12:54 +09:00
aycabta
9fa478e38a
[ruby/irb] Version 1.3.1
...
https://github.com/ruby/irb/commit/c230d08911
2021-01-13 01:12:54 +09:00
Kazuhiro NISHIYAMA
344a824ef9
[DOC] Use URI#read instead of URI.open for better compatibility
...
- URI.open is available since 2.5.0, but URI#read is available since 1.8.0.
- Fix `open` without `close`.
- ref https://github.com/rurema/doctree/pull/2433
2021-01-12 22:12:02 +09:00
Hiroshi SHIBATA
0dc95266e8
Fix the failing test with XDG_CONFIG_HOME
2021-01-12 20:15:18 +09:00
Nobuyoshi Nakada
7dc0511ea4
Remove "." and ".." from Dir.glob with FNM_DOTMATCH [Bug #17280 ]
...
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2021-01-12 20:02:43 +09:00
Kenta Murata
ccabf4966f
[ruby/bigdecimal] Fix length calculation in rb_uint64_convert_to_BigDecimal
...
https://github.com/ruby/bigdecimal/commit/14e53ed7f6
2021-01-12 17:38:43 +09:00
Nobuyoshi Nakada
1eb8eb55c2
Convert time component strings to integers more strictly
...
https://bugs.ruby-lang.org/issues/17485#change-89871
2021-01-12 17:24:43 +09:00
Nobuyoshi Nakada
b017848f8a
Show seconds of utc_offset if not zero
2021-01-12 17:00:14 +09:00
Kenta Murata
f7dc4d5cda
tool/sync_default_gems.rb: Prevent infinite loop due to unknown options
2021-01-12 09:57:04 +09:00
git
71b17c4110
* 2021-01-12 [ci skip]
2021-01-12 09:49:02 +09:00
Kenta Murata
1d04faee23
[ruby/bigdecimal] Use rb_cstr_convert_to_BigDecimal in GetVpValueWithPrec
...
https://github.com/ruby/bigdecimal/commit/381ddf5ff6
2021-01-12 09:22:14 +09:00
Kenta Murata
78d3813c74
[ruby/bigdecimal] Add rb_cstr_convert_to_BigDecimal
...
https://github.com/ruby/bigdecimal/commit/ac230a996e
2021-01-12 09:21:58 +09:00
Nobuyoshi Nakada
66a844fd07
Define printf qualifier prefix fallbacks
2021-01-11 21:13:45 +09:00
Nobuyoshi Nakada
72549cfe98
Removed ENABLE_PATH_CHECK condition [ci skip]
...
This condition is useless on Ubuntu, as this macro is defined by
default on other than Windows.
2021-01-11 19:46:31 +09:00
Takashi Kokubun
2a1c68c91e
Avoid re-entering opt_invokebuiltin_delegate_leave
...
on interruption.
The cancellation code was originally written for leave insn, but re-entering
opt_invokebuiltin_delegate_leave insn on a cancellation is not safe, because
a builtin function is executed twice.
2021-01-11 07:40:38 +00:00
Nobuyoshi Nakada
5e00eeb4d4
[ruby/matrix] use an exclusive range [Bug #17521 ]
2021-01-11 14:00:35 +09:00
Nobuyoshi Nakada
d2aaf865e3
[ruby/etc] Added fallback definition of RUBY_ATOMIC_EXCHANGE
...
https://github.com/ruby/etc/commit/0c5900bd21
2021-01-11 11:39:12 +09:00
Nobuyoshi Nakada
f6e2c41db3
[ruby/etc] Check blocking variables at release
...
https://github.com/ruby/etc/commit/f017bdfedf
2021-01-11 11:39:10 +09:00
Marc-André Lafortune
d8c8b79d24
[ruby/matrix] Fix 0-th power [Bug #17521 ] ( #4047 )
2021-01-10 16:21:10 -05:00
Tom Chen
8187228de0
Fix ractor docs ( #4048 ) [doc]
2021-01-10 15:39:37 -05:00
Burdette Lamar
0e015f9389
Adds RDoc summary of Hash methods ( #4045 )
...
* Adds RDoc summary of Hash methods
2021-01-10 14:13:24 -06:00
git
52257640ac
* 2021-01-11 [ci skip]
2021-01-11 00:47:34 +09:00
Nobuyoshi Nakada
480f436dac
Suppress constant redefinition warnings
2021-01-11 00:33:26 +09:00
Nobuyoshi Nakada
c63552eab1
Remove possibility of using same seeds
2021-01-10 21:29:07 +09:00
Nobuyoshi Nakada
1e827d4cb5
Moved to ruby/actions workflow [ci skip]
2021-01-10 20:42:01 +09:00
Nobuyoshi Nakada
2adbf01ae1
dtoa.c: make thread-safe by using atomic CAS
2021-01-10 18:19:53 +09:00
Nobuyoshi Nakada
34d02631e7
dtoa.c: constified
...
clang seems to locate never modified local data in the const
segment implicitly.
2021-01-10 16:42:36 +09:00
Nobuyoshi Nakada
63abb5c227
dtoa.c: make compilable independently
...
Except for `-Dxmalloc=malloc -Dxfree=free`.
2021-01-10 16:28:58 +09:00
git
01aa036023
* 2021-01-10 [ci skip]
2021-01-10 08:45:43 +09:00
Kenta Murata
2e9b6096a6
[ruby/bigdecimal] Fix type name
...
https://github.com/ruby/bigdecimal/commit/2dad4d17b2
2021-01-10 08:40:05 +09:00
Kenta Murata
8b53cbaf5e
[ruby/bigdecimal] Avoid casting negative value to size_t
...
https://github.com/ruby/bigdecimal/f047b2786f
2021-01-10 08:36:29 +09:00
Kenta Murata
72d504c1fd
[ruby/bigdecimal] Use smallest local variable scope in GetVpValueWithPrec
...
https://github.com/ruby/bigdecimal/commit/44f26b9aa0
2021-01-10 08:35:43 +09:00
Nobuyoshi Nakada
590dc06e38
Get rid of defining methods for tests in core classes
...
Not to interfere in other tests.
2021-01-09 22:38:06 +09:00
David CARLIER
161a20df28
gc fix typo for the timer instruction for ARM64.
2021-01-09 22:37:27 +09:00
Kenta Murata
3d9c95996d
[ruby/bigdecimal] Stop using GetVpValueWithPrec in rb_rational_convert_to_BigDecimal
...
https://github.com/ruby/bigdecimal/commit/b4f470da61
https://github.com/ruby/bigdecimal/commit/44a78df866
2021-01-09 20:36:47 +09:00
Kenta Murata
be34e31d8e
[ruby/bigdecimal] Add assertions for checking the argument types
...
https://github.com/ruby/bigdecimal/commit/96c9ebd886
2021-01-09 20:36:18 +09:00
Kenta Murata
fb18a8113a
[ruby/bigdecimal] Stop using GetVpValueWithPrec in rb_float_convert_to_BigDecimal
...
https://github.com/ruby/bigdecimal/commit/33e7c50263
https://github.com/ruby/bigdecimal/commit/d3c1b0b921
2021-01-09 20:35:52 +09:00
Kenta Murata
89f3125207
[ruby/bigdecimal] Add test cases of conversion from Float
...
https://github.com/ruby/bigdecimal/commit/28d3836366
2021-01-09 20:35:08 +09:00