Re:A Python Interpreter Written in Rust
by FartyMcFarter on Sunday February 03, 2019 @07:10AM
(#19069179)
By multi interpreters do you mean several interpreter processes without shared memory? (or only limited memory sharing)
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.
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?
We already have a plan to bypass the GIL: multi interpreters.
Having an implementation in Rust may make future improvement to Python easier, so it's better to have something exactly similar first, then start to hack it.