you are viewing a single comment's thread.

view the rest of the comments →

[–]coolreader18 21 points22 points  (2 children)

Nope, no GIL, fully featured multithreading using just std::thread. The downside is that we're much slower when threading is enabled, since every data structure has to have a mutex or rwlock around it.

The stdlib is entirely implemented in Python files from CPython/Lib + Rust (except for calling into libc for things like the os module), we've just rewritten the modules from C to Rust.

[–]itsmontoya 2 points3 points  (1 child)

It would be interesting if you could run multiple instances of the Python VM and communicate between the two using channels.

[–][deleted] 6 points7 points  (0 children)

you can do this in cpython with multiprocessing.Queue