These are chat archives for dropbox/pyston

9th
Aug 2016
Sun
@Daetalus
Aug 09 2016 13:41

Hi @kmod

Pyston missing PyEval_ReleaseThread and related APIs. Due to Pyston already implemented PyThread_acquire_lock and some other APIs in src/runtime/builtin_modules/thread_pthread.h. Seems it is not hard to support those APIs, now. Maybe just copy CPython implementation: https://github.com/Daetalus/cpython/blob/2.7/Python/ceval.c#L265

Thoughts?

Kevin Modzelewski
@kmod
Aug 09 2016 16:25
so I think the tricky thing with the ReleaseThread/AcquireThread API is that they let you release a python thread from one system thread and resume it on another system thread
or rather, I think it's allowed by the API
and we just have to make sure that that doesn't happen since we don't fully support that yet
so for instance I'm not sure how we would implement PyThreadState_Swap, since for us (at least right now), each thread always has a specific thread state attached to it
Kevin Modzelewski
@kmod
Aug 09 2016 16:31
Oh, here try this:
kmod/pyston@eb4b6c7
that implementation is at least an improvement over "always fail"
Sun
@Daetalus
Aug 09 2016 22:49
PyPy gets funding from Mozilla for Python 3.5 support
https://morepypy.blogspot.fr/2016/08/pypy-gets-funding-from-mozilla-for.html