tav` has joined #pypy
tav has quit [Ping timeout: 240 seconds]
tav` is now known as tav
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
marr has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Quit: WeeChat 1.7.1]
kipras is now known as kipras`away
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
lritter has quit [Remote host closed the connection]
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
rokujyouhitoma has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yuyichao has quit [Ping timeout: 258 seconds]
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
rokujyouhitoma has quit [Remote host closed the connection]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Read error: Connection reset by peer]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Remote host closed the connection]
ArneBab_ has joined #pypy
ArneBab has quit [Ping timeout: 260 seconds]
slackyy has quit [Ping timeout: 268 seconds]
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
jacob22_ has joined #pypy
jacob22 has quit [Ping timeout: 268 seconds]
tilgovi has quit [Ping timeout: 246 seconds]
tilgovi has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
asmeurer__ has joined #pypy
Hasimir has quit [Read error: Connection reset by peer]
pilne has quit [Quit: Quitting!]
Hasimir has joined #pypy
tilgovi has quit [Ping timeout: 246 seconds]
yuyichao has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
yuyichao has quit [Ping timeout: 246 seconds]
yuyichao has joined #pypy
jamesaxl has joined #pypy
rokujyouhitoma has joined #pypy
tilgovi has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Ping timeout: 240 seconds]
jamesaxl has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
girish946 has joined #pypy
girish946 is now known as Guest69340
tilgovi has quit [Ping timeout: 246 seconds]
marr has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]
<kenaan> arigo py3.5 f60ae489d83a /lib_pypy/_cffi_ssl/README.md: Mention that this change was backported to cryptography
_whitelogger has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
_main_ has joined #pypy
_main_ has quit [Read error: Connection reset by peer]
_main_ has joined #pypy
_main_0 has joined #pypy
_main_ has quit [Read error: Connection reset by peer]
__main__ has quit [Ping timeout: 255 seconds]
Guest69340 has quit [Quit: Leaving]
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
antocuni has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
yuyichao has quit [Remote host closed the connection]
yuyichao has joined #pypy
yuyichao_ has joined #pypy
yuyichao has quit [Ping timeout: 255 seconds]
arigato has joined #pypy
kipras`away is now known as kipras
<arigato> uh ok, I have a pretty good hint about https://bitbucket.org/pypy/pypy/issues/2579/pypy35-580-memory-leak
<arigato> just instantiating lzma.LZMACompressor(), on pypy3 or cpython3, gobbles 20MB of memory
<LarstiQ> less than optimal usage of cffi?
<LarstiQ> or a deeper problem?
<arigato> no, it's the same with CPython3's built-in lzma module
<arigato> the difference is only that with reference counting, this is released promptly
<arigato> (usually)
<arigato> (yes, I can find an example which looks like a leak on CPython3, too)
<kenaan> arigo py3.5 fd92a8bc06b6 /lib_pypy/_lzma.py: Issue #2579 First approach to fix a "leak" in _lzma.py
<LarstiQ> arigato: then, suboptimal use of the lzma api, or a problem in lzma itself? From fd92a8bc06b6 I guess it's the usage
<arigato> unsure what you mean with "lzma", given that all levels are called "lzma"
vkirilichev has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
<LarstiQ> sorry, I meant the C library
<arigato> yes, no problem with the C library
<kenaan> arigo py3.5 45f61802dc1c /lib_pypy/_lzma.py: More GC tweaks. Trying out to call add_memory_pressure() with a negative number. I *think* it should always give wh...
cstratak has joined #pypy
cstratak has quit [Client Quit]
nimaje is now known as Guest30163
Guest30163 has quit [Killed (card.freenode.net (Nickname regained by services))]
nimaje has joined #pypy
antocuni has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
slackyy has joined #pypy
vkirilichev has quit [Remote host closed the connection]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 276 seconds]
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
tito_ is now known as tito
tito has quit [Changing host]
tito has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
vkirilichev has joined #pypy
vkirilichev has quit [Ping timeout: 260 seconds]
arigato has quit [Quit: Leaving]
antocuni has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
vkirilichev has joined #pypy
raynold has quit [Quit: Connection closed for inactivity]
pilne has joined #pypy
marr has quit [Ping timeout: 246 seconds]
arigato has joined #pypy
vkirilichev has quit [Ping timeout: 240 seconds]
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
girish946 has joined #pypy
girish946 is now known as Guest95888
Guest95888 is now known as girish
vkirilichev has joined #pypy
<fijal> heh, a cool pypy property
<fijal> if you read a list of timestamps (in order) and put it in a dictionary where keys are datetime objects
<fijal> you end up with a dictionary that's sorted by time
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
vkirilichev has quit [Ping timeout: 240 seconds]
girish has quit [Quit: Leaving]
vkirilichev has joined #pypy
girish946 has joined #pypy
<arigato> fijal: CPython 3.6 shares this property :-)
lritter has joined #pypy
antocuni has quit [Ping timeout: 260 seconds]
girish946 has quit [Quit: Leaving]
Hasimir has quit [Read error: Connection reset by peer]
Hasimir has joined #pypy
Hasimir has quit [Changing host]
Hasimir has joined #pypy
<mjacob> arigato: his argument is still valid, as cpython copied pypy's approach ;)
<mjacob> s/argument/point/
<arigato> :-)
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
<fijal> sure
asmeurer_ has joined #pypy
asmeurer_ has quit [Quit: asmeurer_]
oberstet has quit [Ping timeout: 255 seconds]
<nanonyme> fijal, won't we have fun times when people start relying on that property
<fijal> they will
<nanonyme> Yeah, and then all future implementations of Python dict will need to provide that property whether efficient or not
<fijal> maybe not a terrible property
<tos9> that's ok it's 2017 who still uses `dict` anymore
<fijal> I mean, people relied on dictionary order before
<nedbat> fijal: it would be better to ask programmers to say they need ordered dicts, in my opinion, but that ship has sailed.
<nanonyme> fijal, they did? What for
oberstet has joined #pypy
<LarstiQ> nanonyme: all kinds of things
<LarstiQ> nanonyme: a simple one, tests failing on .keys() = somelist comparison
TheAdversary has quit [Quit: Going down for maintenance.]
<nedbat> LarstiQ: accidentally relying on arbitrary ordering is different than saying, "Dicts are ordered, I will use that"
<arigato> imho it replaces things that work accidentally with things that work by design
<nedbat> arigato: i wish we had just had people use ordereddict if they wanted an ordereddict.
<arigato> a bit like "x is 5", which works accidentally as long as 'x' is an 'int'
<fijal> nedbat: well, that *aslo* means you grow another builtin type for no reason at all
<nedbat> fijal: the reason is so that in five years when we think of yet another dict optimization, we have the flexibility to implement it.
<fijal> I don't think future potential optimizations are a good reason to grow already massive language tbh
<arigato> and I think that the past 25 years have shown there is no important missing dict optimization
<fijal> if anything, having tons and tons of builtin types is bad for implementing optimizations
<nedbat> fijal: we already have dict and ordereddict? No need to grow anything.
<nedbat> arigato: we might have said that 5 years ago about the previous 20.
<fijal> did you know that OrderedDict is hard to implement using regular ordered dict because they added new methods on it?
<fijal> (for example)
<fijal> there are also slight differences in semantics
<fijal> so I would vastly prefer "never use OrderedDict" and we can focus on optimising a smaller language
<arigato> e.g. what occurs if you change an OrderedDict while iterating over it
<nedbat> i'm glad you guys are happy with it. i would have tried to make the central data structure have fewer contraints, and therefore more implementor flexibility.
<fijal> nedbat: as I said, the main problems we have are around the amount of shit there is (bytearray, str, memoryview, buffers more than one of them) etc.
<nedbat> fijal: ok, good to hear.
<fijal> *and* the constraint seems to be "has a C API that looks like this"
TheAdversary has joined #pypy
<fijal> which is a much more serious constrain than ordering dicts and the one I would be hapy to remove
slackyy has quit [Read error: Connection reset by peer]
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
vkirilichev has quit []
arigato has quit [Quit: Leaving]
oberstet has quit [Ping timeout: 276 seconds]
arigato has joined #pypy
<nanonyme> LarstiQ, never seen that kind of stuff. I think the only reasonable order property is d.keys() == d.keys() and d.values() == d.values()
<nanonyme> IOW the fact that *reading* won't cause rehash to happen
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<arigato> that's not necessarily true e.g. on the JVM or .NET
gabriel-m has joined #pypy
<simpson> I think that the problem is that for many folks, ordered dicts are obviously better and desirable, and not having them earlier was a language flaw.
<nanonyme> arigato, yeah, I guess so
<nanonyme> I guess it would also be fair dict memory would be lazily decreased and rehashing would happen due to memory pressure
<nanonyme> Which if done might lead to rehashing to happen if storing they keys as a list would hit a memory usage boundary
<nanonyme> s/they/the/
<nanonyme> (maybe by eg dict telling memory manager that it should be compacted later)
<nanonyme> Anyway, yeah, I guess even my constraint was bad
<kenaan> rlamy py3.5 b7ddeba4af0d /extra_tests/test_decimal.py: Add failing extra_test (inspired by CPython's deccheck.py)
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
asmeurer_ has joined #pypy
jacob22_ has quit [Ping timeout: 255 seconds]
jacob22_ has joined #pypy
arigato has quit [Quit: Leaving]
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
tormoz has joined #pypy
marr has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
<nanonyme> Hm, I think it's really sad PyPy cpyext improvals resulted in lxml-cffi basically dying out and now the only living thing is the old lxml which uses cython
<cfbolz> eh
<cfbolz> nanonyme: the only sustainable thing would have been lxml switching to the cffi version, honestly. I suppose that was unlikely?
<nanonyme> cfbolz, the incentive to switch disappeared with cpyext improvements
<nanonyme> Admittedly it wasn't huge but it completely disappeared
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
panni_ has quit [Ping timeout: 240 seconds]
tbodt has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
panni_ has joined #pypy
asmeurer_ has quit [Quit: asmeurer_]
<tos9> nanonyme: it was never gonna happen, the lxml author is the cython author
<simpson> And not the sort of person who takes being told that everything is terrible in a good way.
marr has quit [Ping timeout: 255 seconds]
* simpson contributed a tiny bit to Cython long ago
<njs> lzma (the algorithm) likes to use *tons* of memory, it's both part of why it compresses so well and also a serious problem when you don't know how many resources are available to the recipient of your compressed file.
<njs> thanks for subscribing to random compression algorithm facts
* LarstiQ eagerly awaits the next installment
jamesaxl has quit [Quit: WeeChat 1.7.1]
<tos9> njs: That was nice, but could be shorter, next time maybe think about how you can say more things in fewer words
<simpson> njs: This was a factor in an actual use-case I had a few years ago, where I wanted to make some backups of Wii discs, and the format that they come in is highly compressible but the CPU time at both ends was cutting into I/O time. I profiled and chose gzip over bz2, lzma, and xz because it had the best ratio. Go figure~
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<njs> tos9: what is this, twitter?
<tos9> njs: #compressionjokes
<njs> tos9: ahh
<njs> tos9: I think the spirit of compression algorithm facts would be more, saying things very redundantly and letting the algorithm worry about optimizing it
gabriel-m has joined #pypy
<njs> simpson: yeah, the compress-once-decompress-once case is really not what most of these systems are optimized for...
<simpson> njs: Well, the thing was, this was the final on-disk format, but it would have taken a week instead of a night if I had chosen xz instead of gzip, and for only a projected 5% disk savings, which wasn't worth it because Wii discs have so much empty and patterned space that they compress *really* well.
<tos9> njs: hmmm good point.
antocuni has joined #pypy
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
_whitelogger has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
asmeurer__ has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
asmeurer__ has quit [Quit: asmeurer__]
antocuni has quit [Ping timeout: 246 seconds]
gabriel-m has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gabriel-m has joined #pypy
marvin_ has quit [Ping timeout: 255 seconds]
asmeurer__ has joined #pypy