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
adamholmberg has quit [Remote host closed the connection]
luizirber has quit [Ping timeout: 265 seconds]
adamholmberg has joined #pypy
luizirber has joined #pypy
xcm has quit [Ping timeout: 240 seconds]
xcm has joined #pypy
<cfbolz>
What's wrong with the nightly test runs?
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
<Dejan>
E CalledProcessError: Command '['virtualenv', '-p', '/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/bin/pypy', '/tmp/ffi-189/setuptools_package_2-cpy']' returned non-zero exit status 1
<Dejan>
looks like something got misconfigured in the environment
<Dejan>
no looks like something else is the problem
<Dejan>
different builders show different errors
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
tsaka_ has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
lritter has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
isuruf has quit [Ping timeout: 240 seconds]
jcea has joined #pypy
jvesely has joined #pypy
<antocuni>
arigato: I found a bug in pypy.module.hpy_universal.llapi, and I'm not sure why we wrote things that way
<antocuni>
in particular, we have ONE global ctx, which is defined in C by llapi.eci (in separate_module_sources)
<antocuni>
and the State accesses it by calling llapi._HPy_GetGlobalCtx()
<antocuni>
this is a problem in tests because if we happen to have multiple spaces around (e.g., one with and one without cpyext), the ctx will be shared among them. The easy workaround is to remove "if self.ctx: return" from State.setup(), to force reinitialization of it
<antocuni>
but the more proper fix is to lltype.malloc() a ctx in State.setup()
<antocuni>
so my question is: why did we choose this very indirect way to defining a global ctx?
<antocuni>
ronan: ^^^ this is a question for you too
jvesely has quit [Quit: jvesely]
<antocuni>
uhm, looking at the history, it might be a leftover of 5d81fcd424a5, where we had an _HPy_FillFunction to write into hpy_global_ctx
<antocuni>
ok, let me try to fix this, and let me try to use an hg topic :)
<antocuni>
ok, now I have the hpy branch, and I made a commit on top of it using the topic "remove-global-ctx"
<antocuni>
how do I "merge" the topic into the main hpy branch from the command line?
<marmoute>
you can use `hg phase --public --rev .` or `hg push --publish --rev .`
<antocuni>
marmoute: what happens if I have multiple heads in the branch? I.e., I keep committing on the head without the topic AND on the head with the topic
<marmoute>
then you want to merge or rebase the topic before doing that
<marmoute>
If you go on the branch head, and merge the topic (and commit). the merge will be automatically published on push and the topic will fade away
<antocuni>
yes, but what happens if I don't? Will the server refuse the push?
<marmoute>
antocuni: the server have a strong rejection of multiple heads on the names
<marmoute>
So yes it will rejet the push
<antocuni>
good :)
_whitelogger has joined #pypy
jvesely has joined #pypy
cffiusr has joined #pypy
cffiusr has quit [Changing host]
cffiusr has joined #pypy
<cffiusr>
hi, how do I set an @ffi.def_extern function as a function pointer in cffi ?
<cffiusr>
I get "TypeError: intiializer for ctype 'function pointer...' must be a cdata pointer, not function
<cffiusr>
ahh, lib.func_name..
<Dejan>
what do you guys use to find memory leaks? I am trying to use pympler but all it does is giving me a summary saying that list takes 1.x G of RAM
<cffiusr>
how do I convert a python object to void* (in a python callback) ?
<Dejan>
cffiusr, I can't help with that :( I never used cffi
<cfbolz>
tos9: no, it doesn't, because it leads to another copy wchar* -> py unicode
<tos9>
lah
<tos9>
*ah
<tos9>
cfbolz: (maybe I'll say one last thing about things I don't know about) but looks like you're writing a redis client of some sort? Which doesn't redis the protocol want bytes anyhow? why/where do you want unicode?
<tos9>
er, cffiusr ^
<cfbolz>
tos9: when you are reading data out, you want to turn the results into unicode, no?
<tos9>
I wouldn't think so
<tos9>
But maybe?
* tos9
looks at what redis-py gives on Py3
<tos9>
looks like it does give strs, but yeah I dunno, not sure that's what I'd expect as a user but what do I know
<tos9>
(for exactly this reason, that doing that would incur extra work that may not be necessary)
<tos9>
and/or does redis say the values have to be valid UTF-8?
<cfbolz>
no idea, I know nothing at all about redis
<tos9>
oh! no, sorry, I lied
<tos9>
for redis-py it says...
<tos9>
"If the client's decode_responses is True, then the 'channel', 'pattern' and 'data' values will be automatically decoded to unicode strings using the client's charset"
<tos9>
So it does fetch bytes, and then if the client says decode it decodes client-side
<tos9>
And by default it gives you bytes
wleslie has quit [Quit: ~~~ Crash in JIT!]
ekaologik has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
andi- has quit [Ping timeout: 268 seconds]
wooster has quit [Remote host closed the connection]
msjyoo has quit [Remote host closed the connection]
string has quit [Remote host closed the connection]
pulkit25 has quit [Remote host closed the connection]
pulkit25 has joined #pypy
string has joined #pypy
wooster has joined #pypy
fangerer_ has quit [Remote host closed the connection]
avakdh has quit [Remote host closed the connection]
starlord has quit [Remote host closed the connection]
stillinbeta has quit [Write error: Connection reset by peer]
idnar has quit [Remote host closed the connection]
krono has quit [Remote host closed the connection]