General

Profile

headius (Charles Nutter)

Issues

open closed Total
Assigned issues 0 23 23
Reported issues 20 95 115

Projects

Project Roles Registered on
Ruby Committer 12/13/2012

Activity

04/28/2026

12:56 AM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
> If I'm understanding you correctly, then what you would like for source_range for the example for foo and bar methods is then:
I don't claim to have any suggestion for HERE docs because of the disjoint problem you mentioned. But cle...
headius (Charles Nutter)
12:41 AM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
> The only choice for Prism.find there is to return the ForNode
`for` syntax does not parse as a ForNode without the block, so the two are not separable. Calls do parse without the block and remain CallNode. A block is an argument to ...
headius (Charles Nutter)

04/26/2026

11:24 PM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
> The example of define_method(:foo) { ... } was given
define_method is just a method call like any other. It should not be included in the range for the syntactic construct that is the block.
What about do..end with a huge piece of c...
headius (Charles Nutter)

04/18/2026

11:21 PM Ruby Bug #22007: Inconsistent type checking on rescue
byroot (Jean Boussier) wrote in #note-8:
> I suspect removing that limitation wouldn't prevent JITs from optimizing the overwhelming majority of `rescue` statements as they'd still only list one of a few classes.
Well, it wouldn't be...
headius (Charles Nutter)
03:54 AM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
Eregon (Benoit Daloze) wrote in #note-7:
> For the start position I think either is fine.
> ...
The `proc` part is irrelevant to the source of the block, and is only a method call receiver for a block argument. We wouldn't include any ...
headius (Charles Nutter)

04/17/2026

09:39 PM Ruby Bug #22007: Inconsistent type checking on rescue
I think the better fix would be to reject literal types that are clearly not going to match. Ideally, the only cases that should be admitted to a rescue would be constant accesses, or other expressions that could potentially resolve a ty... headius (Charles Nutter)
11:41 AM Ruby Feature #21962: Add deep_freeze for recursive freezing
matz (Yukihiro Matsumoto) wrote in #note-4:
> `Ractor.make_shareable` does more than deep freezing and exists for Ractor. Its presence does not by itself justify `deep_freeze` in core.
But deep freezing is the most visible effect, an...
headius (Charles Nutter)

04/01/2026

02:03 PM Ruby Revision 8824fd3b (git): [ruby/prism] Generate templated sources under main/java-templates
This path avoids the sources getting wiped out during `mvn clean`,
since they are not generated during the maven build.
This patch also moves the generated WASM build under src/main/wasm
since it is really a source file and not a test f...
headius (Charles Nutter)

03/24/2026

01:37 PM Ruby Revision cf3e7dd0 (git): [ruby/prism] Begin splitting the Java artifact into components
* The Loader API lives under java/api.
* The current native endpoint for the Prism shared library lives
under java/native.
* The WASM build and binding lives under java/wasm.
The libraries will be released together but can be develope...
headius (Charles Nutter)
01:37 PM Ruby Revision 9e733288 (git): [ruby/prism] Rework Java template generation for Maven build
This uses the JRuby rake-maven-plugin to generate the templates
as part of the Maven build. The generated output for the Java
templates will be under java/api/target/generated-sources/java.
https://github.com/ruby/prism/commit/b257151391
headius (Charles Nutter)

Also available in: Atom