An introduction to Mojo (for Python developers)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ต.ค. 2024

ความคิดเห็น • 30

  • @grzegorzryznar5101
    @grzegorzryznar5101 3 หลายเดือนก่อน +8

    I am following Mojo development from quite a while, but I love your style and it was a pleasure to watch

  • @fire17102
    @fire17102 4 หลายเดือนก่อน

    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 ❤

  • @eladiomendez8226
    @eladiomendez8226 4 หลายเดือนก่อน +1

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

    • @underfitted
      @underfitted  4 หลายเดือนก่อน +1

      Thanks! I made a mistake before, so decided to fix it here.

  • @ericgroppe2095
    @ericgroppe2095 4 หลายเดือนก่อน

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

    • @underfitted
      @underfitted  4 หลายเดือนก่อน

      Yeah I need to start using the emoji extension

  • @orlandogarcia885
    @orlandogarcia885 2 หลายเดือนก่อน

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

  • @AC-go1tp
    @AC-go1tp 4 หลายเดือนก่อน

    Awesome Underfitted!

  • @s1nistr433
    @s1nistr433 3 หลายเดือนก่อน

    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

  • @JesseWalker-v8t
    @JesseWalker-v8t 4 หลายเดือนก่อน +1

    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  4 หลายเดือนก่อน

      Yes. I wanted to do the “translation” for the extra gains

  • @TheCommunistRabbit
    @TheCommunistRabbit หลายเดือนก่อน

    THE POLICE AT THE END IS THE CHERRY ON TOP

  • @grave0x
    @grave0x หลายเดือนก่อน

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

  • @drm8164
    @drm8164 3 หลายเดือนก่อน

    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  3 หลายเดือนก่อน +2

      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 3 หลายเดือนก่อน

      @@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 :)

  • @youflix_24
    @youflix_24 2 หลายเดือนก่อน

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

  • @АльбертИванов-ц4х
    @АльбертИванов-ц4х 10 วันที่ผ่านมา

    hi.
    i checked inference time of mojo and standard onnx python model with stable diffusion example. and do not see any speed up difference.
    may be i did something wrong ? - th-cam.com/video/p63LM1uafLY/w-d-xo.html
    the same results i got with yolov8 - no speed up.

  • @harshitdubey8673
    @harshitdubey8673 4 หลายเดือนก่อน

    what was wrong with the last one 🤔

    • @underfitted
      @underfitted  4 หลายเดือนก่อน

      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 4 หลายเดือนก่อน

      @@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.

    • @swdev245
      @swdev245 2 หลายเดือนก่อน

      @@harshitdubey8673 In Julia the program takes ~0.18 seconds on a 8-year-old Core i7-6700K

  • @isaiases
    @isaiases 3 หลายเดือนก่อน

    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 3 หลายเดือนก่อน

      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 3 หลายเดือนก่อน

      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 3 หลายเดือนก่อน +1

      @@the_mastermageStrong typing is your friend. You'll appreciate it if you ever worked on large code bases.

    • @bobweiram6321
      @bobweiram6321 3 หลายเดือนก่อน +2

      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 3 หลายเดือนก่อน

      @@bobweiram6321 that is absolutely correct.