asmeurer has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amaury has joined #pypy
asmeurer has quit [Quit: asmeurer]
amaury has quit [Quit: Konversation terminated!]
amaury has joined #pypy
aboudreault has quit [Excess Flood]
aboudreault has joined #pypy
adwin has quit [Ping timeout: 240 seconds]
tbodt has joined #pypy
tbodt has quit [Client Quit]
amaury has quit [Ping timeout: 255 seconds]
yuyichao has quit [Ping timeout: 240 seconds]
tbodt has joined #pypy
yuyichao has joined #pypy
jcea has quit [Quit: jcea]
lritter_ has joined #pypy
lritter has quit [Ping timeout: 246 seconds]
ArneBab_ has joined #pypy
ArneBab has quit [Ping timeout: 255 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
egregius has joined #pypy
tbodt has quit [Ping timeout: 246 seconds]
tilgovi has joined #pypy
tilgovi has quit [Remote host closed the connection]
tbodt has joined #pypy
tilgovi has joined #pypy
tilgovi has quit [Ping timeout: 245 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
tilgovi has joined #pypy
tbodt has quit [Ping timeout: 240 seconds]
asmeurer has joined #pypy
asmeurer has quit [Quit: asmeurer]
asmeurer has joined #pypy
egregius has quit [Ping timeout: 240 seconds]
egregius has joined #pypy
pilne has quit [Quit: Quitting!]
tilgovi has quit [Ping timeout: 246 seconds]
tilgovi has joined #pypy
lritter_ has quit [Quit: Leaving]
egregius has quit [Ping timeout: 268 seconds]
DragonSA has joined #pypy
vkirilichev has joined #pypy
DragonSA has quit [Ping timeout: 268 seconds]
tilgovi has quit [Ping timeout: 246 seconds]
vkirilichev has quit [Remote host closed the connection]
vkirilichev has joined #pypy
tilgovi has joined #pypy
vkirilichev has quit [Ping timeout: 260 seconds]
jamadden has quit [Quit: Leaving.]
vkirilichev has joined #pypy
asmeurer has quit [Quit: asmeurer]
vkirilichev has quit [Remote host closed the connection]
vkirilichev has joined #pypy
vkirilichev has quit [Ping timeout: 260 seconds]
adwin has joined #pypy
asmeurer has joined #pypy
jamesaxl has joined #pypy
asmeurer has quit [Ping timeout: 260 seconds]
lazybear has quit [Ping timeout: 240 seconds]
realitix has joined #pypy
lazybear has joined #pypy
vkirilichev has joined #pypy
arigato has joined #pypy
adwin has quit [Ping timeout: 240 seconds]
asmeurer__ has joined #pypy
asmeurer__ has quit [Ping timeout: 260 seconds]
jamescampbell has joined #pypy
jamescampbell has quit [Client Quit]
jamescampbell has joined #pypy
vkirilichev has quit [Remote host closed the connection]
vkirilichev has joined #pypy
tazle has quit [Remote host closed the connection]
tazle has joined #pypy
asmeurer__ has joined #pypy
oberstet3 has joined #pypy
oberstet3 is now known as oberstet
vkirilichev has quit []
asmeurer__ has quit [Quit: asmeurer__]
jcea has joined #pypy
zware has quit [Ping timeout: 240 seconds]
zware has joined #pypy
arigato has quit [Quit: Leaving]
arigato has joined #pypy
jamescampbell has quit [Quit: Leaving...]
tilgovi has quit [Ping timeout: 245 seconds]
Garen_ has joined #pypy
cstratak has joined #pypy
DRMacIver_ has joined #pypy
dustinm- has joined #pypy
Civilian has joined #pypy
pedronis` has joined #pypy
jimbaker- has joined #pypy
pepesza- has joined #pypy
jamesaxl has quit [*.net *.split]
jimbaker has quit [*.net *.split]
Civil has quit [*.net *.split]
Garen has quit [*.net *.split]
pepesza has quit [*.net *.split]
dustinm has quit [*.net *.split]
rubdos has quit [*.net *.split]
DRMacIver has quit [*.net *.split]
pedronis has quit [*.net *.split]
DRMacIver_ is now known as DRMacIver
jamesaxl has joined #pypy
rubdos has joined #pypy
pedronis` is now known as pedronis
nimaje has joined #pypy
vkirilichev has joined #pypy
<kenaan> arigo cffi/cffi f6f8d7ce7ff2 /doc/source/whatsnew.rst: Whatsnew
<kenaan> arigo cffi/cffi[char16_char32_t] bb0d933723be /c/: A branch for issue #315
marr has joined #pypy
Rhy0lite has joined #pypy
arigato has quit [Ping timeout: 260 seconds]
<kenaan> rlamy rawrefcount-review 4d59821bd195 /rpython/memory/gc/test/test_rawrefcount.py: move code
<kenaan> rlamy rawrefcount-review 1cf3a5fddabb /rpython/memory/gc/test/test_rawrefcount.py: Remove some code duplication
jimbaker- has quit [Ping timeout: 272 seconds]
jimbaker has joined #pypy
arigato has joined #pypy
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
pilne has joined #pypy
cstratak has quit [Quit: Leaving]
cstratak has joined #pypy
Civilian has quit [Quit: Leaving]
Civil has joined #pypy
<kenaan> arigo cffi/cffi[char16_char32_t] cd57d8a64e4d /c/: fixes
dcrosta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vkirilic_ has joined #pypy
vkirilichev has quit [Ping timeout: 268 seconds]
adw1n has joined #pypy
<kenaan> arigo cffi/cffi[char16_char32_t] ac2fc8661954 /: Tests and fixes
draynium has quit [Remote host closed the connection]
cstratak has quit [Ping timeout: 260 seconds]
<kenaan> arigo cffi/cffi[char16_char32_t] 5c4f518e8d62 /testing/: more tests
marky1991 has joined #pypy
cstratak has joined #pypy
vkirilichev has joined #pypy
vkirilic_ has quit [Ping timeout: 268 seconds]
cstratak has quit [Remote host closed the connection]
cstratak has joined #pypy
rmesta has joined #pypy
rmesta has left #pypy [#pypy]
<kenaan> arigo cffi/cffi[char16_char32_t] 983e7f434f13 /: in-progress
realitix has quit [Ping timeout: 272 seconds]
yuyichao has quit [Ping timeout: 245 seconds]
asmeurer has joined #pypy
jcea has quit [Ping timeout: 260 seconds]
<kenaan> arigo cffi/cffi[char16_char32_t] 2c0195e0f232 /: fixes
dcrosta has joined #pypy
adw1n has quit [Ping timeout: 260 seconds]
jcea has joined #pypy
yuyichao has joined #pypy
asmeurer has quit [Quit: asmeurer]
vkirilichev has quit [Remote host closed the connection]
vkirilichev has joined #pypy
<kenaan> arigo cffi/cffi[char16_char32_t] 8e7afeadc985 /: tweaks
* arigato realizes his branch has all commits with similarly meaningless messages
<antocuni> :)
vkirilichev has quit [Ping timeout: 260 seconds]
<dash> start using messages from whatthecommit.com
asmeurer__ has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]
marr has quit [Ping timeout: 246 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
marr has joined #pypy
<kenaan> arigo cffi-complex 593f66be444b /pypy/module/_cffi_backend/: Implement complexes, enough to make the test_c part pass
[0__0] has joined #pypy
<kenaan> arigo cffi-complex 01d27eabba7c /pypy/module/_cffi_backend/: parse_c_type
<kenaan> arigo cffi/cffi 28290fb948f1 /testing/cffi1/test_new_ffi_1.py: no-op, but avoids confusion because these two are always listed in the opposite order elsewhere
<kenaan> arigo cffi/cffi 1e353c3fe102 /: Update the version to 1.11
[0__0] has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
marr has joined #pypy
[0__0] has joined #pypy
Rhy0lite has quit [Quit: Leaving]
asmeurer__ has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]
<kenaan> arigo cffi-complex 92d597a61c6a /pypy/module/_cffi_backend/: Call support for functions with complex args/return types
<kenaan> arigo cffi-complex d795c4cf2cd0 /pypy/module/_cffi_backend/__init__.py: Update the version number here
<kenaan> arigo cffi/cffi e4e863b06bc7 /c/test_c.py: update
<kenaan> arigo cffi-complex 866666ccccd6 /pypy/module/_cffi_backend/test/_backend_test_c.py: update
cstratak has quit [Ping timeout: 258 seconds]
<kenaan> rlamy py3.5 252218fff126 /lib_pypy/_testcapimodule.c: Update _testcapimodule.c to 3.5.3, disabling things that don't compile
lritter has joined #pypy
bauerj_ has joined #pypy
vkirilichev has joined #pypy
bauerj_ has quit [Remote host closed the connection]
<kenaan> rlamy py3.5 2420f0a96b7c /lib-python/3/test/test_capi.py: Skip crashing test
adw1n has joined #pypy
tbodt has joined #pypy
tbodt has quit [Ping timeout: 268 seconds]
mattip has joined #pypy
jamesaxl has quit [Read error: Connection reset by peer]
yuyichao has quit [Ping timeout: 240 seconds]
jamesaxl has joined #pypy
trfl has quit [Quit: ZNC - http://znc.in]
lesshaste has joined #pypy
<lesshaste> hi
<lesshaste> does anyone know how to get jupyter to use pypy (in windows)?
yuyichao has joined #pypy
<kenaan> arigo cffi-complex 97086aa395d9 /: import cffi/e4e863b06bc7
tbodt has joined #pypy
<ronan> lesshaste: run jupyter on top of pypy
<kenaan> arigo cffi-complex 960fd87cce17 /pypy/doc/whatsnew-head.rst: Document branch
<kenaan> arigo cffi-complex fe3d4678c68f /: ready to merge
<kenaan> arigo default 5e7bef99e9f5 /: hg merge cffi-complex "float _Complex", "double _Complex"
<lesshaste> ronan, so this means I need to install jupyter using the pypy version of pip?
<ronan> yes
<lesshaste> in case I wasn't clear (or am just confused) I am only want my python code to be run in pypy. I don't even know if jupyter is written in python of course
<lesshaste> I think this is what they call using pypy as a kernel?
vkirilichev has quit [Remote host closed the connection]
<ronan> yes, jupyter is written in python. It might be possible to run a pypy kernel on top of a CPython jupyter or vice versa, but I've never found out how
<lesshaste> ah ok
<lesshaste> I think that's what I want to do
vkirilichev has joined #pypy
vkirilichev has quit [Read error: Connection reset by peer]
vkirilic_ has joined #pypy
trfl has joined #pypy
ramonvg has joined #pypy
<mattip> lesshaste: you could add it as an additional kernel, like getting jupyter to run either python2 or python3
<mattip> let's see if I can reconstruct where I found the recipe to do that ...
<lesshaste> mattip, right! Do you know how to do that?
<lesshaste> oh thanks
<mattip> https://github.com/jupyter/jupyter/issues/71 is a bit telagraphic and explains how to do python2/python3
<mattip> it seems the idea is to setup jupyter, then, in a pypy env, pip install ipykernel
<mattip> then somehow register that with your jupyter. It would be nice if you could document your steps to success
<lesshaste> thanks :)
<mattip> and we could get them into the official documentation somehow
<lesshaste> pypy doesn't talk about windows a whole lot
<lesshaste> in the docs I mean
<lesshaste> mattip, there is still no 64 bit pypy for windows which always surprises
<lesshaste> me
<mattip> ye$, there i$ a way thi$ could be $olved, if the $omething like the Mozilla grant to move PyPy3.5 forward would happen
<bremner> itym y€s th€r€ is ... ;)
<danchr> isn't pypy3 in reasonably good shape?
<cfbolz> danchr: yes, but win64 isn't
<danchr> ah, I missed the “something like” part :)
lesshaste has quit [Read error: Connection reset by peer]
<mattip> can someone remind me what is the state of OS X and py3.5?
<mattip> right now translation fails, is that because the buildbot is too old?
<danchr> mattip: I use it on a day-to-day basis
<danchr> but yeah, the buildbot fails due to unrelated issues
<danchr> mainly the fact that it uses the bundled OpenSSL on an old version of OS X — which newer versions still include the library for, but not headers
<mattip> danchr: cool, I am starting to prep the 5.8 release, and it would be nice to release a OS X py3.5 tarball
<mattip> binary
<mattip> could we impose on you to either upload it once I tag a version?
<mattip> or run a buildbot :)
<danchr> mattip: the main issue is where/how to get OpenSSL libraries
marky1991 has quit [Ping timeout: 255 seconds]
<danchr> I build against MacPorts, and I have a pypy3 port waiting to be committed, but the binaries I use aren't stand-alone as such
<mattip> what does cpython do?
<danchr> Apple distributes CPython 2.7; no idea whether the PSF distributes py3k binaries
<danchr> I'll check
<danchr> they do; as a packaged installer, even
<mattip> minimum OS X - 10.6
<danchr> AFAICT they bundle OpenSSL
<danchr> mattip: http://dpaste.com/0MV04D5
<danchr> I think working with MacPorts, Fink and HomeBrew might be a better path forward, at least for now
<danchr> (I'd like to run a Mac buildbot, but I don't have any dedicated hardware to run it on, sorry…)
<mattip> maybe we should do like they do, ship local versions of the dynalib
<danchr> yeah
<mattip> (yes, I was half joking)
<danchr> personally, my priority would be on making the PyPy installer less weird — but I haven't found the time to give it a go
<danchr> $prefix/site-packages is just wrong, and means that most packager won't actually install PyPy directly into the default prefix
<danchr> +s
<mattip> danchr: translation is failing on our buildbot, 'AssertionError: missing 'SCHED_BATCH'" in rposix,
<danchr> eh?
<mattip> is that also due to the age of the distro?
<danchr> I haven't bootstrapped PyPy in a while
<danchr> nope, that's a new one
<mattip> ok, thanks
<danchr> yup, OS X doesn't have SCHED_BATCH
<danchr> seems like a linuxism; it's not available on FreeBSD either AFAICT
<mattip> so that should be only used conditionally on it existing
<arigato> mattip: I accepted a pull request to add that; I guess the PR author didn't check
<arigato> note that rposix.SCHED_BATCH is always defined (on posix), but may be None
* mattip grepping for examples of conditional definitions
<danchr> AFAICT both OS X and FreeBSD only define SCHED_FIFO, SCHED_OTHER and SCHED_RR, but not SCHED_BATCH
<danchr> wouldn't it be possible to fix this is in the rpython logic so that it automatically checked for any predefined symbols?
<danchr> last time the branch broke it was exactly the same kind of error…
<mattip> there is rffi_platform.Has() but it is for functions
<danchr> right; I was wrong — the cause of the error is the bare assert, of course
marky1991 has joined #pypy
<mattip> arigato: the docstring of DefinedConstantInteger would suggest it is doing exactly what you requested
<arigato> what did I request?
<mattip> "rposix.SCHED_BATCH is always defined (on posix), but may be None"
<arigato> it was not a request
<mattip> and in rposix there is SCHED_BATCH = rffi_platform.DefinedConstantInteger('SCHED_BATCH')
<arigato> I was describing how it works right now
<arigato> the code in pypy/module/posix/__init__.py needs fixing, to not crash when SCHED_BATCH is None, but instead to not expose anything to app-level
<mattip> ok, now I get it
<danchr> (it's in my own repository so I can amend the commit later, if needs be)
<danchr> so far, it's succeeding
lazybear has quit [Excess Flood]
lazybear has joined #pypy
eregon has quit [Write error: Broken pipe]
Hodgestar has quit [Remote host closed the connection]
eregon has joined #pypy
Hodgestar has joined #pypy
<mattip> danchr: cool. Perhaps that should be divided into two parts: some declarations are required, some (currently only SCHED_BATCH) can fail?
<mattip> s/fail/be None and silenty ignored/
<danchr> some code locations in that file assert, others don't
<danchr> I don't think these are required for translation, so it might not matter that they're absent
<danchr> right?
adeohluwa has joined #pypy
arigato has quit [Quit: Leaving]
<mattip> ok, but the tests in test/test_posix2.py will fail as is, they should check for posix.SCHED_BATCH before using it
sms has joined #pypy
<mattip> danchr: ^^^^
<sms> Is there an easy or standard way to import a Python lib into C using CFFI?
<mattip> sms: the question is not well defined, but I fear the answer is no
<mattip> the interface to a python lib is via python, CFFI is for C interfaces
<dash> sms: what would you like to do?
<danchr> gah: [translation:ERROR] TypeError: gen_makefile() got an unexpected keyword argument 'profopt'
<danchr> that was an inopportune error…
<sms> dash: Let's say I want to embed the requests library from Python in C, how would I go about doing that
<sms> Could I just import or do I have to write functions using it in Python and just use those in C?
<danchr> mattip: translation _appeared_ to succeed, but failed to generate the Makefile — I'm afraid that's all I have time for today
<mattip> danchr: thanks. FWIW you might find it much faster to run tests to test changes like this,
<mattip> python pytest.py pypy/module/posix
<danchr> yeah, I now — I just expected this trivial fix to work
<mattip> would have shown the failure, and the fix would have exposed the next test failures
<danchr> I don't think the failure I'm getting is related
<danchr> see the earlier line — [translation:ERROR] TypeError: gen_makefile() got an unexpected keyword argument 'profopt'
<mattip> yes, there was a problem with the profopt commit
<danchr> which branch works? py3.5 or the release branch?
Tiberium has joined #pypy
<mattip> they only tested linux too, there was a fix for windows, it must not have made it to py3.5 OSX
<mattip> danchr: AFAICT it was commit 41f544557a61 on default
<mattip> which has not been merged to py3.5
<danchr> mattip: could you perhaps do the merge?
<mattip> yes
<dash> sms: hmm. my question is more "what are you writing in C?" :-)
<sms> Well, the features that I want to embed from Python are mainly for scraping data
Tiberium has quit [Remote host closed the connection]
<sms> Yep I did
dcrosta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mattip> ronan: around? it seems py3.5 need a merge from default before the release, and there are conflicts
<sms> I know how I could use the library if I need if I #import it and write some Python functions to use, but I was just wondering if there's a way to just #import an entire library into C to use the functionality.
<sms> Exposing a library written in Python directly to C/C++ programs.
<sms> How
q4 has joined #pypy
<mattip> sms: that page is state-of-the-art best practice, especially on this IRC channel
<ronan> mattip: I'll do it
<mattip> ronan: thanks.
<tos9> If I have a dict with static keys and then do millions of lookups into it, how good is the JIT these days at figuring out that it can actually turn that into array lookups amd ot
<tos9> s/amd ot//
<tos9> Or do I still need to wrap that into an instance of a class to convince it to
<tos9> Or use pypy.whateverdictthingIrememberisInthere
<dash> sms: python is fast, C is slow
<dash> sms: what do you need C for, exactly?
<sms> I don't agree with that
<sms> It's faster to write functioning code with yeah
<dash> sms: probably because you have not used pypy enough ;-)
<sms> But the main reason is because I'm creating a music streaming application
<dash> ok. in the style of icecast, etc?
<sms> More like Spotify
marky1991 has quit [Read error: Connection reset by peer]
<dash> ok. pypy would probably be a good choice for this
<sms> How portable is PyPy
<dash> it runs on x86, arm, ppc
<dash> and s390 but i think mainframers only listen to vinyl
mattip has left #pypy ["bye"]
<kenaan> rlamy py3.5 776f5fd5d727 /: hg merge default
<sms> Yeah the reason I want to use C though dash is so I don't have to have a Python environment installed and setup on Windows just to use my program
<dash> sms: sure, but there are several tools that help with that these days
<sms> Like what?
<ronan> tos9: I don't think you can turn dict loookups into array lookups. OTOH class instances are fast and tend to make your code look better.
<dash> sms: or to rephrase: if you want to embed python in a c program, you will have to solve this problem anyway
<dash> sms: so it's easier to just figure out your windows distribution strategy and write stuff in python instead :)
<tos9> ronan: If you have a static set of keys that never changes, just make believe it's a struct
<tos9> ronan: Same as if it was a class whose __dict__ was those things
<sms> That's not true, CFFI creates a standalone library independent of Python
<tos9> ronan: And yeah I can turn it into a class it just actually makes things a bit uglier here because someone says "I want a, b, and c", I make {a: foo, b: foo, c: foo} and then hand back a function that basically is call("a") -> d["a"].bla(1, 2, 3), so external users don't see the dict/instance
<tos9> it's just inside a closure
<dash> sms: if you're going to run python code, you have to have a python runtime.
<sms> Wait you're right I guess, I misread
<ronan> tos9: I see what you mean , but classes will give you the best perf for that use case in pypy
<sms> Alright that's really annoying
<sms> Hmm
<tos9> ronan: /nod -- sounds good, jsut figured I'd check to see if anything'd changed :), thanks1
<tos9> !
<ronan> tos9: I'd just write some make_struct() function create the classes and hide the metaprogramming from the rest of the code
<tos9> Yeah, gonna just use `type` or attr.make_class I think.
<dash> sms: python annoyed me so much i started making my own programming language instead
<dash> (... using pypy's tools for it :)
<sms> It's not that I don't like Python, it's just that I don't use much aside from Python
<sms> So I wanted to make some cool portable app
<sms> But then I needed to write something that would be a huge pain to do in native C but trivial in Python, but there goes portability I suppose
<dash> it's not like portability is easy in C either
<sms> Yeah you're right
<sms> Maybe I just write it in Java
<dash> i hear javascript is popular now
<sms> Haha
asmeurer__ has joined #pypy
<nimaje> sms: well, how about using one of those single binary creators for windows, and other platforms most likely have a good package manager?
<sms> I mean, it's not a huge deal for me. I can set up my environments
<sms> But let's say I wanted to put it up on a website for other people to use, I don't want a huge instruction manual on how to use it
<sms> Having people set up their environment just to use a music streamer
<ronan> sms: with things like py2exe or cx_Freeze, most users won't even know that the app uses Python
<sms> Hmm
<nimaje> sms: and why would that setup for a program writen in C be easier? with python they can run it after installing the dependencies, with C they also have to compile it (ok most times not really difficult, but one step more)
vkirilic_ has quit [Remote host closed the connection]
<kenaan> mattip default 72697b76c5bf /pypy/doc/release-v5.8.0.rst: summarize changes since 5.7.0, read up to changeset 77bf5cbc29e9
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sms> What you guys don't realize is
<sms> I've wrote Python almost exclusively for a LONG time
<sms> I'm sick of using it and want to get better at other languages
<dash> sms: good idea
<sms> Also I don't know how it's being argued that C isn't any more portable
<sms> Are you forgetting that Python is interpreted
<dash> sms: on pypy it's compiled to native code :)
<dash> sms: point is, you are used to distributing python programs as source code
<sms> Yeah pretty much
<dash> sms: you can build an installable standalone windows program from python code
<sms> Maybe I'll do that after, if I can't get this working in C
<dash> sms: that's just as portable as one built from C code
<sms> Yeah I need to look into that more
<sms> It's fast to?
marr has quit [Ping timeout: 240 seconds]
mat^2 has joined #pypy
ramonvg has quit [Remote host closed the connection]
tbodt has joined #pypy
adeohluwa has quit [Quit: Connection closed for inactivity]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
q4 has quit [Ping timeout: 240 seconds]
tbodt has joined #pypy
bogner has quit [Quit: leaving]
bogner has joined #pypy
bogner has quit [Client Quit]
bogner has joined #pypy
vkirilichev has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy