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

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

Preface

Preface

8 ай бұрын

Пікірлер: 70
@pixel1145
@pixel1145 8 ай бұрын
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 5 ай бұрын
Try Julia
@klaymoon1
@klaymoon1 6 ай бұрын
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?
@icns01
@icns01 4 ай бұрын
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!
@jeanchindeko5477
@jeanchindeko5477 8 ай бұрын
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 8 ай бұрын
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.
@niccolomedici4482
@niccolomedici4482 8 ай бұрын
4:27 Won't it confuse JS programmers that "let" is immutable?
@BreytnerNascimento
@BreytnerNascimento 8 ай бұрын
JS actively confuse JS programmers so it isn't a big deal
@vt2788
@vt2788 8 ай бұрын
@@BreytnerNascimento haha true. JS is a nightmare for logicians
@Summersault666
@Summersault666 8 ай бұрын
They deserve it!
@greendsnow
@greendsnow 8 ай бұрын
Mojo is big, because of MLIR. Some GPU producers are abusing their power right now, you know which! MLIR will be a chainbreaker
@sucRipper
@sucRipper 7 ай бұрын
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
@LuisCastillo-uu8uk
@LuisCastillo-uu8uk 4 ай бұрын
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
@ssssssstssssssss
@ssssssstssssssss 8 ай бұрын
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 6 ай бұрын
wonder if they have a plan to make it general purpose
@Indently
@Indently 8 ай бұрын
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 8 ай бұрын
You can use it as Python, so it would actually not change any code
@devabdul
@devabdul 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@pookiepats well that's why mojo would be combining the best of two worlds imho
@devabdul
@devabdul 5 ай бұрын
@@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
@davidbangsdemocracy5455
@davidbangsdemocracy5455 3 ай бұрын
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.
@backendmystery
@backendmystery 8 ай бұрын
Seems like another tuned C
@vt2788
@vt2788 8 ай бұрын
I wonder if Mojo can be used for game development if it is so frickin fast?
@freedom_aint_free
@freedom_aint_free 8 ай бұрын
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 8 ай бұрын
@@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 3 ай бұрын
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 3 ай бұрын
@@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 3 ай бұрын
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)
@ashutoshchar940
@ashutoshchar940 5 ай бұрын
Im c++ dev but i definitely use mojo because i want to be a sane person in my fifties
@uthoshantm
@uthoshantm 5 ай бұрын
Mojo is proprietary. I won't even try it. Besides, Julia is a fantastic alternative for those looking for a fast alternative to Python.
@redcrafterlppa303
@redcrafterlppa303 8 ай бұрын
It's like c++ trying to replace c but the source language isn't even good.
@RAHUDAS
@RAHUDAS 5 ай бұрын
it is not OpenSource Yet, So it is not a Programmimg Language at all
@DontAddMe
@DontAddMe 8 ай бұрын
I left c for pointers and mojo bringing it back.. great
@colinmaharaj
@colinmaharaj 4 ай бұрын
I'm going to stick to c++.
@yevgeniygrechka6431
@yevgeniygrechka6431 8 ай бұрын
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 8 ай бұрын
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.
@gameslover5083
@gameslover5083 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@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 8 ай бұрын
@@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 8 ай бұрын
@@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.
@akaalkripal5724
@akaalkripal5724 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@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 8 ай бұрын
@@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 8 ай бұрын
most of the Ai and machine learning requires python now
@vt2788
@vt2788 8 ай бұрын
​@@akaalkripal5724that is the reason it was created
@christcombiccombichrist2651
@christcombiccombichrist2651 8 ай бұрын
I'm going to stick to c++.
@DavidRagazzi
@DavidRagazzi 8 ай бұрын
Ok. Nobody cares...
@christcombiccombichrist2651
@christcombiccombichrist2651 8 ай бұрын
@@DavidRagazzi it looks like you cares because my comment hurt your feelings. Lol.
@vt2788
@vt2788 8 ай бұрын
aww you guys be nice
@cfusername
@cfusername 8 ай бұрын
Bah... I prefer Assembler for string manipulation.
@DavidRagazzi
@DavidRagazzi 8 ай бұрын
@@cfusername 😂😂😂
Is This Language Replacing Python?!
14:11
Tech With Tim
Рет қаралды 118 М.
КАРМАНЧИК 2 СЕЗОН 5 СЕРИЯ
27:21
Inter Production
Рет қаралды 551 М.
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
Trágico final :(
01:00
Juan De Dios Pantoja
Рет қаралды 33 МЛН
YouTube Play Buttons !! 😱😱
00:17
Tibo InShape
Рет қаралды 10 МЛН
GenAI Summit San Fransisco 2024 Tour
16:34
Manny Bernabe
Рет қаралды 6
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 320 М.
How to Install Mojo - Mojo Programming for Beginners #2
4:07
New Features You Need To Know In Python 3.12
12:04
ArjanCodes
Рет қаралды 176 М.
Rust and RAII Memory Management - Computerphile
24:22
Computerphile
Рет қаралды 213 М.
The Dream Programming Language? Lobster
20:55
Code to the Moon
Рет қаралды 141 М.
Choosing Your Language: Python or Mojo?
14:33
ArjanCodes
Рет қаралды 108 М.
Getting started with the Mojo SDK🔥
9:57
Modular
Рет қаралды 5 М.
КАРМАНЧИК 2 СЕЗОН 5 СЕРИЯ
27:21
Inter Production
Рет қаралды 551 М.