arigato 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 | mac OS and Fedora are not Windows
antocuni has quit [Ping timeout: 272 seconds]
micisuta has quit [Ping timeout: 272 seconds]
micisuta has joined #pypy
speeder39_ has quit [Quit: Connection closed for inactivity]
jcea has quit [Quit: jcea]
<mjacob> mattip: i'll send the details to the people directly
RemoteFox has quit [Ping timeout: 246 seconds]
dddddd has quit [Remote host closed the connection]
tsaka__ has joined #pypy
tsaka__ has quit [Ping timeout: 248 seconds]
RemoteFox has joined #pypy
ajlawrence has quit [Remote host closed the connection]
antocuni has joined #pypy
rindolf has joined #pypy
<kenaan> arigo sandbox-2 906b820ecdac /rpython/: in-progress: enforce a review on functions manipulating directly low-level pointers or doing any other strange th...
<kenaan> arigo sandbox-2 84f2711b0798 /rpython/: in-progress
mattip has quit [Ping timeout: 272 seconds]
tsaka__ has joined #pypy
mattip has joined #pypy
BPL has joined #pypy
<kenaan> arigo sandbox-2 0328e9de2ba0 /rpython/translator/sandbox/: Direct tests
<arigato> if anyone is annoyed by the multiline red text every time they push a commit to bitbucket:
<arigato> edit the file sshpeer.py inside your mercurial package, to add the lines after --AR--:
<arigato> (removes the ansi color stuff)
oberstet has joined #pypy
<antocuni> and that's why mercurial is superior to git: so you can do these hacks without recompiling :)
lritter has joined #pypy
antocuni has quit [Ping timeout: 268 seconds]
rindolf has quit [Remote host closed the connection]
BPL has quit [Quit: Leaving]
jcea has joined #pypy
dddddd has joined #pypy
<kenaan> arigo sandbox-2 9b6556323472 /: in-progress
antocuni has joined #pypy
oberstet has quit [Quit: Leaving]
<kenaan> arigo sandbox-2 8bd962a47352 /rpython/rlib/rgc.py: fix
nunatak has joined #pypy
nunatak has quit [Quit: Leaving]
<arigato> today's What Occurs If
<arigato> f.readinto(buffer)
<arigato> may take a while and another thread may run
<arigato> now what if the buffer is shrunk by another thread?
nunatak has joined #pypy
<antocuni> segfault?
<arigato> likely
<arigato> found during the review I'm doing now for sandboxing
<mattip> isn't any modification of a shared array/bytestring dangerous?
<mattip> or for that matter does python protect lists and dictionaries?
<mattip> s/btyestring/bytearray
nunatak has quit [Quit: Leaving]
<arigato> you're not supposed to obtain a segfault using only built-in types or 'array'
<arigato> or 'file' or '_io'
jcea has quit [Remote host closed the connection]
<kenaan> arigo default 215ea348ccb4 /pypy/module/: Check for a rare case of someone shrinking the buffer from another thread while using it in a read() variant
BPL has joined #pypy
jcea has joined #pypy
BPL has quit [Quit: Leaving]
waldhar has quit [Ping timeout: 268 seconds]
<kenaan> arigo sandbox-2 0d5f51e7a2c8 /: hg merge default
<kenaan> arigo sandbox-2 7c1bcd64f114 /: Tweaks
<kenaan> arigo py3.6 e4eba87b1754 /pypy/: hg merge default
<kenaan> arigo py3.6 08f03166561f /: merge heads
<kenaan> arigo py3.6 bfbf7d164327 /pypy/module/_io/interp_bufferedio.py: Copy here the logic to check for shrunk buffers
<mjacob> arigato: how does cpython prevent this problem?
<arigato> I think it's usually done by keeping the buffers "locked"
<mjacob> i wonder if we also need a more general solution here
<arigato> maybe
<mjacob> for example in case the buffer is moved instead of shrunk
<mjacob> in case it's enlarged instead of shrunk
<arigato> these cases are supposed to work
<arigato> hum, "sometimes"
<kenaan> arigo py3.6-sandbox-2 b577a806f857 /rpython/rlib/: merge 3f34199b0d1a
<arigato> it depends on the particular subclass of Buffer
<kenaan> arigo py3.6-sandbox-2 3d2a0a3328e7 /: merge 8bd962a47352
<kenaan> arigo py3.6-sandbox-2 36a029317cc9 /: merge 0d5f51e7a2c8
<kenaan> arigo py3.6-sandbox-2 842a1a1386b0 /: hg merge sandbox-2
<arigato> for example, ArrayBuffer keeps a reference to the app-level array object, and not to the raw data, so if it moves it's fine
<mattip> cpython seems to be careful around keeping the references fresh
<arigato> yes, because it would be easier to crash
<arigato> in our case I could fix the problem just by checking again the length after the read() system call
<kenaan> arigo py3.6 6bb742c50a9f /pypy/config/pypyoption.py: With either the sandbox or the reverse-debugger, the hash used in pypy3 needs to be the old 'fnv' hash instead of 'si...
<kenaan> arigo default 56e99531241f /rpython/rlib/rsiphash.py: Forbid calls to enable_siphash24() in sandbox or revdb mode
<kenaan> arigo py3.6-sandbox-2 fc77f4cd4352 /: fixes
<kenaan> arigo py3.6-sandbox-2 933b68b2f394 /pypy/config/pypyoption.py: hg merge py3.6
<kenaan> arigo py3.6 889a5f9aec6c /rpython/rlib/rsiphash.py: hg merge default
<kenaan> arigo py3.6-sandbox-2 6c760b893b6a /rpython/rlib/rsiphash.py: hg merge py3.6
ekaologik has joined #pypy
abrown has quit [Remote host closed the connection]
abrown has joined #pypy
<kenaan> cfbolz default 520b3c9072f2 /rpython/rlib/: don't slice the string several times when doing str-to-int conversion
ekaologik has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall.]
<kenaan> arigo sandbox-2 f87b640630bf /rpython/: some changes lost in the maze of merges
<kenaan> arigo sandbox-2 4a871bfc18fb /rpython/rlib/rposix.py: three more sandbox_review
<kenaan> arigo py3.6-sandbox-2 bf3980d91358 /rpython/: hg merge sandbox-2
<kenaan> arigo default a6c1ae01424e /pypy/module/posix/interp_posix.py: CPython raises NotImplementedError if /dev/urandom cannot be found. To maximize compatibility, we should also raise...
<kenaan> arigo sandbox-2 c82f896c86b5 /: hg merge default
<kenaan> mattip py3.6 251eb63edc0f /lib-python/3/unittest/test/: tweak tests for PyPy
<mattip> ronan: the test_pep3120 test is failing because the unicode decode error starts with 'utf-8' codec can't decode ...
<mattip> when the test expects 'utf8' codec can't decode ... (without the '-')
<mattip> Do we want to change all utf-8 to utf8 across the codebase?
speeder39_ has joined #pypy
<mjacob> mattip: i think we should use utf-8 everywhere possible. see also https://stackoverflow.com/questions/809620/utf8-or-utf-8
<mjacob> mattip: note that cpython checks for "utf-8". it was changed in the pypy source code at some point (fbe8e328bbe8442cb67f5157cfbd6139e2c4727d)
lritter has quit [Quit: Leaving]
tsaka__ has quit [Ping timeout: 258 seconds]
jcea has quit [Remote host closed the connection]
antocuni has quit [Ping timeout: 245 seconds]