General

Profile

fxn (Xavier Noria)

  • Login: fxn
  • Email: fxn@hashref.com
  • Registered on: 03/21/2010
  • Last connection: 04/10/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 3 4

Activity

08/07/2021

06:18 PM Ruby master Bug #15790: Strange interaction between autoload and $LOADED_FEATURES
BTW, Zeitwerk has its own "Ruby compatibility suite" for language details the implementation relies on. Like, you can... fxn (Xavier Noria)
06:14 PM Ruby master Bug #15790: Strange interaction between autoload and $LOADED_FEATURES
Indeed, to me, this belongs to the contract of these APIs and should be documented.
The documentation of `Module#a...
fxn (Xavier Noria)
01:17 PM Ruby master Bug #15790: Strange interaction between autoload and $LOADED_FEATURES
Indeed, the concept of undefined constants for me is dubious. An autoload claims that the constant should be in the g... fxn (Xavier Noria)
01:14 PM Ruby master Bug #15790: Strange interaction between autoload and $LOADED_FEATURES
I deleted my previous comment, misunderstood the situation.
Yeah, in my view if you fire an autoload, the autoload...
fxn (Xavier Noria)

07/18/2021

09:19 AM Ruby master Feature #17881: Add a Module#const_added callback
Followup here.
Before I started working on Zeitwerk, I benchmarked whether a TP enabled on the `:class` event had a ...
fxn (Xavier Noria)

05/23/2021

12:10 PM Ruby master Feature #17881: Add a Module#const_added callback
> Would trigger on Foo::Bar = Class.new. (This one being a current limitation with TracePoint if I'm not mistaken)
C...
fxn (Xavier Noria)
07:08 AM Ruby master Feature #17881: Add a Module#const_added callback
> If I'm not mistaken, such usage could cause the TracePoint to stay active at runtime, which isn't a huge deal, but ... fxn (Xavier Noria)
05:52 AM Ruby master Feature #17881: Add a Module#const_added callback
Oh, and while Zeitwerk can disable the TracePoint, it wouldn't be able to disable `on_new_module(&block)`, at most ha... fxn (Xavier Noria)
05:36 AM Ruby master Feature #17881: Add a Module#const_added callback
Another gotcha I see is that we cannot assume `const_added` is exclusive to Zeitwerk. Users could have their own. So ... fxn (Xavier Noria)

05/22/2021

05:29 PM Ruby master Feature #17881: Add a Module#const_added callback
> If I'm not mistaken, such usage could cause the TracePoint to stay active at runtime, which isn't a huge deal, but ... fxn (Xavier Noria)

Also available in: Atom