Mojo Lang - Tomorrow's High Performance Python? (with Chris Lattner)

  Рет қаралды 54,501

Developer Voices

Developer Voices

Күн бұрын

Пікірлер: 234
@Onyx-it8gk
@Onyx-it8gk 8 ай бұрын
I'll be honest, this is a seriously impressive language by an absolute giant in the field. To oversimplify a bit, it has the safety of Rust, the performance of C, with the syntax of Python.
@baseCaseTech
@baseCaseTech 7 ай бұрын
Couldn’t agree more, but I think something that’s understated is that via MLIR you’re basically getting access to a free hardware optimization abstraction layer! The docs (and some folks who’ve messed around with Mojo more than me) have shown off how easy it is to literally command SIMD, which is usually just something most programmers can only hope their interpreter or compiler happen to do. So sick!
@alelondon23
@alelondon23 7 ай бұрын
like Nim for the last 7 years?
@vince14genius
@vince14genius 7 ай бұрын
@@alelondon23but nim isn’t a superset of Python; Mojo aims to be one and it’s getting there fast
@pookiepats
@pookiepats 7 ай бұрын
This is great but if it’s built on top of LLVM…and touching hardware to that degree-it’s hardly worth a look for the next 5 years for any GP programmer. People truly don’t grasp just how little being a superset of Python matters-because the vast majority of people are productive in Python due to C / C++ libs. It’ll be a crapshoot waiting for X lib to support Mojo’s way of doing things-the same way Typescript was supposed to be drop in superset of JS; but anybody that actually did web dev knows it was anything but seamless. And all languages have the speed of C by Mojo’s standards 😅 Love these two guys though, awesome interview
@pookiepats
@pookiepats 7 ай бұрын
@@alelondon23nim is alot of fun 🤩
@Jason-yr6fy
@Jason-yr6fy Ай бұрын
23:35 the guy developed swift and says "I'm still new to languages". What a humble guy. Really appreciate the interview. Very interesting!
@theb1z0n
@theb1z0n 8 ай бұрын
Chapters: 00:00:00 - Python as a high-performance parallel programming language? 00:03:05 - The Journey to Building a New Language 00:05:55 - Writing High-Performance Loop Nests and IR 00:08:47 - MLIR and AST Generation 00:11:40 - Choosing Python for AI Development 00:14:23 - Introducing Mojo: A Different Language 00:17:01 - Interoperability with C in Mojo 00:19:50 - Introducing Mojo's Type System 00:22:38 - The Nature of Typing and Conversion 00:25:19 - Language Libraries and Data Types 00:28:16 - Hardware Acceleration and Library Extensibility 00:31:08 - The Power of Mojo and SIMD Vectors 00:33:51 - The Max Engine and Custom Operators 00:36:41 - Building bridges in the AI world 00:39:23 - Mojo programming in Python 00:42:26 - Compile time metaprogramming with Mojo 00:45:06 - Compile-time Python Programming 00:48:03 - Memory management in Mojo 00:50:58 - Lifetime Management in Rust and Mojo 00:53:45 - The Journey of Rust and Mojo 00:56:36 - Creating New Values in a List 00:59:19 - Parallelization and Threading in Mojo 01:02:09 - Parallelization in Mojo Programming Language 01:04:48 - Portable Algorithms and Applications 01:07:36 - GPUs and Multi-dimensional Vectors 01:10:37 - Utilizing Hardware Accelerators and Memory Hierarchy 01:13:25 - Mojo: Talking MLIR and LLVM 01:16:16 - The Growth of Mojo and the Open Source Community 01:19:00 - The Excitement of Open Development and Patent Coverage 01:21:37 - The Community Side of Programming 01:24:12 - Conclusion with Kris Jenkins
@liquidmobius
@liquidmobius 8 ай бұрын
Kris, you never disappoint! I've listened to Chris talk about language design before. He has a brilliant approach, meet people where they're at, not where you want them to be. You have to be able to set your own ego aside in order to do that.
@MultiMojo
@MultiMojo 8 ай бұрын
This channel is a hidden gem and it deserves atleast 10x the current number of subscribers. Thank you for this excellent interview !
@BenjaminScherrey
@BenjaminScherrey 8 ай бұрын
Outstanding interview. Chris is a true language engineer. Great interview as it gives a large audience an idea of the architectural drivers and technical challenges that led to mojo. Few people ever get properly exposed to these considerations to appreciate what it takes to do innovative language design and engineering.
@antikoerper256
@antikoerper256 8 ай бұрын
This is a historical interview and goes straight to favorites.
@afailable
@afailable 8 ай бұрын
This is by far the best developer focused channel on KZbin. Amazing!
@DeveloperVoices
@DeveloperVoices 7 ай бұрын
Thanks, glad you think so!
@havokgames8297
@havokgames8297 8 ай бұрын
Another fantastic episode. What a great guest. Really articulate, and you guys had great energy. Mojo is genuinely very exciting as a language. Zig was exciting too, but I can really see where Mojo fits in, and I think it could be really important in the next 10 or so years.
@maxmustermann5590
@maxmustermann5590 8 ай бұрын
I really like the interviewer here, intelligent questions and he let's is guests actually talk, seems to be a rarity these days
@markbabin3753
@markbabin3753 4 ай бұрын
Yeah lex is a disaster
@samhughes1747
@samhughes1747 8 ай бұрын
Holy heck! This completely changed how I see mojo working out. I assumed it was some second-system project that ignored cython, and was making a moonshot fueled by hype. It'-s so incredibly funny that the real motivation is the part of it that no one ever mentions, the MILR backend!
@elirane85
@elirane85 8 ай бұрын
I was skeptical when I first heard about Mojo, then I saw Chris's name, now I'm pretty sure we would be able to train huge LLM's on my microwave pretty soon. And I'm only slightly exaggerating in the faith I have in this man 😋
@_supervolcano
@_supervolcano 8 ай бұрын
Chris Lattner is great. Thank you for interviewing him!
@johnr3936
@johnr3936 6 ай бұрын
Chris seemed to be genuinely happy to share everything he did, phenomenal interview.
@neunmalelf
@neunmalelf 8 ай бұрын
MOJO is my last hope for solving the "computer language disaster". This man has all it needs to get it done (in time). Great Interview (as always). 👍👍👍👍👍
@scififan698
@scififan698 26 күн бұрын
python, the computer language disaster. yep, that sums it up. lol
@neunmalelf
@neunmalelf 26 күн бұрын
@scififan698 you are a rust or cpp fan ?
@IvanGarcia-cx5jm
@IvanGarcia-cx5jm 2 ай бұрын
Does Mojo has Halide/TVM like constructs? If not, why not? The main Mojo example uses for loops, but at 1:05:20 Chris mentions high level abstractions to avoid for loops.
@eyeofthetiger7
@eyeofthetiger7 6 ай бұрын
0:00 - Introduction and questioning Python’s potential as a high-performance language. 0:25 - Introducing Mojo and its creator, Chris Lattner. 0:43 - Chris Lattner’s notable contributions to programming languages. 1:13 - Lattner’s ability to work from Python syntax down to hardware level. 1:22 - Mojo’s approach: combining Python syntax with high performance. 1:37 - Start of the interview with Chris Lattner. 1:57 - Lattner's background and achievements. 2:18 - Discussing LLVM and Clang as foundational projects. 2:32 - Development of Swift and its motivations. 3:05 - Swift's design and adoption by the Objective-C community. 3:32 - Transitioning to why Mojo was created. 4:00 - Starting Mojo from hardware efficiency needs. 4:46 - Building Mojo’s code generation before focusing on syntax. 5:09 - Challenges in programming modern hardware. 5:40 - Introduction to MLIR (Multi-Level Intermediate Representation). 6:05 - Differences between LLVM and MLIR. 6:39 - Use of MLIR for domain-specific compilers. 7:26 - Explaining multiple levels of abstraction in MLIR. 8:04 - Benefits of MLIR in compiler development. 9:06 - Decision to adopt Python syntax for Mojo. 10:03 - Challenges and benefits of building a new language. 10:54 - Importance of meeting developers where they are with familiar syntax. 11:59 - Compatibility and integration with the Python ecosystem. 12:35 - Discussion on Mojo’s type system and performance optimizations. 13:28 - Targeting AI and high-performance computing sectors. 14:26 - Addressing the absence of a language like Mojo in the current market. 15:01 - How familiar Mojo is to Python programmers. 15:16 - Mojo’s current development status and future features. 16:18 - Compatibility with existing Python packages. 16:49 - Explaining progressive typing in Mojo. 18:18 - Benefits of having real types in Mojo. 19:04 - Integrating Python’s dynamic features with Mojo’s static typing. 20:35 - Metaprogramming capabilities in Mojo. 21:23 - Memory management and referencing in Mojo. 22:17 - Differences between Rust and Mojo in handling lifetimes. 24:24 - How Mojo manages resources efficiently. 26:09 - Explaining zero-cost abstractions in Mojo. 27:25 - Parallelism and handling multiple cores in Mojo. 28:11 - Handling matrix operations and memory hierarchy. 29:14 - Optimizing for specific hardware in Mojo. 30:23 - Creating portable algorithms for GPUs and CPUs. 31:54 - High-level programming and libraries in Mojo. 32:19 - Discussing AI model building and deployment. 33:15 - Shifting focus from research to deployment in AI. 34:31 - Integration of AI researchers and production engineers. 35:54 - Addressing the complexity of AI deployment with Mojo. 36:51 - Benefits of using Mojo for AI and high-performance computing. 38:22 - Explaining the max engine and graph compiler. 39:01 - Overcoming current limitations in AI graph compilers. 40:09 - Challenges and benefits of building Mojo from scratch. 41:00 - Example use cases and improvements in Mojo. 42:22 - Practical benefits for Python programmers using Mojo. 43:00 - Encouraging community growth and contributions. 44:23 - Meeting developers’ needs with familiar tools. 45:02 - How Mojo simplifies and extends Python’s capabilities. 46:00 - Using Mojo for high-performance numeric programming. 47:04 - Emphasizing practicality and usability in Mojo’s design. 48:22 - Potential for community-driven improvements and optimizations. 49:05 - Future developments and community engagement. 50:00 - Final thoughts on Mojo’s impact and vision. 51:04 - Encouraging Python developers to explore Mojo. 52:09 - Closing remarks and encouragement to join the Mojo community. 53:16 - Additional resources and ways to get involved with Mojo. 54:00 - Encouraging Python programmers to contribute to Mojo’s development. 54:35 - The importance of inclusivity and collaboration in the open-source community. 55:12 - How Mojo handles performance-critical applications. 56:05 - The integration of async-await for high-performance applications. 56:34 - The differences between Mojo and Rust in terms of memory management. 57:06 - Using Mojo’s type system to manage resource lifetimes efficiently. 58:08 - The benefits of exclusive ownership in Mojo’s type system. 59:00 - Simplifying memory management for developers with Mojo. 1:00:03 - Discussing the practical aspects of implementing parallelism in Mojo. 1:01:00 - Options for parallelizing code in Mojo. 1:02:04 - Potential future development of an actor system for Mojo. 1:03:05 - Encouraging the use of high-level abstractions for parallelism. 1:04:10 - Handling different CPU architectures and their impact on performance. 1:05:20 - Practical examples of writing efficient code for different hardware. 1:06:14 - Benefits of portable algorithms in high-performance computing. 1:07:02 - Importance of optimizing memory hierarchy usage. 1:08:09 - Practical tips for working with two-dimensional arrays and matrices. 1:09:02 - Leveraging modern hardware features for performance gains. 1:10:16 - The future of high-performance computing and evolving hardware. 1:11:28 - How Mojo bridges the gap between hardware advancements and software development. 1:12:32 - Using Mojo’s advanced features for specific hardware optimizations. 1:13:39 - Practical application of MLIR in real-world scenarios. 1:14:25 - Benefits of using Mojo for AI research and deployment. 1:15:35 - The practicality of transitioning Python code to Mojo. 1:16:28 - Current status of Mojo’s development and future roadmap. 1:17:14 - The importance of community feedback and contributions. 1:18:00 - Concluding thoughts on Mojo’s potential impact on programming. 1:19:00 - Encouraging developers to experiment with Mojo. 1:20:02 - How Mojo aims to improve the developer experience. 1:21:06 - The broader vision for Mojo’s role in the programming ecosystem. 1:22:09 - Final remarks on the inclusivity and accessibility of Mojo. 1:23:00 - Encouraging the use of Mojo for various programming needs. 1:24:00 - Closing statements and thanks from Kris Jenkins. 1:24:10 - Encouraging listeners to like, share, and subscribe for future episodes. 1:24:30 - Kris Jenkins’ final goodbye and signing off the episode.
@Vijay-b4o8b
@Vijay-b4o8b 2 ай бұрын
I'm new to programming. I'm glad I watched this interview early.
@edgeeffect
@edgeeffect 8 ай бұрын
With reference to Rust dealing with immutablity with memcpy... I wish I could remember what talk it was... it might have been Anjana Vakil ❤ ... talking about implementing immutable trees of immutable values without copying in JavaScript... it was such good stuff.
@g0mf
@g0mf 7 ай бұрын
Thanks for the interview!
@Departure4885
@Departure4885 8 ай бұрын
Just discovered this channel, what a great interview.
@DevlogBill
@DevlogBill 8 ай бұрын
Excellent interview! Chris Lattner is an amazing engineer. Would it be possible to get Bjarne Stroustrup for an interview? Is the man still alive? If so, it would be really interesting to hear the thoughts from the man who created the most influential programming language ever created, just a thought. Thanks for such a wonderful interview.
@ryanlupi7756
@ryanlupi7756 7 ай бұрын
This was impressive and I had a lot of fun following along and searching through things you all were mentioning throughout the discussion. I have a lot more to learn!
@nullternative
@nullternative 8 ай бұрын
Great interview! Happy I found your channel!
@natea.2926
@natea.2926 7 ай бұрын
Chris, I really enjoy your interviews and the quality of guests you land. I have no doubt your channel will grow in following tremendously.
@DeveloperVoices
@DeveloperVoices 7 ай бұрын
Thanks! I hope so. 😀
@Protocolpimp
@Protocolpimp 8 ай бұрын
Soon as they open source this I’m rewriting everything I’ve ever written in mojo
@eyekey346
@eyekey346 8 ай бұрын
I think they did recently
@lojicdotcom
@lojicdotcom 8 ай бұрын
@@eyekey346 I think they've only open sourced the standard library, and some other bits, but not the compiler yet.
@playea123
@playea123 7 ай бұрын
@@lojicdotcomwhy would most people care about the compiler being open source? From my understanding they will open source that too, just not now. They probably won’t open source their MAX engine which makes sense as that’s their actual money maker.
@3ngelo
@3ngelo 8 ай бұрын
Nice interview, I really like your format. For me Nim do the job for now. It would be interesting to have an interview with the creator of the V language (Vlang) Alex Medvedniko :)
@tylercloutier537
@tylercloutier537 8 ай бұрын
Omg! Yes! Chris is my hero.
@ArunRamakrishnan
@ArunRamakrishnan 6 ай бұрын
Wonderful conversation. Enjoyed the nuances of IR and AST and all kinds of compiler construction areas. Made me go to my grad school :)
@dwight4k
@dwight4k 8 ай бұрын
If a guy like Lattner is fed-up with C++, what should us mortals do?
@BonifaceMakone
@BonifaceMakone 8 ай бұрын
Sounds like what Julia is currently doing with a different syntax and fancy approaches like leveraging multiple dispatch. Chris is a legend and it would be good to see how Mojo disrupts the data science and AI space
@playea123
@playea123 7 ай бұрын
Julia isn’t a superset of Python though. I would say this is very different than the approach Julia took. The biggest factor here from a developer’s standpoint is that, when completed, mojo will be a superset of Python. You would be able to compile already exiting Python code with mojo as is and get a noticeable performance improvement and you can integrate mojo into that codebase bit by bit and gain significant performance, safety and control improvements. Julia can’t do that and that isn’t their approach. They built what they consider as a better, separate language for scientific computing.
@digitalspecter
@digitalspecter 5 ай бұрын
Julia is missing the actual static typing and low level stuff though..
@stretch8390
@stretch8390 6 ай бұрын
Someone needs to document as much as possible in a formal study over the next decade so we can finally empirically understand why some languages get adopted and others don't. There are so many good languages available now it is almost overwhelming.
@frock81
@frock81 8 ай бұрын
Very good episode. Congratulations.
@GreatWalker
@GreatWalker 7 ай бұрын
I really hope Mojo can deliver on its promises
@TheHubra
@TheHubra 8 ай бұрын
Im very interested in Mojo. It still seems to be too young for me but as Rust developer I look forward to moving to Mojo at some point.
@MeinDeutschkurs
@MeinDeutschkurs 6 ай бұрын
And Mojo is/will be JIT, or do I have to compile a bundle to run a binary? Or can I do both? It sounds amazing!
@johnd5262
@johnd5262 8 ай бұрын
What a treat, thanks for this. Love hearing Chris Lattner talk
@gunarcom
@gunarcom 8 ай бұрын
This is a very well done interview. :)
@kevinkkirimii
@kevinkkirimii 8 ай бұрын
A good replacement for rust... now that caught my ear. Looking forward to mojo.
@Little-bird-told-me
@Little-bird-told-me 4 ай бұрын
Learning Mojo would be like doing a computer course with best practices with years of Chris Lattner experience, all combined into one language
@mattanimation
@mattanimation 8 ай бұрын
awesome interview thanks!
@mannyc4123
@mannyc4123 2 ай бұрын
Great talk. Pity that so many ads spoil the flow.
@pyajudeme9245
@pyajudeme9245 8 ай бұрын
Nice!! Lattner is a Genius.
@aaggh
@aaggh 8 ай бұрын
Great interview with a compiler legend. Thanks!
@karatsurba4791
@karatsurba4791 8 ай бұрын
Question: When Chris says code generation, he's means machine code n NOT bytecode/IR ?
@____uncompetative
@____uncompetative 8 ай бұрын
No. He uses libraries written in a mix of Mojo and his new IR (Intermediate Representation) to do the Code Generation rather than have a bloated monolithic compiler for a robust, parallel superset of Python. Presumably this IR compiles again from there in a form that suits the native architecture of the host machine, but I don't know much about LLVM or its replacement so I don't know if they are doing Java / Julia style static compile whole file first, or more immediately responsive at the cost of performance as it interprets this simple IR which pretty closely maps to Opcodes for most chips.
@Navhkrin
@Navhkrin 7 ай бұрын
@@____uncompetative It compiles to machine code. But it doesn't do all compilation AoT. It's a hybrid mechanism between JIT and AoT depending on whether function is declared with def or fn. This allows you to match C++/Rust performance with fn and python dynamism with def. Compiler is also really fast, even when compiling pure static files, it takes few milliseconds to get the job done. In fact, it is so fast that you can compile->run projects faster than Python does bytecode compile -> Launch
@____uncompetative
@____uncompetative 7 ай бұрын
@@Navhkrin Thank you. That's very informative. It sounds like they have a good language that could in time displace C++ with sufficient library support.
@DrunkenUFOPilot
@DrunkenUFOPilot 8 ай бұрын
Mojo just might be good enough to pry my fingers off of D, Julia and Crystal. It's on my list of languages to try.
@jackhales6179
@jackhales6179 6 ай бұрын
Those are unique languages, what has your experience been with them
@alelondon23
@alelondon23 8 ай бұрын
Mojo seems to have a sharp focus on abstracting the hardware acceleration. Regarding the title question, Nim has a pythonic syntax and is quite mature. It would be nice to know the differences between them.
@vncstudio
@vncstudio 7 ай бұрын
Nim is very very good in speed and executable size. Very nice language. Very nice way to interface with Python too.
@ITSecNEO
@ITSecNEO 3 ай бұрын
Don't waste your time on a not used language like Nim. It's only nice for Personal projects and it has a lot of bad decisions.
@jimallen8238
@jimallen8238 7 ай бұрын
Looking forward to seeing Mojo evolve. Maybe I'll have an option to transition to from Cython - as long as there is an upside.
@JT-mr3db
@JT-mr3db 8 ай бұрын
Chris is a compiler titan. Mojo looks cool.
@JL-1735
@JL-1735 6 ай бұрын
Awesome interview I agree with the other commenter that said you should have 10x the subscribers!!!!
@DeveloperVoices
@DeveloperVoices 6 ай бұрын
Thanks! Hopefully in time, we will. 🤞
@_TheDudeAbides_
@_TheDudeAbides_ 8 ай бұрын
I think it is a very neat move to use a syntax plenty of people know and use it for a bit different language. Also, having a python with compilation to binary is on my wishlist already. :)
@abudi-channel
@abudi-channel 8 ай бұрын
Im so interested in mojo i hope it was released soon on windows.
@schwarzsterben1338
@schwarzsterben1338 8 ай бұрын
please make a book for MLIR
@meatsong
@meatsong 5 ай бұрын
The memory leak joke made me do a sharp nose exhale
@weatherwaxusefullhints2939
@weatherwaxusefullhints2939 8 ай бұрын
You should have called it Monty instead of Mojo.
@therainman7777
@therainman7777 6 ай бұрын
Monty is funnier, but Mojo is a much better name.
@PedroPabloCalvoMorcillo
@PedroPabloCalvoMorcillo 8 ай бұрын
Another great interview. It's been a breeze and very informative. Thank you!
@sportspriceanalysis416
@sportspriceanalysis416 7 ай бұрын
I think for specialist use cases this is going to be awesome. But I always wonder about language speed when developing run of the mill business applications (which Ive done for 35+ years), you have network latency, disk i/o database performance so real world code performance is less of an issue.
@sirinath
@sirinath 8 ай бұрын
One thing to convince Chris Lattner is to use type inference where possible than gradual typing and being dynamic.
@bearwolffish
@bearwolffish 8 ай бұрын
Has the Arch compiler dropped yet or they still only supporting Ubuntu and RedHat? Love the tail call optimisation and strong typing. Machine learning/cuda style use case is great but it also pushes python towards being that viable functional programming lang while at the same time improving performance.
@jonmichaelgalindo
@jonmichaelgalindo 8 ай бұрын
You had me at "replacement for cuda". ❤
@generalyoutubewatching5286
@generalyoutubewatching5286 4 ай бұрын
Cuda.jl in Julia is a replacement for cuda.
@liammcmullan1133
@liammcmullan1133 8 ай бұрын
Kepp up the Good Work Chris and Chris, you are doing gods work. #chrislike
@kindoblue
@kindoblue 8 ай бұрын
Here’s to you Chris Lattner, the 10000x programmer 🤣
@vikingthedude
@vikingthedude 8 ай бұрын
Amazing as always. I would love it if you did an episode on NATS the message broker technology. Given the popularity of the kafka and big data episodes, i think it would fit right in
@antikoerper256
@antikoerper256 8 ай бұрын
I have a question - does Mojo require powerful hardware to run? As it could do a lot and im afraid I may not have what it takes hardware-wise for it to be used optimally... Or could it just be run with the same specs like Python? I know it really depends on what you're doing with it but im speaking in general terms as well as in more broad ones
@Navhkrin
@Navhkrin 7 ай бұрын
It's like 100x lighter than Python. And because its compiler is faster than C++ or Rust's Mojo is basically as light as it gets.
@antikoerper256
@antikoerper256 7 ай бұрын
@@Navhkrin Wow ok, thanks a lot!
@nanthilrodriguez
@nanthilrodriguez 8 ай бұрын
APL/Morten Kromberg/Aaron Hsu/Arthur Whitney interview When?
@digitalspecter
@digitalspecter 5 ай бұрын
Haircut looks good (also the green polish), longer hair has that wizardy-vibe though :D depends on what you're going for :D
@DeveloperVoices
@DeveloperVoices 5 ай бұрын
Haha, not specifically aiming for wizard but I’m happy to get there by accident. 😁
@timibolu
@timibolu 8 ай бұрын
Woooww!!! Chris lattner❤‍🔥❤‍🔥❤‍🔥
@edgardcz
@edgardcz 8 ай бұрын
What IDE would you recommend for Mojo?
@DeveloperVoices
@DeveloperVoices 8 ай бұрын
There's an official VSCode plugin: docs.modular.com/mojo/faq#is-there-ide-integration And I've been using Neovim. The mojo support was was straightforward to set up, as it's already part of in 'neovim/nvim-lspconfig'. Well, straightforward if you're already using Neovim for other coding. :-)
@r2com641
@r2com641 8 ай бұрын
Notepad for you should be ok
@WaliaIbex
@WaliaIbex 8 ай бұрын
Use Ms Word is enough for pojo😂
@Gino.Pilotino
@Gino.Pilotino 8 ай бұрын
PyCharm
@edism
@edism 8 ай бұрын
Lol why notepad? ​@@r2com641
@Rockyzach88
@Rockyzach88 8 ай бұрын
Every time I listen to this guy I have to google a bunch of stuff lol.
@Digga005
@Digga005 8 ай бұрын
My biggest question is: Does compiling my existing Python projects with a thin Mojo wrapper bring performance advantages or will I have to port it to native Mojo?
@victorhenriquecp
@victorhenriquecp 8 ай бұрын
there's a demo that you can prob find online showing that just wrapping python code into mojo already can make it quite fwster
@tychoides
@tychoides 7 ай бұрын
short answer, no. Some python syntax is supported but no all. And you need a cpython interpreter to use libraries, so no performance gains there. The plan of modular is to support any python script as it, but that is not the case nowadays.
@TomPatrickFri
@TomPatrickFri 8 ай бұрын
Great interview, thanks for the great content!
@hanyanglee9018
@hanyanglee9018 7 ай бұрын
Maybe this is a dumb question, but does mojo replace python or triton/cuda/open*l?
@raspotin2
@raspotin2 7 ай бұрын
It extends Python to those Domains, so you can write GPU code with mojo instead of cuda or cuda binding to python while still able to write all the CPU code that python normally is used for.
@Septumsempra8818
@Septumsempra8818 7 ай бұрын
Python's syntax is its best innovation.
@EkShunya
@EkShunya 8 ай бұрын
great podcast
@JohnSmith-pn2vl
@JohnSmith-pn2vl 8 ай бұрын
this will be Chris Lattners Masterpiece, i am beyond excited, thanks for this amazing interview
@liammcmullan1133
@liammcmullan1133 8 ай бұрын
when will Mojo be ready for Windows?
@Navhkrin
@Navhkrin 7 ай бұрын
It will come GPU support
@burkskurk82
@burkskurk82 7 ай бұрын
Such bliss! Apparently, PyTorch and Numba doesn’t exist.
@eduantech
@eduantech 8 ай бұрын
Haircut looking good!
@hansdietrich1496
@hansdietrich1496 8 ай бұрын
The one thing I never understood: WHY make it a superset of python, i.e. introducing a ton of new syntax, instead of just using all the syntax python already has, namely typing and decorators, and just use those by making them mandatory, if you want to have the speedups?
@ZeroPlayerGame
@ZeroPlayerGame 8 ай бұрын
Python syntax has semantics - if people use type annotations for mypy, you don't want that to interfere with compilation.
@hansdietrich1496
@hansdietrich1496 8 ай бұрын
@@ZeroPlayerGame Ever heard about mypyc? They do exactly that: Use the annotations for compilation.
@toadlguy
@toadlguy 8 ай бұрын
Ideally you want anything that is written in the current CPython to just run. If you want to use the Mojo "extensions", you just use the Mojo types.
7 ай бұрын
have you seen the new BLEND language? it is a similar concept, high performance + massively parallel language with Python-esque syntax
@JH-pe3ro
@JH-pe3ro 8 ай бұрын
The tech is probably cool but I can sense that this is going to generalize and extend and abstract its way into a complex ecosystem that mortals don't understand but which corporations will pay for. I'm way over on the "small languages for everything" front so it offers very little for me.
@techwiththomas5690
@techwiththomas5690 8 ай бұрын
Mojo: Login to compile your code - lol
@liquidmobius
@liquidmobius 8 ай бұрын
Idk where you're seeing that. I'm on Linux, it's very straightforward: run curl to install modular, download mojo, modify your path. I've been compiling mojo code for the last 24 hours, no login. To use the MAX SDK you have to authorize, but not to compile mojo code.
@angeloceccato
@angeloceccato 8 ай бұрын
But will Mojo be full opensource and free?
@angeloceccato
@angeloceccato 8 ай бұрын
I understood yes, it will be, but the world of GPUs seems so closed to me, and cloud service companies tend to be vendor locked.... Am I too paranoid?
@bart2019
@bart2019 8 ай бұрын
#1:17:58
@angeloceccato
@angeloceccato 8 ай бұрын
@bart2019 Yep, as I said above, I'm just a little paranoid about GPUs and service provider companies 😅
@LisaSamaritan
@LisaSamaritan 8 ай бұрын
As I remember him explain it, in another interview. The reason why the programming language didn't start out as open source, was because of bad experience from his previous one, where he listened to what everyone wanted and had to redo a lot of work, over and over again and still there will always be those that are mad that things didn't turn out the way they wanted. That's why he wants to make the language on his own, until it reaches a certain maturity, before he open source it. The service parts (including the ability to contact them and get help), that is the business model of Modular, might never be open source. But they are not a part of the language. They are written in it, so technically someone else can write something similar. Without their service, you will still be able to get a few x (up to about 10x, but might get closer to 15x when it is complete) better speed, with the same Python code running on Mojo, without having to do anything (because of their more modern and intelligent compiler). If you start using Mojo specific functions then that's when you can see 100x and 1000x numbers (by utilizing vector hardware, multi threading etc). Numbers higher than that, is basically cherry picking problems that can be up to 35 000x (at this point and the language isn't even done).
@digitalspecter
@digitalspecter 5 ай бұрын
I fear this will be another of those "open source" projects that get ruined by the company trying to squeeze money out of it.. they're too numerous these days not to take that into consideration. It's a very interesting language but I'll wait at least a few years to see how free and open it is then..
@ManwithNoName-t1o
@ManwithNoName-t1o 8 ай бұрын
why would you want a dynamically typed language that isn't typesafe?
@androth1502
@androth1502 8 ай бұрын
still not available on the most used OS.
@LiminalThought
@LiminalThought 7 ай бұрын
I find that Mojo has a lot of hype around it. However, I’ve only been programming in Python for about 2 years and I find that the Mojo docs don’t have nearly enough examples.
@therainman7777
@therainman7777 6 ай бұрын
That’s because Mojo is still a work in progress that hasn’t even been truly released yet.
@bobweiram6321
@bobweiram6321 7 ай бұрын
Are you the same person who does the Morgonaut Channel?
@DeveloperVoices
@DeveloperVoices 7 ай бұрын
No.
@WillbeMelek
@WillbeMelek 5 ай бұрын
A Language which can: Function at a low level Uses English language words Incremental compilation (only the line which needs to be changed.) Design your own function and reuse it use of small, simple functions Extend the compiler by writing new functions
@sirinath
@sirinath 8 ай бұрын
Also open source the whole stack as quickly as possible.
@kilianklaiber6367
@kilianklaiber6367 8 ай бұрын
I thought it's turtles all the was down!?😂
@BrentMalice
@BrentMalice 7 ай бұрын
this guy looks exactly like that one actor and i cant get over it
@DeveloperVoices
@DeveloperVoices 7 ай бұрын
Over here, we're all trying to guess which actor you could mean. 😁
@BrentMalice
@BrentMalice 7 ай бұрын
@@DeveloperVoices your guest looks like Jed Reese, had to look it up lmao first saw him in the ringer.
@therainman7777
@therainman7777 6 ай бұрын
@@BrentMaliceOh wow that is a CRAZY resemblance!
@fojico1234
@fojico1234 8 ай бұрын
Awesome, but I really wish to see a roadmap?
@HarmonicaTool
@HarmonicaTool 5 ай бұрын
When Stroustrup took C and bolted layer after layer of new and good concepts onto it, C++ became a large, if not cluttered, language without beauty. Still very successful, though. I wonder if taking Python and bolting new and shiny things onto it is doomed to become a large complicated clutter and if starting from scratch with a type system and an actor model and parallelism and ... would not be wiser (looking a Julia, maybe?). Me, I would love to see some strong data sciences modules be written for something clean and pragmatic and widely spread such as Golang, but that is not going to happen.
@HarmonicaTool
@HarmonicaTool 5 ай бұрын
Great video, by the way.😊
@nexovec
@nexovec 8 ай бұрын
The Mojo installer blackscreened my PC and that's the end of my Mojo journey
@therainman7777
@therainman7777 6 ай бұрын
😂
@domnovoi56
@domnovoi56 8 ай бұрын
I wonder how this compares to taichi?
@matterhart
@matterhart 8 ай бұрын
I really like the design advances from zig and rust, but they totally missed the boat on accelerators. Programming languages should help you get the most out of your hardware, and cpus have largely plateaued. There are going to be 100s of billions invested into AI, and they can't get enough accelerators, so getting the most out of what they have will be critical. I hope mojo can get enough funding (perhaps from AMD & MS) to execute on the promise.
@wld-ph
@wld-ph 8 ай бұрын
Assuming I am a robot, I come across two nuts threaded onto a bolt, sandwiching some washers (they really didn´t want this to shake free). I can decide to remove this equipment, and my colleague can decide to help. I have a spanner, and he has a socket-driver. Whilst the socket driver is faster, it can´t tackle really long threads, due to lack of depth. So mostly he unbolts stuff, and asks me for the deeper threads. Hey, were working on a schedule to get this stuff unbolted, and repaired, before sun up. You get roasted on the moon.
@wld-ph
@wld-ph 8 ай бұрын
Hang on, this isn´t working well. WTF. Why-o-why do americans insist on using inches, and wierd threads... ? We´ll use a different library. It´s not an exact fit, but I can wadge some white plumbing-tape around this nut, to help convert from mm to inch socket. Hey, it´s off, phew.
@wld-ph
@wld-ph 8 ай бұрын
Flexibility wins... and we fixed Mamma robot, so can have a million more siblings, to help mining operation...
@therainman7777
@therainman7777 6 ай бұрын
@@wld-phWtf are you talking about?
@philmccavity
@philmccavity 8 ай бұрын
You misspelled his name :)
@DeveloperVoices
@DeveloperVoices 8 ай бұрын
I know! 😭 I missed out a 't', and only realised after it was published. KZbin doesn't let you edit videos, so I will have to live with my shame. 😔
@philmccavity
@philmccavity 8 ай бұрын
@@DeveloperVoices the interview is excellent BTW
@DeveloperVoices
@DeveloperVoices 8 ай бұрын
Thanks!
@blindshellvideos
@blindshellvideos 8 ай бұрын
@@DeveloperVoices ask him to legally change his name so the video title is correct
@therainman7777
@therainman7777 6 ай бұрын
@@blindshellvideos😂
@oraz.
@oraz. 8 ай бұрын
He made opencl too? Wtf
@bobweiram6321
@bobweiram6321 8 ай бұрын
Chris Lattner work on Swift was a disaster.
@markcoren2842
@markcoren2842 8 ай бұрын
Care to actually substantiate your claim or was it just a bad day?
@bobweiram6321
@bobweiram6321 8 ай бұрын
@@markcoren2842 Of all the languages I've programmed in, Swift is plain awful, especially when there were inspiring languages such as C#, Ada, Object Pascal and Java around. I would put it up there with Rust as one of my least favorite languages. It doesn't solve offer any real advantages over other languages. The syntax is hard to get your head around and very hard to read, such as the optional semicolon and return statements. Its curly brace usage is a gratuitous and a nightmare to visually parse. It relies too heavily on symbols instead of keywords. Finally, its OOP is quite limited and its constructors are overly complicated. It's too bad Apple chose it as the only first class language for developing iOS and MacOS apps.
@steshaw6510
@steshaw6510 7 ай бұрын
What happened?
@bobweiram6321
@bobweiram6321 7 ай бұрын
KZbin keeps deleting my comments.
@steshaw6510
@steshaw6510 7 ай бұрын
Oh
Is Odin "Programming done right"? (with Bill Hall)
1:00:05
Developer Voices
Рет қаралды 60 М.
How to hire programmers | Chris Lattner and Lex Fridman
9:45
Lex Clips
Рет қаралды 97 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Mojo🔥: a deep dive on ownership with Chris Lattner
48:50
Swift creator Chris Lattner on Mojo & Roc
1:49:26
Software Unscripted Podcast
Рет қаралды 14 М.
Zig as a Multi-OS Build System (with Loris Cro)
1:19:07
Developer Voices
Рет қаралды 32 М.
Mojo - the BLAZINGLY FAST new AI Language? | Prime Reacts
25:18
ThePrimeTime
Рет қаралды 175 М.
Andrew Kelley   Practical Data Oriented Design (DoD)
46:40
ChimiChanga
Рет қаралды 153 М.
Exception vs Errors | Chris Lattner and Lex Fridman
8:02
Lex Clips
Рет қаралды 50 М.
What's Zig got that C, Rust and Go don't have? (with Loris Cro)
1:23:53
Developer Voices
Рет қаралды 193 М.
[UPDATE] Mojo Is Faster Than Rust - Mojo Explains More
52:09
ThePrimeTime
Рет қаралды 275 М.
Rust & Zig Combined • Richard Feldman • GOTO 2023
45:34
GOTO Conferences
Рет қаралды 81 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН