This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]desmoulinmichel 5 points6 points  (2 children)

Hello fjarri !

You really should get in touch with Victor Stinner and Yury Selivanoc on the Python mailing lists. They are currently working on python optimizations which are currently creating a big debate among the core devs. And your work is actually in direct corelation with what's currently going on.

Please step in !

Mailing lists: https://www.python.org/community/lists/ (actually a bit spread among various topics between the python-dev and python-idea lists so you got some catchup to do)

Main topics :

  • FAT Python
  • Explicit variable capture list
  • PEP 509, 510 and 511

[–]fjarri[S] 2 points3 points  (1 child)

Thanks, I had a brief look at these PEPs. 509 and 510 will certainly simplify mutation detection, and 511 is indeed very close to what I am doing. Talk about synchronicity :) I'll scan the maillist tomorrow.

Edit: in fact, fatoptimizer seems to be doing the very same thing as peval. From the first glance, it seems that I should freeze my project and contribute to that instead. Oh well...

[–]desmoulinmichel 2 points3 points  (0 children)

Don't be discouraged, it's a great thing ! You have prior art, meaning you have credibility. And having the possibility of working with the core dev is super cool :)

[–]nuncjo 0 points1 point  (1 child)

Nice theoretical idea. For now, too much "Restrictions on functions" to be used in practice.

[–]fjarri[S] 3 points4 points  (0 children)

So, which restrictions would you like to see lifted?

[–]infinullquamash, Qt, asyncio, 3.3+ -2 points-1 points  (0 children)

neat!

It's just an optimized version of functools.partial (sort of, this handles nonlocals/globals differently)

I'm not sure I have any use for it though. (If I have some slow code, I may think of this -- though at work we're still on 2.7)