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
lritter has quit [Quit: Leaving]
_whitelogger has joined #pypy
jcea has quit [Quit: jcea]
Rhy0lite has quit [Quit: This computer has gone to sleep]
xcm has quit [Remote host closed the connection]
dustinm- has quit [Quit: Leaving]
dustinm has joined #pypy
oberstet has joined #pypy
<mattip> anyone want to comment on the fix-fstring-double-braces topic branch? LGTM, but there are so many ways to detect this ...
<mattip> arigo: in general, when we go from utf8 to unicode and back via s.decode('utf-8') or u.encode('utf-8') in RPython code
<mattip> how does it actually translate?
<mattip> if all we want is a wchar utf16 convervsion for win32 system calls, what is the fastest way to do that?
<mattip> there is rffi.scoped_utf82wcharp(source, unicode_len)
<mattip> which uses "for ch in rutf8.Utf8StringIterator(utf8): w[index] = unichr(ch)" underneath to convert
camelCaser has quit [Ping timeout: 265 seconds]
camelCaser has joined #pypy
Dejan has joined #pypy
Dejan has quit [Remote host closed the connection]
astrojl_matrix has quit [Ping timeout: 260 seconds]
altendky has quit [Ping timeout: 256 seconds]
astrojl_matrix has joined #pypy
altendky has joined #pypy
TheNewbie has joined #pypy
epony has quit [Quit: reconfigure-now]
epony has joined #pypy
<arigo> Mattip: unsure, but look at module/posix for example
<mattip> right, I understand the practice, I was more interested in the theory
<mattip> how does s.decode('utf-8') get translated
<arigo> see rpython/rstr.py or rpython/lltypesystem/rstr.py
<arigo> it's translated into a call to one of the helpers from rlib/*.py
lritter has joined #pypy
Rhy0lite has joined #pypy
petronny has joined #pypy
<petronny> Well, pypy3 building on rpi4 (8GB) is ok, but it's so close to OOM.
<petronny> rpython takes 64.8% of RAM, and there are 4 gcc processes and each one takes 5%.
<mattip> petronny: that is during the actual compilation via "make", after the python translator does all its work, correct?
<petronny> It seems that when gcc is running, rpython is doing nothing and just hold the 64.8% RAM.
<mattip> right, it could be cleaned out
<petronny> Great, but how?
<petronny> Oh, I'm not building with `make`.
<mattip> I played with it a long time ago when I needed to, but couldn't find what was holding the ref to the database object
<mattip> it was easier to just get more memory in my VM
<mattip> arigo: thanks. I think it is ll_decode_utf8 in rstr.py, which uses rstr.str_decode_utf8
<cfbolz> petronny: workaround: run rpython with --source, then run make at the end in the /tmp/usession*/testing_1 dir
<petronny> cfbolz: Thanks. I will give it a try.
<petronny> Do I need to run other commands after `make`?
<cfbolz> Hm, maybe, mattip, are the extra build steps put into make?
<mattip> nope. There is a copy of the artifacts back out of /tmp and then building the cffi extension libraries
YannickJadoul has joined #pypy
jcea has joined #pypy
<petronny> Here are the commands I'm going to run
<petronny> `python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone --source`
<petronny> `make -C /tmp/usession*/testing_1`
<petronny> `PYTHONPATH=../.. ./pypy3-c ../../lib_pypy/tools/build_cffi_imports.py`
<petronny> Are these fine?
<mattip> I think you need to copy the pypy3-c and libpypy3.so from /tmp/usession*/testing_1 to pwd
<mattip> and when you run tools/build_cffi_imports.py, you need to cd to lib_pypy, since the modules are placed in pwd
speeder39_ has joined #pypy
<petronny> Thanks again. I'm running the first step now.
<petronny> And `--source` must be put before `targetpypystandalone`.
<YannickJadoul> mattip: wrt. the fix-fstring-double-braces branch: I know it's not pretty, but it's horrible to keep a balance between keeping it close to CPython (with its `ch = *s++` lines) and nicely-readable
YannickJadoul has quit [Quit: Leaving]
<petronny> BTW, does translating pypy not output those beautiful patterns any more?
speeder39_ has quit [Quit: Connection closed for inactivity]
Dejan has joined #pypy
<mattip> petronny: if you redirect stdout then no fractals
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8234 [mattip: force build, locale-encode-decode]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7070 [mattip: force build, locale-encode-decode]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5370 [mattip: force build, locale-encode-decode]
<mattip> I think PyUnicode_{En,De}codeLocale are the last things needed to build PyQT
<mattip> the next stage is to fix all the real problems with partially-implemented cpyext functions (hopefully there will not be many)
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7070 [mattip: force build, locale-encode-decode]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7071 [mattip: force build, locale-encode-decode]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5370 [mattip: force build, locale-encode-decode]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5371 [mattip: force build, locale-encode-decode]
speeder39_ has joined #pypy
TheNewbie has quit [Quit: Leaving]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8234 [mattip: force build, locale-encode-decode]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7071 [mattip: force build, locale-encode-decode]
_whitelogger has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5371 [mattip: force build, locale-encode-decode]
speeder39_ has quit [Quit: Connection closed for inactivity]
jcea has quit [Ping timeout: 256 seconds]
BPL has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8235 [mattip: force build, locale-encode-decode]
<mattip> it seems this test somehow passes on the nightly linxu64 build on py3.6, but shouldn't
<mattip> python2 pytest.py pypy/objspace/std/test/test_stdobjspace.py -k test_wrap_string
<mattip> I get a BadUTF8 exception, the test wants a UnicodeDecodeError
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8235 [mattip: force build, locale-encode-decode]
Rhy0lite has quit [Ping timeout: 256 seconds]
lritter has quit [Quit: Leaving]
Rhy0lite has joined #pypy
oberstet has quit [Quit: Leaving]
jcea has joined #pypy