[TechBites] New language Mojo.🔥 | Will Python be replaced?

  Рет қаралды 15,558

Preface

Preface

11 ай бұрын

Пікірлер: 75
@pixel1145
@pixel1145 10 ай бұрын
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 8 ай бұрын
Try Julia
@ameera999
@ameera999 2 ай бұрын
I agree, i dislike python becoz it was so slow.
@icns01
@icns01 6 ай бұрын
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!
@klaymoon1
@klaymoon1 9 ай бұрын
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?
@jeanchindeko5477
@jeanchindeko5477 10 ай бұрын
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
@jonathanghee4617
@jonathanghee4617 11 ай бұрын
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.
@davidbangsdemocracy5455
@davidbangsdemocracy5455 6 ай бұрын
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.
@Indently
@Indently 11 ай бұрын
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 11 ай бұрын
You can use it as Python, so it would actually not change any code
@devabdul
@devabdul 11 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
@@pookiepats well that's why mojo would be combining the best of two worlds imho
@devabdul
@devabdul 7 ай бұрын
@@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
@ameera999
@ameera999 2 ай бұрын
I wonder what is its compilation speed. Would it as fast as javascript?
@sucRipper
@sucRipper 9 ай бұрын
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
@greendsnow
@greendsnow 11 ай бұрын
Mojo is big, because of MLIR. Some GPU producers are abusing their power right now, you know which! MLIR will be a chainbreaker
@niccolomedici4482
@niccolomedici4482 11 ай бұрын
4:27 Won't it confuse JS programmers that "let" is immutable?
@BreytnerNascimento
@BreytnerNascimento 11 ай бұрын
JS actively confuse JS programmers so it isn't a big deal
@vt2788
@vt2788 11 ай бұрын
@@BreytnerNascimento haha true. JS is a nightmare for logicians
@Summersault666
@Summersault666 10 ай бұрын
They deserve it!
@ssssssstssssssss
@ssssssstssssssss 11 ай бұрын
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 9 ай бұрын
wonder if they have a plan to make it general purpose
@LuisCastillo-uu8uk
@LuisCastillo-uu8uk 6 ай бұрын
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
@vt2788
@vt2788 11 ай бұрын
I wonder if Mojo can be used for game development if it is so frickin fast?
@freedom_aint_free
@freedom_aint_free 11 ай бұрын
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 11 ай бұрын
@@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 5 ай бұрын
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 5 ай бұрын
@@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 5 ай бұрын
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)
@uthoshantm
@uthoshantm 8 ай бұрын
Mojo is proprietary. I won't even try it. Besides, Julia is a fantastic alternative for those looking for a fast alternative to Python.
@ashutoshchar940
@ashutoshchar940 7 ай бұрын
Im c++ dev but i definitely use mojo because i want to be a sane person in my fifties
@RAHUDAS
@RAHUDAS 7 ай бұрын
it is not OpenSource Yet, So it is not a Programmimg Language at all
@backendmystery
@backendmystery 11 ай бұрын
Seems like another tuned C
@colinmaharaj
@colinmaharaj 6 ай бұрын
I'm going to stick to c++.
@DontAddMe
@DontAddMe 11 ай бұрын
I left c for pointers and mojo bringing it back.. great
@redcrafterlppa303
@redcrafterlppa303 10 ай бұрын
It's like c++ trying to replace c but the source language isn't even good.
@yevgeniygrechka6431
@yevgeniygrechka6431 11 ай бұрын
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.
@gameslover5083
@gameslover5083 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
@@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 11 ай бұрын
@@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 11 ай бұрын
@@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.
@devabdul
@devabdul 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
@@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 11 ай бұрын
@@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 11 ай бұрын
most of the Ai and machine learning requires python now
@vt2788
@vt2788 11 ай бұрын
​@@akaalkripal5724that is the reason it was created
@christcombiccombichrist2651
@christcombiccombichrist2651 11 ай бұрын
I'm going to stick to c++.
@DavidRagazzi
@DavidRagazzi 11 ай бұрын
Ok. Nobody cares...
@christcombiccombichrist2651
@christcombiccombichrist2651 11 ай бұрын
@@DavidRagazzi it looks like you cares because my comment hurt your feelings. Lol.
@vt2788
@vt2788 11 ай бұрын
aww you guys be nice
@cfusername
@cfusername 10 ай бұрын
Bah... I prefer Assembler for string manipulation.
@DavidRagazzi
@DavidRagazzi 10 ай бұрын
@@cfusername 😂😂😂
Mojo🔥: a deep dive on ownership with Chris Lattner
48:50
5 Good Python Habits
17:35
Indently
Рет қаралды 483 М.
Joker, what is this doing?!#joker #shorts
00:31
Untitled Joker
Рет қаралды 9 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 124 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 29 МЛН
Google vs. Apple: How Gemini AI Is Pushing Android Ahead | WSJ
10:00
The Wall Street Journal
Рет қаралды 8 М.
Is it worth it to call Rust from Python with PyO3?
8:50
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 380 М.
Is This Language Replacing Python?!
14:11
Tech With Tim
Рет қаралды 118 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 158 М.
Jeremy Howard demo for Mojo launch
7:28
Jeremy Howard
Рет қаралды 131 М.
Choosing Your Language: Python or Mojo?
14:33
ArjanCodes
Рет қаралды 113 М.
Mojo: A Supercharged Python for AI with Chris Lattner - 634
1:05:57
The TWIML AI Podcast with Sam Charrington
Рет қаралды 7 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН
Joker, what is this doing?!#joker #shorts
00:31
Untitled Joker
Рет қаралды 9 МЛН