Sunday, April 21, 2024

Mojo in Docker container on Windows

How to install Mojo🔥locally using Docker | by Aleksandr Mironov | MediumMojo is one of the newest programming languages first introduced in 2023
Mojo combines the usability of Python with the performance of C, unlocking unparalleled programmability of AI hardware and extensibility of AI models.

looks like Python, just 1000x faster!
but it does not run on Windows directly, yet
It can in Docker container though



Xanonymous-GitHub/mojo-docker: The dockerfile for using mojo.


Get started with Mojo🔥 | Modular Docs


Mojo🔥 | Modular Docs



Mojo Developer Console


Mojo is not available for Windows, but you can use it on a Linux container or remote system. Here's one way you can do that with WSL2


:Install VS Code, the WSL extension, and the Mojo extension.
Install Ubuntu 22.04 for WSL and open it.
In the Ubuntu terminal, install the Modular CLI:


curl -s https://get.modular.com | sh - modular auth

Command copied to clipboard
Install the Mojo SDK:

modular install mojo

Command copied to clipboard
Open the Ubuntu workspace in VS Code with this:

code .

Command copied to clipboard
Get started with Hello World!


No comments: