Hi there! @byroot knows this, but for anyone reading, Zeitwerk essentially scans the file system and sets autoloads for the expected constants. This feature is going to be great. As in the general case described in the issue descriptio...fxn (Xavier Noria)
BTW, I do not know if you know it, but while I started working on Zeitwerk to fix autoloading in Rails, I changed my mind in the mid of it and decided to do something more generic that supports multiple autoloaders in the same process ma...fxn (Xavier Noria)
Thanks for the example @mame. In my view, this is more a problem of circularity than a problem of autoload vs require. When you are loading a file, a require is executed and loads a file that needs a constant that was still not defined....fxn (Xavier Noria)
Not sure about "nesting". Last time I checked, the nesting in the program being loaded under a namespace is modified. But as I reported in https://bugs.ruby-lang.org/issues/21320, I don't think that is a good idea. If you alter the ne...fxn (Xavier Noria)
Is constant access synchronized as it is for threads? If a constant has an autoload set and 7 threads hit it, only one of them autoloads, and the rest block until that autoload has finished. This includes the case in which the winner ...fxn (Xavier Noria)
Oh, it is interesting to know there's a higher level API in the horizon. Looking forward to see what you have in mind! With that new context, a "cell" is a low-level thing with inner/independent activity, but it is permeable and can c...fxn (Xavier Noria)