[TechBites] New language Mojo.đŸ”„ | Will Python be replaced?

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 4. 09. 2023

Komentáƙe • 75

  • @pixel1145
    @pixel1145 Pƙed 10 měsĂ­ci +12

    Coming from a background of C++ and stepping into ML, I disliked Python greatly before, but now I totally see how convenient it is while developing and experimenting with ML. I have big hopes for Mojo and it's keys that it works with the existing Python codebase, you can then grow new performant code from there. I can already see myself using the added multithreading capabilities for example.

    • @uthoshantm
      @uthoshantm Pƙed 7 měsĂ­ci

      Try Julia

    • @ameera999
      @ameera999 Pƙed měsĂ­cem

      I agree, i dislike python becoz it was so slow.

  • @icns01
    @icns01 Pƙed 6 měsĂ­ci

    Because I really enticed by the prospect of a Python like, SYSTEMS LEVEL language to address the issues with Python, I looked at a lot of MOJO videos to ensure I understood what I was getting into.
    This was quite possibly the best MOJO explainer video I seen to date. Thank you very much!

  • @jonathanghee4617
    @jonathanghee4617 Pƙed 10 měsĂ­ci +3

    That’s cool but lemme install it locally lol.
    But I like mojo. I hope it allows you to compile to wasm modules and let’s you easily use flask/fast api/openCV.

  • @jeanchindeko5477
    @jeanchindeko5477 Pƙed 10 měsĂ­ci +2

    7:01 yes and no!
    If you’re already using type annotations in your Python code, that shouldn’t too much of an issue going Mojo static type definition
    And for anybody else which haven’t jumped into the type annotations of course they will find that cumbersome in the beginning or more verbose

  • @Indently
    @Indently Pƙed 10 měsĂ­ci +10

    I don't think Mojo could replace Python. Python is easy to learn for everyone, even with 0 knowledge in programming you can make super cool scripts. With mojo you need to know more what you're doing making it less accessible to a lot of people who aren't really programmers.

    • @vt2788
      @vt2788 Pƙed 10 měsĂ­ci +10

      You can use it as Python, so it would actually not change any code

    • @devabdul
      @devabdul Pƙed 10 měsĂ­ci

      Exactly Python 🐍 is giant, mojo will be called python framework to specify certain conditions for example ML (Where Time complexity is important if majo is faster than Python)

    • @pookiepats
      @pookiepats Pƙed 10 měsĂ­ci +1

      Stop saying this lol Python 🐍 sucks, it’s the worst kind of language - hyper productive except:
      - you cant rely on it in production
      - you need an engineer on staff just to get the damn things deployed
      - you pay 💰 for all the dev time you saved by running your servers into the ground and it’s STILL OBJECTIVELY SLOW
      - your whole ecosystem rides on the back of C and C++ libs
      - your anaconda / pip / PYPI / Piodide etc endless flavor is forcing people to the cloud because it’s the only way to get something done in that language
      Julia, Nim, Go, hell even Javascript or F#, even Lua!!! All much much less of a pain - and I’m talking about vanilla JS not that typescript Bs or all of your frameworks

    • @vt2788
      @vt2788 Pƙed 10 měsĂ­ci +5

      @@pookiepats well that's why mojo would be combining the best of two worlds imho

    • @devabdul
      @devabdul Pƙed 7 měsĂ­ci

      @@ITSecNEO that's what I'm saying, for TS which is best for JS devs, literally TS make life easy.
      Mojo is also life saving for Python's developers. Everybody hit runtime errors

  • @klaymoon1
    @klaymoon1 Pƙed 8 měsĂ­ci +2

    Great video! When re-writing Python projects like Numpy or Pandas in Mojo, would it run faster? Would the AI training time also decrease if projects are converted to Mojo?

  • @davidbangsdemocracy5455
    @davidbangsdemocracy5455 Pƙed 5 měsĂ­ci

    Mojo is not 35,000 times faster than Python. That number has to do with a particular scenario where Mojo know how to take advantage of massively parallel computations using GPUs compared to single threaded CPU operation in Python. That number should not be bantied about.

  • @greendsnow
    @greendsnow Pƙed 10 měsĂ­ci +2

    Mojo is big, because of MLIR.
    Some GPU producers are abusing their power right now, you know which!
    MLIR will be a chainbreaker

  • @ameera999
    @ameera999 Pƙed měsĂ­cem

    I wonder what is its compilation speed. Would it as fast as javascript?

  • @ashutoshchar940
    @ashutoshchar940 Pƙed 7 měsĂ­ci

    Im c++ dev but i definitely use mojo because i want to be a sane person in my fifties

  • @sucRipper
    @sucRipper Pƙed 9 měsĂ­ci

    I dont feel static code is more complex, I find it much easier to read and write especially when using external libraries and knowing what to expect

  • @uthoshantm
    @uthoshantm Pƙed 7 měsĂ­ci

    Mojo is proprietary. I won't even try it. Besides, Julia is a fantastic alternative for those looking for a fast alternative to Python.

  • @ssssssstssssssss
    @ssssssstssssssss Pƙed 10 měsĂ­ci +4

    If “fast” was preferred, Lua (which i like better) would come out on top over Python. Like Torch was originally in Lua. I think it’s going to be hard to take Python down for the time being

  • @oliverli9630
    @oliverli9630 Pƙed 8 měsĂ­ci

    wonder if they have a plan to make it general purpose

  • @LuisCastillo-uu8uk
    @LuisCastillo-uu8uk Pƙed 6 měsĂ­ci

    Hi, I am trying to rum a mojo file on Visual Studio Code but I always got the same message: The MojođŸ”„ development environment was not found. If the Mojo SDK is installed, please set the MODULAR_HOME environment variable to the appropriate path, or set the `mojo.modularHomePath` configuration

  • @niccolomedici4482
    @niccolomedici4482 Pƙed 10 měsĂ­ci +2

    4:27 Won't it confuse JS programmers that "let" is immutable?

    • @BreytnerNascimento
      @BreytnerNascimento Pƙed 10 měsĂ­ci +6

      JS actively confuse JS programmers so it isn't a big deal

    • @vt2788
      @vt2788 Pƙed 10 měsĂ­ci +1

      @@BreytnerNascimento haha true. JS is a nightmare for logicians

    • @Summersault666
      @Summersault666 Pƙed 10 měsĂ­ci

      They deserve it!

  • @vt2788
    @vt2788 Pƙed 10 měsĂ­ci +2

    I wonder if Mojo can be used for game development if it is so frickin fast?

    • @freedom_aint_free
      @freedom_aint_free Pƙed 10 měsĂ­ci +3

      I've tried it a couple of months ago when it was in beta test, and I don't see why not, as it basically draws its speed from GPU already the same way Games have been doing for decades now.
      And Mojo's creator is also the creator of the Swift language that have been used a lot in Apple products, so its team have a lot of experience.

    • @vt2788
      @vt2788 Pƙed 10 měsĂ­ci +1

      @@freedom_aint_free ok, that's interesting. Thanks for the info. it would make making games more accessible. This is potentially a big thing

    • @galaxian_hitchhiker
      @galaxian_hitchhiker Pƙed 5 měsĂ­ci

      as long as it is capable of modifying vertices parallelly this fast why not. on the other hand games already mostly use C++ and I doubt if mojo claims they are faster than that.

    • @vt2788
      @vt2788 Pƙed 5 měsĂ­ci

      @@galaxian_hitchhiker ok but writing games in mojo may be a more smooth experience. I am not a C++ programmer, but I am assuming by what I have experienced thus far.

    • @kendoolin
      @kendoolin Pƙed 5 měsĂ­ci +2

      In theory it is a perfect platform. The core game engine could be written in MOJO (so fast and memory safe like Rust) and scripting in Python. If some scripting logic becomes a bottlenneck it could be upgraded to MOJO (unlike other scripting languages eg lua, c#). Best of all worlds (in theory)

  • @backendmystery
    @backendmystery Pƙed 10 měsĂ­ci +1

    Seems like another tuned C

  • @RAHUDAS
    @RAHUDAS Pƙed 7 měsĂ­ci

    it is not OpenSource Yet, So it is not a Programmimg Language at all

  • @redcrafterlppa303
    @redcrafterlppa303 Pƙed 10 měsĂ­ci

    It's like c++ trying to replace c but the source language isn't even good.

  • @colinmaharaj
    @colinmaharaj Pƙed 6 měsĂ­ci

    I'm going to stick to c++.

  • @DontAddMe
    @DontAddMe Pƙed 10 měsĂ­ci +4

    I left c for pointers and mojo bringing it back.. great

  • @gameslover5083
    @gameslover5083 Pƙed 10 měsĂ­ci +1

    Thanks For information 🙂🙂
    But Mojo can't replace Python🙂
    Yep if anyone is interested in Ai or ML he should learn mojo instead of python đŸ„°đŸ™‚

    • @vt2788
      @vt2788 Pƙed 10 měsĂ­ci +3

      No point in using python if mojo is a superset. Why learn driving a carriage so that you understand what a car is?😏sorry bad analogy

    • @gameslover5083
      @gameslover5083 Pƙed 10 měsĂ­ci

      @@vt2788 I mean 🙄 What I mean was those who are interested in Ai and ML should learn mojo 😏 Instead of python
      " Analogy is best but my English is best My native language is pashto"

    • @yevgeniygrechka6431
      @yevgeniygrechka6431 Pƙed 10 měsĂ­ci

      @@vt2788 I disagree with this. A superset language is a very unpleasant experience as you basically have to know several different sets of syntaxes and programming styles. I personally would be much more excited about mojo if it didn't support legacy python (Just like python3 had breaking changes with python2). I get that if you support backwards compatibility you potentially are able to tap in to a big pool of adopters, but imo it comes at a significant cost to the elegance of the language.
      For example, C++ is basically a superset of C, but C retains a significant market share for a reason.

    • @vt2788
      @vt2788 Pƙed 10 měsĂ­ci

      @@yevgeniygrechka6431 I don't agree entirely either. If C++ changed the speed of C like Mojo does with Python, the use of C would be pointless. Is as it were, a new and expanded version, just by another provider. Mojo can support any existing Python code, so I see no downside here. I mean there would not be any unpleasantness I can imagine. Of course this depends on how easy it is to install and management wise with libraries etc.

  • @yevgeniygrechka6431
    @yevgeniygrechka6431 Pƙed 10 měsĂ­ci +1

    I think this will be very interesting and I look forward to see how it plays out. Personally I feel like making it compatible with python is not a good move as it essentially makes it into a weird 2 (or more) in 1 language. Python already has the numba library that compiles certain portions of the program, an while it isn't the greatest experience to use, I have a hard time imagining that companies will switch to Mojo for what is basically a better numba. If they need proper compiled code then then will go with C++, Rust or Go. It would be different if Mojo was its own modern language, but I think its compatibility with python will significantly hurt it.

  • @devabdul
    @devabdul Pƙed 10 měsĂ­ci

    Majo going to best language, it won't completely replace python, but it will use as python frameworks,
    Majo need to introduce Strings Pool like Java, because String Is most used in code.

  • @akaalkripal5724
    @akaalkripal5724 Pƙed 10 měsĂ­ci +4

    Why not simply switch to C++ or Rust? Mojo seems like an opportunistic mish-mash. Python itself was a terrible move backwards, and now we 've worse coming.

    • @Freshbott2
      @Freshbott2 Pƙed 10 měsĂ­ci +12

      Nah, Python is heaven. To have people with the Python skill set, or people who can code in C/C++ who can’t stand it like me - suddenly be able to write fast, reliable, readable compiled code using the easiest most popular is huge. And to be able to use existing Python libraries. Are you gonna go rewrite them in C++? Not a chance.
      Chris Latner created LLVM that compiles much of the world’s C code, and lead Swift. I’d trust he knows how to compile Python to native C++. Sorry to labour the point but mishmash is really not understanding it.
      Soon as I learnt about this I stopped learning Rust.

    • @akaalkripal5724
      @akaalkripal5724 Pƙed 10 měsĂ­ci +3

      @@Freshbott2 Tensorflow has over 50% c++ code, and pytorch over 40%. All performant python libraries are just wrappers for underlying C++, C, CUDA or Fortran code.
      Are you saying Mojo will completely eliminate the need for underlying C++, C, Fortran or CUDA code? I would doubt it.

    • @Freshbott2
      @Freshbott2 Pƙed 10 měsĂ­ci

      @@akaalkripal5724 do you think saying I’m Mojo will eliminate the need for underlying C++ code? I know performant Python libraries are just wrappers, which is the whole point in CPython. And that’s got nothing to do with the end user, which is the whole point in Python.

    • @banjoowo4001
      @banjoowo4001 Pƙed 10 měsĂ­ci +1

      most of the Ai and machine learning requires python now

    • @vt2788
      @vt2788 Pƙed 10 měsĂ­ci

      ​@@akaalkripal5724that is the reason it was created

  • @christcombiccombichrist2651
    @christcombiccombichrist2651 Pƙed 10 měsĂ­ci +22

    I'm going to stick to c++.

    • @DavidRagazzi
      @DavidRagazzi Pƙed 10 měsĂ­ci +15

      Ok. Nobody cares...

    • @christcombiccombichrist2651
      @christcombiccombichrist2651 Pƙed 10 měsĂ­ci +12

      @@DavidRagazzi it looks like you cares because my comment hurt your feelings. Lol.

    • @vt2788
      @vt2788 Pƙed 10 měsĂ­ci +3

      aww you guys be nice

    • @cfusername
      @cfusername Pƙed 10 měsĂ­ci +7

      Bah... I prefer Assembler for string manipulation.

    • @DavidRagazzi
      @DavidRagazzi Pƙed 10 měsĂ­ci +2

      @@cfusername 😂😂😂