Chris Lattner
speaker
2,524 appearances
1 recordings
1 series
first heard Jun 2023
last heard Jun 2023
Chris Lattner’s voice in public audio — every appearance, attributed to the second.
Trend
recordings per month · last 12 monthsNo recordings in the last 12 months.Older appearances are listed below; set an alert to hear about the next one.
Appearances
And so if we can help heal that, now I'm not optimistic that all people will use Mojo and they'll stop using C++.
That's not my goal, right?
But if we can heal some of that, I think that'd be pretty cool.
So there are proposals for adding braces to Mojo.
Oh, interesting.
We tell them no.
Yeah, so one of the things that is useful, and it's not always required, but it's useful, is knowing whether something can change out from underneath you.
And so in Python, you have a pointer to an array.
And so you pass that pointer to an array around to things.
if you pass into a function, they may take that and scrolled away in some other data structure.
And so you get your array back and you go to use it.
And now somebody else is like putting stuff in your array.
How do you reason about that?
It gets to be very complicated, at least lots of bugs.
Right.
And so one of the things that, you know, again, this is not something Mojo forces on you, but something that Mojo enables is a thing called value semantics.
And what value semantics do is they take collections like arrays, like dictionaries, also tensors and strings and things like this that are much higher level and make them behave like proper values.
And so it makes it look like if you pass these things around, you get a logical copy of all the data.
And so if I pass you an array, it's your array.
You can go do what you want to it.
Showing 561–580 of 2,524 · page 29 of 127
← Previous
Next →