Mojo Programming Language: Programming in Mojo — Part I
Mojo is a Programming Language that combines the usability of Python but with the performance of C, C++ and Rust. Mojo Programming Language comprises of next-generation compiler technologies with features like caching, multithreading and cloud distribution technologies. Also, Auto-Tuning and compile-time Metaprogramming features allows to write code for various hardware. The Advantages of Mojo Programming Language are Usability & Programmability, best performance, Interoperability and Extensibility.
Programming in Mojo:
Mojo is available for both Local Development and also Modular has created a Hosted Developer Environment called Mojo Playground to try Mojo Programming Language. Mojo SDK for Local Development is now available for Ubuntu Linux Systems, support for Windows and MacOS will be available soon. In this Blog we are going to try Mojo Programming using Mojo Playground.
To get started using Mojo Playground:
1. Signup for access to Mojo Playground in https://www.modular.com/get-started/.
2. After signing up, when we receive access to Mojo Playground we can try Mojo Programming Language in Mojo Playground.
Mojo Playground:
Mojo Playground is a JupyterHub Environment in which all users have access to same Mojo Standard Library. But each and every user has a private and dedicated volume to write and save their own Mojo Programs.
Programming in Mojo:
Print Statement in Mojo: Print Statement in Mojo is exactly like in Python,
print(“Hai, this is Mojo!!!”)
Output:
Hai, this is Mojo!!!
We had seen how to access the Mojo Playground and a simple print statement using Mojo Programming Language in Mojo Playground. Programming in Mojo, Mojo Programming concepts and Mojo SDK for Local Development will be discussed further.
Thankyou for reading this blog on Mojo Programming Language: Programming in Mojo — Part I.
Reference: https://docs.modular.com/mojo/