Hi everyone, Will CLPython have a global interpreter lock? Will it allow different threads to touch Python objects simultaneously on different cores?
Thanks, Anand
On Fri, Oct 3, 2008 at 11:52 AM, Anand Patil anand.prabhakar.patil@gmail.com wrote:
Will CLPython have a global interpreter lock? Will it allow different threads to touch Python objects simultaneously on different cores?
My impression is that there is no need for a global lock: if CLPython were running in an SMP-capable Lisp implementation then multiple threads could execute Python code concurrently. But for that to work correctly, first many parts of CLPython must be made thread-safe. I've not given this any attention yet.
- Willem
Thanks, it will be great to have a fast, SMP-capable Python implementation someday. Another question: are you planning on providing a Python-C API, so that packages with compiled extensions can run on CLPython? Cheers, Anand
On Fri, Oct 3, 2008 at 2:34 PM, Willem Broekema metawilm@gmail.com wrote:
On Fri, Oct 3, 2008 at 11:52 AM, Anand Patil anand.prabhakar.patil@gmail.com wrote:
Will CLPython have a global interpreter lock? Will it allow different threads to touch Python objects simultaneously on different cores?
My impression is that there is no need for a global lock: if CLPython were running in an SMP-capable Lisp implementation then multiple threads could execute Python code concurrently. But for that to work correctly, first many parts of CLPython must be made thread-safe. I've not given this any attention yet.
- Willem
On Fri, Oct 3, 2008 at 5:03 PM, Anand Patil anand.prabhakar.patil@gmail.com wrote:
Thanks, it will be great to have a fast, SMP-capable Python implementation someday. Another question: are you planning on providing a Python-C API, so that packages with compiled extensions can run on CLPython?
No, there are no plans for implementing the C API. Actually I doubt it is practically possible, given the differences in e.g. object representation, garbage collection and exception handling.
- Willem
clpython-devel@common-lisp.net