General

Profile

Earlopain (Earlopain _)

  • Login: Earlopain
  • Registered on: 04/24/2024
  • Last sign in: 05/08/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 5 32 37

Projects

Project Roles Registered on
Ruby Contributor 12/08/2025

Activity

05/09/2026

06:16 AM Ruby Revision ec0a6af1 (git): [ruby/syntax_suggest] Handle `on_sp` when using prism
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.
Ref:
* https://github.com/ruby/ruby/pull/15914
* https://github.com/ruby/prism/pull/3...
Earlopain (Earlopain _)
06:16 AM Ruby Revision de535e90 (git): [ruby/syntax_suggest] v2.0.3
https://github.com/ruby/syntax_suggest/commit/a81b92fcf2
[Bug #21847]
Earlopain (Earlopain _)

05/08/2026

08:12 PM Ruby Revision dc90c26a (git): [ruby/prism] Respect `encoding` option in `Prism.lex` and friends
utf-8 is the default for source files but can be overwritten via options
https://github.com/ruby/prism/commit/355f451528
Earlopain (Earlopain _)
08:12 PM Ruby Revision 07ae044b (git): [ruby/prism] Take the strings encoding as the initial encoding in the ripper translator
When no magic encoding comment is present, it does not default to utf-8,
and takes the encoding of the string that contains the source code instead.
Most of the time that will be utf-8, but not always.
https://github.com/ruby/prism/comm...
Earlopain (Earlopain _)

05/07/2026

08:27 PM Ruby Revision 203d1271 (git): [ruby/prism] Use less `visit_token` in the ripper translator
The ripper translator is a good resource when porting ripper usage over to prism
A few places use `visit_token` when it can be more specific.
A call operator for example can ever only be one of three things.
A positional argument can on...
Earlopain (Earlopain _)

05/04/2026

03:22 PM Ruby Revision 0cbd210c (git): [ruby/prism] Optimize ripper bounds
Basically a port of https://github.com/ruby/ruby/commit/c45f781771314a71856c9b348c640ba532f54349 into ruby
It's quite effective at ~97% hit rate for me.
Speeds it up from ~6.77x slower to only 4.07x slower.
For the lexer `on_sp` it als...
Earlopain (Earlopain _)
03:22 PM Ruby Revision 1367f885 (git): [ruby/prism] Freeze the parse result for the ripper translator
It's a small, somewhat hacky performance boost. Locations are lazy, by freezing the
result they don't have to be pack/unpacked redundantly.
This gives about a 4% speed boost.
Other changes are to not modify the frozen AST
https://githu...
Earlopain (Earlopain _)
03:22 PM Ruby Revision 1aa62e89 (git): [ruby/prism] Optimize ripper `visit_token`
It was showing up in profiles.
So:
* Don't splat `KEYWORDS` (also did the same for `BINARY_OPERATORS`)
* Use `start_with?` if possible
Overall gives a ~5% speed boost
https://github.com/ruby/prism/commit/d611aa9d11
Earlopain (Earlopain _)

05/03/2026

09:56 PM Ruby Revision 4b6040ca (git): [ruby/strscan] Fix `call-seq` formatting
(https://github.com/ruby/strscan/pull/203)
They don't work in included markdown and also need a leading `:`
<img width="791" height="442" alt="grafik"
src="https://github.com/user-attachments/assets/eca5d4c2-9597-4c58-a0cc-a4e2c9109992...
Earlopain (Earlopain _)

05/01/2026

07:25 PM Ruby Revision f2845eab (git): Add back note about regexp /x comment limitation
It was dropped in https://github.com/ruby/ruby/commit/932dd9f10e684fa99b059054fbc934607d85b45a Earlopain (Earlopain _)

Also available in: Atom