Skip to content

bbikdash/mojo_hello_world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimenting with mojo

See: https://docs.modular.com/mojo/manual/get-started

For this experiment, I just used the pixi package manager that they recommended. See other repo where I experimented.

Some prerequisites:

sudo apt-get update
sudo apt-get install build-essential    # Required for mojo to build
# Otherwise building will fail with: /usr/bin/ld: cannot find Scrt1.o: No such file or directory 

Make sure pixi is installed and enter the venv with

pixi shell

I ran mojo hello_world.mojo which behaves similar to python and performs just-in-time compilation.

I can compile it into an executable:

mojo build hello_world.mojo
./hello_world

About

Super quick test of mojo development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages