Activity
From 09/07/2020 to 09/13/2020
09/13/2020
- 05:20 PM Revision ba73e447 (git): * 2020-09-14 [ci skip]
-
05:14 PM Revision b682e0fc (git): [ruby/irb] Version 1.2.6
- https://github.com/ruby/irb/commit/5a7dd8c3bf
-
05:13 PM Revision 5bb9e125 (git): [ruby/irb] Need calculate_width and split_by_width of Reline::Unicode of reline 0.1.5 or later
- https://github.com/ruby/irb/commit/c05bc9e595
-
05:13 PM Revision 8f9b1902 (git): [ruby/irb] Omit output if first line of multiline is too long
- https://github.com/ruby/irb/commit/0feeae38c5
-
05:13 PM Revision e468d9f4 (git): [ruby/irb] Add OMIT_ON_ASSIGNMENT
- Omit the results evaluated at assignment if they are too long.
The behavior of ECHO_ON_ASSIGNMENT being on by default is hard to understand,
so I change it to off by default. Instead, we turn OMIT_ON_ASSIGNMENT on by
default. The result... -
05:12 PM Revision 5d841f56 (git): [ruby/irb] Version 1.2.5
- https://github.com/ruby/irb/commit/07beb3964d
-
05:12 PM Revision 3a3e9330 (git): [ruby/reline] Version 0.1.5
- https://github.com/ruby/reline/commit/c8a419beb5
-
10:07 AM Feature #17159: extend `define_method` for Ractor
- > #eval (...) has huge freedom to explode the program
I think this will happen too with the new feature proposed here.
One needs new bytecode/etc for the Proc/method where `i` is replaced by a literal value, isn't it?
Or do you alternat... -
10:01 AM Feature #17159: extend `define_method` for Ractor
- Copying captured variables seems a nice feature to have, also for optimizations.
In fact, this already exists in TruffleRuby internally:
https://github.com/oracle/truffleruby/blob/574d6bd2425caa856707ffd713fdb8ffc87be1e1/src/main/java/... -
09:41 AM Feature #17165: Add `filter` and `flatten` keywords to `Enumerable#map`
- And I'd argue if one wants to do everything in one block, just enjoy the freedom of imperative programming:
```ruby
result = []
array.each do |foo|
if bar = baz(foo)
result.concat bar.map{...}
end
end
``` -
09:38 AM Feature #17165: Add `filter` and `flatten` keywords to `Enumerable#map`
- What's the problem with the obvious:
```ruby
array.map { |foo|
baz(foo)
}.select { |bar|
condition(bar)
}.flat_map { |bar|
bar.map{...}
}
```
I think it's so much more readable.
And I don't think the extra allocations ... -
09:25 AM Bug #17146: Queue operations are allowed after it is frozen
- ko1 (Koichi Sasada) wrote in #note-1:
> `require "thread"; q=Queue.new.freeze; q.push 1` works without error from Ruby 1.6.0.
Ah, yes, because it's not deeply frozen:
https://github.com/ruby/ruby/blob/23ccbdf52188b78427f41d75b1a4b81... - 03:35 AM Revision d7b279e7 (git): * 2020-09-13 [ci skip]
-
03:35 AM Revision 3bdf8efd (git): Fix typos [ci skip]
-
03:13 AM Bug #17167 (Closed): Nested numbered parameters are not allowed
- Unlike `[[1, 2], [3, 4]].each{|v| v.each{|v| p v}}`, nested numbered parametersin `[[1, 2], [3, 4]].each{_1.each{p _1}}` has no clue like `|v|` for nesting.
It is very hard to tell two `_1` have different meanings.
It is a possible c...
09/12/2020
-
09:45 PM Feature #13719: [PATCH] net/http: allow existing socket arg for Net::HTTP.start
- hadmut@danisch.de wrote:
> Any news on this?
> https://bugs.ruby-lang.org/issues/13719#change-87531
It looks like net/http development moved to a proprietary service
which I can't comment on due to Terms-of-Service + JS + CAPTCH... -
03:20 PM Bug #17167 (Closed): Nested numbered parameters are not allowed
- Numbered parameter is allowed in an ordinary block:
```ruby
[[1, 2], [3, 4]].each{p _1}
# >> [1, 2]
# >> [3, 4]
```
as well as in a nested block:
```ruby
[[1, 2], [3, 4]].each{|a| a.each{p _1}}
# >> 1
# >> 2
# >> 3
# >>... -
02:51 PM Feature #17166 (Third Party's Issue): net/http not supporting unix domain sockets
- Hi,
meanwhile it's common and state of the art to offer rest apis not just over tcp/ip, but over unix domain sockets as well for machine-internal use and advanced security.
Unfortunately net/http does not support unix domain soc... -
02:46 PM Feature #17165 (Open): Add `filter` and `flatten` keywords to `Enumerable#map`
- I had a use case to do `map` on an enumerable, with 1-level flattening, while skipping `nil` values.
There are convenient `Enumerable#flat_map` and `Enumerable#filter_map` methods, but the problem is that they cannot be used at the sa... -
07:27 AM Revision 0ac185be (git): Fix compile-time check for copy_file_range(2)
- * close fds properly
* define USE_COPY_FILE_RANGE if HAVE_COPY_FILE_RANGE is defined
* avoid errors on cross-compiling environments -
07:07 AM Revision 012785ef (git): Check copy_file_range(2) is actually supported.
- see also: https://gitlab.com/gitlab-org/gitlab/-/issues/218999#note_363225872
-
01:07 AM Revision ae508633 (git): Suppress "assigned but unused variable" warning
09/11/2020
-
11:35 PM Revision 777d5367 (git): [ruby/reline] Support for word movement escape sequences in iTerm2
- https://github.com/ruby/reline/commit/187235f88c
-
11:35 PM Revision f36dc2b6 (git): [ruby/reline] Treat prompt correctly when Reline.prompt_proc isn't set
- https://github.com/ruby/reline/commit/9c9ba0eff3
-
11:35 PM Revision ce389ade (git): [ruby/reline] Move cursor to currect vertical pos after rendering a logical line
- https://github.com/ruby/reline/commit/9b932df544
-
11:35 PM Revision 9baf1bd0 (git): [ruby/reline] Stop using chomp option of lines method
- https://github.com/ruby/reline/commit/3e2f55c3e0
-
11:35 PM Revision 0ec19cc8 (git): [ruby/reline] Stop erasing chars after the cursor at eol
- When the cursor is at the end of the line and erases characters after the
cursor, some terminals delete the character at the cursor position.
https://github.com/ruby/reline/commit/e96ec97b02 -
11:35 PM Revision 2e34b35a (git): [ruby/reline] Skip the nil obtained from getc
- The nil means there is nothing in the buffer in some systems. Incidentally,
Errno::EIO is raised if the I/O is closed.
https://github.com/ruby/reline/commit/c698634e74 -
11:35 PM Revision a840ef85 (git): [ruby/reline] not clear scrollback buffer
- https://github.com/ruby/reline/commit/ba800f1461
-
11:35 PM Revision 08627440 (git): [ruby/reline] clear_screen use Windows API
- https://github.com/ruby/reline/commit/2c5ee54cb3
-
11:35 PM Revision 770e6603 (git): [ruby/reline] Use str.encoding by default for split_by_width
- https://github.com/ruby/reline/commit/2d32604c9e
- 11:31 PM Revision ae5d97ca (git): * 2020-09-12 [ci skip]
-
11:29 PM Revision 6042b743 (git): Promote time.rb to default gems
-
11:20 PM Bug #12780: BigDecimal#round returns different types depending on argument
- matz (Yukihiro Matsumoto) wrote in #note-9:
> `#round` with the argument less than 1 (`n < 1`) should return `Integer` value.
I've submitted a pull request that implements this: https://github.com/ruby/bigdecimal/pull/170
-
10:50 PM Bug #12834 (Closed): `prepend` getting prepended even if it already exists in the ancestors chain
-
10:46 PM Bug #12838 (Assigned): Duplication of UDP packets for DNS responses causing "no address" results for valid hostnames
- This is still in issue in the master branch. The underlying problem is resolv does not remove the `[sender, message_id]` pair once a response has been received. I have submitted a pull request to fix this issue: https://github.com/ruby...
-
08:32 PM Bug #12987 (Closed): Win32 API.rb can not call function without argument.
- I tried with `ruby 2.6.3p62 (2019-04-16 revision 67580) [i386-mingw32]` and `ruby 1.9.3p551 (2014-11-13) [i386-mingw32]` and was able to call a function without an argument:
```ruby
require 'Win32API'
getch = Win32API.new("C:\\Windo... -
08:17 PM Bug #13094: Zlib::GzipReader eof?がfalseなのにgetsでnilが返ってくる
- I've added a pull request to zlib to document this difference in #gets behavior: https://github.com/ruby/zlib/pull/18
-
08:00 PM Bug #13100 (Rejected): OpenSSL::PKey::EC#public_keyでGroup情報がコピーされない。
- This is expected and documented behavior since https://github.com/ruby/openssl/commit/9435c8b3cab02a78375cb43e122e4cfc7eee79b9, where `key.group` returns a new group, and modifying that group does not affect the key.
-
07:44 PM Feature #13153: Inconsistent sprintf formatting for 0 value
- `sprintf` has been documented that the prefix is only added on non-zero since commit:67151cd7af01f97524f0a14cf5abd9567f856155 in 2008, so this isn't a bug, but a feature request. Adding the prefix even on zero seems more reasonable to m...
-
06:40 PM Bug #13670 (Closed): [BUG] Bus Error at 0xefce7b (armv7l) (ruby 2.3.4p301)
-
01:01 PM Revision 01e0d749 (git): Promote resolv-replace to default gems
-
12:50 PM Revision e0675b1c (git): Promote resolv to default gems
-
12:15 PM Revision d1851ba5 (git): Promote securerandom to default gems
-
11:38 AM Revision 2f248183 (git): Promote open-uri to default gems
-
10:22 AM Feature #13719: [PATCH] net/http: allow existing socket arg for Net::HTTP.start
- Any news on this?
I was just trying to use the rest-client gem to connect to a unix domain socket, which isn't possible since the underlying net/http component does not accept unix domain URLs.
Since offering rest-apis on unix-dom... -
05:36 AM Feature #17140: Merge Enumerable#grep(_v) with Enumerable#select/reject
- I made `select` parts.
https://github.com/nobu/ruby/pull/new/feature/17140-enum_select -
05:34 AM Revision f0ddbd50 (git): Let String#slice! return nil (#3533)
- Returns `nil` instead of an empty string when non-integer number is given (to make it 2.7 compatible).
-
04:26 AM Revision 0d78390b (git): rbinstall.rb: OpenStruct has not been needed for years
- Since 6f3e8df133c7785ff6bb6f18d1faec81fefb3999 in 2014.
-
02:02 AM Revision 406559a2 (git): Add missing break
- pointed out by Coverity Scan
-
01:52 AM Revision d55c914f (git): Removed DRb.default_safe_level and DRb#safe_level
-
01:52 AM Revision e691e671 (git): Removed Thread#safe_level
09/10/2020
-
10:42 PM Bug #13891 (Closed): Rake - no files in bin folder - 59839
-
10:37 PM Bug #13918 (Closed): Appveyor failure - svn 59961 Use https instead of ftp for libffi downloading
-
10:34 PM Bug #13932 (Closed): [PATCH] Extension libraries take precedence in checks of later Kernel.#require calls for features without file extensions
- This patch appears to change a general behavior of `require` even when extension libraries are not involved. For example, it changes the behavior of this code:
```ruby
Dir.mkdir('a')
Dir.mkdir('b')
File.write('a/c.rb', '$a = 1')
... -
09:34 PM Feature #16794: Rightward operators
- For symmetry, we also have `<<-` for heredocs "take this input for..."
It might make sense to think of `->>` as "give this output to..." -
08:02 PM Bug #17164 (Closed): Threads can ignore kill/interrupt/abort
- Threads can opt-out of requests to shut down the thread, including 'thr.kill' and the interrupt that happens when a main thread shuts down. When the interrupt happens, 'ensure' clauses will run in the thread's stack. If one of these clau...
-
06:41 PM Bug #14327 (Closed): Segmentation fault while compiling ruby 2.5 on alpine armhf
-
06:27 PM Bug #14434: IO#reopen fails after EPIPE
- I tried updating this patch for the current master branch, but it breaks `test_reopen_inherit`:
```
1) Failure:
TestIO#test_reopen_inherit [/ruby/test/ruby/test_io.rb:2385]:
<"outerr"> expected but was
<"">.
```
@nobu, do yo... -
03:51 PM Bug #14015: Enumerable & Hash yielding arity
- Looks like this was resolved for `map` specifically in #13391 (https://github.com/ruby/ruby/commit/1f67a3900fbd45482ed36ad3b148b321307c1576)
Here are other steps to reveal the inconsistency:
```ruby
hash = { a: "my", b: "en" }
... - 03:49 PM Revision 440ab313 (git): * 2020-09-11 [ci skip]
-
03:48 PM Revision ef22af4d (git): If the GC runs before the Mutex's are initialised then we get a crash in pthread_mutex_lock.
- It is possible for GC to run during initialisation due to objects being allocated
-
01:52 PM Feature #16150: Add a way to request a frozen string from to_s
- Honestly now that `Symbol#name` is exposed, it's very easy to simply replace `to_s` with `Symbol.alias_method(:to_s, :name)`.
-
10:24 AM Feature #16150: Add a way to request a frozen string from to_s
- matz (Yukihiro Matsumoto) wrote in #note-68:
> I admit `Symbol#name` that returns a frozen string from a symbol. This can be a building block of the proposal.
> ...
For what it's worth, I agree with the above suggestion to try making a... -
12:34 PM Feature #17045: ObjectSpace.dump_all should allocate as little as possible in the GC heap
- I opened a PR with a patch for this: https://github.com/ruby/ruby/pull/3530
-
11:42 AM Revision 867204c4 (git): Promote syslog to default gems
-
09:56 AM Revision cf76a4a5 (git): Promote base64 to default gems
-
09:56 AM Revision cf681038 (git): Promote shellwords to default gems
-
09:56 AM Revision cee8e957 (git): Promote abbrev to default gems
-
09:44 AM Revision ea78960e (git): sync callable_method_entry()
- callable_method_entry() read/write method table structures so that
this function should be synchronized between Ractors. -
07:34 AM Feature #17140: Merge Enumerable#grep(_v) with Enumerable#select/reject
- Enhancing `select` and `reject` seems a good idea.
Matz.
09/09/2020
-
07:45 PM Revision 475c8701 (git): Make SecureRandom support Ractor
- SecureRandom lazily defines `get_random`. Accessing the mutex to define
the `get_random` method is not supported inside a Ractor. This commit
defines `gen_random` when `securerandom` is required and makes it
suppore Ractor (as well as ... -
06:11 PM Revision 5001cc47 (git): Optimize ObjectSpace.dump_all
- The two main optimization are:
- buffer writes for improved performance
- avoid formatting functions when possible
```
| |compare-ruby|built-ruby|
|:------------------|-----------:|---------:|
|dump_all_string ... -
04:04 PM Bug #15409: OpenStruct error when attribute is called 'method'
- > The only complicating factor is json has a dependency on ostruct. JSON::GenericObject inherits from OpenStruct
It is of very questionable usefulness though, so it could probably be deprecated at the same time, or make lazy loaded an... -
03:39 PM Bug #15409: OpenStruct error when attribute is called 'method'
- jeremyevans0 (Jeremy Evans) wrote in #note-10:
> marcandre (Marc-Andre Lafortune) wrote in #note-9:
> ...
Thanks for the quick review 👍. I'll wait a few days and commit if there are no other comments.
> I would like to move ostruct... -
03:38 PM Bug #15409: OpenStruct error when attribute is called 'method'
- Hanmac (Hans Mackowiak) wrote in #note-11:
> i have seen ruby making problems when using `method_missing` without `respond_to_missing` so it might cause problems there
The PR doesn't change `respond_to?`. The `respond_to_missing` wa... -
07:24 AM Bug #15409: OpenStruct error when attribute is called 'method'
- marcandre (Marc-Andre Lafortune) wrote in #note-9:
> I opened a PR that resolves this: https://github.com/ruby/ostruct/pull/15
> ...
i have seen ruby making problems when using `method_missing` without `respond_to_missing` so it might c... -
12:00 AM Bug #15409: OpenStruct error when attribute is called 'method'
- marcandre (Marc-Andre Lafortune) wrote in #note-9:
> I opened a PR that resolves this: https://github.com/ruby/ostruct/pull/15
I reviewed the PR and the changes look good to me.
In regards to OpenStruct in general, I agree with @m... - 03:05 PM Revision 76c7146a (git): * 2020-09-10 [ci skip]
-
03:05 PM Revision b49a8704 (git): Add a :since option to dump_all
- This is useful to see what a block of code allocated, e.g.
```
GC.start
GC.disable
ObjectSpace.trace_object_allocations do
# run some code
end
gc_gen = GC.count
allocations = ObjectSpace.dump_all(output: :file, since: gc_gen)
GC.enabl... -
01:47 PM Revision 3590f082 (git): spec/ruby/core/file/utime_spec.rb: far future timestamp may be trancated
- Under some Ext4 filesystem settings, a timestamp is limited up to
0x37fffffff (2446-05-10).
https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Inode_Timestamps
> Therefore, timestamps should not overflow until May 2446.
Actually t... -
12:53 PM Revision 01828a95 (git): Promote tsort to default gems
-
12:10 PM Revision b194973d (git): Revert the related commits about `Tempfile.open` change.
- Start with https://github.com/ruby/ruby/commit/fa21985a7a2f8f52a8bd82bd12a724e9dca74934
to https://github.com/ruby/ruby/commit/d7492a0be885ea9f2b9f71e3e95582f9a859c439 -
11:15 AM Revision 6997109f (git): [ruby/tempfile] Revert Tempfile.open unlinking the file
- Document difference in behavior between Tempfile.open and
Tempfile.create.
https://github.com/ruby/tempfile/commit/426d6f887f -
09:06 AM Bug #17162: Dir['**/*'] : stack smashing detected when listing big amount of directories
- Here's a repository with 2 scripts that might help debugging.
- one to create a lot of directories & sub-directories
- another to clear newly created directories
https://gitlab.com/kawsay/ruby-bug-17162
Sadly I haven't got a ... -
03:04 AM Feature #17163 (Open): Rename `begin`
- `Range#begin` is a getter method; it returns a value, and does not have a side effect, or does any calculation. Nevertheless, "begin" is a verb, so there is a mismatch. I would rather expect a noun.
It has a counterpart `Range#end`, a...
09/08/2020
-
09:48 PM Bug #15409: OpenStruct error when attribute is called 'method'
- I opened a PR that resolves this: https://github.com/ruby/ostruct/pull/15
Note that using a field called `:method` has never worked with `OpenStruct` before; only private methods could be overridden.
The PR does a few things:
- re... -
09:41 PM Feature #17039: Remove Time#succ
- I gave it a try: https://github.com/ruby/ruby/pull/3525
-
07:10 PM Bug #17152 (Closed): Missing TracePoint return event for String#unpack
-
06:30 PM Bug #17162: Dir['**/*'] : stack smashing detected when listing big amount of directories
- One possible approach to avoiding the stack smash is to limit the recursion allowed during directory globbing. Here's a simple approach that does that: https://github.com/jeremyevans/ruby/commit/29edc847b991bb59185b15c16988bc8004299c16
... -
09:11 AM Bug #17162 (Closed): Dir['**/*'] : stack smashing detected when listing big amount of directories
- When I try to recursively list directories, the instructions returns an error "*** stack smashing detected ***" / "[BUG] Illegal instruction".
Error only happens when I try to list a big amount of directories.
Specificity:
* irb
... - 04:23 PM Revision 96f2b2e0 (git): * 2020-09-09 [ci skip]
-
04:22 PM Revision 65ab2385 (git): Use size_t for MJIT's max_ivar_index
- iseq_inline_iv_cache_entry's index is also size_t.
%"PRIuSIZE" seems to print warnings against st_index_t in some environments. -
11:39 AM Revision b7d86e33 (git): Workaroud for macOS Big Sur(11.0)
-
11:38 AM Revision cdef1709 (git): libSystem.dylib is also symlink. Use libSystem.B.dylib
-
10:56 AM Misc #17138: DevelopersMeeting20200925Japan
- * [Feature #14394] Class.descendants (fatkodima)
* Introduces `Module#descendants` method as a native way to track `Class`/`Module` descendants, instead of inefficient hack like crawling `ObjectSpace` or tracking descendants via `inher... -
03:35 AM Misc #17138: DevelopersMeeting20200925Japan
- * [Feature #17134] Add resolv_timeout to TCPSocket (glass)
* It introduces `resolve_timeout` similar to `Socket.tcp`. Can I merge it?
* After merging it, I will work on `connect_timeout` as well.
* [Feature #15628] init_inetsock_i... -
10:35 AM Revision 0168094d (git): Use libSystem.dylib instead of libm.dylib and libc.dylib
- Because macOS 11.0(Big Sur) was removed libc and libm from `/usr/lib`.
- 01:31 AM Revision 4530bea8 (git): * 2020-09-08 [ci skip]
-
01:30 AM Revision 5be75aad (git): Add FALLTHROUGH
- Pointed out by Coverity Scan
```
** CID 1466646: Control flow issues (MISSING_BREAK)
/ext/-test-/random/loop.c: 63 in loop_get_bytes()
```
09/07/2020
-
06:48 PM Bug #17160: Wrong exception backtrace
- I thought there will be some magic and yes, it is confusing, because I'd expect the `rescue` exception to be the rule. Also, if the `WebConsole::Evaluator#eval` was named differently, it would be probably more obvious. Appreciate your e...
-
03:08 PM Bug #17160 (Rejected): Wrong exception backtrace
- It is confusing, but I think there is nothing wrong. There are two points.
The first point is that the location for a method written in C is represented by its caller's location.
This is an example: `Integer#times` is implemented in... -
02:19 PM Bug #17160 (Rejected): Wrong exception backtrace
- Looking at web-console test results [1], there is following error reported:
~~~
WebConsole::EvaluatorTest#test_Evaluator_callers_are_cleaned_up_of_unneeded_backtraces [/home/travis/build/rails/web-console/test/web_console/evaluator_t... -
02:38 PM Bug #17161 (Closed): [BUG] object allocation during garbage collection phase
- Hi, I frequently get this error in development or production, at any time. I cannot find a sequence of actions to reproduce it, it just happens.
I have no knowledge to solve it, but I can help if you have questions.
Thanks a lot!
Fre... -
01:05 PM Bug #17152: Missing TracePoint return event for String#unpack
- This behavior is fixed(alredy backported).
ref: https://bugs.ruby-lang.org/issues/17149
ref: https://github.com/ruby/ruby/commit/3fef159f81fad6ffb9af5b60f4c8ec867fdb2391 -
12:13 PM Revision 27707617 (git): Run a TracePoint test in an insolated process
- to prevent a random failure like
http://ci.rvm.jp/results/trunk-random2@phosphorus-docker/3024287 - 12:07 PM Revision 2b5b9e12 (git): * 2020-09-07 [ci skip]
-
12:06 PM Revision a2f3aaea (git): Fix a random test failure by TracePoint
- A test worker process may already be enabling TracePoint, which results
in changing the insn name in this test.
http://ci.rvm.jp/results/trunk-random0@phosphorus-docker/3022750 -
11:08 AM Revision 2b07b24b (git): Added `rb_random_base_init`
- To enclose the initialization of Random::Base part.
-
11:08 AM Revision 49240112 (git): Added WITH_REAL macros
- Added `WITH_REAL` versions to `RB_RANDOM_INTERFACE` macros. Also
these macros including "without real" versions no longer contain
the terminator (semicolon and comma). -
11:08 AM Revision d6ec0ef5 (git): Added `get_real` interface
-
11:08 AM Revision c449b9b0 (git): Added rb_int_pair_to_real
-
11:08 AM Revision af5e87ab (git): separate rb_random_t
- * random.c: separate abstract rb_random_t and rb_random_mt_t for
Mersenne Twister implementation.
* include/ruby/random.h: the interface for extensions of Random
class.
* DLL imported symbol reference is not constant on Windows.
*... -
11:08 AM Revision f4d52739 (git): Random::Base
- * random.c (InitVM_Random): introduce abstract super class
Random::Base. -
10:02 AM Revision 19917d45 (git): .github: try GitHub Container Registry
- It is natural for a CI running on GitHub to use GitHub's facility.
See also https://github.blog/2020-09-01-introducing-github-container-registry/ -
04:36 AM Feature #17159: extend `define_method` for Ractor
- Yes, I mean most of case (2) can be replaced with `eval` and proposed changes.
-
02:39 AM Feature #17159: extend `define_method` for Ractor
- Just a comment. In general,
```ruby
i = 0
define_method("foo#{i}"){ i }
```
and
```ruby
i = 0
eval("def foo#{i} #{i}; end")
```
behave differently. The former returns the current value of `i` in the closure, the latter embed the val... -
01:49 AM Feature #17159 (Open): extend `define_method` for Ractor
- Ractor prohibits use of non-isolated `Proc`s.
Non-isolated example is here:
```ruby
s = "foo"
pr = Proc.new{ p s }
```
This Proc `pr` can not be shared among ractors because outer variable `s` can contain an unshareable objec... -
04:29 AM Feature #17157 (Closed): Remove `ruby -T`
- Applied in changeset commit:git|0dbf6e46fb88a1c8c48ce5f67ac881a77de76526.
----------
[Feature #17157] removed -T command line option - 04:29 AM Revision 17a27060 (git): * 2020-09-07 [ci skip]
-
04:12 AM Feature #17148: stdbuf(1) support
- なるほど、そんなやり方が……。
それだと stdbuf の有無など環境の差異を気にしなくて良さそうですね。 -
01:41 AM Feature #17147: New method to get frozen strings from String objects
- Thank you for the beedbacks! I missed considering about `String#-@` method. It looks worth to try, so I'll evaluate that option on the workload of msgpack-ruby (and Fluentd possibly).