Can Mojo replace Python ?

Riza mohammad Khan
1 min readOct 24, 2023

The answer to this question leans in favor of Mojo. I have been programming with Python for the past two years. I chose Python over other languages due to its simplicity and, most importantly, its extensive community. However, there is a catch — performance. Python’s performance is noticeably lower when compared to languages like C, C++, and Rust. Mojo can only dominate Python if it receives community support for libraries, much like PyTorch, which, again, currently favors Python greatly.

Python’s extensive ecosystem is challenging to surpass, but with the proper support for libraries, it may easily outperform Python. Another advantage of Mojo is its MLIR LLVM compiler, which simplifies running it on various hardware without requiring explicit programming of CUDA or C++ kernels.

As for now, learning Python remains beneficial for the next 3–4 years, while learning Mojo is also a option but still in early stages. However, it’s worth noting that trends can change, and in my personal opinion, Mojo could be the next big wave in the world of programming.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Riza mohammad Khan
Riza mohammad Khan

Written by Riza mohammad Khan

HI my name is Riza mohammad khan.

No responses yet

Write a response