Hi @tenderlovemaking! I'm having difficulty interpreting the results of the `ObjectSpace` dump and I'm hoping you can help. I've adjusted the script to print out the address of the underlying object, and then (when the issue manifests...parker (Parker Finch)
tenderlovemaking (Aaron Patterson) wrote in #note-7: > That method may not be putting the object in a register. Something else may have put it in a register or in the stack, and it just happens that no other machine code has overwritte...parker (Parker Finch)
Thanks for that explanation @tenderlovemaking, it helps and I truly appreciate it! One misunderstanding I had was that I was thinking about this in terms of the Ruby VM. But it seems like garbage collection actually occurs down at the...parker (Parker Finch)
Thanks @byroot! I think this could be considered a bug in the documentation, since the [docs for WeakRef](https://ruby-doc.org/stdlib-3.1.2/libdoc/weakref/rdoc/WeakRef.html) imply that a `WeakRef` should be collected after a garbage coll...parker (Parker Finch)
I am able to get into an infinite loop waiting for garbage collection to take a WeakRef. ### Reproduction Process The following script prints a "0", then a "1", and then hangs forever. I expect it to keep printing numbers. ``` requ...parker (Parker Finch)
I like `#accumulate`, and thank you @nobu for an implementation [here](https://github.com/ruby/ruby/pull/3361)! Is there anything I can do to help us come to a decision on this one?parker (Parker Finch)
y.annikov (Yakov Annikov) wrote in #note-35: > What about `#cumulate`? Does it sound natural? I'm not as familiar with the verb "cumulate", so it doesn't sound as natural to me as "accumulate". But that being said, I don't think ther...parker (Parker Finch)
* [Feature #17016] Enumerable#scan_left (parker) * This is a proposal to add a method to enumerable that accumulates the results of injecting an operation over the enumerable. There is interest in adding this method, but concern about ...parker (Parker Finch)
Dan0042 (Daniel DeLorme) wrote in #note-33: > ... what about `#cumulative` ? Oh that's interesting! I had leapt straight to verbs since that tends to be the pattern for methods that transform enumerables, but the examples of `[1,2,3...parker (Parker Finch)