Activity
From 12/28/2020 to 01/03/2021
01/03/2021
-
10:45 PM Feature #17496: Add constant Math::TAU
- > you just need to comment on https://bugs.ruby-lang.org/issues/17480 then, copying the format of the other comments.
Thanks. Done.
> ...
As with ``PI``, the Newtonian view of reality had an entrenched pedagogical, professional, cultur... -
08:05 PM Bug #17506 (Closed): Ractor isolation broken by ThreadGroup
- Ractors currently share the ThreadGroup.
This doesn't seem very useful as there is no possible communication between the Threads of different Ractors.
It is also an isolation error:
```ruby
ThreadGroup.attr_accessor :foo
var = T... -
08:01 PM Bug #17497: Ractor performance issue
- 10 core i9. I've set up enough systems in my life (I used DOS); prefer new systems to last a while...
-
06:41 PM Bug #17497: Ractor performance issue
- Thanks for running this on other platforms.
From the numbers, it looks like you are running on an 8-core machine, right? If so, the "fib" and "sleep" numbers are what should be expected, but "cpu" is 3-5x slower on Ractor when it shou... -
06:23 PM Bug #17497: Ractor performance issue
- Using various 2021-01-03 versions of master, got the following times, a few were averaged by eye:
```
—————————— Windows 10 mingw ——————————
fib | cpu | sleep
native 41 ms | 940 ms | 220 ms
ruby 345 ms | 205 ... -
07:41 PM Bug #17505 (Closed): Can `Thread#group` actually be `nil`?
- Is there a circumstance where `Thread#group` could actually be `nil`?
The documentation says so, there seems to be source code for this, but I can find no test or RubySpec for this and I don't see anywhere in the `ThreadGroup` API tha... -
07:35 PM Feature #6362: Modular exponentiation/inverse
- As of Python 3.8, modular inverses are supported by Python's pow function, which can take a mod argument, just like Ruby's.
https://docs.python.org/3/library/functions.html#pow
I therefore propose to add this feature as
```
n.pow(-1, m... -
03:36 PM Bug #17504 (Closed): Allow UTC offset without colons per ISO-8601
- Although ISO-8601 allows UTC offset to be `+HHMM` as well as `+HH:MM`, `Time.new`, `Time#getlocal` etc reject that format as invalid.
I think this is a bug, especially as far as even `Time#inspect` uses it.
https://github.com/ruby/ru... -
03:03 PM Misc #17480: DevelopersMeeting20210113Japan
- * [Feature #12607] Ruby needs an atomic integer (@shyouhei)
* dummy comment
* [Feature #17099] Remove boolean argument and warning from `Module#attr` (S_H_)
* It has been warned since 1.9.1.
* [Feature #17485] Keyword argument for ti... -
02:56 PM Revision f4be7a51 (git): Added tests for Time#getlocal with UTC offset
- 02:38 PM Revision 0644f466 (git): Include RUBY_EXTCONF_H if available
-
01:28 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- JIT just means "Just-in-Time", so actually to be grammatically correct I guess the release note should either refer to "MJIT" (a proper noun) or "the JIT compiler (bundled with Ruby)".
Either way, I think to make it clear in the release... -
12:15 PM Bug #17503: Typing an invalid percent string crashes irb
- https://github.com/ruby/irb/issues/162
Probably I met the same problem and I reported it as the issue. -
11:43 AM Bug #17503 (Closed): Typing an invalid percent string crashes irb
- 1. Start `irb`.
2. Try typing in `%abc`. Keep typing in alphanumeric characters if it hasn't crashed yet.
3. irb crashes with the following error message:
```
/usr/local/lib/ruby/3.0.0/reline/unicode.rb:124:in `calculate_width': un... -
11:19 AM Revision bc4c862a (git): [ruby/timeout] Removed deprecated names that had been warned for 5 years
- https://github.com/ruby/timeout/commit/f9a9758a41
-
08:05 AM Revision 4724bf85 (git): Avoid hanging on --jit-wait after MJIT.pause
- When a worker is stopped, nobody will JIT a method for you.
-
03:49 AM Misc #17502: C vs Ruby
- First off, you may be interested in reading [Feature #16254] in case you haven't. (Note: `__intrinsitc__` was renamed to `__builtin_` first, and then renamed again to `Primitive.`)
Let me separately discuss multiple independent topics y... - 02:56 AM Revision 09ec8d68 (git): * 2021-01-03 [ci skip]
- 02:55 AM Revision a495cb2f (git): NEWS-3.0.0: backquote a few code related words. [doc]
- 02:54 AM Revision fdf35399 (git): NEWS: We have links now, and there is no changelog anymore [doc]
-
02:30 AM Feature #15225: OpenStruct: Recursively converting child Hash objects to OpenStruct objects.
- First, let's make it clear that it is not acceptable to break backwards compatibility in such an extreme manner. The default can not change.
The caveats of `OpenStruct` have been made more explicit in 3.0 and I am still curious as to ...
01/02/2021
-
08:25 PM Misc #17502 (Assigned): C vs Ruby
- Some features are coded in a mix of Ruby and C (e.g. ractor.rb).
External gems don't have access to this. The C-API to deal with keyword parameters is also very verbose the parsing and the engine does not know it.
Moreover, some op... -
03:51 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- I get your points. Nothing is technically wrong in what you're saying, and as a committer like you it's easier to interpret MJIT.
But I mean, I assume we're not writing a release note for people like us who can just read details in NEWS... -
12:50 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- > ## Release notes
> ...
Not really, I'm saying the "JIT" is just unclear, "which JIT is it?".
The 3.0.0 release notes are hard to read for me because they mix MJIT and JIT.
If we use MJIT everywhere in that note, then I think it is very... -
03:06 AM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- Now some discussions seem to be mixed, so let's sort them out:
## RubyVM::
> I tried to document it. I don't think it's good enough, many people don't read class documentation.
If e.g., they see RubyVM::AbstractSyntaxTree in a blog ... -
03:29 PM Bug #17501 (Closed): TestNetHTTPS#test_get CI failure
- しばらく前から snapshot tarball の macos-latest で発生している `TestNetHTTPS#test_get` の failure ですが、手元の macOS Catalina 10.15.7 に homebrew で入れた `openssl@1.1: stable 1.1.1i (bottled) [keg-only]` の環境では SERVER_CERT, CA_CERT の順番を入れ替えると通るようになりました。
他の環境では... -
11:12 AM Feature #17500 (Rejected): Move RubyVM::* to ExperimentalFeatures
- I am not opposed to renaming `RubyVM` module for the reason @eregon stated. But I am strongly against renaming it to `ExperimentalFeatures` or whatever means **experimental**. Users are forced to rewrite their code when the feature becom...
-
10:53 AM Feature #17472: HashWithIndifferentAccess like Hash extension
- I had a vague original idea for this proposal, which extends the Hash class generically.
First I though about case-insensitive string hashes, it had been able by using `$=` in old days.
The special variable was removed, still there are... -
09:46 AM Feature #17330: Object#non
- I think the proposed feature would be useful, but I feel that your focus on use cases with a negative predicate is artificial. Positive predicates should have as many corresponding use cases. And since negation is always one step more co...
-
08:28 AM Feature #17312 (Closed): New methods in Enumerable and Enumerator::Lazy: flatten, product, compact
- Applied in changeset commit:git|68ea7720b367fe84da601cdbc61cb0d651c3221b.
----------
NEWS: [Feature #17312] [ci skip] -
08:27 AM Revision 68ea7720 (git): NEWS: [Feature #17312] [ci skip]
-
08:27 AM Revision b8d33df1 (git): Add Enumerable#compact and Enumerator::Lazy#compact
-
06:56 AM Misc #17480: DevelopersMeeting20210113Japan
- * [Misc #0] Comment Deadline (marcandre)
* Please make comment deadline closer to meetings (1 or 2 days, not 7).
-
02:37 AM Misc #17480: DevelopersMeeting20210113Japan
- * [Feature #17496] Add constant `Math::TAU` (jzakiya)
* Reconsider adding to Ruby core, as more languages have. Increased adoption|use since last consideration. It has become "time proven", https://bugs.ruby-lang.org/issues/4897#not... -
03:11 AM Revision f690eb34 (git): Fixed dangling imemo_tmpbuf
- The count of rb_alloc_tmp_buffer_with_count is the allocation size
counted in VALUE size but not in the requested element size.
Co-authored-by: Yusuke Endoh <mame@ruby-lang.org>
Co-authored-by: Koichi Sasada <ko1@atdot.net> -
03:11 AM Revision 4b6fd832 (git): mkmf.rb: always try_compile as try_header
- Get rid of "present but cannot be compiled" headers, on some
multi-architecture platforms. - 03:06 AM Revision a6bbba11 (git): Avoid to use __builtin_clzl in SPARC Solaris
-
02:41 AM Revision 4182035e (git): Add -v to make benchmark
- I simply can't tell which of compare-ruby and built-ruby is what.
-
02:39 AM Feature #17498 (Closed): Improve performance some Float methods
- Applied in changeset commit:git|daec5f9edcfbf98b10a4bfc1aa501c9ac2c64841.
----------
Improve performance some Float methods [Feature #17498] (#4018) -
02:39 AM Revision daec5f9e (git): Improve performance some Float methods [Feature #17498] (#4018)
- 01:18 AM Revision ef6ab776 (git): Add __x86_64__ guard to include x86intrin.h
-
12:48 AM Revision 5aa28d9d (git): Check if x86intrin.h is available not only existing
01/01/2021
-
11:23 PM Feature #17500: Move RubyVM::* to ExperimentalFeatures
- > it is meant as experimental unstable MRI-specific API
I think it means only MRI-specific API, while some of it may be experimental and/or unstable. For example, RubyVM::InstructionSequence will continue to be MRI-specific, but I don... -
12:56 PM Feature #17500: Move RubyVM::* to ExperimentalFeatures
- Migration plan:
* In Ruby 3.1: define `ExperimentalFeatures`, add the same constants & methods as `RubyVM` under it, and deprecate the `RubyVM` constant.
User code can do `ExperimentalFeatures = RubyVM unless defined?(Experimenta... -
12:43 PM Feature #17500 (Rejected): Move RubyVM::* to ExperimentalFeatures
- `RubyVM` is a trap:
* Users will think from the name it's some official blessed API when it is meant as experimental unstable MRI-specific APIs (the complete opposite).
* CRuby developers seem to see it as an experimental module to put... -
10:34 PM Feature #17496: Add constant Math::TAU
- I also don't understand why `Math::TAU` needs to be added to Ruby, even though I am familiar with the manifesto and think it might have a merit. However, it is just a redefinition of a basic mathematical constant that doesn't bring much ...
-
10:14 PM Feature #17496: Add constant Math::TAU
- @jzakiya you just need to comment on https://bugs.ruby-lang.org/issues/17480 then, copying the format of the other comments.
-
10:12 PM Feature #17496 (Open): Add constant Math::TAU
- Personally, I don't think that anything significant has changed in the last three years this area. And the comparison of Tau vs Pi to Relativity vs Newtonian Mechanics is laughable.
However, I also don't want to be the one to stop de... -
09:48 PM Feature #17496: Add constant Math::TAU
- Well since I don't have the power to re``Open`` it, will you then see that it is?
Otherwise, this is just going around in an infinite circle, and I don't need the new year starting out like this.
Since you know what needs to be don... -
09:42 PM Feature #17496: Add constant Math::TAU
- > I request that whoever has the power to request he review this issue again now do that too.
That's done by adding to the list of issues to be considered I linked - when you have this as not rejected you can add to there. -
09:41 PM Feature #17496: Add constant Math::TAU
- OK, well then I request this issue be reclassified as ``Open``, by whoever has the power to do that.
Also, as it seems Matz's last response to a similar request was over 3 years ago, I request that whoever has the power to request he ... -
09:30 PM Feature #17496: Add constant Math::TAU
- Ok well this issue is currently marked rejected. You need to convince someone to change that first. Then you need to add it to the list of issues to be considered by Matz this month https://bugs.ruby-lang.org/issues/17480.
-
09:27 PM Feature #17496: Add constant Math::TAU
- > I don't think this manifesto helps itself by conflating a serious argument with a lot of silliness and jokes. You can see how people react to it by wondering if they're being trolled.
Well, I don't see anything specific in the Manif... -
09:03 PM Feature #17496: Add constant Math::TAU
- I don't think this manifesto helps itself by conflating a serious argument with a lot of silliness and jokes. You can see how people react to it by wondering if they're being trolled.
-
08:58 PM Feature #17496: Add constant Math::TAU
- FYI.
Yesterday (the last day of 2020) before I created this issue to include ``TAU`` in ``Ruby``, literally seconds before, I opened the exact same request in ``Crystal``, as ``Ruby|Crystal`` are my two favorite languages.
After on... -
05:04 PM Feature #17496: Add constant Math::TAU
- Almost 25 years ago I started my computer career with 3D programming. Very low level to that times, but using a lot of trigonometric computations. Using PI always felt like something half done. It's strange to tell the computer it should...
-
04:42 PM Feature #17496: Add constant Math::TAU
- This is a very serious proposal, and ``TAU`` is a very serious concept - the unit turn.
As Michael Hartl raises, trying to get people to accept ``TAU`` as better than ``PI`` is more about emotional attachment to a familiar concept, th... -
03:54 PM Feature #17496: Add constant Math::TAU
- It's difficult to work out if this is a genuine proposal or a meme.
Surely Jabari is joking when they say 'you must find your own way to acceptance, because others already have'? Is this a mathematical argument or a sort of play on cu... -
03:46 PM Feature #17496: Add constant Math::TAU
- To help answer this question,
> IMO, the sufficient condition is that it appears in some major textbooks for school.
and this,
> ...
I reviewed a couple of the ``TAU`` videos by Micheal Hartl, the author of ``The TAU Manifesto``... -
06:46 AM Feature #17496: Add constant Math::TAU
- > So, I want to know how many mathematicians accept such tau. Do you know how many academic papers that uses tau as the circle constant have been published so far?
How can anyone ever empirically answer these question? And why should th... -
02:41 AM Feature #17496: Add constant Math::TAU
- At least Julia doesn't have `tau` in its core now. There is Tau.jl, but it isn't a standard library. Following Julia's stance to `tau`, we can say that it is enough by providing a gem to define `Math::TAU` for now.
I'd like to know ... -
02:14 AM Feature #17496: Add constant Math::TAU
- jzakiya (Jabari Zakiya) wrote in #note-4:
> Well, Python3 added it, so when do you (empirically?, subjectively?) establish it's become ``time-proven``?
IMO, the sufficient condition is that it appears in some major textbooks for school. - 04:03 PM Revision 830afd94 (git): [ruby/bigdecimal] Update depend
- 03:54 PM Revision c2c01475 (git): [ruby/bigdecimal] Fix test for Ruby 2.4
- Ruby 2.4 does not have RbConfig::LIMITS.
https://github.com/ruby/bigdecimal/commit/c8087523b0 - 03:54 PM Revision 448a67cd (git): [ruby/bigdecimal] Implement special conversions for 64-bit integers
- This change improves the conversion speed from small integers.
```
Comparison:
big_n9
master: 4003688.9 i/s
bigdecimal 3.0.0: 1270551.0 i/s - 3.15x slower
big_... - 03:46 PM Revision 4730efdd (git): * 2021-01-02 [ci skip]
- 03:30 PM Revision 5ee6830a (git): [ruby/bigdecimal] Fix test_limit
- Keep the default value of BigDecimal.limit by BigDecimal.save_limit
to avoid failures of the other test methods due to the unexpected limit.
https://github.com/ruby/bigdecimal/commit/bdc1cc6585 -
03:13 PM Feature #15921: R-assign (rightward-assignment) operator
- dgutov (Dmitry Gutov) wrote in #note-25:
> It's not like the new syntax makes anything possible that a simple assignment does not.
It does. It is now a pattern match, not just a rightward assignment:
```ruby
{x: 1, y: 2} => {x:}
... -
03:03 PM Feature #15921: R-assign (rightward-assignment) operator
- This is not as bad as the "pipeline operator" (which didn't do what its name said), but still, why add this?
It's not like the new syntax makes anything possible that a simple assignment does not.
The "method chains" example is per... -
02:32 PM Revision 71562481 (git): Hoisted out compile_builtin_arg to refine messages
-
12:50 PM Misc #17480: DevelopersMeeting20210113Japan
- * [Feature #17500] Move RubyVM::* to ExperimentalFeatures (eregon)
* I think this is the best solution, for everyone. Could matz and ruby-core agree to this? -
12:18 PM Misc #17480: DevelopersMeeting20210113Japan
- * [Misc #17499] Documentation backporting (zverok)
* Address systematic lack of docs at docs.ruby-lang.org
* [Bug #16497] StringIO#internal_encoding is broken (more severely in 2.7) (zverok)
* Still is, as of 3.0.0
* [Feature #17407... -
12:48 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- FYI, I filed #17500 regarding RubyVM.
I think `ExperimentalFeatures::JIT` would be fine if we accept that issue, and e.g. other Rubies might implement `ExperimentalFeatures::JIT.enabled?` then, which makes sense to me. -
12:20 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- k0kubun (Takashi Kokubun) wrote in #note-4:
> Didn't you clarify it by yourself at [Feature #15743]? The person who wrote the line that nobu quoted was you. You made it pretty clear that `RubyVM::MJIT` doesn't need to exist in other imp... -
12:09 PM Misc #17499 (Closed): Documentation backporting
- I recently noticed that the documentation created after `x.y` release (even 1 day after) never reflected at `docs.ruby-lang.org/<x.y>.0/`.
In discussion [here](https://github.com/ruby/docs.ruby-lang.org/issues/111) I was educated by @... -
11:53 AM Feature #17473: Make Pathname to embedded class of Ruby
- hsbt (Hiroshi SHIBATA) wrote in #note-9:
> I'm not sure how embedded pure-Ruby implementation to core classes. The above request is the different request.
It's also related, if the decision was to move all of Pathname to C (due to so... -
07:34 AM Bug #17494: ruby is hanged when using activesupport + rspec + rspec-parameterized
- Looks like this behavior has been triggered by https://github.com/ruby/ruby/commit/b9007b6c548f91e88fd3f2ffa23de740431fa969
* Created one file repro named `rep17494.rb` by adding `require "rspec/autorun"`
```
require "bundler/inli... -
06:22 AM Feature #17498 (Closed): Improve performance some Float methods
- Improve performance some Float methods(write in Ruby)
benchmark:
```yml
prelude: |
flo = 4.2
benchmark:
to_f: |
flo.to_f
abs: |
flo.abs
magnitude: |
flo.magnitude
-@: |
-flo
zero?: |
flo... -
05:50 AM Bug #17495 (Closed): Make args info for RubyVM::AST to available on endless method without parens
- Applied in changeset commit:git|ab32e98f984318f1074c6e39b8f2f04266a1224b.
----------
Added AST assertions for method definition arguments [Bug #17495] -
05:48 AM Revision ab32e98f (git): Added AST assertions for method definition arguments [Bug #17495]
-
05:45 AM Revision 1e510277 (git): Added AST tests for endless method definitions
-
05:25 AM Revision de5f8a92 (git): Make args info for RubyVM::AST to available on endless method without parens
- Problem
===
Arguments information is missing for endless method without parens.
For example:
```ruby
# ok
pp RubyVM::AbstractSyntaxTree.parse(<<~RUBY).children[2]
def x() = 42
RUBY
# => (DEFN@1:0-1:12
# mid: :x
# body:
# ...
12/31/2020
-
10:55 PM Revision 3d7f7180 (git): Remove unused file
-
10:47 PM Feature #17496: Add constant Math::TAU
- From that post 3 years ago.
> For the time being, use math-tau gem.
> ...
Well, Python3 added it, so when do you (empirically?, subjectively?) establish it's become ``time-proven``?
How many other language adoptions does it take (oh bt... -
10:18 PM Feature #17496: Add constant Math::TAU
- Relevant context is probably Matz's reason for rejection and criteria for reconsidering.
https://bugs.ruby-lang.org/issues/4897#note-41 -
10:16 PM Feature #17496: Add constant Math::TAU
- Well, I guess this regresses to a philosophical|religious issue, it's obviously not technical. :-(
But how can adding ``TAU`` in anyway hurt Ruby?
A short list of languages I know of which now include ``TAU``:
D
C# (.NET)
F#
Nim
Zig
Ru... -
09:13 PM Feature #17496 (Rejected): Add constant Math::TAU
- jzakiya (Jabari Zakiya) wrote:
> Excuse me if this has been brought up before.
It has been brought up before, by you in #13694, which was itself a duplicate of #4897. I'm rejecting this as a duplicate. However, if you think circumst... -
07:27 PM Feature #17496 (Open): Add constant Math::TAU
- Excuse me if this has been brought up before.
This is a simple proposal to add the math constant ``Math::TAU`` = 2*``Math::PI``.
See: https://tauday.com/
``TAU`` has been included in a growing number of languages (Rust, Python3,... -
09:48 PM Bug #17497 (Closed): Ractor performance issue
- There's a strange performance issue with Ractor (at least on MacOS, didn't run on other OS).
I ran a benchmark doing 3 different types of work:
* "fib": method calls (naive fibonacci calculation)
* "cpu": `(0...1000).inject(:+)`
* ... -
04:18 PM Bug #17495 (Closed): Make args info for RubyVM::AST to available on endless method without parens
Problem
===
Arguments information is missing for endless method without parens.
For example:
```ruby
# ok
pp RubyVM::AbstractSyntaxTree.parse(<<~RUBY).children[2]
def x() = 42
RUBY
# => (DEFN@1:0-1:12
# mid: :x
# ...- 03:58 PM Revision 48cf548b (git): * 2021-01-01 [ci skip]
-
03:54 PM Revision 37e2a67a (git): Method ID of call and fcall can be const not only ident
-
02:18 PM Bug #17491: `./configure' unsuccessful on Android NDK cross-build
- Thanks for the comment.
A patch is attached to solve the problem. -
08:37 AM Bug #17491 (Feedback): `./configure' unsuccessful on Android NDK cross-build
- Currently, Ruby does not support Android officially. A patch is welcome.
I'm experimentally maintaining a CI on Android/Termux (http://rubyci.s3.amazonaws.com/android29-x86_64/ruby-master/recent.html), and it is only a test environmen... -
11:47 AM Bug #17494 (Closed): ruby is hanged when using activesupport + rspec + rspec-parameterized
- # Example code
## Gemfile
```ruby
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem "activesupport", "6.1.0"
gem "rspec", "3.10.0"
gem "rspe... -
09:34 AM Revision d0693391 (git): merge revision(s) ed549f80b645aafd62376f65c3a27b66bafa2a38,eff0c5bf2ad47d10a440c5211be5eddb3bbf4028,f6b6a7ad345c50eeb3f7206ceabdf41ba94b7d85,5b48686691c2443d8d7113e593494c4d9302da0e,2af4c1fc5b19fc96203c2d7e917e689510d3527e,c9213aa864fb8527388679c21f1ea8ce129e2f1a,224f29c8e92094af10bc666c474b81a3545d6adf:
- spec/ruby/core/process/clock_getres_spec.rb: skip on Android
in the same way as FreeBSD and OpenBSD.
I guess that the spec makes too strong assumption.
Try to avoid random failures on clock_getres_spec.rb
... -
09:22 AM Feature #17473: Make Pathname to embedded class of Ruby
- hsbt (Hiroshi SHIBATA) wrote in #note-9:
> I'm not sure how embedded pure-Ruby implementation to core classes. The above request is the different request.
I support making Pathname part of core Ruby. It's an extremely convenient li... -
12:01 AM Feature #17473: Make Pathname to embedded class of Ruby
- >Then, we could share more of Pathname between Ruby implementations, and avoid maintaining both a Ruby and C version.
I'm not sure how embedded pure-Ruby implementation to core classes. The above request is the different request. -
08:25 AM Revision 18ea81fd (git): get_tmopt is no longer used
-
08:25 AM Revision 77e7082e (git): Moved Time.at to builtin
-
08:25 AM Revision 9101597d (git): Moved Time.now to builtin
-
08:23 AM Revision 93735f8f (git): Moved time.rb to timev.rb
-
08:05 AM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- I'm +1 to rename it.
-
07:47 AM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- > If we'd consider RubyVM is CRuby-specific, then it seems fine.
> ...
Didn't you clarify it by yourself at [Feature #15743]? The person who wrote the line that nobu quoted was you. You made it pretty clear that `RubyVM::MJIT` doesn't ne... -
06:40 AM Bug #17358: Backport 1ca9facab6c85264168b4c0a18c24f489cabcc9f
- ruby_2_7 5cbba4d6005a03914fc47e7a65ae5b6ef76c8e29 merged revision(s) 1ca9facab6c85264168b4c0a18c24f489cabcc9f.
-
06:40 AM Revision 5cbba4d6 (git): merge revision(s) 1ca9facab6c85264168b4c0a18c24f489cabcc9f: [Backport #17358]
- Add monitor to document files
-
06:39 AM Bug #17275: Please backport 8b0dc77a621ded75f72486c33f55404ce73f00d7
- ruby_2_7 9eff912943a71745087ea4ae892774e33bd2e8ca merged revision(s) 8b0dc77a621ded75f72486c33f55404ce73f00d7.
-
06:39 AM Revision 9eff9129 (git): merge revision(s) 8b0dc77a621ded75f72486c33f55404ce73f00d7: [Backport #17275]
- configure.ac: Bump the size of sigaltstack
The RubyVM uses C macro defines to feature detect whether
`backtrace(2)` support is available, and if so it includes C level backtraces
when the RubyVM itself crashes.
... -
06:37 AM Bug #15178: Wrong paramaters passing to pthread_setname_np(3)
- ruby_2_7 16930b254b4e5397759d6b42845b495041b71321 merged revision(s) be9dbe1c3eb4bb4cab0bdc42a91ef425bb1eaddd.
-
06:37 AM Revision 16930b25 (git): merge revision(s) be9dbe1c3eb4bb4cab0bdc42a91ef425bb1eaddd: [Backport #15178]
- Fix pthread_setname_np arguments on NetBSD
The previous attempt to fix this in
b87df1bf243074edb2e6cc8a24bc00df81cebf3c reversed the argument
order instead of just fixing the quote escaping.
From Takahir... -
06:32 AM Feature #16378: Support leading arguments together with ...
- Thank you for ping me. I backported f8b4340f into ruby_2_7 at 27fca66207f2c35f2f44f6a7cbbe6fd153546082.
-
06:30 AM Bug #17493 (Closed): Calling Reline::Unicode.calculate_width appears to lock up when called from emacs or if output is redirected
- In https://github.com/ruby/reline/pull/224 there is a test program
```
require "reline"
p Reline::Unicode.calculate_width("√")
```
as a test case for bug #17405. This program hangs when called from an emacs shell.
The prob... -
06:19 AM Revision 27fca662 (git): Add leading arguments support to arguments forwarding
- Implements [Feature #16378]
-
06:19 AM Revision d5fb51d2 (git): Add time.rb as builtin
-
06:11 AM Revision 0fbf4d03 (git): Access to reserved word parameter like as `__builtin.arg!(:if)`
-
06:10 AM Revision e249f37f (git): merge revision(s) 45fd4436ee146f95487b1575c5a2df5cf77f4717:
- Use $GITHUB_ENV instead of set-env
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ -
06:05 AM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- shyouhei (Shyouhei Urabe) wrote in #note-4:
> Hello, I cannot reproduce this on any of `ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]` compiled using {clang-{3,4,5,6,7,8,9,10,11,12),gcc-{4,5,6,7,8,9,10}} on my Linux box. ... -
03:13 AM Bug #17488 (Closed): Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- Applied in changeset commit:git|20a8425aa0f9a947e72b06cbd3a2afe9674dd18f.
----------
Make any hash values fixable [Bug #17488]
As hnum is an unsigned st_index_t, the result of RSHIFT may not be
in the fixable range.
Co-authored-by: Ne... -
03:30 AM Revision 62450e0a (git): Fixed missing NORETURN on rb_mod_const_missing
-
03:23 AM Revision 4b4dc0fa (git): Defined RBIMPL_ATTR_DEPRECATED_INTERNAL
- Get rid of duplicate attributes, which may be warned or ignored
except for the first. -
03:11 AM Revision 20a8425a (git): Make any hash values fixable [Bug #17488]
- As hnum is an unsigned st_index_t, the result of RSHIFT may not be
in the fixable range.
Co-authored-by: NeoCat <neocat@neocat.jp> -
01:14 AM Bug #17405: irb ---nomultiline gets exception when output contains some non-ascii characters
- Sorry not to have checked back recently. The patch mentioned above works great for me.
I doubt if this is required now but here it is:
irb(main):001:0> irb_info
=>
Ruby version: 2.7.2
IRB version: irb 1.2.6 (2020-09-14)
InputMeth...
12/30/2020
-
11:59 PM Bug #17492 (Closed): Breakpoints in debug.rb only work when program invoked with absolute filename
- When using the debugger, as in ruby -r debug, it seems that breakpoints sometimes are honoured and sometimes not. It turns out that it matters how the program is invoked.
For example, when debugging test.rb,
if invoked as
ruby -... -
11:46 PM Bug #17486: Build fails on darwin due to libtool being removed
- I tried the following on a Macbook Pro with Catalina and the error was still present.
```
$ sudo rm -rf /Library/Developer/CommandLineTools
$ xcode-select --install
$ sudo xcode-select -s /Library/Developer/CommandLineTools
```
-
11:46 PM Bug #17486: Build fails on darwin due to libtool being removed
- FYI: https://github.com/rbenv/ruby-build/issues/1505#issuecomment-752274233
-
11:28 PM Bug #15499: Breaking behavior on ruby 2.6: rb_thread_call_without_gvl doesn't invoke unblock_function when used on the main thread
- Thanks for the followup on this issue. However, was the fix ever released?
I can still reproduce this issue on the following ruby versions, using the grpc gem at version 1.34.0:
```
$ ruby -v
ruby 2.6.6p146 (2020-03-31 revision 6... -
10:59 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- Eregon (Benoit Daloze) wrote in #note-2:
> If we'd consider RubyVM is CRuby-specific, then it seems fine.
Yes.
commit:39a43d9cd09f
```
/*
* Document-class: RubyVM
*
* The RubyVM module only exists on MRI. +RubyVM+ is... -
03:04 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
- If we'd consider RubyVM is CRuby-specific, then it seems fine.
However, that's rather unclear, and then the question is what should other Ruby implementations should do `RubyVM::MJIT` and its methods?
(other Ruby implementations might ... -
05:45 AM Feature #17490 (Closed): Rename RubyVM::MJIT to RubyVM::JIT
- ## Background
These days it's sometimes said that CRuby may add another lightweight JIT. Leaving `RubyVM::MJIT` under such a situation might imply `RubyVM::MJIT` will not impact the future JIT, but I think `MJIT.pause`/`MJIT.resume` sho... -
09:24 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- I have confirmed this too in `ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]` built with `gcc (Debian 8.3.0-6) 8.3.0`.
And also confirmed that this PR fixes the issue:
https://github.com/ruby/ruby/pull/4014 -
04:18 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- On my mac pro (High Sierra) too:
```
$ clang --version
Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Volumes/Media/Applications/Xcode.app/Contents/Developer/To... -
04:14 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- shyouhei (Shyouhei Urabe) wrote in #note-4:
> Also I want to know your `clang --version`.
```
$ clang --version
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: ... -
03:42 PM Bug #17488 (Feedback): Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- Hello, I cannot reproduce this on any of `ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]` compiled using {clang-{3,4,5,6,7,8,9,10,11,12),gcc-{4,5,6,7,8,9,10}} on my Linux box. Maybe an XCode glitch I suspect?
I have jus... -
08:38 PM Feature #17475 (Rejected): Implement arguments forwarding for blocks
-
06:46 PM Feature #17475: Implement arguments forwarding for blocks
- Found it, duplicate of rejected #16605. Sorry for the noise, can be closed/rejected.
-
08:26 PM Bug #17491 (Closed): `./configure' unsuccessful on Android NDK cross-build
- We have no such command as `getprop` in our Android NDK cross-build environment, and so `./configure` says
```
checking whether it is Android... yes
checking for Android API version... ./configure: line 9108: getprop: command not foun... - 05:19 PM Revision b2030d4d (git): * 2020-12-31 [ci skip]
- 05:05 PM Revision a8014dae (git): [ruby/bigdecimal] Refactor object allocation
- https://github.com/ruby/bigdecimal/commit/271cebe567
- 05:04 PM Revision 4569e465 (git): [ruby/bigdecimal] Remove ToValue
- https://github.com/ruby/bigdecimal/commit/97e9feeebd
-
03:10 PM Feature #17473: Make Pathname to embedded class of Ruby
- shyouhei (Shyouhei Urabe) wrote in #note-7:
> JFYI pathname was born as a pure-ruby library, then was eventually translated into C (in commit:4bf3cb5ba9c0242bd5a6d0d55b7db9f837c09edf). Don't know the reason behind that move though. @a... -
03:05 PM Feature #17473: Make Pathname to embedded class of Ruby
- JFYI pathname was born as a pure-ruby library, then was eventually translated into C (in commit:4bf3cb5ba9c0242bd5a6d0d55b7db9f837c09edf). Don't know the reason behind that move though. @akr do you remember?
-
02:11 PM Revision 0284e7ca (git): Replaced deprecation macros
- * DECLARE_DEPRECATED_FEATURE with RBIMPL_ATTR_DEPRECATED_SINCE
* DECLARE_DEPRECATED_INTERNAL_FEATURE with RBIMPL_ATTR_INTERNAL
And moved function declarations outside both. -
07:42 AM Feature #17316: On memoization
- IMO there should be an operator in the language directly to keep it more dry.
```ruby
def my_method # current implementation
return @cache if defined? @cache
@cache = some_heavy_calculation
end
def my_new_method
@cac... -
07:01 AM Revision ac2df891 (git): Stop managing valid class serials
- `mjit_valid_class_serial_p` has no longer been used since b9007b6c548.
- 06:25 AM Revision 11b8bb99 (git): Minor grammar fix in String#chomp documentation
-
06:02 AM Revision 15c129d0 (git): Try increasing SMTP's read_timeout for --jit-wait
- for random hangs like:
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302796
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302188
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3301293 -
05:49 AM Misc #17480: DevelopersMeeting20210113Japan
- * [Feature #16806] `Struct#initialize` accepts keyword arguments too by default (k0kubun)
* Is there any update on kwargs since [the last discussion](https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20200514Japan.md... -
04:06 AM Revision 8e231ffa (git): Increase timeout for reline with --jit-wait
- for failures like:
http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-130509
http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-165132
http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201228-015519
12/29/2020
-
08:49 PM Feature #16746: Endless method definition
- I haven't seen it mentioned in the comments so I just wanted to point out that the regular method-definition syntax doesn't require semicolons, and is very close to this experiment, given the parentheses are mandatory:
``` ruby
def fib(... -
08:34 PM Feature #17472: HashWithIndifferentAccess like Hash extension
- I believe that `HashWithIndifferentAccess` is one of the very false ideas in Rails -- and that as of today, it is a more or less common understanding in the community.
The distinction of Symbol (as a controlled internal name) and Str... - 03:46 PM Revision c550b75c (git): * 2020-12-30 [ci skip]
-
03:23 PM Feature #17471: send_if method for improved conditional chaining
- osyo (manga osyo) wrote in #note-1:
```ruby
puts number.tap { break _1 * 2 if _1 > 5 }.send(:-, 1)
puts %w(Merry Christmas).tap { break _1.map(&:upcase) if answer == 'y' }.join(' ')
```
Hello and thanks for sharing this Ruby idiom... - 03:22 PM Revision 8d93c1e7 (git): [ruby/bigdecimal] Remove VP_EXCEPTION_MEMORY
- It is no longer used due to the previous commit.
https://github.com/ruby/bigdecimal/commit/7d463f802b - 03:22 PM Revision 086f3f18 (git): [ruby/bigdecimal] Remove needless pointer checks
- xmalloc and xrealloc return non-NULL pointers or raise memory error.
https://github.com/ruby/bigdecimal/commit/507f0a6a64 -
12:12 PM Revision f6256d8b (git): bisect.sh: Apply bisect.patch if exists [ci skip]
- For some external reasons, e.g. Bison 3.5.91, some commits need to
be applied retroactively in order to pass builds. -
12:00 PM Revision b7163c71 (git): Canonicalization functions were removed already
- At b958e2add835d62c0a62edaf9a23ecbbd70a3635
-
09:12 AM Bug #17477: Ractor and pp incompatibility
- marcandre (Marc-Andre Lafortune) wrote in #note-4:
> I wrote a similar opinion to Martin Dürst's in #17420. I propose that we comment there (simply because the issue is older and more general)
Thanks, I wasn't aware of #17420. Should... -
08:50 AM Revision 208192fd (git): Fixed wrong configure option
- 08:46 AM Revision 47a1f5ff (git): [ruby/bigdecimal] Define bool, true, and false for old Ruby
- https://github.com/ruby/bigdecimal/commit/a6d3bd2d44
- 08:46 AM Revision 29d012c9 (git): [ruby/bigdecimal] Alloc wrapper object before VpAlloc
- Calling TypedData_Wrap_Struct after VpAlloc may cause memory leak.
This commit reverts d11b78f9c420f39ee800b9feed4839cd28f4ff5c.
https://github.com/ruby/bigdecimal/commit/2c5a288caf - 08:46 AM Revision 13b520d5 (git): [ruby/bigdecimal] Refactor to extract VpCheckException
- https://github.com/ruby/bigdecimal/commit/6fd171308b
-
08:45 AM Revision 2f42243b (git): Make more silent when -s on GNU make
-
08:45 AM Revision d57c5a7b (git): transcode-tblgen.rb: make silent a little when just -v
-
08:45 AM Revision 365df8d3 (git): transcode-tblgen.rb: send verbose messages to STDOUT
-
07:29 AM Revision 6d077851 (git): [ruby/irb] Remove unnecessary ignore_error in dispatch_seq
- Just forgotten in https://github.com/ruby/irb/commit/a5804c3560bb1de3ea8e40002635bff87f6a2825
https://github.com/ruby/irb/commit/e42e548793 -
07:29 AM Revision f30a3a06 (git): [ruby/irb] Do not colorize partially-correct inspect
- This is to prevent a yellow-mixed output for ActiveSupport::TimeWithZone.
Follows up https://github.com/ruby/irb/pull/159 and https://github.com/ruby/ruby/pull/3967.
https://github.com/ruby/irb/commit/a5804c3560bb1de3ea8e40002635bff87f... -
07:07 AM Revision 9b7ceb67 (git): irb: add more syntax errors colorizing support (#3967)
-
07:03 AM Revision c0a2d322 (git): Update help of sync-default-gems
-
07:01 AM Revision af9d4ee1 (git): [ruby/irb] Fix failing tests
- https://github.com/ruby/irb/commit/7723ade899
-
07:01 AM Revision f9e80af2 (git): [ruby/irb] Add color_printer.rb to gemspec
- https://github.com/ruby/irb/commit/b4df0fd8b2
-
07:01 AM Revision c715fb46 (git): [ruby/irb] Enhance colored inspect output
- https://github.com/ruby/irb/commit/dffcdb5269
-
06:56 AM Feature #17187: Add connect_timeout to TCPSocket
- @PhobosK
Many thanks for reporting the issue!
I merged your patch. -
06:52 AM Revision 1ffb267c (git): Fix compile error of sockssocket
- The patch is provided by PhobosK (Phobos Kappa).
This should be backported to Ruby 3.0.
[Feature #17187] -
04:43 AM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- Seems commit:9e6e39c3512f7a962c44dc3729c98a0f8be90341 by bisect.
- 04:09 AM Revision f8555cad (git): * 2020-12-29 [ci skip]
- 03:56 AM Revision 512e0889 (git): [ruby/bigdecimal] Refactor to decompose VpNewVarArg into small functions
- https://github.com/ruby/bigdecimal/commit/7504871c48
-
03:54 AM Bug #17486 (Feedback): Build fails on darwin due to libtool being removed
-
03:50 AM Bug #17486: Build fails on darwin due to libtool being removed
- I've heard that similar error used to occur in earlier versions too,
and `sudo xcode-select -s /Library/Developer/CommandLineTools` may fix it. - 03:54 AM Revision d11b78f9 (git): [ruby/bigdecimal] Reduce needless object allocation in f_BigDecimal
- https://github.com/ruby/bigdecimal/commit/5c808eeabb
12/28/2020
-
10:21 PM Bug #17487 (Closed): rb_gc segfaults on ARM64 platforms
- Thank you for confirming. I will close this as the issue appears to have already been fixed.
-
10:12 PM Bug #17487: rb_gc segfaults on ARM64 platforms
- I cannot reproduce with 2.6.6 or 2.7.2, using those the call to rb_gc doesn't cause a segfault.
-
07:51 PM Bug #17487 (Feedback): rb_gc segfaults on ARM64 platforms
- Both Ruby 2.0 and 2.3 are out of support. Can you reproduce this on Ruby 2.6, 2.7, or 3.0?
-
07:48 PM Bug #17487 (Closed): rb_gc segfaults on ARM64 platforms
- I have a ruby native extension, and I see a segfault when calling rb_gc, so far I have seen this happening on arm64 platforms both rhel7 arm64 using ruby 2.0 and debian stretch arm64 using ruby 2.3
```
(gdb) bt
#0 0x0000ffffbe2251b... -
09:27 PM Bug #17420: Unsafe mutation of $" when doing non-RubyGems require in Ractor
- (coming to this bug from https://bugs.ruby-lang.org/issues/17477)
I think it's fine to force `require` to be called only from the main thread/ractor, at least for now. I can imagine that would simplify a lot of things.
I'd like to ... -
11:58 AM Bug #17420: Unsafe mutation of $" when doing non-RubyGems require in Ractor
- That sounds like a good way to fix it.
marcandre (Marc-Andre Lafortune) wrote in #note-3:
> the main thread could spin a private thread to do the needed `require`.
Whatever code is loaded by require can check `Thread.current`, so ... -
08:43 AM Bug #17420: Unsafe mutation of $" when doing non-RubyGems require in Ractor
- I agree that it would be best to make require work everywhere, but always be executed in the main Reactor. That would just be part of the semantics of require (comment moved from #17477).
-
09:23 PM Bug #17489 (Closed): Ractor segfaults
- I was able to boil it down to this script:
```ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem "sinatra", "~> 2.1"
end
require 'sinatra'
class App < Sinatra::Base
get '/' do
200
en... -
09:12 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- Bug requires more than 8 keys (as in the example)
-
09:08 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- I didn't run a git bisect, but this was the case already in `ruby 3.0.0preview1`
-
08:52 PM Bug #17488 (Closed): Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
- Upon upgrading a library to run on Ruby 3.0, I have observed that `Hash#key?` has non-deterministic behavior when the argument uses `DelegateClass`. This non-deterministic behavior was not present in Ruby 2.7.
Reproducing this is slig... -
08:09 PM Feature #17411: Allow expressions in pattern matching
- mame (Yusuke Endoh) wrote in #note-8:
> ktsj (Kazuki Tsujimoto) wrote in #note-7:
> ...
We also already have all theses issues/possibilities (including modifying local variables on the fly):
```ruby
var = 42
proc = ->(obj) { var =... -
05:20 PM Feature #17411: Allow expressions in pattern matching
- ktsj (Kazuki Tsujimoto) wrote in #note-7:
> If there were a obvious reason, I'd like to know that.
I can think of three reasons.
* (1) This feature makes an exhaustive check impossible (like a guard), which is not related to Ruby'... -
04:18 PM Feature #17411: Allow expressions in pattern matching
- I am basically positive.
(I've had the same idea. :) https://speakerdeck.com/k_tsj/pattern-matching-new-feature-in-ruby-2-dot-7?slide=64)
But I've been a little concerned most of languages which have pattern matching don't support su... -
07:15 PM Bug #17486 (Closed): Build fails on darwin due to libtool being removed
- The following commit is causing builds in master and for the recently released Ruby 3.0.0 to fail on darwin. This was tested on macOS Mojave using the most recent XCode and Mojave patches. The error reported is as follows:
```
compil... -
06:30 PM Feature #17474: Interpreting constants at compile time
- Your example:
```
def m(i)
$("foo#{i}")
end
```
**_would not_** work because it doesn't evaluate at parse-time to a constant value. It requires a runtime parameter ``i``, thus it can't evaluate to a constant value/object it c... -
04:52 PM Feature #17474: Interpreting constants at compile time
- > Agree but... can a JIT optimize `Set["x","y","z"].include?(v)` so that the Set is only allocated once?
Absolutely it could - TruffleRuby will today already optimise `['x', 'y', 'z'].include?('y')` to be `true` and it doesn't allocat... -
04:48 PM Feature #17474: Interpreting constants at compile time
- Eregon (Benoit Daloze) wrote in #note-13:
> Doesn't `private_constant` (no arguments) work? (if not, sounds worth adding)
No it doesn't work; "warning: private_constant with no argument is just ignored"
Being able to set the default... -
12:32 PM Feature #17474: Interpreting constants at compile time
- marcandre (Marc-Andre Lafortune) wrote in #note-9:
> Moreover, constants would ideally use `private_constant`, making the resulting code very verbose.
Doesn't `private_constant` (no arguments) work? (if not, sounds worth adding)
I... -
04:57 AM Feature #17474: Interpreting constants at compile time
- Regarding "once" syntax, I've had an idea to use `BEGIN`.
```ruby
BEGIN {/#{1+2}/} #equivalent /#{1+2}/o
BEGIN {Set["x","y","z"]}.include?(v)
BEGIN {(10**6 ... 10**7)}.include?(range)
```
I haven't considere... -
02:22 AM Feature #17474: Interpreting constants at compile time
- Some time ago I thought of basically the same idea, but in the end decided that constants were the appropriate way to handle this, so I didn't make it a proposal.
But the cases presented by Marc-Andre are remarkably compelling. It's ... -
04:42 PM Bug #15857: <=> の右辺が <=> を実装していない場合の振る舞い
- In doing a bit of maintenance work for the ruby-units gem this issue came up. I think there may be some additional methods that now need to be generated in the C code. See the following example.
```
c = Complex(1,0)
c <=> 1 # => 0
... -
02:53 PM Feature #17187: Add connect_timeout to TCPSocket
- You forgot to add the new parameter *connect_timeout* to the return statement of the function **socks_init** in sockssocket.c.
Thus the now available official sources of Ruby 3.0.0 cannot compile when sockets are enabled giving the erro... -
02:47 PM Feature #17479: Enable to get "--backtrace-limit" value by "$-B"
- I am making a library that makes error messages easier to read. Therefore, instead of using `Exception#full_message`, I need to analyze the Exception and output the error message myself.
For example, suppose I have a script like this:... -
02:05 PM Bug #17484: pry & byebug gems not working properly with Ruby 3.0.0
- It works perfectly for me. Did you `gem install pry-byebug`?
-
01:41 PM Bug #17484 (Closed): pry & byebug gems not working properly with Ruby 3.0.0
- When I try to use pry with version 3, it won't allow me. For example when I type in the command next in the terminal, an error message says: "can't escape from eval with next". When using byebug's command step, version 3 I get an error ...
-
02:04 PM Feature #17485 (Closed): Keyword argument for timezone in Time.new
- Currently, `Time.at` and `Time.now` accept a timezone as a keyword argument, but not `Time.new`.
This means minor arguments cannot be omitted for `Time.new`.
```ruby
Time.new(2021, 1, 1, 0, 0, 0, "+09:00") #=> ok: 2021-01-01 00:00:0... -
12:38 PM Feature #17473: Make Pathname to embedded class of Ruby
- I thought about FileUtils too, but it's required lazily for these two methods.
So I think it might be fine to move only Pathname to core, and accept that `Pathname#{mkpath,rmtree}` `require`s `fileutils` when used.
I think having par... -
12:30 AM Feature #17473: Make Pathname to embedded class of Ruby
- Dan0042 (Daniel DeLorme) wrote in #note-4:
> Isn't Pathname dependent on FileUtils though?
Yes. It uses only `FileUtils.mkpath` and `rm_r`. Rubygems also uses them, so @hsbt is preparing to propose making a very limited set of FileUt... -
12:35 PM Feature #16378: Support leading arguments together with ...
- Agreed it should be in 2.7 (well, I've said since the beginning of this issue :D).
Right now, I consider `...` non-existing because it's almost never usable due to the restrictions in 2.7. - 12:26 PM Revision 06b44f81 (git): [ruby/bigdecimal] [Doc] Fix the document of BigDecimal()
- [ci-skip]
https://github.com/ruby/bigdecimal/commit/905d0345ec - 12:16 PM Revision 80d9e457 (git): [ruby/bigdecimal] Reduce conditional branch count in VpNewVarArg
- https://github.com/ruby/bigdecimal/commit/741fb3e00f
-
11:53 AM Feature #17472: HashWithIndifferentAccess like Hash extension
- naruse (Yui NARUSE) wrote in #note-11:
> I think it will not fast.
Before we start considering performance trade-offs,
do we even have a benchmark where time spent in HashWithIndifferentAccess is significant for a Rails app? -
11:24 AM Feature #17472: HashWithIndifferentAccess like Hash extension
- byroot (Jean Boussier) wrote in #note-10:
> > A feature to implement Rails's ActiveSupport::HashWithIndifferentAccess
> ...
I think it will not fast. -
11:22 AM Feature #17472: HashWithIndifferentAccess like Hash extension
- > A feature to implement Rails's ActiveSupport::HashWithIndifferentAccess
Would it be possible to have a "hook" akin to `convert_key`?
e.g. something like:
```
hash = {}
hash.coerce_key = ->(key) { key.is_a?(Symbol) ? key.name... -
03:41 AM Feature #17472: HashWithIndifferentAccess like Hash extension
- My intention is
* A feature to implement Rails's ActiveSupport::HashWithIndifferentAccess, not providing HashWithIndifferentAccess itself.
* the key of internal hash should be symbol though ActiveSupport::HashWithIndifferentAccess uses... -
10:52 AM Revision 09aca50f (git): Adjusted styles [ci skip]
-
10:43 AM Revision 2eea9156 (git): Adjusted indents [ci skip]
-
10:41 AM Feature #16476: Socket.getaddrinfo cannot be interrupted by Timeout.timeout
- Dan0042 (Daniel DeLorme) wrote in #note-16:
> naruse (Yui NARUSE) wrote in #note-15:
> ...
Both `Timeout.timeout` and `deadline` is not the essential problem of this topic. The topic this ticket handles is "getaddrinfo is not interruptab... -
09:41 AM Revision a0d1152d (git): [ruby/drb] Removed needless files from Gem::Specification#files
- https://github.com/ruby/drb/commit/61c49af71b
-
07:20 AM Revision e6fee2b6 (git): [ruby/pp] Removed needless files from Gem::Specification#files
- https://github.com/ruby/pp/commit/272d4befeb
-
07:19 AM Revision 8b387bcf (git): [ruby/pp] Drop to support < Ruby 2.7
- https://github.com/ruby/pp/commit/e92228964b
-
06:47 AM Bug #17477: Ractor and pp incompatibility
- I wrote a similar opinion to Martin Dürst's in #17420. I propose that we comment there (simply because the issue is older and more general)
-
02:25 AM Bug #17477: Ractor and pp incompatibility
- My preference would be to make `require` work everywhere, but always be executed in the main Reactor. That would just be part of the semantics of `require`.
-
03:44 AM Revision 2556cd3f (git): Bypass check for warning_category on internal calls
-
03:12 AM Revision 64d79d33 (git): Suppress too big exponent warnings
-
12:45 AM Bug #17476 (Assigned): 3.0/specifications/default/net-*.gemspec repeats the same files
-
12:43 AM Bug #17483 (Rejected): Array#insert is pathologically slow
- In short, it is unavoidable.
Currently, an array is internally represented as consecutive memory area. Adding new elements into the middle of an array requires reallocation of the array, which takes O(n). Therefore, calling Array#inse...