cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "the modern world where network packets and compiler optimizations are effectively hostile"
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tav` has joined #pypy
tav has quit [Ping timeout: 260 seconds]
tav` is now known as tav
marr has quit [Ping timeout: 276 seconds]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 268 seconds]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
<kenaan> mattip default 5a93d0b7ba23 /pypy/module/cpyext/: test, fix for PyObject_Print(NULL, ...), which occurred in Numpy f2py --debug-capi
<kenaan> mattip cpyext-add_newdoc 85522f4f43a8 /pypy/module/cpyext/: merge default into branch
rokujyouhitoma has joined #pypy
Fleche has quit [Quit: Fleche]
ArneBab_ has joined #pypy
rokujyouhitoma has quit [Ping timeout: 248 seconds]
ArneBab has quit [Ping timeout: 240 seconds]
pilne has quit [Quit: Quitting!]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 248 seconds]
tilgovi has joined #pypy
tilgovi has quit [Ping timeout: 276 seconds]
tilgovi has joined #pypy
glyph has quit [Quit: End of line.]
glyph has joined #pypy
tilgovi has quit [Ping timeout: 240 seconds]
rokujyouhitoma has joined #pypy
marky1991 has quit [Ping timeout: 240 seconds]
rokujyouhitoma has quit [Ping timeout: 246 seconds]
_whitelogger has joined #pypy
gumblex_ has joined #pypy
gumblex has quit [Ping timeout: 255 seconds]
gumblex_ is now known as gumblex
vkirilichev has joined #pypy
vkirilichev has quit [Remote host closed the connection]
slackyy has joined #pypy
rokujyouhitoma has joined #pypy
slacky has quit [Ping timeout: 276 seconds]
rokujyouhitoma has quit [Ping timeout: 268 seconds]
yuyichao has joined #pypy
slackyy has quit [Ping timeout: 276 seconds]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 248 seconds]
vkirilichev has joined #pypy
vkirilichev has quit [Ping timeout: 255 seconds]
vkirilichev has joined #pypy
Remi_M has joined #pypy
lritter has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 248 seconds]
marr has joined #pypy
oberstet has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
nimaje is now known as Guest32707
nimaje1 has joined #pypy
Guest32707 has quit [Killed (leguin.freenode.net (Nickname regained by services))]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Remote host closed the connection]
rokujyouhitoma has joined #pypy
Rhy0lite has joined #pypy
Rhy0lite has quit [Ping timeout: 268 seconds]
Rhy0lite has joined #pypy
marky1991 has joined #pypy
Fleche has joined #pypy
rokujyouhitoma has quit [Remote host closed the connection]
adamholmberg has joined #pypy
slackyy has joined #pypy
yuyichao has quit [Ping timeout: 240 seconds]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
yuyichao has joined #pypy
mattip has joined #pypy
cstratak has joined #pypy
rokujyouhitoma has joined #pypy
cstratak has quit [Ping timeout: 255 seconds]
rokujyouhitoma has quit [Ping timeout: 260 seconds]
demonimin has quit [Ping timeout: 260 seconds]
demonimin has joined #pypy
demonimin has joined #pypy
yuyichao has quit [Ping timeout: 240 seconds]
yuyichao has joined #pypy
igitoor has quit [Ping timeout: 246 seconds]
igitoor has joined #pypy
vkirilichev has quit [Remote host closed the connection]
igitoor has quit [Changing host]
igitoor has joined #pypy
kipras`away is now known as kipras
Fleche has quit [Read error: Connection reset by peer]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 268 seconds]
david-fb has joined #pypy
<david-fb> Hello. I am an engineer at Facebook evaluating PyPy as an alternative for some of our production use of cpython.
<simpson> david-fb: Good plan.
<david-fb> In the documentation on building from source, packaging step begins with a "cd pypy/tool/release" but I had trouble finding the compents unless I executed the command in the top-level. Is the documentation old or might I have some configuration problem.
ELFrederich has joined #pypy
<ELFrederich> whats the best way to expose C enums to Python? Let's say there's an enum called size with small, medium, large, xl and xxl... Would I just do a #define small ..., #define medium ..., etc in a cdef?
vkirilichev has joined #pypy
<xorAxAx> david-fb: finding which components?
<david-fb> The primary binary, pypy3-c
<david-fb> This is not a major issue but I would voluteer to fix the docs if it is stale.
<simpson> david-fb: Frankly my build process is to use virtualenv and then $(python -mrpython -O2 my_target). No idea whether the docs are suggesting the right thing.
<cfbolz> david-fb: hey and welcome! it's entirely possible that this is out of date
<david-fb> I note the basic build from source using cpython is ~ 50 minutes. Even cutting this in half using pypy seems quite painful from an edit-debug perspective. Any wisdom on how to improve this for development? Any caching or other incrementaility that can be enabled?
<cfbolz> david-fb: when developing you don't recompile that often. all the unit tests don't require compilation
<simpson> david-fb: Many unit tests can run untranslated; you can iterate on a test without translating.
rokujyouhitoma has joined #pypy
<mattip> ELFrederich: I have had luck with feeding the string to cdef, then calling lib = ffi.dlopen(None)
vkirilichev has quit [Remote host closed the connection]
rokujyouhitoma has quit [Ping timeout: 240 seconds]
<mattip> david-fb: there is documentation about the dev process here http://doc.pypy.org/en/latest/how-to-contribute.html
<mattip> and here, where I have highlighted pytest since it is so important http://doc.pypy.org/en/latest/getting-started-dev.html?highlight=pytest
<mattip> and because that is how I found that page :)
<ELFrederich> mattip: yeah... I guess that will keep them all organized and together in your cdef statement. In that example though color means nothing and RED, GREEN, and BLUE are just ints. In your Python wrapper you'd organize them into an Enum class or something I guess
<mattip> ELFrederich: you can do stuff like this ffi.string(ffi.cast('enum color', 0))
<ELFrederich> mattip: interesting, that'll give you the string RED?
<mattip> yup, and ffi.string(ffi.cast('enum color', 4)) will give you '4', not an exception
pilne has joined #pypy
tbodt has joined #pypy
raynold has joined #pypy
david-fb has quit [Quit: Textual IRC Client: www.textualapp.com]
<LarstiQ> hmm, david-fb is gone
* LarstiQ would suggest to use the Makefile for building pypy at first, that should always work
oberstet has quit [Ping timeout: 276 seconds]
<mattip> LarstiQ: AFAICT he was asking about packaging, which is not part of the Makefile
<ELFrederich> mattip: any tips on exposing #defined strings?
<ELFrederich> it seems "#define some_string ..." doesn't work
rokujyouhitoma has joined #pypy
<LarstiQ> mattip: ah, you're right
<mattip> ELFrederich: at the risk of being totally wrong, I think #define macros are used and discarded by pycparser, so you might as well
rokujyouhitoma has quit [Ping timeout: 240 seconds]
<mattip> have done header_text.replace('some_string', '...')
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whitewolf is now known as whiteflof
whiteflof is now known as whitewolf
chelz has quit [Ping timeout: 260 seconds]
tbodt has joined #pypy
Rhy0lite has quit [Quit: Leaving]
yuyichao has quit [Read error: Connection reset by peer]
yuyichao_ has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 246 seconds]
ceridwen has quit [Ping timeout: 246 seconds]
ELFrederich has quit [Quit: Page closed]
ceridwen has joined #pypy
<kenaan> mattip default ac54af67d3c2 /pypy/module/cpyext/: test, fix for PyCFunction_Check and builtins (there is no PyCFunction_CheckExact)
<kenaan> mattip cpyext-add_newdoc 47245401f0f1 /pypy/module/cpyext/: merge default into branch
vkirilichev has joined #pypy
Fleche has joined #pypy
oberstet has joined #pypy
mattip has left #pypy ["bye"]
rokujyouhitoma has joined #pypy
Taggnostr2 has joined #pypy
Taggnostr has quit [Ping timeout: 268 seconds]
rokujyouhitoma has quit [Ping timeout: 240 seconds]
Taggnostr2 has quit [Ping timeout: 248 seconds]
Taggnostr has joined #pypy
vkirilichev has quit [Remote host closed the connection]
Fleche has quit [Ping timeout: 248 seconds]
<nanonyme> ... or then you can always use https://pypi.python.org/pypi/simplecpreprocessor/ to expand macros for you before feeding to pycparser ;)
john51 has quit [Ping timeout: 240 seconds]
john51 has joined #pypy
john51 has quit [Read error: Connection reset by peer]
john51 has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
mat^2 has joined #pypy
david-fb has joined #pypy
Fleche has joined #pypy
deep-book-gk_ has joined #pypy
deep-book-gk_ has left #pypy [#pypy]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 268 seconds]
lritter has quit [Quit: Leaving]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
oberstet has quit [Quit: Leaving]
<kenaan> antocuni extradoc 539d94abb88f /talk/ep2017/the-joy-of-pypy-jit/: skeleton for my talk
<kenaan> antocuni extradoc 468dc8f9a06b /talk/ep2017/the-joy-of-pypy-jit/: more slides and import the sobel demo
<kenaan> antocuni extradoc e409253e059c /talk/ep2017/the-joy-of-pypy-jit/: make it possible to benchmark a single version; add more slides
<kenaan> antocuni extradoc e5b2630698e6 /talk/ep2017/the-joy-of-pypy-jit/talk.rst: more slides
<kenaan> antocuni extradoc be6b6ec88341 /talk/ep2017/the-joy-of-pypy-jit/: generate some charts and show them
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
realitix has joined #pypy
realitix has quit [Remote host closed the connection]
tbodt has joined #pypy
david-fb has quit [Ping timeout: 276 seconds]
adamholmberg has joined #pypy
marr has quit [Ping timeout: 268 seconds]
adamholmberg has quit [Ping timeout: 248 seconds]
yuyichao_ has quit [Ping timeout: 246 seconds]
rokujyouhitoma has joined #pypy
Polsaker is now known as Polesaker
rokujyouhitoma has quit [Ping timeout: 248 seconds]