An introduction to Mojo (for Python developers)

preview_player
Показать описание
This is an unconventional introduction to Mojo. I'll start with a Python script, port it to Mojo, and finish with an implementation that's 20 times faster than the initial code.

Mojo is incredible!

I teach a live, interactive program that'll help you build production-ready Machine Learning systems from the ground up. Check it out here:

To keep up with my content:

Рекомендации по теме
Комментарии
Автор

I am following Mojo development from quite a while, but I love your style and it was a pleasure to watch <3 Waiting for more videos about Mojo from you :)

grzegorzryznar
Автор

Thanks for correcting the info there Santi! Eager to see more mojo videos, but with the 🔥 instead of .mojo 😅. Good work man 🙏

ericgroppe
Автор

Worth mentioning that the original python module could have been run in Mojo.

Your mojo program should work with something like:
```
from python import Python

fn main() raises:
Python.add_to_path(".") # the file path to the directory with the python module you want
var search = # this is how you import a Python Module
search.main() # running the python module function as you'd expect
```

TBF, you're likely going to see the most dramatic performance increases from pure Mojo.

JesseWalker-vt
Автор

The first one was great. This one was just as great !

eladiomendez
Автор

My only gripe with Mojo is that I wish it was marketed less towards AI and more towards general usage. It literally fixes the 2 major issues with Python that being lack of static typing and bad performance, if they market it as general purpose this could be a drop in replacement for python

snistr
Автор

What is the environment in which Mojo is installed? Is it possible to create a conda environments and use it there?

orlandogarcia
Автор

Does mojo support dynamic dictionaries? Or do you have to specify the value's type? I want a faster python but I don't want everything pydantic
Thanks for the video ❤

fire
Автор

The requirement of a main function to run a script implies any without a main is a library. And cleans up code a bit

gravex
Автор

THE POLICE AT THE END IS THE CHERRY ON TOP

TheCommunistRabbit
Автор

i think after 5 years before we can fully use this programming language.

youflix_
Автор

hi.
i checked inference time of mojo and standard onnx python model with stable diffusion example. and do not see any speed up difference.

the same results i got with yolov8 - no speed up.

АльбертИванов-цх
Автор

Excuse me Sir, please can I ask you a question: I just decided to pay for the OpenCV certification, its 1500 canadian dollars, and I m pretty convinced that it is a great investment for my future career in CV.
Please can you give me your opinion? It will be a great help
Thank you in advance :)

drm
Автор

I’ve becoming more and more disappointed with Mojo . The resulting language is nothing alike python, which is great for its simplicity and readability. And the overall performance is not really better than rust or other languages …

isaiases