General

Profile

alanwu (Alan Wu)

  • Login: alanwu
  • Registered on: 10/28/2018
  • Last sign in: 07/20/2026

Issues

open closed Total
Assigned issues 4 27 31
Reported issues 1 49 50

Projects

Project Roles Registered on
Ruby Committer 03/19/2021

Activity

07/20/2026

05:34 PM Ruby Feature #22182: Poor man's escape analysis
> can we expect that allocation elision in hot loops will be achieved in the same way as this proposal does?
Yes, more or less. The code transforms to something like if you had put a `struct RArray` as a local variable and worked with...
alanwu (Alan Wu)

07/16/2026

11:10 PM Ruby Feature #22182: Poor man's escape analysis
> The bigger headache for me was flagged objects escaping...
Yeah, that is a tricky part of this that'd be nice to not carry. I'm glad we seem to agree that `ObjectSpace.each_object` isn't high priority to keep stable: when ZJIT remov...
alanwu (Alan Wu)

07/15/2026

10:26 PM Ruby Feature #22182: Poor man's escape analysis
From my perspective as a JIT dev: this will probably be profitable for a good while, though it does incur some maintenance burden for everyone. The JIT looks to the interpreter and the stock implementation of core methods for guidance on... alanwu (Alan Wu)

07/10/2026

10:31 PM Ruby Revision 3beab866 (git): ZJIT: Port tests to the rust harness and rename to test_zjit_cli.rb
New and returning contributors have been tripped up by adding tests to
test_zjit.rb instead of to zjit/src/codegen_tests.rs, where new tests
of the sort should go 99.9% of the time. Let's port and rename to make
this clear.
There are st...
alanwu (Alan Wu)
10:31 PM Ruby Revision c0a2282b (git): ZJIT: Edit testing sections in zjit.md
Running just one file under test/ is not running all tests. alanwu (Alan Wu)

07/09/2026

11:20 PM Ruby Revision 014f7f1a (git): YJIT: Fix `warn(unused_assignments)` in test_gen_opt_reverse
Previously:
```
warning: value assigned to `value_array` is never read
--> yjit/src/codegen.rs:11446:9
|
11446 | value_array[1] = 4;
| ^^^^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten bef...
alanwu (Alan Wu)

07/08/2026

07:16 PM Ruby Revision 513a6d47 (git): ZJIT: Delete test-only vm_stack_canary definition
We always link with the miniruby now so there is no need for this dance. alanwu (Alan Wu)

07/07/2026

07:25 PM Ruby Misc #22180: Provide official Windows (mswin) binary packages and a version manager
It looks like packaging `vcruntime140.dll` is dubious, because it gets security updates all the time, even if it's not a direct violation of Microsoft's redistribution terms: https://www.quora.com/Am-I-legally-allowed-in-C-Visual-Studio-... alanwu (Alan Wu)

07/06/2026

07:26 PM Ruby Revision 9d920a71 (git): ZJIT: Limit local reloads after send to ones syntactically written to
alanwu (Alan Wu)
07:26 PM Ruby Revision 14a0afdc (git): ZJIT: Skip tests that write to locals in `eval` for `--zjit-disable-hir-opt`
I had a go trying to fix these at
<https://github.com/ruby/ruby/pull/17417>, but the full fix is quite
involved. Let's skip for now since filtering local reloads fixes
correctness issues with inlining in the default configuration.
alanwu (Alan Wu)

Also available in: Atom