Тёмный

An introduction to Mojo (for Python developers) 

Underfitted
Подписаться 41 тыс.
Просмотров 6 тыс.
50% 1

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!
Here is the GitHub repository where you'll find the code in this video: github.com/svpino/mojo/
I teach a live, interactive program that'll help you build production-ready Machine Learning systems from the ground up. Check it out here:
www.ml.school
To keep up with my content:
• Twitter/X: / svpino
• LinkedIn: / svpino
🔔 Subscribe for more stories: / @underfitted

Наука

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@grzegorzryznar5101
@grzegorzryznar5101 Месяц назад
I am following Mojo development from quite a while, but I love your style and it was a pleasure to watch
@AC-go1tp
@AC-go1tp Месяц назад
Awesome Underfitted!
@ericgroppe2095
@ericgroppe2095 Месяц назад
Thanks for correcting the info there Santi! Eager to see more mojo videos, but with the 🔥 instead of .mojo 😅. Good work man 🙏
@underfitted
@underfitted Месяц назад
Yeah I need to start using the emoji extension
@eladiomendez8226
@eladiomendez8226 Месяц назад
The first one was great. This one was just as great !
@underfitted
@underfitted Месяц назад
Thanks! I made a mistake before, so decided to fix it here.
@fire17102
@fire17102 Месяц назад
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 ❤
@JesseWalker-v8t
@JesseWalker-v8t Месяц назад
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 = Python.import_module("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.
@underfitted
@underfitted Месяц назад
Yes. I wanted to do the “translation” for the extra gains
@s1nistr433
@s1nistr433 9 дней назад
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
@drm8164
@drm8164 29 дней назад
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 :)
@underfitted
@underfitted 29 дней назад
Hard to tell, honestly. OpenCV is a great library, but I can't comment whether the content of that certification will be worth $1,500. Here is what I can tell you: 1. If this certification will help you learn, then yes, take it. 2. If this certification is only about getting a "certificate", then don't take it. Hope this helps!
@drm8164
@drm8164 29 дней назад
@@underfitted Thank you for your answer. Well I consider that having a certification is a Big Plus and it can really help me to be upgraded in a massive pool of candidates. I m a fresher data scientist and as I want to be a freelancer and work abroad I think having OpenCV and Tensorflow certifications will give me more credit. Do you believe in certifications values ? Thank you Sir :)
@harshitdubey8673
@harshitdubey8673 Месяц назад
what was wrong with the last one 🤔
@underfitted
@underfitted Месяц назад
I made a big mistake by not using the output of the function, so Mojo didn’t call it. That’s why is was so crazy fast.
@harshitdubey8673
@harshitdubey8673 Месяц назад
@@underfitted at that time I was really got shocked how it can be that fast. But as everyone will agree we are still wondering because it’s still much faster than python.
@isaiases
@isaiases 24 дня назад
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 …
@perc-ai
@perc-ai 23 дня назад
not true Mojo will be the fastest language among all of them because its optimized for data centers while rust and other languages don't.
@the_mastermage
@the_mastermage 23 дня назад
I do have to concur, i hope it becomes great but I honestly hoped for mojo to go more pythony instead of adding like seperate function and class anotations. I would have prefered if mojo had just added gradual typing and (similar to how it works in Julia) and then worked from there.
@bobweiram6321
@bobweiram6321 21 день назад
@@the_mastermageStrong typing is your friend. You'll appreciate it if you ever worked on large code bases.
@bobweiram6321
@bobweiram6321 21 день назад
It is a lot more readable and safer than Python because it uses less type inferencing. It's already faster than Rust and in some cases faster than C++.
@perc-ai
@perc-ai 21 день назад
@@bobweiram6321 that is absolutely correct.
Далее
Разоблачение ушные свечи
00:28
Просмотров 729 тыс.
Наташа Кампуш. 3096 дней в плену.
00:58
Это реально работает?!
00:33
Просмотров 3 млн
Why are vector databases so FAST?
44:59
Просмотров 15 тыс.
5 Good Python Habits
17:35
Просмотров 470 тыс.
How much faster has Mojo's dictionary gotten?
7:40
Просмотров 2,7 тыс.
Mojo Is FASTER Than Rust
19:22
Просмотров 113 тыс.
The most important Python script I ever wrote
19:58
Просмотров 176 тыс.
WHY did this C++ code FAIL?
38:10
Просмотров 242 тыс.
All 39 Python Keywords Explained
34:08
Просмотров 147 тыс.
iPhone socket cleaning #Fixit
0:30
Просмотров 18 млн