derpydoo has quit [Read error: Connection reset by peer]
ruth2345345 has joined #pypy
<mattip>
cfbolz: I guess it would be sufficient to attach extra info to subclasses of builtin types
<mattip>
I see how cpyext does it in pyobject.py with add_direct_pyobj_storage(), is that what you would suggest?
<cfbolz>
mattip: I'm getting some coffee, then I'll take a look
<mattip>
one thing I don't understand in the use of add_direct_pyobj_storage is that it is not applied to W_AbstractIntObject
<cfbolz>
mattip: no, I was thinking of something else. in cpyext the default case, w_root_as_pyobj, will perform a dict lookup
<cfbolz>
mattip: add_direct_pyobj_storage gets rid of the dict lookup for some classes
<cfbolz>
but we only want to do that for classes where the extra word of space is not a big memory increase
<cfbolz>
making every int in pypy larger for cpyext feels like the wrong tradeoff
<cfbolz>
but anyway, in hpy the problem is different: we need that extra memory only for hpy-defined subclasses of types, right?
<mattip>
yes
<cfbolz>
ok
<mattip>
and for instances
<cfbolz>
right
<cfbolz>
instances = subclasses of object, right?
<cfbolz>
mattip: i'll try to sketch a bit of code and see how it goes, ok?
<mattip>
gr8. Then maybe we can meet up later
<arigato>
cffi warning: there is a pull request on github for cffi that adds a lot of CPython-specific stuff to c/test_c.py. PyPy should probably drop the test in pypy/module/_cffi_backend/test/test_file.py and agree that it doesn't need to follow cffi that closely any more (it's only to accomodate new CPython versions, new platforms, etc. as opposed to new features)
<arigato>
(it's what occurs right now anyway, because this "test_same_file" compares with the hg version of cffi anyway, which is now frozen)
otisolsen70 has joined #pypy
ruth2345345 has quit [Ping timeout: 252 seconds]
mgorny has quit [Quit: No Ping reply in 60 seconds.]
sam_ has quit [Remote host closed the connection]
mgorny has joined #pypy
sam_ has joined #pypy
derpydoo has joined #pypy
<cfbolz>
mattip: I did a commit to maybe fix translation, hope i didn't step on your feet with that