cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
oberstet has joined #pypy
<mattip> nulano: any idea why the rpython run on win64 is timing out with a "SIGKILL failed to kill process" ?
<mattip> the host "python" for the tests is pypy 2.7.18 (8ef001285964, Mar 21 2021, 11:38:48)
tos9 has quit [Ping timeout: 240 seconds]
yuiza has joined #pypy
yuiza has quit [Ping timeout: 246 seconds]
yuiza1 has joined #pypy
oberstet has quit [*.net *.split]
ronan has quit [*.net *.split]
WGH_ has quit [*.net *.split]
_aegis__ has quit [*.net *.split]
ctismer__ has quit [*.net *.split]
dnshane has quit [*.net *.split]
stillinbeta has quit [*.net *.split]
Civil has quit [*.net *.split]
JStoker has quit [*.net *.split]
rubdos has quit [*.net *.split]
andi- has quit [*.net *.split]
krono has quit [*.net *.split]
sknebel has quit [*.net *.split]
astronavt has quit [*.net *.split]
_habnabit has quit [*.net *.split]
Ninpo has quit [*.net *.split]
[Arfrever] has quit [*.net *.split]
gsnedders has quit [*.net *.split]
arigato has quit [*.net *.split]
danchr has quit [*.net *.split]
ShadeJonathan[m] has quit [*.net *.split]
astrojl_matrix has quit [*.net *.split]
idnar has quit [*.net *.split]
infernix has quit [*.net *.split]
exarkun has quit [*.net *.split]
Ashleee has quit [*.net *.split]
papangoo[m] has quit [*.net *.split]
toad_polo has quit [*.net *.split]
FergusL has quit [*.net *.split]
redj has quit [*.net *.split]
kiprasz has quit [*.net *.split]
vstinner has quit [*.net *.split]
Taggnostr has quit [*.net *.split]
EWDurbin has quit [*.net *.split]
nimaje has quit [*.net *.split]
michelp has quit [*.net *.split]
cfbolz has quit [*.net *.split]
ronny has quit [*.net *.split]
Lightsword has quit [*.net *.split]
simpson has quit [*.net *.split]
string has quit [*.net *.split]
mwhudson has quit [*.net *.split]
tbodt has quit [*.net *.split]
Cheery_ has quit [*.net *.split]
todda7 has quit [*.net *.split]
ebarrett has quit [*.net *.split]
ammar2 has quit [*.net *.split]
kbtr has quit [*.net *.split]
jacob22_ has quit [*.net *.split]
mgorny has quit [*.net *.split]
wallet42____ has quit [*.net *.split]
phlebas has quit [*.net *.split]
graingert has quit [*.net *.split]
pjenvey has quit [*.net *.split]
pmp-p has quit [*.net *.split]
avakdh has quit [*.net *.split]
DRMacIver has quit [*.net *.split]
dstufft has quit [*.net *.split]
igitoor has quit [*.net *.split]
jaraco has quit [*.net *.split]
samth has quit [*.net *.split]
atomizer has quit [*.net *.split]
mjacob has quit [*.net *.split]
commandoline has quit [*.net *.split]
holdsworth has quit [*.net *.split]
dustinm has quit [*.net *.split]
dmalcolm has quit [*.net *.split]
jiffe has quit [*.net *.split]
energizer has quit [*.net *.split]
Techcable has quit [*.net *.split]
nulano has quit [*.net *.split]
lazka has quit [*.net *.split]
yuiza1 has quit [*.net *.split]
proteusguy has quit [*.net *.split]
jvesely has quit [*.net *.split]
bbot2 has quit [*.net *.split]
Eyess has quit [*.net *.split]
luizirber_ has quit [*.net *.split]
nopf has quit [*.net *.split]
shodan45 has quit [*.net *.split]
alcarith1 has quit [*.net *.split]
lastmikoi has quit [*.net *.split]
Hodgestar has quit [*.net *.split]
jryans has quit [*.net *.split]
tumbleweed has quit [*.net *.split]
runciter has quit [*.net *.split]
7F1AAACW7 has quit [*.net *.split]
agronholm has quit [*.net *.split]
altendky has quit [*.net *.split]
jeroud has quit [*.net *.split]
the_rat has quit [*.net *.split]
antocuni has quit [*.net *.split]
trfl has quit [*.net *.split]
Kronuz has quit [*.net *.split]
Gustavo6046 has quit [*.net *.split]
Dejan has quit [*.net *.split]
glyph has quit [*.net *.split]
gutworth has quit [*.net *.split]
LarstiQ has quit [*.net *.split]
tazle has quit [*.net *.split]
raekye has quit [*.net *.split]
fijal has quit [*.net *.split]
whitewolf has quit [*.net *.split]
ulope has quit [*.net *.split]
59NAAAAUC has quit [*.net *.split]
Eyess has joined #pypy
[Arfrever] has joined #pypy
jiffe_ has joined #pypy
agronholm has joined #pypy
graingert has joined #pypy
infernixx has joined #pypy
altendky has joined #pypy
graingert has joined #pypy
agronholm has joined #pypy
altendky has joined #pypy
graingert has quit [Changing host]
agronholm has quit [Changing host]
altendky has quit [Changing host]
yuiza1 has left #pypy [#pypy]
jryans has joined #pypy
alcarith1 has joined #pypy
Hodgestar has joined #pypy
lastmikoi has joined #pypy
shodan45 has joined #pypy
ShadeJonathan[m] has joined #pypy
toad_polo has joined #pypy
astrojl_matrix has joined #pypy
ronny has joined #pypy
papangoo[m] has joined #pypy
igitoor has joined #pypy
igitoor has joined #pypy
igitoor has quit [Changing host]
todda7 has joined #pypy
andi- has joined #pypy
<antocuni> is there a way in rpython/rffi to get a statically allocated charp string?
<antocuni> i.e., the same that in C I get by using a string literal
<antocuni> or the only way it to malloc() it at runtime?
<antocuni> uhm, maybe with a @memo function? But then do I have to allocate it using lltype.malloc(..., immortal=True)?
todda7 has quit [Ping timeout: 240 seconds]
lritter has joined #pypy
Gustavo6046 has joined #pypy
<FergusL> Hello there! I've made some progress with embedding pypy, I am now running probably into a memory/scope/gc issue: I am attaching a C++ function pointer to a global dict inside one of the the def_extern() function of the embedding_init_code, if I call the function pointer right after attaching it, it works, if it is called later (from a different
<FergusL> thread), I get a "null function pointer" exception
jcea has joined #pypy
<LarstiQ> FergusL: sounds like someone needs to have ownership so things don't go out of scope / get garbage collected
<LarstiQ> depending on the API this is the responsibility of the caller/callee
<FergusL> oh, thanks LarstiQ ! Actually it was just a simple scope problem on the C++ host program side... :)
<FergusL> I was reading that part of the docs though trying to figure out the problem
<LarstiQ> yeah, the behaviour can be quite funky when it goes awry
tos9 has joined #pypy
<arigato> antocuni: (sorry if I'm too late) to get a static charp string, you need to call lltype.malloc(immortal=True) anywhere outside the code that is processed by RPython, so it can be in a @memo or more likely just put it in a global
tos9 has quit [Read error: Connection reset by peer]
tos9 has joined #pypy
Gustavo6046 has quit [Ping timeout: 265 seconds]
Gustavo6046 has joined #pypy
<antocuni> arigato: thanks. I think that @memo works also if immortal=False?
<antocuni> e.g. in rtyper/lltypesytem/rlist.py there is _ll_prebuilt_empty_array which is a @memo and does a normal malloc
jcea has quit [Quit: jcea]
jcea has joined #pypy
lritter has quit [Quit: Leaving]
jiffe_ has quit [Quit: WeeChat 2.6]
jiffe has joined #pypy
todda7 has joined #pypy