Re:A Python Interpreter Written in Rust
by sametmax on Sunday February 03, 2019 @08:32AM
(#19069467)
Yes. Actually you get one gil per interpretter, and can spawn your thread in sub interpretter.
Cpython could do it, but currently can't provide much since the api to do it is only accessible from c.
Re:A Python Interpreter Written in Rust
by FartyMcFarter on Sunday February 03, 2019 @01:31PM
(#19071275)
Doesn't CPython do this with the multiprocessing module?
CPython can do that too, but this isn't really multi-threading, and it only bypasses the GIL in a very trivial sense.
But yeah, keeping the GIL is probably the only reasonable way to go if you want compatibility with existing extensions.