Can Mojo run Python code? | Chris Lattner and Lex Fridman

Поділитися
Вставка
  • Опубліковано 6 чер 2024
  • Lex Fridman Podcast full episode: • Chris Lattner: Future ...
    Please support this podcast by checking out our sponsors:
    - iHerb: lexfridman.com/iherb and use code LEX to get 22% off your order
    - Numerai: numer.ai/lex
    - InsideTracker: insidetracker.com/lex to get 20% off
    GUEST BIO:
    Chris Lattner is a legendary software and hardware engineer, leading projects at Apple, Tesla, Google, SiFive, and Modular AI, including the development of Swift, LLVM, Clang, MLIR, CIRCT, TPUs, and Mojo.
    PODCAST INFO:
    Podcast website: lexfridman.com/podcast
    Apple Podcasts: apple.co/2lwqZIr
    Spotify: spoti.fi/2nEwCF8
    RSS: lexfridman.com/feed/podcast/
    Full episodes playlist: • Lex Fridman Podcast
    Clips playlist: • Lex Fridman Podcast Clips
    SOCIAL:
    - Twitter: / lexfridman
    - LinkedIn: / lexfridman
    - Facebook: / lexfridman
    - Instagram: / lexfridman
    - Medium: / lexfridman
    - Reddit: / lexfridman
    - Support on Patreon: / lexfridman
  • Наука та технологія

