Activity
From 08/20/2019 to 08/26/2019
08/26/2019
-
11:49 PM Feature #16120: Omitted block argument if block starts with dot-method call
- I believe that `map(&JSON.:parse)` must be considered together because it is strongly related to the motivation of your proposal. Note that `map(&JSON.:parse)` is incomplete. People will next want to omit a parameter of `map {|x| JSON....
-
07:34 PM Feature #16120: Omitted block argument if block starts with dot-method call
- The syntax I propose is definitely not *meant* to absorb all styles. I think any attempt to be everything to everyone is doomed to failure. I do not believe this is a race where only one of the various proposals can win; considering the ...
-
10:59 PM Revision 22834112 (git): Added license comment [Bug #12230] [ci skip]
-
10:22 PM Bug #15992: An exception breaks monitor state and cause deadlock
- Should `mon_enter` and `mon_exit` use `Thread.handle_interrupt` inside their method definitions, so they are safe when called directly too?
`Thread.handle_interrupt(Exception => :never)` seems too much for `mon_enter`, I think `Thread... -
05:03 PM Bug #15992: An exception breaks monitor state and cause deadlock
- ruby_2_5 r67774 merged revision(s) f91879a7b548284c93743168acfd11e3d2aeefac,9557069299ac3b96691040a541afa65761a724ad.
-
10:11 PM Misc #15996: DevelopersMeeting20190829Japan
- * [Feature #10829] Add to_proc method to the Array class
* [Feature #12115] Add Symbol#call to allow to_proc shorthand with arguments
* [Feature #15302] Proc#with and Proc#by, for partial function application and currying
* [Misc #157... -
09:30 PM Revision 744be55f (git): Remove duplicated delegation
-
08:59 PM Revision fd0a4a64 (git): Delegete an instance method to a class method correctly
-
08:42 PM Revision 9f0f7771 (git): this iv table should also use the new update function
-
08:33 PM Revision f13db4ad (git): Save value to @ambiguous_width because of a accessor
-
08:24 PM Revision 978ff1ff (git): Pick lib/readline.rb from ruby/reline
-
08:18 PM Revision f2a5c50f (git): The "private" doesn't make sence for class methods and a constant
-
08:18 PM Revision 68207bb4 (git): Use preposing "private" to define methods
-
08:18 PM Revision d8bcede9 (git): Adjust method forwardings of Reline
-
07:48 PM Bug #14752 (Closed): abort during build full build log
-
07:37 PM Bug #14714 (Closed): Ruby 2.5.1 Segmentation Fault in GC
-
07:37 PM Bug #14682 (Feedback): Error [BUG] unexpected THREAD_KILLED
- Does this issue still occur with 2.5.5 or 2.6.3?
-
07:35 PM Bug #14667 (Closed): Segmentation fault in Ruby during iOS automation
-
07:33 PM Bug #14659 (Closed): segfault in ConditionVariable#broadcast and ConditionVariable#signal
-
07:32 PM Bug #14616 (Feedback): Segmentation fault in net/http/response
- Can you try again with 2.5.5 or 2.6.3?
-
06:45 PM Bug #14591: Files with invalid multi-byte characters will cause Find::find() to raise EINVAL exception
- This issue started in Ruby 2.5 and is still present in 2.6. It appears to be related to the code page. If I have a directory with Japanese characters (テスト), the error occurs with my default code page (437), but does not occur if I swit...
-
06:31 PM Revision 09d8e06b (git): Try only updating hash value references
- I'm afraid the keys to this hash are just integers, and those integers
may look like VALUE pointers when they are not. Since we don't mark the
keys to this hash, it's probably safe to say that none of them have
moved, so we shouldn't tr... -
06:14 PM Revision d9bfbe36 (git): Make `gc_update_table_refs` match `mark_tbl_no_pin` a little more closely
- This commit just makes `gc_update_table_refs` match `mark_tbl_no_pin`
more closely. -
05:38 PM Bug #14573 (Closed): rb_ary_or doesn't check objects hash when the array contains less than SMALL_ARRAY_LEN
- I don't think this is a bug. If `eql?` returns true, `hash` must return the same value. Class `X` in this example violates that constraint, resulting in undefined behavior. If you fix class `X`, the behavior is correct in all ruby ver...
-
05:28 PM Bug #14560 (Feedback): Segmentation fault near the end of large Rails test suite
- Can you try 2.5.5 or 2.6.3 and see if this problem has been fixed?
-
05:26 PM Bug #14488 (Closed): Unicode characters prevent [[:punct:]] character class from matching certain characters in subsequent matches
- 05:03 PM Revision 4d9c5875 (git): merge revision(s) f91879a7b548284c93743168acfd11e3d2aeefac,9557069299ac3b96691040a541afa65761a724ad: [Backport #15992]
- handle_interrupt to defend monitor state [Bug #15992]
If an exception is raised from another thread for example Timeout
and this thread is just after `mon_exit`'s `@mon_owner = nil`,
the exception breaks the stat... -
04:49 PM Bug #16105: heap-use-after-free in String#sub!
- ruby_2_5 r67773 merged revision(s) d5c33364e3c0efb15e11df417c925afee2cdb9c9.
- 04:49 PM Revision 416249b3 (git): merge revision(s) d5c33364e3c0efb15e11df417c925afee2cdb9c9: [Backport #16105]
- Fixed heap-use-after-free
* string.c (rb_str_sub_bang): retrieves a pointer to the
replacement string buffer just before using it, for the case of
replacement with the receiver string itself. [Bug #16105]
... -
04:46 PM Bug #14334 (Closed): Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)
-
04:44 PM Bug #16099: UTF-16LE BOM followed by '\0' is missed
- ruby_2_5 r67772 merged revision(s) 5b1bf8dd2d08ae7371ecf025967376bb794ed651.
- 04:44 PM Revision f8efd7f9 (git): merge revision(s) 5b1bf8dd2d08ae7371ecf025967376bb794ed651: [Backport #16099]
- UTF LE is fixed at least the first 2 bytes
* io.c (io_strip_bom): if the first 2 bytes are 0xFF0xFE, it
should be a little-endian UTF, 16 or 32. [Bug #16099]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby... -
04:42 PM Revision 3a4a58e2 (git): Fix use_lib_reline for test/readline
-
04:23 PM Revision 344f507e (git): Remove .freeze.
-
04:23 PM Revision 50d4a770 (git): Add test with encoding.
-
04:23 PM Revision 0295bffc (git): Change to test file path.
-
04:23 PM Revision 1ee9299b (git): Add support Windows in CI.
-
04:23 PM Revision f33117fb (git): Add test reline.
-
04:23 PM Revision 195f545c (git): Fix `Reline::Windows`.
-
04:23 PM Revision 298ac047 (git): Refactoring Reline.
-
04:23 PM Revision afed2668 (git): Fix reference core method.
-
04:23 PM Revision f60e5a1f (git): Remove test_mode in `lib/reline`.
-
04:23 PM Revision 9c0cd6a0 (git): Refactoring Reline accessor.
-
04:20 PM Bug #15952: Issue with Array#unshift, sometimes doesn't respect frozenness of array
- ruby_2_5 r67771 merged revision(s) ec8e5f5aa64e2a54cf1e303f2b012c98e8d521ba,5a187e26adc8aa32367f294c1496935c7356d386.
- 04:20 PM Revision ef626cd0 (git): merge revision(s) ec8e5f5aa64e2a54cf1e303f2b012c98e8d521ba,5a187e26adc8aa32367f294c1496935c7356d386: [Backport #15952]
- array.c: always check frozenness in Array#unshift. Fixes [Bug #15952]
Closes: https://github.com/ruby/ruby/pull/2251
array.c add back shared array optimization to
ary_ensure_room_for_unshift
Bug fix in... -
04:17 PM Bug #15946: Undefined behavior can occur with memcpy in String#sub!
- ruby_2_5 r67770 merged revision(s) 8f51da5d41f0642d5a971e4223d1ba14643c6398.
- 04:17 PM Revision 080e04e8 (git): merge revision(s) 8f51da5d41f0642d5a971e4223d1ba14643c6398: [Backport #15946]
- Get rid of undefined behavior
* string.c (rb_str_sub_bang): str and repl can be same.
[Bug #15946]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:16 PM Bug #15937: Segmentation fault when String#initialize given same string with capacity field
- ruby_2_5 r67769 merged revision(s) 28678997e40869f5591eae60edd9757334426ffb,8797f48373dcfa3ff8e748667732dea8aea4347e.
- 04:16 PM Revision 6b7ebe83 (git): merge revision(s) 28678997e40869f5591eae60edd9757334426ffb,8797f48373dcfa3ff8e748667732dea8aea4347e: [Backport #15937]
- Preserve the string content at self-copying
* string.c (rb_str_init): preserve the embedded content when
self-copying with a capacity. [Bug #15937]
New buffer for shared string
* string.c (rb_str_ini... -
04:12 PM Bug #16051: Backport 43730256e800dd8e0c5cc482e9861868590ae037 and 1e54903684aa3c9ea3fe54520157846a1b1f07be
- ruby_2_5 r67768 merged revision(s) ae2a904ce9bffedee7d110dc60fd51c0a2879a5b,165ddfda20f6db8a3149d14c4f431fc242ddab70,fa7a768fdfe5223a29db4fa71b3e6101fb02ad51.
- 04:12 PM Revision 2b97b8e0 (git): merge revision(s) ae2a904ce9bffedee7d110dc60fd51c0a2879a5b,165ddfda20f6db8a3149d14c4f431fc242ddab70,fa7a768fdfe5223a29db4fa71b3e6101fb02ad51: [Backport #16051]
- Update the certificate files to make the test pass on Debian 10
The old certificate files (for example, test/rubygems/ca_cert.pem) were
signed by SHA1. This message digest is considered too weak and rejected
by ... -
04:09 PM Bug #15934: String#b can lead to memory corruption
- ruby_2_5 r67767 merged revision(s) 9dec4e8fc3a6018261834b5ac9b9877f787b97ca.
- 04:09 PM Revision b49b1d76 (git): merge revision(s) 9dec4e8fc3a6018261834b5ac9b9877f787b97ca: [Backport #15934]
- String#b: Don't depend on dependent string
Registering a string that depend on a dependent string as fstring
can lead to use-after-free. See c06ddfe and 3f95620 for details.
The following script triggers use-aft... -
03:59 PM Bug #15792: GC can leave strings used as hash keys in a corrupted state
- ruby_2_5 r67766 merged revision(s) 3f9562015e651735bfc2fdd14e8f6963b673e22a,c06ddfee878524168e4af07443217ed2f8d0954b,3b3b4a44e5.
- 03:58 PM Revision 689a6a0a (git): merge revision(s) 3f9562015e651735bfc2fdd14e8f6963b673e22a,c06ddfee878524168e4af07443217ed2f8d0954b,3b3b4a44e5: [Backport #15792]
- Get rid of indirect sharing
* string.c (str_duplicate): share the root shared string if the
original string is already sharing, so that all shared strings
refer the root shared string directly. indirect shar... -
03:40 PM Bug #15720: SystemStackError when referencing a refinement in a module that isn't used
- ruby_2_5 r67765 merged revision(s) 5e018214e7435030727a97ac49db038d96438e74.
- 03:40 PM Revision 470dae33 (git): merge revision(s) 5e018214e7435030727a97ac49db038d96438e74: [Backport #15720]
- Fix SystemStackError when calling a method in an unused refinement
Fixes [Bug #15720]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:39 PM Bug #15360: "ThreadError: deadlock; recursive locking" error when recursive lock shouldn't be possible
- ruby_2_5 r67764 merged revision(s) c1d78a7f0ece2004822193a0c1f1fd3dc38c2fdf.
- 03:39 PM Revision 33151275 (git): merge revision(s) c1d78a7f0ece2004822193a0c1f1fd3dc38c2fdf: [Backport #15360]
- do_mutex_lock: release mutex before checking for interrupts (fixes
issue 15360)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:36 PM Bug #15839: mixed encoding heredoc should be a syntax error regardless the order
- ruby_2_5 r67763 merged revision(s) 6375c68f8851e1e0fee8a95afba91c4555097127,c05eaa93258ddc01e685b6cc3a0da82998a2af48.
- 03:36 PM Revision a9a37695 (git): merge revision(s) 6375c68f8851e1e0fee8a95afba91c4555097127,c05eaa93258ddc01e685b6cc3a0da82998a2af48: [Backport #15839]
- parse.y: function parser_mixed_error & parser_mixed_escape
Fix mixed encoding in heredoc
Heredocs are parsed line-by-line, so we need to keep track of the
temporary encoding of the string. Previously, a heredoc... -
03:13 PM Bug #15847: SecureRandom#gen_random becomes private after first invocation
- ruby_2_5 r67762 merged revision(s) 5bab1304af25a843728dbcd2f3594913740aecb0.
- 03:13 PM Revision 7cdacb99 (git): merge revision(s) 5bab1304af25a843728dbcd2f3594913740aecb0: [Backport #15847]
- fix visibility of SecureRandom.gen_random
Aliasing a method preserves its visibility. These aliases turn
formerly-public methods into private. Should make them public
again. [Bug #15847]
git-svn-id: svn+ssh:/... - 03:11 PM Revision d5b23732 (git): * 2019-08-27 [ci skip]
-
03:10 PM Bug #15887: Process.argv0 can return bad values in Ruby 2.5
- ruby_2_5 r67761 merged revision(s) ea42423908ed055f9039b1dce6e9a232a3b2dd90.
-
03:10 PM Revision 7d9c3a57 (git): Handle binding.irb for frozen objects and BasicObjects using a delegate
- Fixes Ruby Bug 13264
-
03:10 PM Revision caeafbe8 (git): Move private call without arguments inside method
- This code did not have the desired effect. I'm not sure if
irb_binding is supposed to be private or not. If not, the private
call can just be removed. - 03:10 PM Revision 6e5e5df1 (git): merge revision(s) ea42423908ed055f9039b1dce6e9a232a3b2dd90: [Backport #15887]
- Keep vm->orig_progname alive
`vm->orig_progname` can be different from `vm->progname` when user
code assigns to `$0`. While `vm->progname` is kept alive by the
global table, nothing marked `vm->orig_progname`.
... -
03:02 PM Bug #15821: ruby_process_options() may cause "WB miss (O->Y)"
- ruby_2_5 r67759 merged revision(s) ac00bdc8a8ac2c62a94dd36a7784d15bbcb7df19.
- 03:02 PM Revision 522bc8ad (git): * 2019-08-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:02 PM Revision 2576b8b2 (git): merge revision(s) ac00bdc8a8ac2c62a94dd36a7784d15bbcb7df19: [Backport #15821]
- Do not modify shared array
[Bug #15821]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:54 PM Bug #12356 (Rejected): Vector covector incorrect multiplication with another vector.
- Thanks Jeremy for updating this issue. I double checked and never received the original email notification...
> `Vector` does not have distinction between row and column, there's no column vector notion in the language.
Actually, i... -
02:54 PM Bug #15786: numbered parameterを使ったprocのparametersに記号が現れる
- ruby_2_5 r67758 merged revision(s) d0ba4abf1a00339ebbb5d405db3240a8bdb7b68b,54eac83b2ad77ddea84fa6d66c09e0bb014cf61e.
- 02:54 PM Revision 401da791 (git): merge revision(s) d0ba4abf1a00339ebbb5d405db3240a8bdb7b68b,54eac83b2ad77ddea84fa6d66c09e0bb014cf61e: [Backport #15786]
- Add RB_ID_SERIAL_MAX
Hide internal IDs
* parse.y (internal_id): number the ID serial for internal use by
counting down from the neary maximum value, not to accidentally
match permanent IDs.
... -
02:45 PM Bug #15906: a=a のような式をもつ条件分岐が意図しない挙動をする
- ruby_2_5 r67757 merged revision(s) a6a26e42b15c46f117f4fce07a2050e9d727355d.
- 02:45 PM Revision 235e64c2 (git): merge revision(s) a6a26e42b15c46f117f4fce07a2050e9d727355d: [Backport #15906]
- compile.c: Partially revert r63870 which caused wrong optimization
[Bug #15906]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:39 PM Bug #15775: Update broken URL in Float documentation
- ruby_2_5 r67756 merged revision(s) b72623012d74abdb06210153ed48c9e2fa075bbd.
- 02:39 PM Revision 5586497b (git): merge revision(s) b72623012d74abdb06210153ed48c9e2fa075bbd: [Backport #15775]
- Update broken URL in Float documentation.
[Misc #15775][ruby-core:92332]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:37 PM Bug #15803: File.realpath should always return a tainted string
- ruby_2_5 r67755 merged revision(s) a15f7dd1fb1148c3d586238ee6907875f2e40379.
- 02:37 PM Revision 920b6e15 (git): merge revision(s) a15f7dd1fb1148c3d586238ee6907875f2e40379: [Backport #15803]
- Always mark the string returned by File.realpath as tainted
This string can include elements that were not in either string
passed to File.realpath, even if one of the strings is an
absolute path, due to symlinks... -
02:19 PM Bug #15199: scanf.rb broken with io from IO.pipe (MinGW or Windows?)
- ruby_2_5 r67754 merged revision(s) d118c84b0b9110462e479487ffaf175a75e5718e.
- 02:18 PM Revision 662a3ca8 (git): merge revision(s) d118c84b0b9110462e479487ffaf175a75e5718e: [Backport #15199]
- Fix IO#scanf on pipes on Windows
IO.seek on a pipe on Windows raises Errno::EINVAL instead of
Errno::ESPIPE.
Fixes Ruby Bug #15199
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67754 b2dd03c8-39... -
02:16 PM Bug #15820: Backport 5e23b1138f1 (Fix potential memory leak)
- ruby_2_5 r67753 merged revision(s) 5e23b1138f16af0defb184d7deeffadfd2ce3c04.
- 02:15 PM Revision d65f9463 (git): merge revision(s) 5e23b1138f16af0defb184d7deeffadfd2ce3c04 [backport #15820]
- Fix potential memory leak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:06 PM Bug #14539: Duplicate range in character class warning
- ruby_2_5 r67752 merged revision(s) 179045acaf5de8398c321ada86a76f1afb77a796.
- 02:06 PM Revision 59ed372b (git): merge revision(s) 179045acaf5de8398c321ada86a76f1afb77a796: [Backport #14539]
- regparse.c: Suppress duplicated range warning by mere \X
* regparse.c (node_extended_grapheme_cluster): as Unicode 10 has
added Grapheme_Cluster_Break properties to some characters,
remove duplicated ranges f... -
02:00 PM Bug #14657: Fix build error with LibreSSL 2.7
- already fixed on ruby_2_5 at r64428.
-
01:49 PM Bug #15801: [BACKPORT] ChangeLogs of 2.5 and 2.6 begin before the 2.4 release
- ruby_2_5 r67751 merged revision(s) af1e487e9bb763b939dc6704c9a343c9eafa1637.
- 01:49 PM Revision ed7b68a2 (git): merge revision(s) af1e487e9bb763b939dc6704c9a343c9eafa1637: [Backport #15801]
- Updated marked commits for ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:32 PM Bug #13264 (Closed): Binding#irb does not work in context of frozen object
- This was fixed by the Pull Request above.
- 12:09 PM Revision ccc5b22a (git): Expand JOBS instead of meaningless export (#2402)
- * Expand JOBS instead of meaningless export
* Remove -j option in TESTOPTS of test-bundled-gems
https://github.com/ruby/ruby/runs/203129516#step:10:167
> invalid option: -j3 -
09:56 AM Feature #16128: Would it be possible for ruby to warn about case/when menu options separated by a trailing, but accidental ','?
- Comparing indents is easy in very simple cases, but it will harder in complex cases, for instance, after a multiple line expression.
And I suspect this can be found by editors auto-indent. -
07:36 AM Feature #16128: Would it be possible for ruby to warn about case/when menu options separated by a trailing, but accidental ','?
- the problem is that the case body can be empty, that doesn't mean the code is wrong.
and like sawa said, it probably needs to check all other braches too, which i don't know is possible there -
06:23 AM Feature #16128: Would it be possible for ruby to warn about case/when menu options separated by a trailing, but accidental ','?
- In fact, even indentation level in this particular code does not seem to tell that it was a mistake. The `print_foobar` line is aligned with the other conditions. I would take it that they all belong to the condition.
However, you can... -
03:37 AM Feature #16128: Would it be possible for ruby to warn about case/when menu options separated by a trailing, but accidental ','?
- shevegen (Robert A. Heiler) wrote:
> Perhaps the above can still be reported based on additional information,
> ...
There is no way to distinguish these cases syntactically.
Only what I think of is the indent level, too.
-
09:27 AM Revision 48f1a38f (git): Limit ChangeLog entries
- Since the previous release date, when the starting message is not
found. -
08:45 AM Revision 972222c0 (git): Show MFLAGS to check `Set ENV` in .github/workflows/ubuntu.yml
-
07:54 AM Revision 44bead39 (git): CPPFLAGS is not needed for link
-
07:54 AM Revision 26146536 (git): Moved INCFLAGS to XCFLAGS from CPPFLAGS as well as mswin
- Rules which have used CPPFLAGS will need XCFLAGS or INCFLAGS now.
-
07:11 AM Revision fafabe2f (git): Add INCFLAGS for fake.rb
- INCFLAGS is not included in CPPFLAGS on mswin, not to be exported
to rbconfig.rb. -
04:58 AM Bug #16117 (Rejected): ruby2.6.3(x86) use fiddle faild to load dll in windows7
-
04:33 AM Feature #14240: warn four special variables: $; $, $/ $\
- jeremyevans0 (Jeremy Evans) wrote:
> nobu (Nobuyoshi Nakada) wrote:
> ...
Another point is that compile warnings are for the names.
Use of aliases of them like English.rb will be still silent.
So, [this question](https://bugs.ruby-... -
12:58 AM Feature #14240: warn four special variables: $; $, $/ $\
- nobu (Nobuyoshi Nakada) wrote:
> jeremyevans0 (Jeremy Evans) wrote:
> ...
Agreed. I'm fine dropping these compile warnings if the run-time warnings are considered sufficient.
> > One problem with the implementation in my previous p... -
04:23 AM Feature #16129 (Closed): Call initialize_clone with freeze: false if clone called with freeze: false
- This makes it possible for `initialize_clone` to correctly not freeze internal state if the `freeze: false` keyword is passed to `clone`.
If `clone` is called with `freeze: true` or no keyword, do not pass a second argument to `initia... -
04:14 AM Revision b4d6d9c1 (git): Removed unnecessary flags for fake.rb
- Flags for ruby core such as warning and `_FORTIFY_SOURCE` macro
are not necessary to make fake.rb, except for `RUBY_EXPORT` macro
which prevents to include ruby/backward.h. -
04:13 AM Revision 1581249d (git): Added in-srcdir macro [ci skip]
-
04:01 AM Revision 5e86b005 (git): uid_t and gid_t are narrower than VALUE.
- Often uid / gid are 16 bit or 32 bit integers, while VALUE are 32
to 64 bits. They tend to differ in size. Because rb_ensure expects
its callbacks to take VALUE arguments, narrowing must be done by
hand, otherwise data corruption can h... -
04:01 AM Revision 48131a46 (git): rb_mjit_header.h is not worth documenting [ci skip]
- This is an auto-generated header file that does not include anything
interesting. Should skip generating CAPI documents. -
03:17 AM Bug #16028: Backport r67563: SNI is not enabled in Net::IMAP
- already backported into ruby_2_5 at r67717
-
03:00 AM Revision fa6c1b06 (git): Suppress a "clobbered" warning
- 02:08 AM Revision 4448d586 (git): * 2019-08-26 [ci skip]
-
02:07 AM Revision 5e10cb04 (git): Refined the appropriate C++ compiler in OS X selection
- Allows CC to be prefixed another path or command, e.g., ccache.
-
12:25 AM Bug #14160: JSON#generate documentation wrong/misleading
- I added a pull request to fix the first issue: https://github.com/flori/json/pull/384
There is an existing pull request to fix the second issue: https://github.com/flori/json/pull/347
08/25/2019
-
08:47 PM Bug #14121 (Closed): test-all - rename duplicate classes for consistent test count
- Commited in commit:dd3851d2786412de019350a11e749c56fa5a07cc.
-
08:45 PM Bug #14102 (Rejected): Date.strptime ignores constraints provided by day name
-
08:41 PM Bug #14069 (Rejected): Document order of elements in Set
-
08:40 PM Bug #14053 (Closed): Problem with case/when menus in ruby 2.5.0dev (2017-10-25) [x86_64-linux] - semi-random tracebook of different errors (NODE_STR, NODE_ARGS etc...) and also segfaults sometimes
-
08:36 PM Bug #13970 (Rejected): Base64 urlsafe_decode64 unsafe use of tr.
- I don't think this is a bug. Most pure Ruby code assumes and does not check that method arguments respond to all methods that the code expects them to respond to. It's generally considered a smell to take code like:
```ruby
def foo(... -
08:24 PM Bug #14028 (Closed): RubyVM logic backported into Ruby 2.3 tests
-
08:20 PM Bug #14010 (Closed): RubyVM logic in forwardable backported to 2.3, not removed
-
08:20 PM Bug #13980: Rounding failure on i686 (i386).
- Does this rounding error still occur on Fedora i686?
-
08:16 PM Bug #13917 (Rejected): Comparable#clamp is slower than using Array#min,max.
-
08:02 PM Bug #13700 (Closed): Enumerable#sum may not work for Ranges subclasses due to optimization
- Applied in changeset commit:git|e496e96547b64c3a2fa6f285c3bc9bd21a245ac6.
----------
Document that Enumerable#sum may not respect redefinition of Range#each
It already documented that it may not respect redefinition
of Integer#+.
Fixe... -
07:53 PM Revision b4dfac2c (git): Fix ArgumentError in expand_tabs.rb
- This fixes the following in my environment:
misc/expand_tabs.rb:29:in `=~': invalid byte sequence in US-ASCII (ArgumentError)
This switches from =~ to start_with? as a regular expression is
not actually needed here. -
07:50 PM Revision e496e965 (git): Document that Enumerable#sum may not respect redefinition of Range#each
- It already documented that it may not respect redefinition
of Integer#+.
Fixes [Bug #13700] -
07:17 PM Bug #13688: Thread overflow hangs ruby (not responding ^C)
- This bug still occurs in the master branch. Attached is a patch that fixes it by checking for interrupts before calling the thread's proc.
-
06:28 PM Bug #13675: Should Zlib::GzipReader#ungetc accept nil?
- If we want to fix `IO#ungetc`, attached is a patch that will fix it.
-
06:19 PM Bug #13674 (Closed): BigDecimal comparison with Float::INFINITY is erroneous in 2.2.x and 2.3.x
-
06:13 PM Bug #13612 (Closed): Segmentation Fault
-
06:06 PM Bug #13441 (Closed): building - GIT variable, ruby, rubygems tests
-
06:05 PM Bug #13171 (Rejected): URI::FTP path has a trailing slash when just hostname and scheme provided
- This doesn't appear to be a bug, even if the behavior is slightly inconsistent between URI::HTTP and URI::FTP. If you can show an actual problem caused by the inconsistency, please reply.
-
06:00 PM Bug #13431 (Closed): sample/drb/http0*.rb is not working.
- Applied in changeset commit:git|71d97a5ef80a23b0bb1005570ed059580981a467.
----------
Fix sample/drb/http0serv.rb
Previously, trying to use this would result in:
undefined method `uri' for #<DRb::HTTP0::ServerSide:0x00000aec9f1637f8> (... -
05:56 PM Revision 71d97a5e (git): Fix sample/drb/http0serv.rb
- Previously, trying to use this would result in:
undefined method `uri' for #<DRb::HTTP0::ServerSide:0x00000aec9f1637f8> (NoMethodError)
Also, use a relative require to load sample/drb/http0.rb.
Fixes [Bug #13431] -
05:11 PM Bug #12961: Bad value for range using infinity for Date or Time
- I've submitted a pull request to allow `-Float::Infinity...Date.today`: https://github.com/ruby/date/pull/13
-
03:52 PM Feature #16128 (Open): Would it be possible for ruby to warn about case/when menu options separated by a trailing, but accidental ','?
- I was not sure whether the following behaviour is a bug or not, so I filed this under "feature", mostly because
this may change existing behaviour; and even if I think the current behaviour in this context may not make a
lot of sense, ... -
02:08 PM Revision 365e5b38 (git): configure.ac: Improve icc_version guessing for non-icc environment
- icc_version was wrongly defined as "__ICC" on non-icc C compiler, which
caused a warning:
```
./configure: line 8211: test: __ICC: integer expression expected
```
This change adds a sed commend to delete "__ICC". -
01:16 PM Revision 11f7c30f (git): configure.ac: fix the guess of icc_version
- The icc_version guessing was accidentally disabled because of
61885c9b7ca8ccdaf53d7c365fbb86bad3294d88; `AC_PROG_CC_C99` changes
CC like "icc -std=c99", and `AS_CASE(["x$CC"], [xicc],` does not match.
The variable `icc_version` is event... -
11:44 AM Misc #16125: Remove the reserved member from rb_data_type_t as the addition of the compactor callback pushed it over a single cache line
- nobu (Nobuyoshi Nakada) wrote:
> methodmissing (Lourens Naudé) wrote:
> ...
Thanks for the clarification Nobu - I was thrown off by the `pahole` report which did not recognize the consumed element. Would it still make sense to formally... -
11:10 AM Revision fa5f7771 (git): Drop duration from AppVeyor notification
- The format is a little weird, and not so helpful either.
-
10:29 AM Revision 6944a1aa (git): lib/webrick.rb: use require_relative for webrick/utils.rb
- `require "webrick/utils.rb"` should load `lib/webrick/utils.rb`, but on
some CI machines, it wrongly loads `test/webrick/utils.rb`, which caused
circular require warning:
https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu/ruby-maste... -
09:27 AM Revision c775ab5e (git): `local_path?` is a class method [ci skip]
-
07:59 AM Revision cc6fe152 (git): tool/lib/vcs.rb: explicitly fail when notes/commits is not available
-
07:10 AM Bug #16127 (Closed): Delegates to BasicObject do not work
- The delegate library does not currently handle BasicObject targets, since it assumes the target responds to `respond_to?`. The attached patch works around the issue by binding the Kernel `respond_to?` instance method to the target and t...
-
07:06 AM Bug #13264: Binding#irb does not work in context of frozen object
- This is still a bug in the master branch of irb. I've submitted a pull request to fix it by using a delegate: https://github.com/ruby/irb/pull/24
-
04:58 AM Revision 1b03d2d7 (git): Revert workaround
-
02:39 AM Revision 5decf66a (git): Inspect dynamic symbol as well as static symbol
-
02:38 AM Revision b341e98b (git): Simplified f13a00f5b4 [ci skip]
-
02:24 AM Revision f13a00f5 (git): Export all commits as ChangeLog when no starting commit is found [ci skip]
-
12:23 AM Bug #13249: Access modifiers don't have an effect inside class methods in Ruby >= 2.3
- The warning discussed has not been added yet. Attached is a patch that implements it. While it passes `make check`, there may be corner cases it doesn't handle. I would appreciate review of the changes to `vm_cref_set_visibility`.
...
08/24/2019
-
09:51 PM Misc #16125: Remove the reserved member from rb_data_type_t as the addition of the compactor callback pushed it over a single cache line
- methodmissing (Lourens Naudé) wrote:
> I'm wondering what the `reserved` member was originally intended for, given introducing the `dcompact` member basically already broke binary compatibility by changing the struct size from `64` -> `... -
12:45 PM Misc #16125 (Rejected): Remove the reserved member from rb_data_type_t as the addition of the compactor callback pushed it over a single cache line
- References PR https://github.com/ruby/ruby/pull/2396
I noticed that since the introduction of the `GC.compact` API, struct `rb_data_type_t` spans multiple cache lines with the introduction of the `dcompact` function pointer / callback... -
09:08 PM Misc #16126 (Closed): Fix small docs inconsistencies
- Applied in changeset commit:git|04735c48ab44c97cbfd5a5cd37f9a1696e2f5a2b.
----------
Minor documentation fixes [ci skip]
From zverok (Victor Shepelev)
Fixes [Misc #16126] -
09:07 PM Misc #16126: Fix small docs inconsistencies
- Thanks for the patch, I will merge it shortly.
-
05:35 PM Misc #16126 (Closed): Fix small docs inconsistencies
- The patch with some small-ish fixes:
* Enumerator refers to `#enum_for`/`#to_enum` under `Kernel`, while in fact they are documented under `Object`;
* `Kernel#warn` has outdated call sequence;
* `ClosedQueueError` is not mentioned in ... -
09:05 PM Revision 04735c48 (git): Minor documentation fixes [ci skip]
- From zverok (Victor Shepelev)
Fixes [Misc #16126] -
04:09 PM Revision e1c991f8 (git): Move Object#hash rdoc to hash.c [ci skip]
- This gets RDoc to pick up the documentation correctly.
Problem pointed out by zverok (Victor Shepelev). - 03:51 PM Revision cf5516de (git): * 2019-08-25 [ci skip]
-
03:50 PM Revision 03ee12a3 (git): Add workaround (2nd try)
- https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190824T153002Z.fail.html.gz
```
/home/gentoo/chkbuild/tmp/build/20190824T153002Z/ruby/tool/lib/vcs.rb:577:in `export_changelog': cannot find the beginning revision ... -
03:04 PM Misc #16124 (Assigned): Let the transient heap belong to objspace
-
12:43 PM Misc #16124: Let the transient heap belong to objspace
- The global method cache note references PR https://github.com/ruby/ruby/pull/2302
-
12:41 PM Misc #16124 (Rejected): Let the transient heap belong to objspace
- As per comment from Nobu in https://github.com/ruby/ruby/pull/2303#issuecomment-523248875 , I took an initial stab @ a tighter integration between objspace and the transient heap in https://github.com/ruby/ruby/pull/2400
### Benefits
... -
02:56 PM Bug #13102: Confusing method name: Set#delete?
- Eregon (Benoit Daloze) wrote:
> This is at least inconsistent with Array#delete, which could be used for the same case as above but doesn't end with a `?`.
This is not exactly true, as `Set#delete?` returns self and not the item if d... -
06:45 AM Bug #13102: Confusing method name: Set#delete?
- This is at least inconsistent with Array#delete, which could be used for the same case as above but doesn't end with a `?`.
I don't think there are many good examples for predicates with side effects, is it?
A good part of the Set AP... -
03:27 AM Bug #13102 (Rejected): Confusing method name: Set#delete?
- I don't think this is a bug, I believe it is intentional. Using `?` for mutating methods is uncommon, but not wrong. You can use these like predicate methods, which is probably why they end in `?`:
```ruby
if set.delete?(object)
... -
02:17 PM Revision df348310 (git): Add workaround for some CIs
- https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-master/log/20190824T093005Z.fail.html.gz
```
branches:
* trunk
remotes/origin/trunk
```
and
```
fatal: Remote branch master not found in upstream origin
``` -
12:26 PM Revision 5d5502dc (git): Fix typos
-
11:31 AM Revision 571ffcd6 (git): ext/psych/yaml/api.c: Suppress a "variable set but not used" warning
- ```
compiling ../.././ext/psych/yaml/api.c
../.././ext/psych/yaml/api.c: In function 'yaml_document_delete':
../.././ext/psych/yaml/api.c:1122:7: warning: variable 'context' set but not used [-Wunused-but-set-variable]
} context;
... -
10:57 AM Feature #16113: Partial application
- > If `#curry` gets support for keyword arguments, would it suffice for this case
I don't think so, unfortunately.
1. Of my examples, it covers only `JSON.parse`
* It doesn't cover non-keyword arguments, which, I believe, it sho... -
10:37 AM Feature #16122: Data: simple immutable value object
- > What would a simple implementation of `Struct::Value.new` look like in Ruby code?
Oh, I've probably answered the wrong question... But I am not quite sure I understand yours.
Theoretically, it is just something like this (ignorin... -
10:17 AM Feature #16122: Data: simple immutable value object
- @Eregon, here is rendered version of class' docs: https://zverok.github.io/ruby-rdoc/Struct-Value.html
Basically, it is what is said on the tin: like Struct, just leaner. -
06:55 AM Feature #16122: Data: simple immutable value object
- This sounds interesting to me.
What would a simple implementation of Struct::Value.new look like in Ruby code?
I'm not quite sure what the available API is since it's all described as Struct - some methods. -
07:22 AM Revision 97ad7862 (git): Add debug print
- matser branch not found on some CIs
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190824T063005Z.fail.html.gz
```
fatal: Remote branch master not found in upstream origin
``` -
06:14 AM Bug #13948 (Closed): Segfault instead of recursion depth error
-
05:10 AM Feature #12093: Eval InstructionSequence with binding
- > does this suffice your use case?
Interesting, I'll need to investigate this - it certainly has potential.
My use case is for experimental tracing work, and I basically want to be
able to pre-compile original source with added in... -
03:21 AM Bug #12702 (Rejected): DRb client fails when calling out-of-process remote method with a block
- This is a bug in your code, you are not calling `DRb.start_service` in the client program. The client program needs a DRb server running in order to handle the sending-block-to-remote-method case. See the example in the "Client code" s...
-
02:36 AM Bug #12649 (Third Party's Issue): DateTime method calls hang
-
02:35 AM Bug #12615 (Closed): Pathname#rename does not work across filesystem boundaries.
-
02:34 AM Bug #12494 (Closed): win32/resolv.rb may add outdated nameservers
-
02:28 AM Bug #12453 (Closed): 2.3.1p112 version running demo of array methods about 3x slower than running it with 2.2.0p0 version
-
01:57 AM Feature #16120: Omitted block argument if block starts with dot-method call
- Hi,
> So I strongly believe all these feature requests should to be considered together in order to make a decision.
Agreed. And, #15723 (a numbered parameter) is only one proposal that is all-purpose, though I don't like it so mu... -
12:59 AM Feature #16120: Omitted block argument if block starts with dot-method call
- I think there's a misunderstanding because this proposal doesn't collide with existing parser behavior. `[].each{ .method }` is currently a SyntaxError.
@osyo wrote:
> However, I think it is difficult to parse in the following cases.... -
01:20 AM Revision fe83ed47 (git): Try to fix `make dist` error on chkbuild
- https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190823T213004Z.fail.html.gz
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-master/log/20190824T003006Z.fail.html.gz -
12:30 AM Feature #16123: Allow calling a private method with `self.`
- Here is a script to help demonstrate the inconsistency, where `self.bar = 123` is allowed by `self.bar` is not.
```ruby
class Foo
def foo
self.bar = 123 # allowed
self.bar # raises
end
private
attr_accessor ...
08/23/2019
-
11:51 PM Feature #16113: Partial application
- I like Hanmac's idea.
``` ruby
Klass.:meth.curry.()
```
Seems very close to:
``` ruby
Klass.:meth.w()
```
I know it has previously been said that `#curry` is a bit of an easter egg. Would it be acceptable to add keyword... -
11:42 PM Feature #16120: Omitted block argument if block starts with dot-method call
- A bit of an aside, but it's often just as fast to do two iterations with small collections, since the shorthand parses faster.
posts.map(&:author).map(&:name)
I agree with osyo that it seems this proposal collides with existing... -
03:36 PM Feature #16120: Omitted block argument if block starts with dot-method call
- hi.
Its soo good idea.
However, I think it is difficult to parse in the following cases.
```ruby
[10, 20, 30].map{
# 42.to_s(16)
# or
# pp 42
# argument1.to_s(16)
pp 42
.to_s(16)
}
```
-
03:22 PM Feature #16120 (Rejected): Omitted block argument if block starts with dot-method call
- How about considering this syntax for implicit block parameter:
```
[10, 20, 30].map{ .to_s(16) } #=> ["a", "14", "1e"]
```
Infinite thanks to @maedi for [the idea](https://bugs.ruby-lang.org/issues/15723#note-19)
This proposal i... -
11:06 PM Feature #16123: Allow calling a private method with `self.`
- I may not completely understand the issue description. What is the inconsistency? (That is a honest
question, by the way; I am not fully understanding the issue domain.)
I am not even entirely sure what a private attribute writer is ... -
09:03 PM Feature #16123 (Closed): Allow calling a private method with `self.`
- ## Problem
There is an inconsistency between calling a private attribute writer being allowed with `self.value =` syntax and `self.value` not being allowed on a private attribute writer.
Calling a private method in this way can be ... -
10:41 PM Feature #15815: Add option to raise NoMethodError for OpenStruct
- Personally I found the proposed signature confusing, more when taking in account that OpenStruct calls:
```ruby
os = OpenStruct.new(a: 1, exception: true)
# vs
os = OpenStruct.new({a: 1}, exception: true)
```
> I'd like t... -
10:35 PM Bug #12356 (Assigned): Vector covector incorrect multiplication with another vector.
- I don't think this is a bug, but I'll let marcandre make the determination. `Vector` can't be multipled with `Vector`, you get an error. You can multiple a `Vector` by a `Matrix` and vice-versa by design, and `Vector#covector` returns ...
-
10:10 PM Bug #12353 (Closed): Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
-
10:06 PM Bug #12123 (Open): FileUtils.ln_s create a '.symlink' file not a symbolic link on windows
- This is still a bug in master. I have filed a pull request upstream to fix it: https://github.com/ruby/fileutils/pull/39.
-
08:52 PM Bug #12112 (Closed): Resolv.getname with IPv6 noop
-
08:47 PM Bug #11935 (Closed): Date.new returns inconsistent errors when passed invalid arguments
-
08:47 PM Misc #15298 (Closed): Inconsistent date errors
-
08:42 PM Bug #11667 (Closed): Ruby process crashes when TracePoint.new(:raise) is enabled and SystemStackError is raised
-
08:16 PM Bug #16121: Stop making a redundant hash copy in Hash#dup
- I split up the patch into the 4 attached patches, because I realized there were a few changes that could be emphasized independently, each with their own description of the change. Hopefully that will make the optimization itself in the...
-
05:11 PM Bug #16121 (Closed): Stop making a redundant hash copy in Hash#dup
- ## Problem
I noticed while profiling object allocations that Hash#dup was allocating 2 objects instead of only 1 as expected. I looked for alternatives for comparison and found that `Hash[hash]` created a copy with only a single obje... -
05:43 PM Misc #15996: DevelopersMeeting20190829Japan
- * [Feature #16113] Partial application: `fetch(urls).map(&JSON.:parse.w(symbolize_names: true))`
* [Feature #16122] `Struct::Value`: simple immutable value object -
09:13 AM Misc #15996: DevelopersMeeting20190829Japan
- * [Feature #15991] Allow questionmarks in variable names
* Proposal: Allow `?` in variable names
* In #5781, matz is explicitly against an instance variable that ends with `?`
* How about allowing only local variables ?
-
02:44 AM Misc #15996: DevelopersMeeting20190829Japan
- * [Feature #15955] UnboundMethod#apply
* The ticket proposes a shortcut to `unbound_method.bind(obj).call(args...)` without allocation of a Method object. There are some use cases, and looks reasonable to me. What do you think? -
12:56 AM Misc #15996: DevelopersMeeting20190829Japan
- * [Feature #16115] Keyword arguments from method calls or ignore extra hash keys in splat
* It proposes a triple splat (`foo(***opt)`) to pass a keyword hash with filtering out unknown keywords. What do you think? -
05:40 PM Feature #16122 (Closed): Data: simple immutable value object
- ## Intro (original theoretical part of the proposal)
**Value Object** is a useful concept, introduced by Martin Fowler ([his post](https://martinfowler.com/bliki/ValueObject.html), [Wikipedia Entry](https://en.wikipedia.org/wiki/Value... - 04:41 PM Revision b38ab0a3 (git): * 2019-08-24 [ci skip]
-
04:10 PM Revision d5b917d5 (git): Named numbered parameter indexes
-
03:38 PM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
- Hanmac (Hans Mackowiak) wrote:
> i see in your patch that you not only check for `Array` but for `to_ary` too, which is nice
Right, but that is just preserving the current behaviour. So the `ary.flatten! if ary.any?(Array)` workarou... -
03:32 PM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
- duerst (Martin Dürst) wrote:
> However, I expect this to be slower on arrays that are 'almost flat', i.e.
> ...
The optimization handles this case by doing a quick `ary_memcpy` of everything up to the first nested array to avoid redund... -
07:41 AM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
- i see in your patch that you not only check for `Array` but for `to_ary` too, which is nice
@shevegen :
instead of `[input]` i would use `Array(input)` that doesn't create an extra array if input is already one -
06:31 AM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
- I use .flatten and .flatten! quite a lot in my ruby code, often setting the
initial input from ARGV but also from other sources, such as used from other
ruby classes, w hen I need to have an array - often something like:
def foo... -
02:02 AM Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
- I was afraid that this would be an optimization for flat arrays, but increase time for nested arrays. But that's not the case, because at the bottom, there will be flat arrays, and flattening these will be faster.
However, I expect th... -
03:21 PM Feature #15915: `@1` cannot be achieved in meta-programming
- I'm negative to add `ID_NUMPARAM`.
As `rb_is_numparam_id` is not used, and `rb_is_numparam_name` can be implemented without `rb_symname_type`. -
04:41 AM Feature #15915: `@1` cannot be achieved in meta-programming
- Here is an experimental patch.
-
11:52 AM Revision 2e28b367 (git): [ruby/stringio] Fixed a typo
- https://github.com/ruby/stringio/commit/b249631c433f800c979be2705bf63555075db2fc#commitcomment-34804150
https://github.com/ruby/stringio/commit/998d6257fb -
09:05 AM Revision d9b73dcc (git): Remove github_action_linux tag from bundler examples.
- Maybe it has fixed at 5a384e2c08704dc7af9d8d3bdfc475eb8c0723aa
-
08:20 AM Revision 3b55394b (git): Ensure all default gems have an gem folder
- Even if they don't ship with any executables. This makes rbinstall
behaviour consistent with rubygems `gem install --default` command. -
07:54 AM Bug #16117: ruby2.6.3(x86) use fiddle faild to load dll in windows7
- Problem solved:
the dll i used compiled by MinGW, the dll need libstdc++-6.dll, after I add **-static-libgcc -static-libstdc++** compile flag to the dll, problem solved! -
04:57 AM Revision 1c5a2682 (git): Simplify expand_tabs.rb file selection
-
04:00 AM Revision a5b809e9 (git): Check metadata a bit more
-
03:28 AM Feature #15955: UnboundMethod#apply
- Here is a benchmark:
```
class Foo
def foo
end
end
meth = Foo.instance_method(:foo)
obj = Foo.new
10000000.times { meth.bind(obj).call } # 1.84 sec
10000000.times { meth.apply(obj) } # 1.04 sec
``` -
02:40 AM Feature #15955: UnboundMethod#apply
- Hi @nelhage and @darkdimius :-)
I'm attaching a patch for `UnboundMethod#apply(obj, *args, &blk)` as a shortcut to `.bind(obj).call(*args, &blk)` without allocation of a Method object.
I have heard the same situation as Sorbet for ... -
03:27 AM Revision 650cd245 (git): Hoisted out get_digest_obj_metadata
-
01:11 AM Bug #11466 (Closed): Memory leak in win32 fill_random_bytes_syscall
- If `fill_random_bytes_syscall` were to leak memory, then this Ruby code should show the leak:
```ruby
i = 0; while true; puts i if (i+=1) % 10000000; SecureRandom.bytes(1) end
```
As this shows no leak even with with 600000000 it... -
12:53 AM Feature #16115: Keyword arguments from method calls or ignore extra hash keys in splat
- Thank you for proposing ideas. They are interesting to me.
As you said in your second example, it is only possible in callee side: changing the method definition to accept a dummy `**` argument.
```
def hello(who:, **)
end
he... -
12:47 AM Feature #11322: OpenUri: RuntimeError: HTTP redirection loop
- I don't think this is a bug. As 0x0dea (D.E. Akers) pointed out, other programs work the same way. However, I think cookie handling in open_uri could be a useful feature. Attached is a patch that implements the necessary support.
I... - 12:46 AM Revision 9ffb0548 (git): * 2019-08-23 [ci skip]
-
12:45 AM Revision 1d6a31f3 (git): Make AppVeyor notification similar to Travis
08/22/2019
-
11:58 PM Feature #16119 (Closed): Optimize Array#flatten and flatten! for already flattened arrays
- ## Problem
When doing an object profile from stackprof, I noticed object allocations being made from `Array#flatten!` which was unlike other in-place methods like `Array#uniq!` and `Array#compact!`. In this case, I wanted to optimize... -
08:26 PM Feature #16118 (Open): Array .difference allow custom comparison
- Hello!
I wanted to know if there's any plan to implement the ability to define comparison between individual items in arrays.
Here is where I originally asked the question on Stack Overflow: https://stackoverflow.com/questions/5731... -
07:56 PM Feature #16115: Keyword arguments from method calls or ignore extra hash keys in splat
- > I think this could open up some possibilities (or a can of worms).
Some can call it a feature, other may call it a bug. :-)
In regards to keyword arguments, though, I would wait a bit and see
how/if https://bugs.ruby-lang.org/is... -
12:01 PM Feature #16115 (Open): Keyword arguments from method calls or ignore extra hash keys in splat
- Just a thought, feel free to insta-close as stupid.
Currently you can do this:
```
def hello(who:)
puts "Hello, #{who}"
end
opts = { who: 'world' }
hello(who)
```
Or:
```
def hello(who:, **_extra_opts) # without e... -
03:32 PM Bug #11152 (Closed): Resolv::DNS should use Search Domains provided in /etc/resolv.conf by default
-
03:27 PM Bug #10965 (Feedback): logger.rb may not daily rotate
-
02:10 PM Revision fd20b321 (git): Make GitHub Actions Slack notification consistent
- with Travis, rather than AppVeyor.
Formerly it was made similar to AppVeyor to provide some normal set of
CI failure notification. But for some reason people preferred a shorter
variant and introduced a1d606c079f6c3d1779d885e0bf2e399125... - 01:47 PM Revision efc89703 (git): * expand tabs. [ci skip]
- Tabs are expanded because previously the file did not have any tab indentation.
Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook. -
01:46 PM Revision a4d389d8 (git): Improve the description of MJIT cancel-all [ci skip]
-
01:13 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
- This ticket was resolved with commit:15eaedf805fb2727c79a6c59af6d5f6c2a6d634b.
In addition to that, since people have often objected to "expand tabs" against files which are not related to VM / MJIT (debugging MJIT needs to see prepro... -
12:30 PM Misc #16112 (Closed): Reduce the possibility of "expand tabs" commit occurrences
- Applied in changeset commit:git|15eaedf805fb2727c79a6c59af6d5f6c2a6d634b.
----------
Add misc/expand_tabs.rb ported from auto-style.rb
This is implemented to close [Misc #16112] because all other options got
at least one objection, and... -
11:24 AM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
- > I like option 3 because it is optional and something I would use. I don't personally like using tabs.
Okay, I'm going to implement this one because nobody has objected to it and all other options had objections from somebody.
> .... -
05:03 AM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
- k0kubun (Takashi Kokubun) wrote:
> * It would reduce the number of problems for editors like Sublime Text, VSCode, and Atom.
I'm surprised some of the currently most popular editors can't handle such situations. I'm not using one o... -
12:24 PM Revision 15eaedf8 (git): Add misc/expand_tabs.rb ported from auto-style.rb
- This is implemented to close [Misc #16112] because all other options got
at least one objection, and nobody has objected to this solution.
This code is a little complicated for the purpose, but that's just
because it includes some histo... -
12:22 PM Bug #16117: ruby2.6.3(x86) use fiddle faild to load dll in windows7
- **testmml_win.rb code:**
```ruby
require 'fiddle'
require 'fiddle/import'
if ARGV.length < 1
puts "Missing libPath argument..."
puts "Usage: ruby HostTest2.rb libPath"
puts "Sample: ruby HostTest2.rb /home/Protocol... -
12:21 PM Bug #16117 (Rejected): ruby2.6.3(x86) use fiddle faild to load dll in windows7
- I have a dll build by MinGW32 in windows7, in ruby2.2, I could use fiddle dlload this dll success, but in the same system, use 2.6.3 failed to dlload this dll, always report No such file or direcoty.
**///////// Ruby2.2 success load t... -
12:01 PM Bug #16116 (Closed): ruby2.6.3(x86/x64) use win32ole could not new Object, return 0x80070057
- I build a RubyTest.dll by C#, In ruby2.2, I could use WIN32OLE.new to create ole object, but in the same system under ruby2.6.3, it failed to create ole object by WIN32OLE.new, is there any different between ruby 2.2 and ruby 2.6.3 in WI...
-
11:59 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
- I have the same issue running ruby 2.6.3 on MacOS 10.14.6 while using guard on a rails project:
```
13:43:07 - INFO - Running: spec/features/foo_spec.rb
Running via Spring preloader in process 17829
Randomized with seed 57737
Ca... -
11:39 AM Revision 0a74fac9 (git): merge revision(s) fd0e3bd2497d4e796b719c7b7154dc3c945f87b1: [Backport #14834]
- fix VC 2013 compile error
It seems the compiler does not support VLAs.
See also: https://ci.appveyor.com/project/ruby/ruby/builds/26392589/job/px6nuiuw4e78weg1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2... -
11:28 AM Bug #15992: An exception breaks monitor state and cause deadlock
- ruby_2_6 r67749 merged revision(s) 9557069299ac3b96691040a541afa65761a724ad.
-
11:28 AM Revision fbb96f1b (git): merge revision(s) 9557069299ac3b96691040a541afa65761a724ad: [Backport #15992]
- Avoid creating Hash objects per each mon_synchronize call (#2393)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:04 AM Misc #16114: Naming of "beginless range"
- This shows that there are only two real problems in computer science:
- Giving things proper names
- Documenting code after the code has been written
- Off by one errors
:P
From the candidates, I somewhat like mrkn's suggestio... -
04:58 AM Misc #16114: Naming of "beginless range"
- duerst (Martin Dürst) wrote:
> mrkn (Kenta Murata) wrote:
> ...
Oops! The correct candidates are "a range unbounded below" and "a range unbounded above".
Thanks.
-
03:49 AM Misc #16114: Naming of "beginless range"
- mrkn (Kenta Murata) wrote:
> Other candidates from mathematics:
> ...
Shouldn't this be "a range not bounded below"?
> - lower-unbounded range
> ...
Same thing here.
-
12:01 AM Misc #16114: Naming of "beginless range"
- I know that it is an awkward word, but it came from `Range#begin` and `Range#end`. IMO, you can call it as you like.
-
07:36 AM Feature #15864: Proposal: Add methods to determine if it is an infinite range
- > Having `begin?` and `end?` instead of `beginless?` and `endless?` would be more natural, and easy to comprehend.
Agreed. Moreover, `Range#begin` and `#end` just work.
-
03:23 AM Feature #15864: Proposal: Add methods to determine if it is an infinite range
- Having negative meaning in the method name would make it complicated. Having `begin?` and `end?` instead of `beginless?` and `endless?` would be more natural, and easy to comprehend.
In fact, the given use case:
```ruby
def search... -
12:07 AM Feature #15864: Proposal: Add methods to determine if it is an infinite range
- Other candidates from mathematical terms:
- `unbounded?` for checking whether `begin` or `end` is `nil`
- `lower_unbounded?`, `left_unbounded?`, or `unbounded_below?` for checking whether `begin` is `nil`
- `upper_unbounded?`, `righ... -
12:47 AM Misc #15996: DevelopersMeeting20190829Japan
- * [Feature#14183] "Real" keyword argument
* Jeremy and I agreed with Jeremy's proposal. I'd like to ask for matz's final confirmation. -
12:09 AM Misc #15996: DevelopersMeeting20190829Japan
- - [Feature #15864] Proposal: Add methods to determine if it is an infinite range
- I proposed some candidates from mathematical terms -
12:24 AM Revision d8d8015b (git): Remove footer from message to Slack
08/21/2019
-
11:58 PM Misc #16114: Naming of "beginless range"
- Other candidates from mathematics:
- a range bounded below
- lower-unbounded range
- left-unbounded range
If we use "unbounded" for the minimum value of a range, we should rephrase "endless" with the following candidates:
- a ... -
11:34 PM Misc #16114 (Open): Naming of "beginless range"
- #14799 introduces a "beginless range" to complement the already existing "endless range". However, "beginless" isn't an existing word in English. Since the term for something without a beginning is "beginingless", I'd propose renaming "...
-
11:06 PM Bug #10520 (Closed): Resolv fails on additional resources when quering address records
- This should be fixed by commit:2b2450ba4bee563e33af0325b7fde8cb1bfd6899.
-
10:57 PM Revision a1d606c0 (git): Show short message to Slack
-
10:21 PM Revision 1940347f (git): Use () instead of {} for nmake
-
10:03 PM Revision 2d8d6345 (git): `--fomart progress` is default. It's duplicated.
-
10:02 PM Revision 0b0fedad (git): Introduce test-bundler-parallel task.
-
09:15 PM Bug #11636: super in instance_eval in a method defined in a module is invoked with a wrong receiver
- This is still a bug in the master branch. Attached is a patch that
fixes it, making the behavior for super in instance_eval in method
in module the same as super in `instance_eval` in method in class,
raising a `TypeError`.
This i... -
09:02 PM Revision 80082183 (git): Always check multiline termination
- 08:36 PM Revision 8d804e41 (git): Add abs to Matrix (#2199)
-
08:09 PM Revision 48fdc37a (git): IRB's multiline history is enable only when Reidline mode
-
03:55 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
- k0kubun (Takashi Kokubun) wrote:
> Thanks for your comment, Jeremy. Your opinion makes sense except:
> ...
Basically, I am in favor of removing the "expand tabs" commits (stop trying to enforce whitespace). However, if we do keep the ... -
03:18 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
- Thanks for your comment, Jeremy. Your opinion makes sense except:
> 2) I'm against this. If we do keep the "expand tabs", then it should be applied to modified lines as well as new lines, so that we move in the direction of fewer tabs... -
02:51 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
- Here are my opinions on the options:
0) I'm in favor of this. I certainly encourage the use of spaces over tabs, but auto commits for indentation changes are unnecessary and I don't think the benefit outweighs the cost.
1) I'm aga... -
01:59 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
- There's Option 5; altering commits in pre-receive hook on server side. But I think successful `git push` should never make future `git pull` fail. It is a very surprising behavior and would confuse committers. So I'm rejecting this optio...
-
01:12 PM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
- > I would love it if (1) can happen.
> ...
However, it's something worth considering.
>
> ...
Despite the Vim's default behavior which shows the mixed indentation well, my Vim configuration had shown it weirdly (well, I couldn't find ... - 03:20 PM Revision 6bdb65c0 (git): * 2019-08-22 [ci skip]
-
03:19 PM Revision a9638511 (git): Hoisted out rb_id_metadata
-
03:19 PM Revision 74c6662a (git): Hoisted out rb_digest_namespace
-
02:13 PM Revision c030cec7 (git): Debug GitHub context on broken notification
- sometimes Slack notification footer becomes just " at ".
It seems like `github.event.head_commit` is missing. Let me debug the
context. -
02:06 PM Misc #15996: DevelopersMeeting20190829Japan
- * ~~[Misc #16112] Reduce the possibility of "expand tabs" commit occurrences~~
* Never mind. Resolved before the MTG thanks to @jeremyevans's comment. -
09:51 AM Bug #15992: An exception breaks monitor state and cause deadlock
- 9557069299ac3b96691040a541afa65761a724ad is a follow up commit to ease memory consumption impact of f91879a7b548284c93743168acfd11e3d2aeefac. I think it should be backported too.
-
07:20 AM Revision 3df9f3cc (git): Separated initializing IDs
-
05:14 AM Bug #10471 (Closed): Still DST bug in logger
- From some testing, it appears this issue no longer occurs in the current version of logger. If you can reproduce this issue with the current version of logger, please post a self contained example showing the problem.
-
04:31 AM Revision 4419b5db (git): The investigation is going on...
-
04:26 AM Revision 81dfe3c4 (git): Enable more Time TZ tests on OpenBSD
-
03:52 AM Bug #10460 (Closed): Segfault instead of stack level too deep
- This appears to have been fixed between 2.4 and 2.5, as the example no longer has a segfault on 2.5, 2.6, 2.7.0-preview1, or the master branch.
-
03:49 AM Bug #10436: ruby -c and ripper inconsistency: m(&nil) {}
- This bug still occurs in the master branch. Attached is a patch that fixes the problem by overriding `Ripper::SexpBuilder#on_method_add_block`. This isn't a very clean way to fix it, but I was not able to figure out a way to fix it by ...
08/20/2019
-
11:25 PM Feature #14915: Deprecate String#crypt
- Okay, it is considered deprecated, but the removal won't happen in the near future. Thank you, I see!
-
03:10 AM Feature #14915: Deprecate String#crypt
- I believe the current documentation and code is intentional. I think it is best to consider `String#crypt` deprecated even if we are not emitting warnings for it and we do not have immediate plans to remove it. I would still like to rem...
-
02:57 AM Feature #14915: Deprecate String#crypt
- @jeremyevans0 Let me confirm the state of this ticket. The current rdoc says:
```
Please do
not use this method any longer. It is legacy; provided only for
backward compatibility with ruby scripts in earlier days.
...
If fo... - 11:10 PM Revision a230e65e (git): [bundler/bundler] Freeze time to avoid failures at midnight
- Specify just a string
set @built_at as nil before testing
https://github.com/bundler/bundler/commit/578ec96c9c -
11:10 PM Revision 1c277452 (git): [bundler/bundler] Share test fixtures with parallel_tests
- https://github.com/bundler/bundler/commit/a38161c5be
-
11:10 PM Revision 10011f43 (git): [bundler/bundler] Try to use RunTimeLogger for parallel_tests
- https://github.com/bundler/bundler/commit/faccc522d1
-
11:10 PM Revision ace88852 (git): [bundler/bundler] Parallelize test suite
- https://github.com/bundler/bundler/commit/23007cb107
-
10:58 PM Revision ede77d82 (git): [bundler/bundler] Fix a couple of typos
- https://github.com/bundler/bundler/commit/52b6b94068
-
10:58 PM Revision 1120bacd (git): [bundler/bundler] Remove the :ruby exclusion tag
- Our current set of specs is the same for all supported rubies, and we
should keep it that way.
https://github.com/bundler/bundler/commit/c9dc0f6f2c -
10:58 PM Revision bcc4ac92 (git): [bundler/bundler] Remove another 1.8.7 specific bit
- https://github.com/bundler/bundler/commit/8c7942d2c6
-
10:58 PM Revision 5ea08883 (git): [bundler/bundler] Remove old rubies stuff no longer needed
- https://github.com/bundler/bundler/commit/36fb3287f4
-
09:16 PM Bug #10419 (Closed): ruby 2.1.3 kackes during IO.readlines of huge file
- I was able to reproduce this on `ruby 1.9.3p551 (2014-11-13) [i386-mingw32]`, but not on any `[x64-mingw32]` compiled Ruby. I installed ruby `2.6.3p62 (2019-04-16 revision 67580) [i386-mingw32]` and was no longer able to reproduce the e...
-
08:40 PM Bug #10407 (Closed): Update gc stack marking for m68k
- This appears to have been fixed in commit:c0766464e9ef13418cc719acd674f363b79db29a.
-
08:33 PM Bug #10388: Operator precedence problem in multiple assignment (massign)
- I tried working on this a couple weeks ago and I don't believe the current LALR(1) parser can support it. Attempting to modify the parser to support the behavior you desire leads to many shift/reduce or reduce/reduce conflicts. It is p...
-
08:20 PM Bug #10290 (Closed): segfault when calling a lambda recursively after rescuing SystemStackError
- I was able to reproduce the segfault in ruby 2.3 and 2.4, but not in 2.5, 2.6, 2.7.0-preview1, or the master branch, so I think this problem is fixed. If this problem still occurs for you, please reply with your environment details.
-
08:11 PM Bug #10126 (Closed): Dir.home encoding is incorrect on Windows
-
07:40 PM Feature #14183: "Real" keyword argument
- I've completed work on my keyword-argument-separation branch, and now `make check` passes without any emitted warnings in my environment. To get some early CI testing of this, I have submitted it as a GitHub pull request: https://github...
-
04:26 PM Bug #16111 (Closed): Combining default positional and keyword arguments is resulting in a `to_hash` method call
-
02:26 PM Bug #16111: Combining default positional and keyword arguments is resulting in a `to_hash` method call
- Ok, the situation with keyword parameters is now making more sense, despite not being ideal. Since ruby 3 should implement a fix (backwards compatible or not) I am happy for this issue to be closed.
Thanks to those who commented to b... - 04:04 PM Revision 864f23a4 (git): * 2019-08-21 [ci skip]
-
04:04 PM Revision 88b1f2da (git): `rp(obj)` shows func, file and line. (#2394)
- rp() macro for debug also shows file location and function name
such as:
[OBJ_INFO:rb_call_inits@inits.c:73] 0x000056147741b248 ... -
03:21 PM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
- Hi,
I am having same issue while running seed data (ruby 2.6.3). I am having it while uplaoding attachments.
```
/Users/myuser/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0.rc2/lib/active_support/core_ext/securerandom.rb:39:in `bas... -
02:58 PM Revision d10e28b8 (git): Skip tests on Actions if [ci skip]
- It seems that we cannot easily apply job-level [ci skip].
Therefore this commit skips only Tests step if it's [ci skip]. -
01:33 PM Revision 235d810c (git): Deprecate alerting multiple channels
- Some CIs report to two channels, and some others report to only one.
This makes it consistent. Only alert channel should be alerted. -
01:08 PM Revision 95570692 (git): Avoid creating Hash objects per each mon_synchronize call (#2393)
-
12:47 PM Bug #9115: Logger traps all exceptions; breaks Timeout
- There're also rescue-clauses for `check_shift_log` and `@dev.write(message)`.
They may raise various exceptions and logger.rb never knows that.
Explicitly passing those exceptions are general way, but are there any exceptions other t... -
06:45 AM Bug #9115: Logger traps all exceptions; breaks Timeout
- See the code again before discuss.
```ruby
def write(message)
begin
synchronize do
if @shift_age and @dev.respond_to?(:stat)
begin
check_shift_log
rescue
... -
10:29 AM Revision af121720 (git): Removed unused literal assignments [ci skip]
-
10:29 AM Revision 7a07c54b (git): Subjects may contain a comma [ci skip]
-
08:26 AM Misc #16112: Reduce the possibility of "expand tabs" commit occurrences
- I second what Alan said, editing Ruby source with my editor is a nightmare.
On another note, the main objection for getting rid of tabs once and for all seem to be `git blame`, so I wonder wether `git filter-branch` was considered.
... -
08:00 AM Revision 73af1c4d (git): [rubygems/rubygems] Use `RbConfig::CONFIG['rubylibprefix']`
- It is defined since ruby 1.9.2.
https://github.com/rubygems/rubygems/commit/84981ca908 -
07:07 AM Revision dd58c4ba (git): Investigation of a sporadic error at Github Actions
-
01:28 AM Feature #16113: Partial application
- An aside, but I took a stab at a pure Ruby implementation of keyword argument currying: https://gist.github.com/havenwood/db041566abeac894602c188c77374040
``` ruby
['{"aim":true}', '{"impossible":false}'].map &JSON.:parse.curry.(symb... -
12:46 AM Revision 5a384e2c (git): Fix some bundler specs (#2380)
- * These seem to consistenly pass already
* Show actual command when running `make test-bundler`
Current the setup command that installs the necessary gems for testing
bundler was printed, but not the actual command that runs the tests....