cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake | IRC logs: and | the pypy angle is to shrug and copy the implementation of CPython as closely as possible, and staying out of design decisions
jcea has quit [Read error: Connection reset by peer]
jcea has joined #pypy
jcea has quit [Client Quit]
jcea has joined #pypy
jcea has quit [Ping timeout: 246 seconds]
<cfbolz> ronny: there are not really any tools but one of the ways that we have made the tracing jit faster is indeed to make it use way less memory
<fijal> it's not exactly trivial to do though
<cfbolz> yeah, it's a complete refactoring of everything
<fijal> you mean a specific one or a more general theme?
mjacob has quit [Read error: Connection reset by peer]
mjacob has joined #pypy
<cfbolz> fijal: in general
<cfbolz> fijal: if you want to use the "struct of arrays" pattern you suddenly need to think about lifetimes of your objects, which is just a mess
<antocuni> ronan: I'd like to have a link to that talk
<cfbolz> antocuni: this one probably:
<antocuni> thanks!
jcea has joined #pypy
pbsds has quit [Quit: The Lounge -]
sthalik has joined #pypy
<sthalik> hey. a compiler question: do you try to prove that locals() isn't used? if so, is it easy, or as hard as Scheme code that provably doesn't use call/cc?
<sthalik> (because you can assign locals() or call/cc to another variable or use eval(), etc)
<cfbolz> sthalik: we don't try to prove that, no. if you use it, we deoptimize
<sthalik> so you fall back to an unoptimized version?
<cfbolz> no, we fall back to the interpreter
<sthalik> this is very smart and clever and interesting
<sthalik> not something I can help with or improve, sadly
<cfbolz> it's kind of the JIT approach to things, you can always go back to the interpreter if the program does something too weird
<cfbolz> sthalik: why are you interested in locals() in particular?
<sthalik> cfbolz, I wonder how you do things in compilers like this where very little is static
<sthalik> but no, me asking the question won't help the project
<sthalik> also, I can run the buildbot again (any arch) if you so wish
<cfbolz> sthalik: asking questions is always fine :-)
<sthalik> cfbolz, :-)
* sthalik gonna benchmark
<sthalik> (1200 lines almost beats gnugo on a large board)
pbsds has joined #pypy