kipras`away is now known as kipras
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aboudreault has quit [Excess Flood]
GothAlice is now known as PresidentCthulhu
PresidentCthulhu is now known as GothAlice
aboudreault has joined #pypy
yuyichao_ has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 246 seconds]
tilgovi has joined #pypy
tbodt has joined #pypy
yuyichao_ has joined #pypy
mat^2 has quit [Quit: Leaving]
jcea has quit [Quit: jcea]
tbodt has quit [Ping timeout: 260 seconds]
o11c|vacation is now known as o11c
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wsanchez has joined #pypy
ArneBab has joined #pypy
ArneBab_ has quit [Ping timeout: 240 seconds]
pilne has quit [Quit: Quitting!]
egregius313 has joined #pypy
yuyichao_ has quit [Quit: Konversation terminated!]
yuyichao has joined #pypy
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
egregius313 has quit [Ping timeout: 246 seconds]
fotis has quit [Quit: No Ping reply in 180 seconds.]
fotis2 has quit [Quit: No Ping reply in 180 seconds.]
fotis has joined #pypy
fotis2 has joined #pypy
_whitelogger has joined #pypy
fotis has quit [Quit: No Ping reply in 180 seconds.]
fotis2 has quit [Quit: No Ping reply in 180 seconds.]
fotis has joined #pypy
fotis2 has joined #pypy
jamadden has quit [Quit: Leaving.]
egregius313 has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
<Alex_Gaynor> tumbleweed:
<tumbleweed> ta
jamesaxl has joined #pypy
egregius313 has quit [Ping timeout: 246 seconds]
jamadden has joined #pypy
jamadden has quit [Client Quit]
jamadden has joined #pypy
jamadden has quit [Client Quit]
jamescampbell has joined #pypy
amaury has joined #pypy
oberstet has joined #pypy
jamescampbell has quit [Quit: Leaving...]
wsanchez has left #pypy [#pypy]
realitix has joined #pypy
jamescampbell has joined #pypy
arigato has joined #pypy
Joannah has joined #pypy
marr has joined #pypy
jamescampbell has quit [Remote host closed the connection]
jamadden has joined #pypy
jamadden has quit [Client Quit]
antocuni has joined #pypy
Joannah has quit [Ping timeout: 260 seconds]
<antocuni> hi
<arigato> hi
cstratak has joined #pypy
<antocuni> arigato: did you have a chance to review my branch, btw?
<arigato> no, sorry
<arigato> antocuni: is there a way to complain more strongly if we forget @GCBuffer.decorate?
<antocuni> arigato: I fear the only way is to use a metaclass
<antocuni> which I preferred not to use, to avoid too much magic
<arigato> would "NOT_RPYTHON" in the default typed_read() and typed_write() work?
<arigato> ah no, not if it's called generically
<antocuni> I suppose we could have a flag on GCBuffer which is overridden by @decorate, and the __init__ which checks it
<antocuni> but it looks a bit obscure
<arigato> yes
<arigato> or more obscure playings with @specialize
<antocuni> I tried to play with @specialize by failed miserably
<arigato> I see
<antocuni> arigato: note that the only reason to inherit from GCBuffer is to get the default implementations of typed_read and typed_write
<arigato> the alternative is to use a mixin
<arigato> ah
<antocuni> so your tests will immediately catch it
<arigato> ok
<arigato> just in case: I thought that you could write "class Foo(Buffer, GCBufferMixin)"
<arigato> which basically makes a copy the methods from GCBufferMixin, for the annotator
<antocuni> I *think* I have tried that route as well
<arigato> ah no
<arigato> import_from_mixin()
<arigato> right
<antocuni> but it does not work because the base_ofs is not constant
<antocuni> here the trick is to call _get_gc_data_offset() outside the functions
<arigato> then, do you really need GCBuffer instead of only calling a class decorator?
<antocuni> I introduced it mostly to get a default implementation for _get_gc_data_extra_offset
<arigato> the class decorator can insert this function into the class, but only if it's not already defined
<arigato> well, it looks more magic again
<arigato> fine
<antocuni> yes I know and I even started to do that, but the implementation started to look a bit complex
<arigato> ok
<antocuni> arigato: 7538ecbcf8b5 is the checkin which turned GCBuffer from being a decorator to a base class
jacob22_ has joined #pypy
girish946 has joined #pypy
girish946 has quit [Quit: Leaving]
nimaje1 has joined #pypy
nimaje has quit [Killed (cherryh.freenode.net (Nickname regained by services))]
nimaje1 is now known as nimaje
antocuni has quit [Ping timeout: 246 seconds]
fniephaus has quit [Ping timeout: 240 seconds]
fniephaus has joined #pypy
amaury has quit [Ping timeout: 268 seconds]
amaury has joined #pypy
jamadden has joined #pypy
inad922 has joined #pypy
amaury has quit [Ping timeout: 240 seconds]
jcea has joined #pypy
cstratak_ has joined #pypy
cstratak has quit [Read error: Connection reset by peer]
amaury has joined #pypy
bremner has quit [Ping timeout: 246 seconds]
bremner has joined #pypy
bremner has quit [Changing host]
bremner has joined #pypy
bremner has quit [Ping timeout: 255 seconds]
Tiberium has joined #pypy
tilgovi has quit [Ping timeout: 246 seconds]
jacob22_ has quit [Ping timeout: 255 seconds]
arigato has quit [Quit: Leaving]
Knio_ has quit [Ping timeout: 240 seconds]
Knio has joined #pypy
fniephaus has quit [Ping timeout: 272 seconds]
bremner has joined #pypy
bremner has quit [Changing host]
bremner has joined #pypy
fniephaus has joined #pypy
kolko has quit [Ping timeout: 240 seconds]
<kenaan> Kounavi Kounavi/fix-typo-depricate-to-deprecate-p-1495624547235 9fe360fea796 /pypy/doc/windows.rst: Fix typo (depricate to deprecate) :P
<kenaan> arigo default 62e05f75166d /pypy/doc/windows.rst: Merged in Kounavi/pypy/Kounavi/fix-typo-depricate-to-deprecate-p-1495624547235 (pull request #550) Fix typo (depri...
arigato has joined #pypy
amaury has quit [Ping timeout: 245 seconds]
inad922 has quit [Ping timeout: 255 seconds]
amaury has joined #pypy
antocuni has joined #pypy
Tiberium has quit [Remote host closed the connection]
Tiberium has joined #pypy
amaury has quit [Ping timeout: 240 seconds]
amaury has joined #pypy
girish946 has joined #pypy
Tiberium has quit [Remote host closed the connection]
Tiberium has joined #pypy
realitix has quit [Quit: Leaving]
lritter_ has joined #pypy
<cfbolz> arigato: the pgo pull request looks good to me now. ok if I merge it, or do you want to take a look?
realitix has joined #pypy
Tiberium has quit [Remote host closed the connection]
realitix has quit [Ping timeout: 240 seconds]
Tiberium has joined #pypy
Remi_M has quit [Quit: See you!]
<antocuni> good, the win32 tests finished and faster-rstruct-2 is not more broken than default :)
jamescampbell has joined #pypy
<cfbolz> antocuni: in my opinion you can merge
<antocuni> arigato: do you want to do any more review or it's ok to you too?
realitix has joined #pypy
jcea has quit [Ping timeout: 260 seconds]
jcea1 has joined #pypy
jcea1 is now known as jcea
Tiberium has quit [Remote host closed the connection]
Tiberium has joined #pypy
jamescam_ has joined #pypy
jamescampbell has quit [Ping timeout: 246 seconds]
jamescampbell has joined #pypy
tbodt has joined #pypy
jamescam_ has quit [Ping timeout: 260 seconds]
jamescam_ has joined #pypy
jamescampbell has quit [Ping timeout: 268 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Client Quit]
jamescampbell has joined #pypy
jamesca__ has joined #pypy
jamescam_ has quit [Ping timeout: 246 seconds]
egregius313 has joined #pypy
jamescampbell has quit [Ping timeout: 246 seconds]
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
<arigato> antocuni & cfbolz: you can merge
jamesca__ has quit [Read error: Connection reset by peer]
jcea has quit [Ping timeout: 268 seconds]
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
girish946 has quit [Quit: Leaving]
jamescampbell has joined #pypy
<antocuni> arigato: ok thanks :)
realitix has quit [Ping timeout: 240 seconds]
jamescampbell has quit [Read error: Connection reset by peer]
tbodt has joined #pypy
yuyichao has quit [Ping timeout: 240 seconds]
mihaid has joined #pypy
mattip has joined #pypy
arigato has quit [Quit: Leaving]
realitix has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
egregius313 has quit [Remote host closed the connection]
tbodt has joined #pypy
egregius313 has joined #pypy
tbodt has quit [Client Quit]
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
mihaid has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
John has joined #pypy
<John> hi all, quick Q
<John> is it possible that manually compiling PyPy on OSX might give better performance over using the precompiled binaries?
<John> i have no evidence to suggest it does or doesn't, just a general question
egregius313 has quit [Ping timeout: 255 seconds]
<kenaan> antocuni faster-rstruct-2 43a0bd03dd95 /: close branch about to be merged
<kenaan> antocuni default d3895494491b /: merge the faster-rstruct-2 branch: this makes struct.pack and struct.pack_into much faster by using raw_store o...
Tiberium has quit [Remote host closed the connection]
<kenaan> antocuni default add017ddb1bc /pypy/doc/whatsnew-head.rst: document the merged branch
<mattip> antocuni: yay !
<antocuni> horray :)
jcea has joined #pypy
<mattip> I wonder how it will influence benchmark runs
<antocuni> I don't know, do we have benchmarks which rely on struct heavily?
tbodt has joined #pypy
<mattip> dunno also
tbodt has quit [Client Quit]
<antocuni> Krakatau seems to use struct.pack heavily in assembler.py
oberstet2 has joined #pypy
tbodt has joined #pypy
oberstet has quit [Ping timeout: 255 seconds]
* ronan merging default into py3.5
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mattip> ronan: indeed, map(ord, x.__buffer__()) gives identical results on pypy 5.7 and cpython, but a memoryview object on HEAD
* mattip trying to write a test with our array.c
<ronan> mattip: huh? x.__buffer__ doesn't exist on cpython
tbodt has joined #pypy
<mattip> correct, I meant it gives different results on pypy5.7 and HEAD
tbodt has quit [Client Quit]
tbodt has joined #pypy
<ronan> mattip: I tried to write tests with array.c but it doesn't seem to have the issue
<ronan> I don't understand why array.c and numpy.ndarray would behave differently though
<mattip> did you try -A tests?
<mattip> indeed, a simple -A tests with array.c does not show a difference between the two
tbodt has quit [Ping timeout: 240 seconds]
<John> oh, did the struct optimizations recently get added?
<mattip> John: yes, about 30 minutes ago :)
<mattip> John: you would have to tell us if you can improve the CFLAGS in the Makefile used to compile PyPy on OS X
<John> aww sweet - i think i've been waiting for this for two years :D
<John> mattip - ah, ok, so probably not :P
<mattip> ronan: here is the test I am using, note the Exception on line 48
<John> I thought you might say 'of course - with knowledge of your specific type of laptop/etc, things can be optimised'
<John> but if that's not the case, never mind, i've drunk too much of the gentoo coolaid
<John> How do i test the new struct_pypy? :)
<John> i mean, can i use the binary on the website right now?
<cfbolz> John: nope, you need to wait for the next nightly build (ie tomorrow)
<kenaan> Dodan PyPy_profopt_enabled 8fe61093e999 /: PyPy 5.8.0 functional profopt. Precleanup
<kenaan> Dodan PyPy_profopt_enabled f1aa2fc615ef /: PyPy-5.8.0-Profopt-enabled-postclean
<kenaan> Dodan PyPy_profopt_enabled ee2fb3e0d9b6 /pypy/goal/regrtest/: PyPy-5.8.0-Profopt-enabled-postclean
<kenaan> Dodan PyPy_profopt_enabled b5c11d10c249 /: Profopt option now can come paired with --profoptpath to specify the training workload
<John> ahh, ok :) awesome!
<John> Really looking forward to it :)
<mattip> ronan: it seems that exception has been there at least since 5.7.0
John has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<kenaan> rlamy py3.5 66108bb2353d /: hg merge default
Tiberium has joined #pypy
Tiberium has quit [Remote host closed the connection]
inad922 has joined #pypy
realitix has quit [Ping timeout: 240 seconds]
<tos9> mattip: out of curiosity, was there something specific that made you turn that big endian thing into a blocker
<tos9> mattip: does numpy or something use it and now you noticed it was broken
yuyichao has joined #pypy
cstratak_ has quit [Ping timeout: 240 seconds]
<ronan> hrm, how does one install a debug version of numpy, again?
pilne has joined #pypy
<kenaan> stefanor py3.5 ad5a0fedc353 /lib_pypy/pyrepl/: Everything in lib_pypy should at least be compatible with py3k syntax
<mattip> ronan: rm -rf build; CFLAGS='-g -O0' pypy setup.py install
<mattip> tos9: there is a failing test, and it seems important, no?
<mattip> maybe now it will get more attention
<ronan> mattip: that doesn't seem to work. I can't see the source in gdb
<mattip> strange, maybe rm site-packages/numpy* ?
<mattip> ronan: you should be able to see the compilation flags fly by on the gcc compile command lines
<ronan> mattip: yes, they look right: C compiler: cc -pthread -DNDEBUG -O2 -O0 -g -fPIC
<mattip> maybe it is not being installed to the right place? strange ...
<mattip> when I type >>>>np.core.multiarray, I get the path to the multiarray.pypy-41.so, then I can see when it was built
* mattip trying a build with DEBUG_WRAPPER to print calls to functions
oberstet2 has quit [Ping timeout: 255 seconds]
<ronan> mattip: solved it: I was running from numpy's root dir, which breaks the world in weird ways
marky1991_2 has joined #pypy
marky1991_2 has quit [Remote host closed the connection]
marky1991_2 has joined #pypy
marky1991 has quit [Ping timeout: 246 seconds]
<ronan> mattip: I see what's going on: numpy's array_getbuffer checks the flags and fills certain fields (most critically ndim) only if they have been requested
<mattip> cool
<ronan> however, our code always trusts view->ndim, and we end up with a 0-dim view
<ronan> I think that the bug was already there, but hidden because we (incorrectly, AFAICT) gave priority to getreadbuffer
<mattip> our PyBuffer_FillInfo also checks this flag
inad922 has quit [Ping timeout: 260 seconds]
<ronan> I have to go, I'll try to fix it tonight
<mattip> cool, thanks for digging into this
marky1991 has joined #pypy
marky1991_2 has quit [Ping timeout: 240 seconds]
oberstet2 has joined #pypy
lvella has joined #pypy
<lvella> hi, is is possible to return a callable python object as a c function pointer using CFFI?
<lvella> how is the object lifetime managed?
<lvella> just did, doesn't seem pertinent, because "The @ffi.def_extern() decorator should be applied to global functions"
<lvella> I want to use a callable object, not a global function
<tos9> mattip: I mean, I agree :), I think the old behavior was potentially masking lots of bugs -- was just curious. Cool
<mattip> lvella: sorry, can't really help without seeing the code, and even then probably will end up not being helpful
<mattip> tos9: :)
<LarstiQ> lvella: callable global object?
<LarstiQ> lvella: or are you gettting callables you can't predict at compile time?
<lvella> LarstiQ: imagine I created an arbitrary callable local object, maybe with functools.partial
<lvella> is it possible to take a C function pointer from it, that can be directly called from C?
tbodt has joined #pypy
jamescampbell has joined #pypy
egregius313 has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
jamescampbell has quit [Remote host closed the connection]
egregius313 has quit [Remote host closed the connection]
yuyichao has quit [Ping timeout: 255 seconds]
egregius313 has joined #pypy
nphg has joined #pypy
egregius313 has quit [Remote host closed the connection]
ramonvg has joined #pypy
jamescampbell has joined #pypy
jamescampbell has quit [Ping timeout: 268 seconds]
kolko has joined #pypy
lvella has quit [Quit: Page closed]
ramonvg has quit [Ping timeout: 245 seconds]
kipras is now known as kipras`away
tav has quit [Quit: tav]
arigato has joined #pypy
egregius313 has joined #pypy
arigato has quit [Quit: Leaving]
adeohluwa has joined #pypy
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
egregius313 has quit [Remote host closed the connection]
amaury has quit [Ping timeout: 246 seconds]
jamescampbell has joined #pypy
yuyichao has joined #pypy
jamescampbell has quit [Quit: Leaving...]
ESphynx has left #pypy [#pypy]
antocuni has quit [Ping timeout: 268 seconds]
egregius313 has joined #pypy
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
egregius313 has quit [Remote host closed the connection]
egregius313 has joined #pypy
yuyichao has quit [Ping timeout: 260 seconds]
egregius313 has quit [Ping timeout: 246 seconds]
nphg1 has joined #pypy
nphg has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 272 seconds]