Concurrency model
Curious how Mojo is getting around the assumed presence of a GIL. What's the concurrency story?
5 Replies
Mojo doesn't have a GIL so you don't need any weird tricks for concurrency
Perfect, thank you! For compilation of / interop with existing Python libraries though, the assumption will presumably be that for stateful classes and functions, some sort of mutex or other concurrency construct will be needed, right?
For interop, Mojo calls CPython, so things may effectively run with a GIL. If the code is ported to Mojo, then some sort of concurrency construct is going to be needed. In summary, existing libraries won't magically become thread safe
Congrats @sora, you just advanced to level 12!
Makes sense - thanks!