-
Will Mojo also have the ability to support a large amount of concurrency in the future。 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Mojo already has full concurrency support and a high performance runtime, it just isn't fully exposed through the APIs yet. |
Beta Was this translation helpful? Give feedback.
-
Golang's |
Beta Was this translation helpful? Give feedback.
-
As someone who wrote a tool that is heavily dependent on the concurrency primitives in Go to provide an extremely small codebase for what it does, I wanted to chime in with the components I think are important here, as it seems one or more of these are often left out in many discussions:
The only language I know of that supports all of these currently is Crystal (see this comparison with Go if interested). I think Python/Mojo could come close with asyncio with Given the more powerful backend in Mojo, it would be extremely cool with a version of asyncio that is based on true Go-like M:N multiplexed lightweight threads (so in effect running on multiple cores when available!). I see a ton of potential if the support here gets close to the Go concurrency primitives, once Mojo also comes out with an open source, locally runnable toolchain (important in scientific/academic domains). |
Beta Was this translation helpful? Give feedback.
-
Mojo should improve concurrency while maintaining concise Python syntax, and not increase syntax difficulty to improve performance. I believe that Mojo's development goal is to improve concurrency while maintaining concise syntax. If you increase grammar difficulty to improve performance, then Golang and other grammars can do it. The magic of Mojo is that its performance is so powerful despite its simple syntax. I hope the organizers can develop a breakthrough way to achieve it, in order to maintain their advantages over Python and Golang |
Beta Was this translation helpful? Give feedback.
Mojo already has full concurrency support and a high performance runtime, it just isn't fully exposed through the APIs yet.