cfbolz 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 | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
speeder39_ has joined #pypy
lritter has quit [Quit: Leaving]
jcea has quit [Quit: jcea]
jcea has joined #pypy
speeder39_ has quit [Quit: Connection closed for inactivity]
jcea has quit [Quit: jcea]
dansan has quit [Ping timeout: 258 seconds]
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy
_whitelogger has joined #pypy
Alex_Gaynor has quit [Read error: Connection reset by peer]
Olorin has quit [Read error: Connection reset by peer]
ctismer has quit [Read error: Connection reset by peer]
fijal has quit [Read error: Connection reset by peer]
Guest68750 has quit [Read error: Connection reset by peer]
ctismer has joined #pypy
Guest68750 has joined #pypy
<mattip> about 26691d5fd920: post_include_bits will only be used with separate_module_sources,
<mattip> when using seperate_module_files the post_include_bits are thrown away
Alex_Gaynor has joined #pypy
<mattip> well, since no C source is generated they are ignored
fijal has joined #pypy
Olorin has joined #pypy
wallet42_ has quit [Ping timeout: 244 seconds]
altendky has quit [Read error: Connection reset by peer]
altendky has joined #pypy
wallet42_ has joined #pypy
jacob22 has quit [Read error: Connection reset by peer]
otisolsen70 has joined #pypy
jacob22 has joined #pypy
<arigato> mattip: RPYTHON_JITLOG appears not used at all. I guess it's a leftover
<arigato> but note that "if not we_are_translated():" at global module level will always pass
<arigato> i.e. it's not testing anything, written like that
<mattip> hmm, that's less good
<arigato> also, "#define JITLOG xxx" has no effect on a string "JITLOG" used in C
<arigato> you need to write in C something like #ifdef JITLOG ... #else ... #endif
<arigato> I suggest that you edit rpython.translator.goal.translate
<arigato> so that this file replaces things around to give the end result ``getenv("JITLOG")`` in C
<arigato> and by default this is ``getenv("JITLOG_FORTESTING")``
<arigato> you can do that in a way similar to RPY_REVERSE_DEBUGGER in translator/c/genc.py
<arigato> which is an env var set explicitly there
<mattip> arigato: feel like taking it over?
<arigato> OK
<mattip> thanks!
<arigato> ah I see you did the macro thing
<arigato> with Py_STR
<arigato> and also, I was confused
<arigato> and still am
<arigato> there is PYPYLOG and also JITLOG
<arigato> two different things I guess
<arigato> I thought this was about PYPYLOG, but probably they both have the same problem
<arigato> does it make sense to apply the same solution to both? i.e. replace PYPYLOG with PYPYLOG_FORTESTS?
<arigato> mattip: done for JITLOG
<arigato> PYPYLOG would be similar, if it is needed
<mattip> thanks again. Does PYPYLOG have tests that are failing?
<arigato> I don't know the status
<mattip> and
<arigato> right, but which revisions are run with pypy instead of cpython here?
<mattip> the last three own tests
<arigato> no need to fix a non-problem, I guess. let's only fix PYPYLOG if we see it's an issue somewhere
<mattip> right, that is why I am doing this very slowly
<mattip> in the first link, I don't understand the pypy.interpreter.test.test_app_main failures
<mattip> they passs locally for me
<mattip> I seem to remember this "TypeError: __init__() takes exactly 1 argument (2 given)" from another issue,
<mattip> but why is it showing up in the tests?
<mattip> is some state cached somewhere that should be cleared?
<arigato> I agree that it's very strange
<arigato> I can do type(sys.flags)([0]*16) in pypy on linux
<arigato> works on windows too
<mattip> adding config.translation.rpython_translate may be helpful in other places in this transition too
<mattip> so +1
<arigato> the error doesn't make sense, but maybe would if we're accidentally calling CPython here and it's a slightly older version of CPython 2.7.x where the error message for calling type(sys.flags)() was different than what it is now
<arigato> or maybe it's an old version of pypy2, for all I know
otisolsen70_ has joined #pypy
otisolsen70 has quit [Ping timeout: 240 seconds]
Taggnostr has quit [Ping timeout: 240 seconds]
Taggnostr has joined #pypy
otisolsen70__ has joined #pypy
otisolsen70_ has quit [Ping timeout: 240 seconds]
dansan has joined #pypy
otisolsen70_ has joined #pypy
otisolsen70__ has quit [Ping timeout: 258 seconds]
lritter has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2421 [mattip: test app_main, test_app_main]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2421 [mattip: test app_main, test_app_main]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2422 [mattip: test app_main]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2422 [mattip: test app_main]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2423 [mattip: test app_main]
otisolsen70_ has quit [Quit: Leaving]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2423 [mattip: test app_main]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2424 [mattip: test app_main]
_whitelogger has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2424 [mattip: test app_main]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2425 [mattip: test app main]
todda7 has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/2425 [mattip: test app main]
<mattip> it seems sys.flags is being translated from site.Flags, but where does site.Flags come from?
<mattip> ahh, it is something to do with the virtualenv python
<mattip> which is pypy, but not quite correctly
<mattip> (own tests run in a virtualenv, see the setup steps before the actual tests)
jcea has joined #pypy
<mattip> running in a pypy virtualenv fails the same on linux
<mattip> so the problem is that app_main.py has its own we_are_translated(), and it is too blunt a tool:
<mattip> it looks for sys.pypy_translation_info, which any pypy will have
<arigato> time to add 'sys.pypy_untranslated' maybe, only on untranslated pypy's?
<mattip> I think the fix for this one is easier: in test_app_main, in "def check", I can add a def we_are_translated(): return False
<mattip> it seems to work on cpython2, pypy, pypy-in-a-venv
<mattip> well, and then assign that function to app_main.we_are_translated
<mattip> but if you think it will be simple to add a sys.pypy_untranslated, that would be great
todda7 has quit [Ping timeout: 258 seconds]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8304 [mattip: force build, redo-pr-639]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7140 [mattip: force build, redo-pr-639]
speeder39_ has joined #pypy
epony has quit [Ping timeout: 258 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8304 [mattip: force build, redo-pr-639]
epsilonKNOT has joined #pypy
altendky has quit [Ping timeout: 240 seconds]
wallet42_ has quit [Ping timeout: 240 seconds]
altendky has joined #pypy
altendky has quit [Excess Flood]
wallet42_ has joined #pypy
altendky has joined #pypy
epony has joined #pypy
speeder39_ has quit [Quit: Connection closed for inactivity]
epsilonKNOT has quit [Quit: ZNC - https://znc.in]
epsilonKNOT has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7140 [mattip: force build, redo-pr-639]
RemoteFox has joined #pypy
RemoteFox has left #pypy [#pypy]
igitoor has quit [Ping timeout: 260 seconds]
igitoor has joined #pypy
epsilonKNOT_ has joined #pypy
epsilonKNOT has quit [Ping timeout: 256 seconds]
igitoor has joined #pypy
igitoor has quit [Changing host]
lritter has quit [Quit: Leaving]