General

Profile

matthewd (Matthew Draper)

  • Login: matthewd
  • Email: matthew@trebex.net
  • Registered on: 12/11/2013
  • Last sign in: 11/04/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 2 3

Activity

04/20/2024

06:58 AM Ruby Feature #15554: warn/error passing a block to a method which never use a block
Eregon (Benoit Daloze) wrote in #note-40:
> With the example from @mame, I think adding `(&)` or `(&on_missing)` for `Attribute::Attribute#value` would be good to clarify the value method can receive a block, and purposefully ignores it...
matthewd (Matthew Draper)

09/07/2023

08:51 PM Ruby Revision ed712e0e (git): Skip allocation if handle_interrupt arg is already usable
If the supplied hash is already frozen and compare-by-identity, we can
use it directly (still checking its contents are valid symbols), without
making a new copy.
matthewd (Matthew Draper)
08:51 PM Ruby Revision aed52151 (git): Optimize handle_interrupt(Exception => ..) as a common case
When interrupt behavior is configured for all possible exceptions using
'Exception', there's no need to iterate the pending exception's
ancestors for hash lookups.
More significantly, by storing the catch-all timing symbol directly in
t...
matthewd (Matthew Draper)

10/26/2022

07:27 PM Ruby Revision c746f380 (git): YJIT: Support nil and blockparamproxy as blockarg in send (#6492)
Co-authored-by: John Hawthorn <john@hawthorn.email>
Co-authored-by: John Hawthorn <john@hawthorn.email>
matthewd (Matthew Draper)

07/28/2022

03:38 PM Ruby Revision ab08a43e (git): YJIT: Teach getblockparamproxy to handle the no-block case without exiting (#6191)
Teach getblockparamproxy to handle the no-block case without exiting
Co-authored-by: John Hawthorn <john@hawthorn.email>
Co-authored-by: John Hawthorn <john@hawthorn.email>
matthewd (Matthew Draper)

02/15/2022

01:25 PM Ruby Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
The trouble with using `send` in this [general] situation is that it makes it too equally-easy to reach into _all_ internals: you want access to methods that are suitable for a collaborator but not a downstream user, but you can also imm... matthewd (Matthew Draper)

02/14/2022

03:02 PM Ruby Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
> Calling "private/protected" methods on another object feels rather wrong to me.
The whole point of `protected` is that it allows you to call methods on another object. But I assume you meant another object that is not an instance of...
matthewd (Matthew Draper)

02/04/2022

11:49 AM Ruby Feature #18568: Explore lazy RubyGems boot to reduce need for --disable-gems
> Over 80% of CRuby's base startup is due to eagerly booting RubyGems. We can do better!
It's not the main point here, but perhaps still worth noting: `--disable-gems` implies `--disable=error_highlight,did_you_mean`.
In my own brief l...
matthewd (Matthew Draper)

03/28/2019

12:28 PM Ruby Feature #15554: warn/error passing a block to a method which never use a block
This is great! Ignored blocks can be very confusing.
> A method called by super doesnt warn warning even if this method doesn't use a block.
> ...
Would it be possible for a method called by `super` to only ignore an unexpected block...
matthewd (Matthew Draper)

10/25/2017

10:01 AM Ruby Feature #14045: Lazy Proc allocation for block parameters
This is excellent news indeed!
Do you think a similar technique could work for passing along `*args` in the future?
It would be great if simple delegation could get a similar gain by going zero-allocation:
~~~
def goal a, b
...
matthewd (Matthew Draper)

Also available in: Atom