All-in-one C++, Rust, AND Python Successor? Mojo

preview_player
Показать описание
A look at the new, potentially revolutionary Mojo programming language from Modular.

Рекомендации по теме
Комментарии
Автор

I always find "compared to Python" when talking about speed a little bit useless. Python is always slower than anything, except when you're using a C lib, so compared to what Python exactly?

BrazenNL
Автор

Thank for wonderful presentation! In their doc(roadmap) it's mentioned that ownership is only partially implemented, no proper lifetime support right now.
It's wonderful to see how Mojo incorporate c/c++ freedom, rust safety and python dynamic feature in same language.

rahulshandilya
Автор

8:12 I'm probably wrong because I'm not familiar with the ownership concept that seems to be from Rust, but I think it's because
- first you created rocky
- then you changed its mass value using inout
- then you ran the cell again, but giving the ownership to the function
- so when calling print(), you might be referring to the first one you created, or the location in memory of the first rocky.mass

So to investigate, you could try starting clean and running again

philipbutler
Автор

When you started wondering why that print call wasn't giving an ownership error, I envisioned a bunch of early adopters spitting out their coffee hoping they don't fix that "bug" and bork their prototype codebases.

andythedishwasher
Автор

Thank you! Impressive first look, and agree with your ending: can't imagine building anything with it just yet.

kennethbeal
Автор

What I find most important is that this language aims to be a superset of Python.
Same as Kotlin and Java, or Typescript and Javascript.
Or C and C++.
That way migrating old codebases can happen by simply changing the file endings.
I'm excited about that, and will probably start using it in a project when it's possible to do that.

addcoding
Автор

Finally, a python that I can use without scratching my hair off my head

MIO_sh
Автор

Python easiness and syntax with features and performance as C++ and Rust. Mojo is going to be a massive game changer whenever it officially releases to the public as stable release. I love the new research and development into modern programming language development and design. Making newer better programming languages to replace all the old ones that have been the status quo for decades is what we need to do more of.

vectoralphaSec
Автор

Thanks for sharing your exploration of Mojo. I'm guessing all the extra details, e.g., "register passable" are a good thing, but from this first tour of the language, it seems quite cumbersome. I think I'll wait till 2.0.

davidjenkins
Автор

It is often said that Julia solves Python's "2-language problem" (using Python for general coding and another for routines that need speed). But soon we can say Julia solves Python's "10-language" problem!

LightningSpritesJetsWizard
Автор

Mojo is made by the most important programmer. He invented basically all modern compilers at 24 and then developed the official Apple langauge, Swift. Mojo is just a wrapper over his new development, MLIR multi-hardware compiler, which is insanely advanced

tedarcher
Автор

pattern matching and rust-like enums are a must for me now :/

irlshrek
Автор

it would be interesting to know if its possible to make DSP Programming with Mojo

spenzakwsx
Автор

Seems like a hotch potch. Can't imagine auditing a codebase with fn functions and def functions coexisting simultaneously.

Also, I use Rust for its borrow checker guarantees. In such a language it seems like it would be impossible to ensure that GC has to do a lot less work than necessary which will impact performance.

Although it can't replace systems languages, it has the potential to become a de-facto replacement of Python at some point.

ArnabAnimeshDas
Автор

you forget the compile time evaluation inspired by Zig lang, which will be a major feature for Mojo

geertdepuydt
Автор

I can't live without curly brackets

oopss
Автор

make_larger is a function that’s done at the time of the print

hieronymus
Автор

Mojo is very promising to make it really compelling for rust devs they have to add features like Enum and match, it would be actually insane if they manage to take those features from rust with better defaults and making it easier to use. So excited for Mojo and thank you for the high quality videos as always!

alandto
Автор

I think that this error related to using object after passing ownership is fixed

grzegorzryznar
Автор

I was hoping for Option, Result and Error Handling like Rust do. I personally use Python or Rust and Mojo just doesn't fit anywhere for me right now.

thingsiplay