General

Profile

vinistock (Vinicius Stock)

  • Login: vinistock
  • Registered on: 10/03/2019
  • Last sign in: 11/14/2025

Issues

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

Activity

07/28/2025

06:41 PM Ruby Bug #21139: Prism and parse.y parses `it = it` differently
Thanks for the context, I understand your point about consistency. So this case
```ruby
42.tap { |x| x = x; p x }
```
Works because by the time we reach `x = x`, the block parameter already declared `x` as a local and so it doesn...
vinistock (Vinicius Stock)
05:17 PM Ruby Bug #21139: Prism and parse.y parses `it = it` differently
No, I don't mean all variables. However, the `it` case feels unintuitive because `it` refers to the first argument of the block. Take this other example here:
```ruby
42.tap { it = it; p it }
42.tap { |x| x = x; p x }
```
To me,...
vinistock (Vinicius Stock)
02:01 PM Ruby Bug #21139: Prism and parse.y parses `it = it` differently
Bringing my comment from the [pull request](https://github.com/ruby/prism/pull/3604) here. Reviewed with [@AMomchilov](https://bugs.ruby-lang.org/users/51722)
We wonder if Prism's current behaviour is more intuitive for developers. In...
vinistock (Vinicius Stock)

06/03/2023

01:42 AM Ruby Revision a4d92475 (git): [ruby/rdoc] Auto-correct trailing new lines
https://github.com/ruby/rdoc/commit/4b68c0728a vinistock (Vinicius Stock)

04/12/2023

06:39 PM Ruby Misc #19431: DevMeeting at RubyKaigi 2023
I'll attend. vinistock (Vinicius Stock)

10/29/2021

01:21 PM Ruby Feature #18275: Add an option to define_method to not capture the surrounding environment
> I can't get your point.
> ...
If we create a method using `define_method`, it only exists in the Ractor that made the invocation. Trying to invoke that method from a different Ractor throws an error (something like `defined in another...
vinistock (Vinicius Stock)

10/28/2021

05:44 PM Ruby Feature #18275: Add an option to define_method to not capture the surrounding environment
Regarding the examples, they are over simplified for the sake of understanding. Sure, you wouldn't need `define_method` in those cases. I'm talking more generally when someone needs to capture a block or surrounding locals to use in `def... vinistock (Vinicius Stock)

10/27/2021

07:27 PM Ruby Feature #18275 (Assigned): Add an option to define_method to not capture the surrounding environment
Invoking `define_method` will capture the surrounding environment, making sure we have access to anything defined in that surrounding scope. However, that’s not always necessary. There are uses for `define_method` where the surrounding e... vinistock (Vinicius Stock)

08/18/2021

08:44 PM Ruby Bug #18117 (Closed): Segmentation fault when yielding values from Ractors during GC sweeping
[Link for GitHub PR containing the fix](https://github.com/ruby/ruby/pull/4755)
Ractors may invoke `rb_objspace_reachable_objects_from` when yielding values back to the main-Ractor. If this occurs during a sweeping pass of the GC, the...
vinistock (Vinicius Stock)

07/18/2021

08:45 AM Ruby Revision 4f7c3f63 (git): [ruby/openssl] Include peer socket IP address in errors
https://github.com/ruby/openssl/commit/8a1e3f5085 vinistock (Vinicius Stock)

Also available in: Atom