
It's more accurate to think of an HPy handle as a pointer or an index (much as in your original proposal). There is no proxy object in HPy at all. The handle is just an opaque reference -- i.e. an index or a pointer that one cannot use to access any memory layout or state directly. Yes, sorry for confusing you, am in agreement with this definition of handles, i.e just a reference to the object, And all we do is update the handle in case of moving etc
On Tue, Jun 8, 2021 at 11:14 AM Simon Cross <hodgestar@gmail.com> wrote:
On Tue, Jun 8, 2021 at 3:22 PM Joannah Nanjekye <nanjekyejoannah@gmail.com> wrote:
I sort of think of a handle as a lightweight proxy object (just like used in cpyext)
It's more accurate to think of an HPy handle as a pointer or an index (much as in your original proposal). There is no proxy object in HPy at all. The handle is just an opaque reference -- i.e. an index or a pointer that one cannot use to access any memory layout or state directly.
-- Best, Joannah Nanjekye
*"You think you know when you learn, are more sure when you can write, even more when you can teach, but certain when you can program." Alan J. Perlis*