A new programming language 'Mojo' that can be faster than conventional Python will be developed



Modular , a software development startup whose CEO is Chris Ratner , who created Apple's programming language `` Swift '', announced a new programming language `` Mojo '' on May 3, 2023. Mojo is said to be a language that combines the usability of Python, a programming language so far, with the performance of C language.

Mojo ????: Programming language for all of AI
https://www.modular.com/mojo



Modular Docs - Mojo????

https://docs.modular.com/mojo/



fast.ai - Mojo may be the biggest programming language advance in decades

https://www.fast.ai/posts/2023-05-03-mojo-launch.html

At the product launch event held on May 3, 2023, Modular introduced the company's innovative efforts in the AI field and announced `` Mojo '', a faster and more scalable programming language than before.




The state of the demonstration performed by Modular in the event is as follows. The demo video shows the exact same code running in both Mojo and CPython , demonstrating compatibility between Mojo and Python.

Jeremy Howard demo for Mojo launch-YouTube


``Mojo is a new programming language that bridges the gap between test and production environments by combining the syntax and ecosystem of Python with the power of systems programming and metaprogramming,'' Modular said. ``Mojo is still in the development stage and is designed to be a superset of Python over time.''

Furthermore, compared to Python, which operates in a single thread, Mojo can achieve speedup by performing parallel processing across multiple cores. When computing the Mandelbrot set , it took 1027 seconds in Python 3.10.9, 46.1 seconds in PyPy , one of Python's processing systems, and 0.20 seconds in C++ , a general-purpose programming language. However, with Mojo, it was reduced to 0.03 seconds, which is reported to be about 35,000 times faster than Python 3.10.9.



In addition to parallel processing by multithreading, the factors behind Mojo's speedup include the use of

MLIR , a compiler platform that specializes in parallel computing, and restrictions on data type structures in programming languages. is considered. On the other hand, if Mojo is used as a simple Python processing system with the code as it is, the speedup is only several times that of CPython, but the versatility of the C language that speeds up the execution speed by simplifying the processing system. It is pointed out that it is not as good as the performance. On the other hand, if the code is rewritten according to the high-level language Mojo, it is said that it can be executed at the speed of low-level languages such as machine language and assembly language.

Mojo is in the development stage at the time of writing the article, and you can access Mojo and send feedback by registering and signing up for the waitlist published by Modular. On the other hand, regarding Modular's offer of Mojo in a closed environment, 'If you intend to spread Mojo, you should publish the code. I think it's an appeal to ',' there are also voices pointing out.

Modular: Get started today
https://www.modular.com/get-started

in Software, Posted by log1r_ut