General

Profile

Dan0042 (Daniel DeLorme)

  • Login: Dan0042
  • Registered on: 06/09/2016
  • Last sign in: 09/04/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 16 27 43

Activity

09/20/2026

05:17 PM Ruby Feature #22304: Add rb_warn_to_remove_at() for deprecation warnings shown by default
> A major version bump is a chance to introduce incompatibilities, so I think we should decide for each deprecation whether to keep the schedule or to remove it at the major version.
Ok I see, that makes sense. It might also be useful...
Dan0042 (Daniel DeLorme)

09/18/2026

05:48 PM Ruby Feature #22304: Add rb_warn_to_remove_at() for deprecation warnings shown by default
shugo (Shugo Maeda) wrote in #note-5:
> a year cannot be converted to a version at compile time.
I don't understand why converting a year to a version at compile time would be needed. We would need to compare `year >= RUBY_RELEASE_YE...
Dan0042 (Daniel DeLorme)
10:54 AM Ruby Feature #22304: Add rb_warn_to_remove_at() for deprecation warnings shown by default
I very much like the idea, but the issue with version numbers is that major version jumps break linear assumptions.
For example, in 2023 (Ruby 3.3), if we want to deprecate something in 3 years, we might target 3.6. But as Ruby jumped f...
Dan0042 (Daniel DeLorme)

07/25/2026

03:04 PM Ruby Feature #17056: Array#index: Allow specifying the position to start search as in String#index
### 1. Object, block, and Enumerator forms
Imho there are two options here
a) If block form is supported, the offset is a keyword argument.
It was not requested by the OP (also not in my duplicate #19177), but it's more versatile ...
Dan0042 (Daniel DeLorme)

06/24/2026

02:47 PM Ruby Feature #22118: Introduce Basic Bit Operations into String
Introducing efficient bit operations is a great idea, but looking at the proposed methods, having to pass `lsb_first:` repeatedly across multiple bit-related methods suggests that the bit-endianness is a cross-cutting concern.
I belie...
Dan0042 (Daniel DeLorme)

06/10/2026

07:47 PM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
I'm bumping this because just today I wished Ruby had this feature (although the discussion above seems to have diverged quite a bit)
```ruby
Dependencies = {}
def require_dep(filename)
Dependencies[filename] = [Time.now]
requ...
Dan0042 (Daniel DeLorme)
07:29 PM Ruby Feature #19315: Lazy substrings in CRuby
You have mostly convinced me about backward compatibility, but I still find that new API awkward.
I may be bikeshedding here, but is there a precedent in Ruby for a macro that assigns multiple variables? Given the new API is meant to ...
Dan0042 (Daniel DeLorme)
01:11 AM Ruby Feature #19315: Lazy substrings in CRuby
> I think that we don't need to introduce `RSTRING_RAW_END()` or something. We can just recommend `RSTRING_RAW_PTR() + RSTRING_LEN()` instead of `RSTRING_END()`.
Then what was the original purpose of introducing `RSTRING_END()` in the f...
Dan0042 (Daniel DeLorme)

06/04/2026

05:55 PM Ruby Feature #19315: Lazy substrings in CRuby
> `RSTRING_CSTR()` doesn't check whether `\0` is included in the target content or not.
That is a very good point. In that case, perhaps the new NUL-terminated macro should instead alias or behave similarly to `StringValueCStr()`. Other...
Dan0042 (Daniel DeLorme)

06/03/2026

05:56 PM Ruby Feature #19315: Lazy substrings in CRuby
I agree that completely deprecating RSTRING_PTR might not be strictly necessary, but for the sake of a smooth migration, I highly recommend introducing RSTRING_CSTR as an alias for the new, NUL-terminated RSTRING_PTR behavior.
Introdu...
Dan0042 (Daniel DeLorme)

Also available in: Atom