<vstinner>
mattip: hi. "I recently implemented compact strings for PyPy, following the CPython implementation" interesting. did you do that for make more C extensions compatible? or because it is more efficient for your usecase?
<vstinner>
mattip: Inada-san wants to use UTF-8 in CPython, so the opposite
<cfbolz>
vstinner: I think it's for the C api, yes
<vstinner>
so to fully implement the CPython C API, one must simply copy the exact implementation of all Python objects. oh wait.
<cfbolz>
there are certainly some parts of the API that prescribe the implementation, yes
<mattip>
vstinner: I did compact strings for compatibility, the speed boost was an extra benefit
<mattip>
if Inada-san uses UTF-8 in CPython, they can use the same pattern as we do
<mattip>
for some reason, the C-API exposes many details around string storage, so indeed, implementing the C-API requires something much like the CPython implementation
<mattip>
in the case of containers (dictionaries, lists, tuples, sets), there is less exposure
<mattip>
ast and dis support also requires close adherance to the CPython implementation
fotis has quit [Ping timeout: 250 seconds]
fotis has joined #pypy
jryans has quit [Quit: Bridge terminating on SIGTERM]
daubers has quit [Quit: Bridge terminating on SIGTERM]
ambv has quit [Quit: Bridge terminating on SIGTERM]
the_drow has quit [Quit: Bridge terminating on SIGTERM]
jryans has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
fotis has quit [Ping timeout: 250 seconds]
the_drow has joined #pypy
daubers has joined #pypy
ambv has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 244 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 245 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 244 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 244 seconds]
Julian has joined #pypy
fotis has joined #pypy
lazka has quit [Quit: Ping timeout (120 seconds)]
lazka has joined #pypy
fotis has quit [Ping timeout: 245 seconds]
Julian has quit [Ping timeout: 244 seconds]
Julian has joined #pypy
jacob22 has joined #pypy
gef_ has quit [Ping timeout: 250 seconds]
gef has quit [Ping timeout: 244 seconds]
gef has joined #pypy
gef_ has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
fotis has joined #pypy
fotis has quit [Ping timeout: 244 seconds]
Julian has quit [Ping timeout: 240 seconds]
Julian has joined #pypy
dmalcolm has quit [Remote host closed the connection]