cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | insert pithy quote here
yizawa has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
Atque has joined #pypy
yizawa has quit [Quit: Connection closed for inactivity]
Atque has quit [Quit: ...]
lazka has quit [Quit: Ping timeout (120 seconds)]
_0az has quit [Quit: Ping timeout (120 seconds)]
_0az3 has joined #pypy
lazka has joined #pypy
fotis has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
otisolsen70 has joined #pypy
<ctismer> ronan: Hi. I have worked a lot on type creation, and my modified version of PyType_FromSpec creates the correct types now.
<ctismer> ronan: Unfortunately, it then crashes immediately when the function `type_new` is called with PySide types. I have a minimum example which shows that things work with Python enums, but crash badly with PySide enums (as any other PySide type as well, but enums are very simple).
<ctismer> ronan: This is the outcome https://www.irccloud.com/pastebin/5eoskXry/result.txt
jacob22 has joined #pypy
<ronan> ctismer: it lokks li
<ronan> ctismer: it looks like something, ObjectType?, has a tp_itemsize but no __len__
lritter has joined #pypy
<ctismer> ronan: No, a simple type spec https://www.irccloud.com/pastebin/p4tazbGc/sbkenum.cpp
<ctismer> ronan: And here the instance type https://www.irccloud.com/pastebin/Eucu6HgG/sbkenum.cpp
<ronan> ctismer: that spec has .itemsize=sizeof(PyMemberDef)
jacob22 has quit [Quit: Konversation terminated!]
<ctismer> ronan: Ah, I'm blindet 🤪 Thanks, I'll try immediately
<ctismer> ronan: so the meta type needs a len
yizawa has joined #pypy
<ctismer> ronan: may I hug you? This is such an improvement 🤗
<LarstiQ> yay! :)
<LarstiQ> ctismer: does this now mean PySide completely works on pypy? ;)
<ctismer> LarstiQ: A few things work. At least the inheritance is now ok. A lot of things don't work, yet.
<ctismer> LarstiQ: I tried (whatelse?) `examples//corelib/threads/mandelbrot.py` and that computes but shows an empty picture. But no segfault any longer 🤩
rindolf has quit [Ping timeout: 260 seconds]
<ctismer> LarstiQ: I'd say, the real work is starting now.
<ctismer> ronan: I've set itemsize to zero and things work. But is this right? `PyType_Type` has `sizeof(PyMemberDef)`, but `type` has no `__len__`, either?
<ctismer> ronan: (but is ofc. no heaptype)
<LarstiQ> ctismer: I get what you're saying, but the work so far has been rather real too :)
<ctismer> LarstiQ: Yeah, well. At least it seems to be more straightforward now with very few crashes. When Mandelbrot works, I will take a pause ⛱️
<ronan> ctismer: it's correct for pypy, which basically ignores tp_basicsize and tp_itemsize when allocating types, but I guess not for CPython
<ctismer> ronan: So I should do an ifdef here? How comes that I did not know that? 😂
Julian has joined #pypy
<ronan> ctismer: yes, I think you need an ifdef
Julian has quit [Ping timeout: 264 seconds]
Dejan has quit [Quit: Leaving]
Julian has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 264 seconds]
greedom has joined #pypy
yizawa has quit [Quit: Connection closed for inactivity]
greedom has quit [Remote host closed the connection]
greedom has joined #pypy
greedom has quit [Remote host closed the connection]
Julian has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
Julian has quit [Quit: leaving]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
yizawa has joined #pypy
jacob22_ has quit [Ping timeout: 246 seconds]
jacob22_ has joined #pypy
otisolsen70 has quit [Ping timeout: 252 seconds]
yizawa has quit [Quit: Connection closed for inactivity]
stkrdknmibalz has joined #pypy
Atque has joined #pypy
lritter has quit [Ping timeout: 252 seconds]