Activity
From 08/18/2020 to 08/24/2020
08/24/2020
-
11:44 PM Revision e6ac1fb6 (git): Specify the executable of erb
-
11:11 PM Bug #17094 (Closed): PTY methods with blocks
- Applied in changeset commit:git|9e25eb308d4fae9a10e120c2b4601916cc38336c.
----------
Update PTY.open documentation to document it yields a single argument [ci skip]
For a regular block, accepting two arguments is fine as the array
will... - 11:11 PM Revision 1b34d843 (git): * 2020-08-25 [ci skip]
-
11:09 PM Revision 9e25eb30 (git): Update PTY.open documentation to document it yields a single argument [ci skip]
- For a regular block, accepting two arguments is fine as the array
will be autosplatted. However, a lambda that accepts two arguments
will not work.
We could change the implementation to yield two arguments instead
of an array with a s... -
10:33 PM Bug #17112: Resolv.getaddress fails with IPv6 link-local addresses
- I've added a pull request with a fix for this: https://github.com/ruby/ruby/pull/3452
-
05:42 PM Feature #16345: Don't emit deprecation warnings by default.
- The enabled-by-default deprecation warnings have following effects.
- Good Effect: It makes developers more aware of the problem. (including users noticing and creating a issue)
- Bad Effect: Users ignore warnings or stop ruby upgrade
... -
03:18 PM Feature #16994: Sets: shorthand for frozen sets of symbols / strings
- +1
I think this is more important than having a general Set syntax as discussed in #5478. Being able to use `%ws[foo bar].include?(str)` is a double-plus of not creating a new object each time and having O(1) efficiency. -
03:12 PM Feature #16989: Sets: need ♥️
- > matz: Positive to introduce Set into core. But we need to first introduce a set literal. { x, y, z } is good, but JavaScript uses it as another meanings, so it would bring confusion.
I have to ask, is [lack of] similarity with javas... -
12:55 PM Feature #16989: Sets: need ♥️
- That's great news.
Was there discussion for a *frozen* set literal of symbols / strings as I proposed in #16994? For sets that need to be mutable or containing different types of objects, I find the existing `Set[...]` quite convenien... -
04:13 AM Feature #16989: Sets: need ♥️
- We discussed this issue at the last-month meeting.
https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20200720Japan.md
> matz: Positive to introduce Set into core. But we need to first introduce a set literal. { x... -
02:34 PM Feature #17127: Some TrueClass methods are faster if implemented in Ruby
- k0kubun (Takashi Kokubun) wrote in #note-3:
> off topic: If you write an entire ticket in English, I think you should post your ticket to ruby-core to attract more audiences instead of ruby-dev, which has been for tickets written in Jap... -
01:43 PM Feature #16986: Anonymous Struct literal
- Dan0042 (Daniel DeLorme) wrote in #note-37:
> > I thought that this would be a useful substitute of symbol-key Hash (like JSON data) which we can read the values by `s.name` instead of `s[:name]`.
> ...
I thought so. Thus, I wanted to... -
03:13 AM Feature #16986: Anonymous Struct literal
- > I thought that this would be a useful substitute of symbol-key Hash (like JSON data) which we can read the values by `s.name` instead of `s[:name]`.
This is the same thing stated in the Feature proposal, and I would also like this, ... -
01:28 PM Feature #17056: Array#index: Allow specifying the position to start search as in String#index
- 👍
I'd like to have optional `start` and `stop` arguments for `find_index`, `find`, `bsearch` and `bsearch_index`.
As mentionned, a typical usecase is to repeat a lookup, but another one is to lookup a range of indices (e.g. which e... -
10:24 AM Revision 1eb1add6 (git): Added entry for changes of default gems
-
07:35 AM Feature #17103: Add a :since option to ObjectSpace.dump_all
- > this feature strongly connected with trace_object_allocations, right?
Indeed.
> ...
I changed:
```
Objects that were allocated with object allocation tracing disabled are not dumped.
```
to:
```
Objects that were allo... -
04:49 AM Feature #17103: Add a :since option to ObjectSpace.dump_all
- this feature strongly connected with `trace_object_allocations`, right? so please write it on document.
what happens on without `trace_object_allocations`? it is unclear. -
06:58 AM Revision cb7634c1 (git): Fix links [ci skip]
-
06:38 AM Revision 09acafac (git): NEWS.md: add an example, add references, and move some items
-
01:38 AM Bug #15856: Performance of redundant `Kernel.require` is slow when many gems are activated
- Without the patch:
```ruby
require "digest"
p Digest::SHA256 #=> Digest::SHA256
p Digest::SHA2 #=> Digest::SHA2
```
With the patch:
```ruby
require "digest"
p Digest::SHA256 #=> Digest::SHA256
p Digest::SHA2 #=> unini...
08/23/2020
-
09:07 PM Feature #6309: Add a reference queue for weak references
- This still seems like a good idea. Any update?
- 05:10 PM Revision f292bb24 (git): * 2020-08-24 [ci skip]
-
05:10 PM Revision 1d3e87a2 (git): Remove checks for self returned in array.c and hash.c examples (#3446)
- Further compliance with https://github.com/ruby/ruby/blob/master/doc/method_documentation.rdoc#details-and-examples-
-
01:46 PM Revision 30ccc7d0 (git): Fix typos
- 12:46 PM Revision 4f7ff9c9 (git): * 2020-08-23 [ci skip]
-
12:45 PM Revision 2c4c088a (git): .github/workflows/compilers.yml: more compilers
- Added some cross compilers that we can run on GitHub Workflow runner
environments. Because they are cross compilers we cannot run the
generated binary. The added matrix are compile-only. -
03:14 AM Bug #16853: calling bla(hash, **kw) with a string-based hash passes the strings into **kw (worked < 2.7)
- > > When it comes to optimization, though, I would assume that the keywords are all symbols would open a lot more doors.
> ...
If a Hash contains only Symbol keys I can easily imagine an optimized implementation that takes advantage of S...
08/22/2020
-
09:59 AM Bug #16853: calling bla(hash, **kw) with a string-based hash passes the strings into **kw (worked < 2.7)
- FWIW I also find the `where("table.id" => 42)` example unconvincing.
That could work just fine with `def where(conditions)`, no need and it seems no much gains for keyword arguments there. -
09:56 AM Bug #16853: calling bla(hash, **kw) with a string-based hash passes the strings into **kw (worked < 2.7)
- sylvain.joyeux (Sylvain Joyeux) wrote in #note-9:
> Keyword splat would not allow anything but symbols as keys pre-2.7.
Indeed, so what happens is the Hash is magically split in two if it has non-Symbol keys (or `raise`s with `**`):
... -
05:12 AM Revision 2ddc67ff (git): configure.ac: suppress more Sun C warnings.
- They are rather annoying than being useful to us.
-
02:54 AM Feature #15974: Warn in verbose mode on defining a finalizer that captures the object
- A partial solution to this but with a better implementation is at https://github.com/ruby/ruby/pull/3444.
-
02:12 AM Revision 331d0203 (git): .travis.yml: prefer gcc
- It seems `clang --save-temps` does not interface well with
tool/update-deps. Prefer gcc for that purpose. -
12:49 AM Revision d916a4c8 (git): configure.ac: more checks on STRIP
- STRIP now depends on compilers, not on OS. Previous check against
$target_os does no longer work. -
12:39 AM Revision 1ab60345 (git): Fix type of getlogin_r's 2nd argument
- https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20200821T223002Z.fail.html.gz
```
process.c:5593:37: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
while ((g...
08/21/2020
-
09:52 PM Bug #16907 (Closed): Probable use-after-free in VM assertion
- Applied in changeset commit:git|a0273d67d044dc9fe25313e0854a33374b990e8a.
----------
Avoid a use after free in VM assertion
If the thread for the current EC has been killed, don't check
the VM ptr for the EC (which gets it via the thre... -
08:58 PM Bug #16907: Probable use-after-free in VM assertion
- I think I've found a solution. If the thread for the EC has been killed, then don't check that the VM pointer matches, because the thread's memory (including the VM pointer) will have been freed. I've added a pull request that fixes th...
-
09:52 PM Revision a0273d67 (git): Avoid a use after free in VM assertion
- If the thread for the current EC has been killed, don't check
the VM ptr for the EC (which gets it via the thread), as that will
have already been freed.
Fixes [Bug #16907] -
08:50 PM Revision ea4ccc09 (git): Remove trivial examples from array.c (#3442)
- "Trivial" typically means "returns a new empty Array."
-
08:37 PM Bug #16853: calling bla(hash, **kw) with a string-based hash passes the strings into **kw (worked < 2.7)
- > If there is a call like foo(**h), and h has both Symbol and non-Symbol keys, in <2.7 the Hash is "split" which I find extremely confusing and it's also slowing things down by always having to consider "there might be an extra positiona...
-
06:37 PM Feature #17127: Some TrueClass methods are faster if implemented in Ruby
- off topic: If you write an entire ticket in English, I think you should post your ticket to ruby-core to attract more audiences instead of ruby-dev, which has been for tickets written in Japanese.
-
06:01 PM Bug #17031: `Kernel#caller_locations(m, n)` should be optimized
- Most of the CI issues were when running with asserts, so I compiled with asserts enabled and ran tests. It took quite a while, and no problems were noted:
```
Finished tests in 82924.634324s, 0.2518 tests/s, 67.0770 assertions/s.
2... -
04:42 PM Revision 0fea0427 (git): Remove nil-return examples from hash.c (#3438)
- * Remove nil-return examples from hash.c
-
03:54 PM Bug #17128: test_io_console.rb fails on actual console
- Jeremy, thank you for the suggestion! I will do that now.
-
03:12 PM Bug #17128: test_io_console.rb fails on actual console
- leam (Leam Hall) wrote in #note-1:
> I have opened Bug 17128, to handle an edge case in a test. I have
> ...
I'm not sure whether the change is correct, but if you would like to submit a pull request for it, you should do so to the up... -
11:45 AM Bug #17128: test_io_console.rb fails on actual console
- I have opened Bug 17128, to handle an edge case in a test. I have
working code to fix the issue, but am still learning the Ruby process
for contributing.
Is this small enough to do a pull request for? Is there a better way to
r... -
11:39 AM Bug #17128 (Closed): test_io_console.rb fails on actual console
- When running "make test-all TESTS=io/console/test_io_console" on the current Ruby source, the following error is generated if the test is run on the server console:
Run options:
--seed=37271
"--ruby=./miniruby -I./lib -I. -I.ex... -
03:45 PM Revision 914b2208 (git): configure.ac: rule out old Sun C++
- CI failures observed for old Sun C++. We don't want to hustle, as newer
versions are okay. Just check the sanity and rule out insane compilers. -
03:45 PM Revision 954afd1b (git): protect CFLAGS from being smashed by AC_PROG_CC
- AC_PROG_CC_C99 calls AC_PROC_CC, which calls _AC_PROG_CC_G, which sets
default CFLAGS, whose contents are not customisable. We don't welcome
this behaviour.
The exact same thing happens for CXXFLAGS in AC_PROG_CXX. - 03:33 PM Revision 7263fd6f (git): * 2020-08-22 [ci skip]
-
03:33 PM Revision cc2caa6e (git): do not test --version
- `llvm-strip-7` is a sane valid strip command that LLVM 7 ships, albeit
it does not understand `--version`. It is a bad idea to check that
option. Instead just see if the command actually strips something. A
copy of `/bin/sh` should su... -
02:22 PM Feature #17016: Enumerable#accumulate
- I'd like to propose that we name this method `#accumulate`. @matz do you think that is an acceptable name?
-
11:40 AM Revision 44d25c65 (git): Fixup 3292f4d965845d543733559fd1736b8c42fadab3
-
11:28 AM Revision 3292f4d9 (git): Fixed the executable path for erb command
-
11:18 AM Revision 8c97883b (git): Promote erb to default gems
-
09:10 AM Revision bc374e5c (git): Promote rinda to default gems
-
08:51 AM Feature #16986: Anonymous Struct literal
- At first, I misunderstood this feature. I thought that this would be a useful substitute of symbol-key Hash (like JSON data) which we can read the values by `s.name` instead of `s[:name]`.
However, it is not. This use is potentially... -
07:01 AM Revision 3eb76e74 (git): configure.ac: try GCC-provided ld
- In case of cross-compilation, GCC might provide its own linker. Its
behaviour seems slightly different from that of gcc(1). This is not a
big deal for normal situations, but the difference can cause libtool to
go mad.
We ship bundled ... -
02:47 AM Revision 73b6bc57 (git): AC_PROG_CXXCPP: remove
- Caused CI failures on environments without sane C++ compilers.
-
02:04 AM Revision 7341b1a5 (git): configure.ac: move program_transform_name
- Historically `$program_transform_name` has been put in front of
`AC_CANONICAL_TARGET`. Previous commit changes it, which affects the
name of generated ruby binary when cross-compiling. I _guess_ the
historical behaviour is a bug (name ... -
02:04 AM Revision 2c96e048 (git): configure.ac: use compiler-provided toolchains
- These days as link-time optimisations spread accross compilers, they
tend to ship their own version of ld, ar, etc. Why not detect such
things if any. Users can select compilers by ./configure --with-gcc=
whatever, or select individual... -
02:04 AM Revision 8b022da5 (git): HAVE_STMT_AND_DECL_IN_EXPR: not for Sun C++
- Because we check HAVE_STMT_AND_DECL_IN_EXPR in configure, it is peoven
to work in C. But C++ situation can be different. Oracle Developer
Studio is another example of such things. -
02:04 AM Revision 80b31621 (git): ext/-test-/cxxanyargs: suppress SunPro warning
- I found a way to suppress particular kind of warnings via pragmas.
-
02:04 AM Revision 01826b3f (git): RBIMPL_HAS_CPP_ATTRIBUTE: handle SunPro
- Oracle Developer Studio's C++ preprocessor started to understand
__has_cpp_attribute since version 12.5, and is broken. After looking
around for a while I found Boost and ICU also had this issue before.
Let me add workaround for it. -
01:40 AM Revision b6c7b94b (git): Remove nil-return examples from array.c (#3437)
08/20/2020
- 05:10 PM Revision 6ba038af (git): * 2020-08-21 [ci skip]
-
05:09 PM Revision 51525557 (git): Partial compliance with doc/method_documentation.rdoc in string.c (#3436)
- Removes references to *-convertible thingies.
-
02:48 PM Feature #16986: Anonymous Struct literal
- ko1 (Koichi Sasada) wrote in #note-34:
> how about `%struct{a: 1, b: 2}` (and `%value{...}` if needed)?
> ...
I like it! IMO, it's one of the most "natural to read" options and is undoubtedly easier to write than `Struct.new(:a, :b, :c... -
02:03 PM Feature #17127 (Open): Some TrueClass methods are faster if implemented in Ruby
- Some TrueClass methods are faster if implemented in Ruby code.
like this.
```ruby
class TrueClass
def to_s
"true".freeze
end
alias_method :inspect, :to_s
def |(bool)
true
end
end
```
benchmark f... -
01:46 PM Feature #16786: Light-weight scheduler for improved concurrency.
- > About raw fds, I don't think we necessarily need to deprecate C APIs, the conversion fd->IO could be done in C (when calling the scheduler) or Ruby code (in the scheduler).
The latest PR does it in C, and it's implementation detail ... -
01:38 PM Feature #16786: Light-weight scheduler for improved concurrency.
- Here is new PR:
https://github.com/ruby/ruby/pull/3434
> [NEED TO CHANGE] doc/fiber.rdoc
We will update it.
> ...
Removed. However, I would like to add, that if we do not have some kind of support for finding blocking behaviour in Ru... -
01:41 PM Bug #17124: Wrong "ambiguous first argument" warning
- I hadn't thought of `method /a /x` or `method /a /<newline>other_method`, indeed.
This warning is only there when there is ambiguity between two divisions and a regexp literal, right?
If so, could we reword the warning to "ambiguit... -
09:41 AM Bug #17124: Wrong "ambiguous first argument" warning
- In your example, `/[a-z]` looks very likely a regexp because of `[`, but how about `/a`?
Or `match? /(a` ...lines... `)/x`?
There are many possibilities. -
12:34 PM Revision 1d1e36fa (git): Partial compliance with doc/method_documentation.rdoc in hash.c (#3432)
- Removes references to *-convertible thingies.
-
12:00 PM Revision dfda2f73 (git): Promote find to default gems
-
08:14 AM Bug #17126: String#gsub fails to escape single quote for shell
- Got it. I missed that completely in the documentation, thinking it wasn't related to our use of `\'`.
Thanks a lot for explaining and for supporting the Ruby programming language in the open-source community. -
07:44 AM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
- vo.x (Vit Ondruch) wrote in #note-4:
> Thank you for the investigation. There is a whole thread on Fedora devel mailing list:
> ...
This is the link:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/messag... -
07:43 AM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
- Thank you for the investigation. There is a whole thread on Fedora devel mailing list:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/OAD6BEN6UMVIXAEI5EDS5COUYFSPNLZN/
I have posted results of yo... -
03:53 AM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
- Meanwhile it can not be a bad idea for us to avoid SEGV even when DWARF is broken.
-
03:52 AM Bug #17052 (Third Party's Issue): Ruby with LTO enabled has issues with SIGSEGV handler
- Yes I can reproduce this on my machine.
```
% LC_ALL=C gdb --args ./miniruby -e'Process.kill("SIGSEGV",$$)'
GNU gdb (Ubuntu 8.2-0ubuntu1~18.04) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version ... -
04:24 AM Revision 6509652c (git): Skip irb/test_history on Windows too
-
03:39 AM Revision 8a40e9b5 (git): Promote set to default gems
-
03:21 AM Bug #16680: Symlink folder in $LOAD_PATH does not work with autoload
- nobu (Nobuyoshi Nakada) wrote in #note-6:
> I can't reproduce it with the master.
> ...
Cool, good news, so, it was fixed on our master, right?
08/19/2020
- 11:32 PM Revision eae7aef0 (git): [DOC] Improve Hash's doc for missing keys
- 11:32 PM Revision a586ccf2 (git): [DOC] Improve and simplify key egality documentation for Hash
-
09:26 PM Revision 63d213eb (git): Partial compliance with doc/method_documentation.rdoc (#3431)
- Removes references to *-convertible thingies.
-
08:39 PM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
- I recently encountered this issue on v2.7.1, when symlinked directories were included in the $RUBYLIB environment variable. I was not experiencing the issue on v2.5.1 with the exact same setup however. Has the bug regressed, or was $RUBY...
-
08:37 PM Bug #14373: Methods with more than 32 keyword arguments with default values have some of the arguments set to default despite being passed in.
- I recently confirmed this bug still exists on the most recent 2.5 release, 2.5.8. Was this fix ever backported to the 2.5 branch?
-
07:05 PM Feature #16986: Anonymous Struct literal
- how about `%struct{a: 1, b: 2}` (and `%value{...}` if needed)?
(znz-san's idea and it seems nice) -
05:57 PM Bug #17126 (Closed): String#gsub fails to escape single quote for shell
- `\'` means something special in a sub/gsub replacement string, see the documentation for details: https://docs.ruby-lang.org/en/2.7.0/String.html#method-i-gsub
As the documentation explains, use four backslashes:
```ruby
puts "Hel... -
03:24 PM Bug #17126 (Closed): String#gsub fails to escape single quote for shell
- Hi, I don't know if I'm misunderstanding how `String#gsub` works, but I encountered an issue in the Ruby "git" gem with escaping single quotes for shell, which I fixed and [contributed back](https://github.com/ruby-git/ruby-git/pull/480)...
-
05:52 PM Feature #17122: Add category to Warning#warn
- mame (Yusuke Endoh) wrote in #note-10:
> My another idea is to call `Warning.warn_deprecated` or `Warning.warn_experimental` before the general `Warning.warn`.
I prefer this approach unless we decide to add categories for all warnings. -
04:31 PM Feature #17122: Add category to Warning#warn
- I've added this ticket to the next dev-meeting agenda.
@byroot Yes, an arity check would work.
My another idea is to call `Warning.warn_deprecated` or `Warning.warn_experimental` before the general `Warning.warn`. I'm not sure if ... -
08:27 AM Feature #17122: Add category to Warning#warn
- I'd like to second this feature request. We used the same workflow in Shopify, and still have a bunch of regexps today to raise on deprecations that would break on 2.8. Having a simple category symbol would make all this much easier.
... -
04:05 AM Feature #17122: Add category to Warning#warn
- Hi Eileen,
First of all, thank you not only for contributing to Ruby but also for working hard on keyword argument separation for GitHub code base!
I think that this feature is reasonable, but I concern its compatibility.
```
m... -
04:26 PM Misc #17041: DevelopersMeeting20200831Japan
- * [Feature #17122] Add category to Warning#warn (mame)
* I'd like to hear opinions from the committers -
05:15 AM Misc #17041: DevelopersMeeting20200831Japan
* [Feature #17125] Remove `Thread.exclusive` (znz)
* `Thread.exclusive` is deprecated since 2.3.-
03:19 PM Bug #17020 (Closed): ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start
- I merged. Thanks for the patch
-
03:18 PM Bug #17020: ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start
- I can't close, but this is fixed in a74df67244199d1fd1f7a20b49dd5a096d2a13a2
-
03:13 PM Revision a74df672 (git): Fix ObjectSpace.trace_object_allocations_stop to not raise if the tracepoint were not initialized
- 03:09 PM Revision 7d01d881 (git): * 2020-08-20 [ci skip]
-
03:08 PM Revision aaf0e33c (git): register_fstring: avoid duping the passed string when possible
- If the passed string is frozen, bare and not shared, then there
is no need to duplicate it.
Ref: 4ab69ebbd7cef8539f687e1f948845d076461dc6
Ref: https://bugs.ruby-lang.org/issues/11386 -
11:08 AM Bug #16820: LEGAL is out of sync
- >racc.gemspec says s.licenses = ["MIT"].
It's my mistake. It should be use "Ruby" license. I fixed at https://github.com/ruby/racc/commit/f600effadaec9e389fc336309021640c565c7232.
> ...
racc uses Ruby license now. If some files sho... -
04:31 AM Bug #16820: LEGAL is out of sync
- Great! I have also updated LEGAL in https://github.com/ruby/ruby/pull/3082
The situation is much better than before now. Thank you. -
10:36 AM Revision 7f0ea205 (git): Added did_you_mean entry because did_you_mean uses MIT license
-
10:35 AM Revision 5b04e236 (git): [ruby/racc] Fixed the licenses field of gemspec
- https://github.com/ruby/racc/commit/a1aeecff03
-
10:15 AM Revision f81811fc (git): Skip Editline for history tests of IRB
- Because Editline erases all histories in Readline::HISTORY when
Readline.readline is called. -
06:12 AM Feature #17125: Remove Thread.exclusive
- Here you are: https://github.com/ruby/ruby/pull/3424/commits/f762b2952976905bc658df799890b0e9b61d558f
-
05:13 AM Feature #17125 (Closed): Remove Thread.exclusive
- `Thread.exclusive` is deprecated since 2.3.
```
% docker run -it --rm rubylang/all-ruby env ALL_RUBY_SINCE=ruby-1.8 ./all-ruby -r thread -e 'Thread.exclusive{}'
ruby-1.8.0
...
ruby-2.3.0-preview1
ruby-2.3.0-preview2 Thread.excl... -
06:10 AM Revision 8cc5f74f (git): RHASH_EMPTY_P: convert into an inline function
-
06:10 AM Revision 99093e16 (git): RHASH_TBL: is now ext-only
- It seems almost no internal codes use RHASH_TBL any longer. Why not
just eliminate it entirely, so that the macro can be purely ext-only. -
05:30 AM Revision d2eeb836 (git): tool/update-deps -fix
-
05:30 AM Revision 6649677e (git): ROBJECT_IV_INDEX_TBL: convert into an inline function
- Former ROBJECT_IV_INDEX_TBL macro included RCLASS_IV_INDEX_TBL, which is
not disclosed to extension libraies. The macro was kind of broken. Why
not just deprecate it, and convert the internal use into an inline
function. -
04:03 AM Revision e2c2283a (git): Skip irb/test_history on Solaris
-
02:57 AM Revision 7226f762 (git): Reset object allocation trace information
- Compaction makes collisions in the weak map more likely. For now, clear
the tracing information before the test run so we get accurate results -
02:18 AM Revision e939a5c2 (git): Use "in" and "out" options of "system" instead of "replace_stdio"
-
02:10 AM Revision 7a58ee9b (git): Update references when tracing allocations
- The allocation tracing code keeps essentially a weak reference to
objects that have been allocated (storing the allocation information
along with the weak ref). Compacting the heap would break references in
this weak map, so the wrong v... - 12:46 AM Revision 371c051c (git): * 2020-08-19 [ci skip]
-
12:42 AM Revision ca6868a4 (git): Do "write" to temp stdin before "reopen"
08/18/2020
-
08:02 PM Bug #17124 (Closed): Wrong "ambiguous first argument" warning
- ```sh
$ ruby -v -e "x='a'; x.match? /[a-z]/"
ruby 2.8.0dev (2020-07-30T14:07:06Z master 352895b751) [x86_64-darwin18]
-e:1: warning: ambiguous first argument; put parentheses or a space even after `/' operator
```
There is no `/` ... -
07:04 PM Feature #17122: Add category to Warning#warn
- > I don't think we should add a category keyword if the only usage is for deprecation warnings. If we are going to do this, I think:
> ...
As Aaron mentioned, categories already have warnings. My use-case is for deprecations, but that d... -
06:57 PM Bug #17023: How to prevent String memory to be relocated in ruby-ffi
- larskanis (Lars Kanis) wrote in #note-19:
> @tenderlovemaking The issue in FFI is still unsolved. Could you please have a look at the questions above? Or may I open a new issue for discussion?
Hi Lars,
Sorry I totally missed your ... -
06:14 PM Bug #17023: How to prevent String memory to be relocated in ruby-ffi
- @tenderlovemaking The issue in FFI is still unsolved. Could you please have a look at the questions above? Or may I open a new issue for discussion?
-
05:05 PM Feature #16986: Anonymous Struct literal
- Issue #16122 gave me this idea:
I we already had `Struct::Value`, then I think it would make a lot of sense to allow the following syntax:
`%v{ a: 1, b: 2, c: 3 }` **v** short for Struct.**V**alue => immutable: true, enumerable: fa... -
04:05 PM Feature #17059: epoll as the backend of IO.select on Linux
- Yes. I was just figured out that the scheduler is an example in the tests, where the real scheduler is designed to be separated from the ruby-core.
-
09:09 AM Feature #17059: epoll as the backend of IO.select on Linux
- In other words I don't think we need to have selectors in Ruby core.
That's part of the beauty of this new scheduler API: it lets you implement it in various way, including how do you want to wait for IO. -
09:07 AM Feature #17059: epoll as the backend of IO.select on Linux
- dsh0416 (Delton Ding) wrote in #note-16:
> I would try to use these methods to deal with the registration then, and replace the `IO.select` in the `Scheduler#run` for performance.
Where do you see `IO.select` in the `Scheduler`?
Her... -
02:32 PM Revision bed6b720 (git): test/irb/test_history.rb: prevent warnings
- ```
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:16:
warning: assigned but unused variable - result_output
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:34:
warning: ... -
02:07 PM Feature #16786: Light-weight scheduler for improved concurrency.
- Regarding naming, based on what we discussed I think these are good candidates:
* `Scheduler#wait_io`, `Scheduler#wait_fiber`
* `Fiber.schedule { ... }` (instead of just `Fiber { }` which confuses many about the semantics)
About raw... -
08:02 AM Feature #16786: Light-weight scheduler for improved concurrency.
- Thanks @ko1, we will prepare an update taking into consideration your feedback and the ongoing discussions.
-
04:48 AM Feature #16786: Light-weight scheduler for improved concurrency.
- Nobu and I reviewed spec and implementation.
There are several topics.
## [NEED TO CHANGE] doc/fiber.rdoc
The file name is `fiber`, but almost describe about the fiber scheduler.
Changing the file name into fiber_scheduler or des... -
12:43 PM Revision 6767a9ef (git): Lounch external process on Windows correctly
-
11:30 AM Bug #16820: LEGAL is out of sync
- I fixed the licenses field in the default gems at https://github.com/ruby/ruby/commit/8fb02b7a97
-
11:26 AM Revision d3b2c1a1 (git): Fixed the invalid SPDX identifier on gemspec
-
11:26 AM Revision 8fb02b7a (git): Update the license for the default gems to dual licenses
-
11:26 AM Revision 0bb8bd76 (git): Added the missing licenses field to some default gems
-
11:26 AM Revision a1148699 (git): Fixed the attribute name for multiple licenses.
-
11:10 AM Revision 4f697bcf (git): Strip trailing spaces [ci skip]
-
11:06 AM Revision 01b6c520 (git): [ruby/irb] Change the way the IRB is invoked as an external process
- https://github.com/ruby/irb/commit/f4bcdf4375
-
10:10 AM Revision 172d44e8 (git): [ruby/reline] Add require 'rbconfig' to use RbConfig
- https://github.com/ruby/reline/commit/4a0d32a3d0
-
10:09 AM Revision f2435c15 (git): [ruby/reline] Get rid of loading pathname unnecessarily
- https://github.com/ruby/reline/commit/9bd54b7f1c
-
10:09 AM Revision d1b06229 (git): [ruby/reline] Use the standard SPDX ID for license in gemspec
- It is better to use SPDX ID for license field:
https://guides.rubygems.org/specification-reference/#license=
ref: https://spdx.org/licenses/Ruby.html
https://github.com/ruby/reline/commit/8468a727e5 -
10:08 AM Revision ad24eaab (git): [ruby/reline] Remove duplicated line of code
- Co-authored-by: Quentin Sabah <quentin.sabah@gmail.com>
https://github.com/ruby/reline/commit/5526e9f7ee -
10:08 AM Revision 80a7358c (git): [ruby/reline] Keep original characters in inputrc
- https://github.com/ruby/reline/commit/96583c6336
-
10:08 AM Revision 44b24ab4 (git): [ruby/reline] Support mode icon
- Co-authored-by: aycabta <aycabta@gmail.com>
https://github.com/ruby/reline/commit/067b618123 -
10:08 AM Revision 0bc748db (git): [ruby/reline] Call #start_terminal after generating temporary inputrc
- because inputrc will be read when starting up
https://github.com/ruby/reline/commit/0a30464385 -
10:08 AM Revision 568615d3 (git): [ruby/reline] Use single quotes for non-expanded string literals
- https://github.com/ruby/reline/commit/3bf7c7d722
-
10:07 AM Revision f0e6ecec (git): [ruby/reline] Use temporary dir with yamatanooroti test
- https://github.com/ruby/reline/commit/8d7df88e98
-
10:04 AM Revision 215fe547 (git): [ruby/reline] Check Errno::EIO
- Catch Errno::EIO what will be occurred if the console terminates I/O before
Reline finishes rendering.
https://github.com/ruby/reline/commit/e51eaa6d43 - 10:03 AM Revision f0d3d4fe (git): [ruby/reline] Add home/end mapping for urxvt and relatives
- https://github.com/ruby/reline/commit/c30b293f1c
-
09:01 AM Bug #15856: Performance of redundant `Kernel.require` is slow when many gems are activated
- Could the feature index track that both `.rb` and `.so` have been loaded and if so short-circuit the search?
It would still do a search every time if only the .so is loaded (like currently), but it seems features which only exist as `... -
03:06 AM Bug #15856: Performance of redundant `Kernel.require` is slow when many gems are activated
- Idempotency is a property of an operation within a system. `require` may be idempotent, its particular use is not. You mean redundant, not idempotent.
-
05:38 AM Revision a30dea58 (git): [ruby/irb] Support shortening lambda notetion for nesting level of prompt
- https://github.com/ruby/irb/commit/f1a775af47
-
05:38 AM Revision 43c648c8 (git): [ruby/irb] Support shortening lambda notation
- https://github.com/ruby/irb/commit/8e3f81d428
-
05:38 AM Revision b3f84b4a (git): [ruby/irb] Expand path to run separated test correctly
- https://github.com/ruby/irb/commit/be2937abd5
-
05:38 AM Revision 7fa86de1 (git): [ruby/irb] Workaround a bug of ruby-mode.el
- https://github.com/ruby/irb/commit/6dfd59400d
-
05:38 AM Revision 82d4da78 (git): [ruby/irb] Yet another unnecessary readline
- https://github.com/ruby/irb/commit/933841af11
-
05:38 AM Revision 0fcbd072 (git): [ruby/irb] Directly check if the method is available instead of version
- https://github.com/ruby/irb/commit/3ea9fd9ed0
-
05:38 AM Revision 6aa786b8 (git): [ruby/irb] Get rid of loading readline unnecessarily
- https://github.com/ruby/irb/commit/420e7d2270
-
05:38 AM Revision d32229e3 (git): [ruby/irb] Prefer require_relative to load the files in this library
- https://github.com/ruby/irb/commit/0ac3bc7296
-
05:38 AM Revision a388e255 (git): [ruby/irb] Add require 'irb' to test separately
- https://github.com/ruby/irb/commit/9e4423b6e1
-
05:38 AM Revision 126e1fc2 (git): [ruby/irb] Make history infinite if set SAVE_HISTORY to negative
- https://github.com/ruby/irb/commit/824473e880
-
05:38 AM Revision ef498a01 (git): [ruby/irb] Suppress crash when bignum is set to SAVE_HISTORY
- https://github.com/ruby/irb/commit/5044eb2730
-
05:38 AM Revision 1359da6e (git): [ruby/irb] Add tests about IRB history
- https://github.com/ruby/irb/commit/82efd370eb
-
05:38 AM Revision 6f0ef83d (git): [ruby/irb] Symbol.all_symbols was adopted by Ruby 1.8.0 or later
- https://github.com/ruby/irb/commit/71ba754e8e
-
05:38 AM Revision 5474007d (git): [ruby/irb] Support oneline method definition
- https://github.com/ruby/irb/commit/826ae909c9
-
05:36 AM Revision 70121757 (git): test/fiber/test_backtrace.rb: prevent a warning
- ```
/home/chkbuild/chkbuild/tmp/build/20200818T033004Z/ruby/test/fiber/test_backtrace.rb:9:
warning: ambiguous first argument; put parentheses or a space even after
`/' operator
/home/chkbuild/chkbuild/tmp/build/20200818T033004Z/ruby/tes...