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
<cfbolz>
mattip: do we document somewhere that the win64 version doesn't support cpyext yet?
<mattip>
the py3.7 one does support cpyext, it is only py2.7 that does not support it
<cfbolz>
mattip: ah, fair enough
<cfbolz>
very cool, I thought they both don't
<mattip>
truthfully, I think we could drop many of the "heavy" modules from all versions of pypy2.7: cpyext, micronumpy
<mattip>
as long as cffi keeps working
<cfbolz>
mattip: yeah
<cfbolz>
micronumpy definitely, cpyext is probably too useful to drop ;-)
<vstinner>
"We have begun streaming the advances towards this goal on Saturday evenings European time on https://www.twitch.tv/pypyproject" hehe, i saw it, cool ;)
<vstinner>
"for the first time we are releasing a 64-bit Windows binary package" oh wow, that's great!
dnshane has quit [Quit: No Ping reply in 180 seconds.]
dnshane has joined #pypy
<FergusL>
Hello there! It's me again about embedding pypy/cffi. I'm looking at various solutions but in your opinion what would be the closest to Py_RunString()? Wrapping a call to eval() in a exposed function that I call from the host program?
<FergusL>
my approach so far for loading code dynamically has been by adding paths to sys.path and "import"ing, this needs to have a defined API though and the scoping is not the best
<FergusL>
(I feel sorry for even mentioning eval() hehe...)
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
<mattip>
isn't Py_RunString the same as eval?
<FergusL>
true, it must be very similar
Rhy0lite has joined #pypy
<FergusL>
since this is worth a few hours of intense concentration, I thought I might share this: passing function pointer from the main process to embedded pypy using cffi https://framagit.org/-/snippets/6198
<FergusL>
as opposed to defining in cdef, it gives easy blind "void *"-like access to the main program which is what I need for my usecase (embedding as scripting language in another program with an API back to the main program)
<FergusL>
if it sounds completely silly, I probably just have misunderstood something, which is highly likely given my skill level