Seems there new movement on related changes but I wanted to add some thoughts. __FILE__ as syntax rather than method eliminates a bunch of side effect behavior that makes __dir__ troublesome: * It needs access to the caller frame o...headius (Charles Nutter)
> I'd gently push back on this, because switching to a thread already does exactly that today, and has for 20 years: This is not actually true. Your example works that way because a thread clones its block's immediate frame. If the fram...headius (Charles Nutter)
ioquatix (Samuel Williams) wrote in #note-24: > @matz > ... It's a lovely idea but a very specific exception to introduce. These variables are specified to live in the nearest method frame, with no consideration for fiber locality. Lots ...headius (Charles Nutter)
The io-wait library transitioned to core in 3.2 and is now an empty and deprecated gem. Only require it if running on Ruby versions earlier than 3.2. https://github.com/ruby/net-protocol/commit/1f84c9c60bheadius (Charles Nutter)
The io-wait library transitioned to core in 3.2 and is now an empty and deprecated gem. Only require it if running on Ruby versions earlier than 3.2. https://github.com/ruby/resolv/commit/2b5db02843headius (Charles Nutter)
The functionality of this gem was moved into core Ruby starting with Ruby 3.2, and at this point both the C extension and the Java extension define no additional classes or methods. This patch fully removes both extensions, replacing the...headius (Charles Nutter)
> Both Java's WeakHashMap and JRuby's variant clean references in size(), so there is no issue there: But your "failing" example only runs a single GC, which may not always be sufficient to clear the reference, in which case the size ...headius (Charles Nutter)
The implementation of WeakMap on JRuby probably behaves the same, because it uses weak references that are only cleaned along certain code paths. As you (@eregon) know, the JVM GC will vacate weak references, but handling the now-dead...headius (Charles Nutter)
Popping back in to say I support the Fiber-isolated direction here but don't have strong opinions about the potential breaking cases. I've disliked supporting these variables for years so anything we can do to limit their scope is ok by ...headius (Charles Nutter)