КОМЕНТАРІ • 46

  • @LexClips
    @LexClips  Рік тому +2

    Full podcast episode: ua-cam.com/video/pdJQ8iVTwj8/v-deo.html
    Lex Fridman podcast channel: ua-cam.com/users/lexfridman
    Guest bio: Chris Lattner is a legendary software and hardware engineer, leading projects at Apple, Tesla, Google, SiFive, and Modular AI, including the development of Swift, LLVM, Clang, MLIR, CIRCT, TPUs, and Mojo.

  • @stevengreidinger8295
    @stevengreidinger8295 Рік тому +25

    Why not let this guy be the leader for Python 5, and wrap MoJo technology right in there?

    • @KonradTamas
      @KonradTamas 10 місяців тому +1

      We still need that slow shit 4 da Sn@!Lz

    • @nugget7236
      @nugget7236 8 місяців тому +3

      because its a superset not an update

    • @lutfiikbalmajid
      @lutfiikbalmajid 2 місяці тому

      ​@@nugget7236also Mojo is compiled language. Just imagine how fast python if it's was compile language, then it is Mojo

    • @BenjaminScherrey
      @BenjaminScherrey Місяць тому

      @@nugget7236 Python3 is a backwards incompatible superset of Python2. How would this be different except it is planning on not being backwards incompatible (if possible).

  • @juneshasta
    @juneshasta Рік тому +3

    Mojo isn't ready yet but like raw cookie dough is still yummy. Unrelated: Nice miniature guitars, especially the Sunburst Fender Stratocaster.

  • @rannickcauthon1821
    @rannickcauthon1821 Рік тому +4

    I really praise the wisdom of Chris. I used assembler, c, c++, c#, swift, JavaScript, golang and many more but never found a more elegant language then Python! It is one of the best decisions ever in the programming language world, to not start a new language but build a superset to combine the most elegant with most performant ❤

    • @raianmr2843
      @raianmr2843 10 місяців тому +1

      They picked Python because of the ecosystem. Chris being experienced in lisps and functional langs I really doubt he would've picked Python had it all boiled down to purely elegance and expressivity.

  • @nektariosmusic
    @nektariosmusic 7 місяців тому +2

    Mojo is one of the best programming languages to come out in decades IMO!

  • @rezakghazi
    @rezakghazi Рік тому

    Does Mojo supports arbitrary integer as Python does (natively, not using an extra library) but with more speed, as Mojo claims? Or it has cons, the same as the statically typed languages which use bit-related ints. Inventing this type of ints was a fantastic gift to numerical analysis, but the only problem is because they rely on vectors on the compiler side, they need to be faster in huge numbers. If Mojo, as they announced (and I never had a chance to work on it), is 35k faster, this ability can help the concepts.

  • @h_maina
    @h_maina Рік тому +6

    This is a big win for ML and AI considering the fact that every millisecond counts when it comes to running a model. However, I don't see the need for mojo in say something like web development or am I missing something.

    • @Optimistas777
      @Optimistas777 Рік тому +5

      Yes you’re missing something. Some of the backend calculations are “hot loops”. If you’re running a massive Python web backend over 1000 servers, switching over to Mojo or Goland would give you massive savings

    • @incremental_failure
      @incremental_failure Рік тому +5

      ML stuff only uses Python as a frontend. None of the backend runs in Python. So the speed improvements here would be nearly insignificant.

    • @CHURCHISAWESUM
      @CHURCHISAWESUM 13 днів тому

      @@incremental_failurewell you can write everything in Mojo and thus simplify and speed up development

  • @mr.daniish
    @mr.daniish Рік тому +9

    Excited to see what the mojo team is doing in the ecosystem!

  • @JohnWasinger
    @JohnWasinger 6 місяців тому

    Can Mojo improve the Global Interpreter Lock (GIL).

  • @Swifter101
    @Swifter101 10 місяців тому +1

    It alls boils to having a big integer.
    Lex Fridman 2023

  • @mr.daniish
    @mr.daniish Рік тому +6

    Mojo will be for python what typescript is to JS

    • @KenOtwell
      @KenOtwell Рік тому +1

      in other words, the best thing that no one uses?

    • @looming_
      @looming_ Рік тому +7

      @@KenOtwell Are you really implying that no one uses typescript? Lol

    • @KenOtwell
      @KenOtwell Рік тому

      @@looming_ Well, I've used it so I can't say no one. ;) But the majority of people working in legacy systems will stick with JavaScript. What's your experience with TypeScript?

    • @looming_
      @looming_ Рік тому

      @@KenOtwell I have yet to see a production codbase that DEOSN"T use ts.

    • @KenOtwell
      @KenOtwell Рік тому

      @@looming_ Hmm. I'm betting you're a lot younger than I am. ;)
      Anyway - I'm glad it caught on. It's just syntactic sugar for JavaScript, but it makes it much easier to work with.

  • @GiantsOnTheHorizon
    @GiantsOnTheHorizon Рік тому

    How nice would it be to have a game engine written with Mojo and using it for scripting?!

  • @SamuelHauptmannvanDam
    @SamuelHauptmannvanDam Рік тому +5

    Hear me out. We got Py_script. Give me mojo_script.
    I would loooove to just run python code in the frontend.

    • @TheRyulord
      @TheRyulord 11 місяців тому +2

      They've expressed interest in wasm support but it's not an immediate priority

  • @nivisvanaka
    @nivisvanaka Рік тому +9

    Well, I didn't expect the guys of watchmojo getting into programming…

  • @janklaas6885
    @janklaas6885 Рік тому

    📍13:36

  • @incremental_failure
    @incremental_failure Рік тому +1

    Types should obviously be enforced. Every newbie likes dynamic typing but it only works when working with simple scripts. Complex stuff requires typing to make any sense.

  • @oussamawahbi4976
    @oussamawahbi4976 Рік тому +1

    python ++

  • @venkateswarans1012
    @venkateswarans1012 Рік тому

    Untyped, Dynamic and Beautiful code 😢

  • @theITGuy-no3nt
    @theITGuy-no3nt Рік тому

    OOP is so gross, no thanks

    • @JDalmasca
      @JDalmasca 11 місяців тому +1

      FP and OOP aren't mutually exclusive, nor are they language specific. It's a fairly crude take to claim that one model of programming is good and the other is not. As with all complex choices, there are tradeoffs to each.

    • @theITGuy-no3nt
      @theITGuy-no3nt 11 місяців тому

      @@JDalmasca I should have put the /s on that.

  • @nandoflorestan
    @nandoflorestan 28 днів тому

    What is intolerable... is that Mojo is not even open source. Bleh.

  • @robbbieraphaelday999
    @robbbieraphaelday999 Рік тому

    Who actually cares if python is slow. It basically never matters if you’re writing scripts. Genuinely wondering if anyone has had an issue here with python’s speed.

    • @incremental_failure
      @incremental_failure Рік тому +4

      Because Python doesn't have to be just for scripts. You can write full complex applications in Python, using Qt as a frontend and any datascience package as a backend. Not everyone wants to switch to C/C++ for production code.

    • @kejtos5
      @kejtos5 11 місяців тому

      Sometimes even in the case of scripts. It can get pretty difficult to vectorize some stuff.

    • @JDalmasca
      @JDalmasca 11 місяців тому +1

      Lots of programs have high performance requirements, particularly when you get into more demanding, large-scale mathematics. If you're doing matrix multiplication, fast Fourier transforms, vectorized operations/SIMD, etc. these optimizations in compiled languages matter quite a bit. Even more so if you can optimize the instructions for a specific hardware.
      It even has large real-world consequences, like large changes in computer energy consumption, heat generated in data centers, costs to consumers of those programs...
      There's a reason C/C++/Rust are used in lots of contexts where this stuff matters. They're better suited to optimizing the task.

    • @raianmr2843
      @raianmr2843 10 місяців тому

      Everyone who knows more than 3 langs,
      people contributing to python's scientific stack,
      companies realizing they need to rewrite services to save money,
      Guido van Rossum himself: Yeah, CPython is slow
      Some dude in the comment section of every UA-cam video about Python:

  • @armincal9834
    @armincal9834 10 місяців тому

    Either this guy is trying too hard to sound like Elon Musk or there is a certain way people act to sound super smart and this guy and Elon are both trying to act that way