Rust 1.71.0
HTML-код
- Опубликовано: 26 июн 2024
- I'm thrilled to bring you all the exciting details about the newest update from Rust, version 1.71.0. Rust continues to evolve and empower developers with its robust features. So let's dive right into the highlights of this latest release.
FREE Rust cheat sheet: letsgetrusty.com/cheatsheet
Official blog: blog.rust-lang.org/2023/07/13...
Chapters:
0:00 Overview
0:20 C-unwind ABI
1:50 Debugger visualization attributes
2:21 raw-dylib linking
3:40 Upgrade to musl 1.2
4:11 Const-initialized thread locals - Наука
📝Get your *FREE Rust cheat sheet* :
letsgetrusty.com/cheatsheet
Fun fact: The 32 to 64 bit transition for digital clocks means that now, instead of resetting in about 15 years, they will reset in about 585 *billion* years
Edit: And yes, this means that we solved this issue, not by actually solving it for good, but just by moving it into the futre so we don't have to care
Obviously it depends on the precision required. You’d get about 136 years of seconds out of unsigned 2^32. Your 4 year example seems to be in 25th of a sec or so, which I’m sure has significance to something. 😊
I think it's in 15 years, not 6, but I like your idea of skipping forward a few years.
@@negativeseven Oops I misremembered it as 2029 for some reason
by the time the 64 bit clocks reset - processors will be 512kbit as a standart lol
😂😂😂 screaming
The raw-dylib linking is wild 🔥
Yeah! No more opening the lib and extracting pointers etc.
this was a solid rundown of rust 1.71.0, props for making it clear
but lowkey, sometimes I feel like rust can overcomplicate things when simpler solutions exist in older languages
that being said, your breakdown made things easier to digest, especially for a newbie
always appreciate the knowledge bombs you drop
keep grinding
i really like this "Debugger visualization attributes"! debugging in rust was always pain when you deal with complex structures. i hope now it will change.
You said that the C ABI unwind changes meant that C++ can now call rust code. Why did this change cause that? Does C++ being able to call rust code mean that you can now rewrite C++ projects in rust piecewise, like you've been able to do with C for a long time? If so, that's a huge step forward for the language that opens up lots of new codebases it can be introduced to
It's about stack unwinding (panics in Rust, exceptions in C++). It's currently undefined behaviour, if e.g. a C++ exception crosses over an extern "C" function call into Rust code. With this change you can instead declare those functions as extern "C-unwind" and then a C++ exception may cross from C++ through Rust code and then back into C++ and be caught there.
You still need C-like APIs to interface the two languages but at least exceptions crossing language barriers aren't a major pain anymore.
4 day left to release 1.72.0
2:19 for this XML example it's hard to follow. "name" is used as an identifier in several contexts, for the lines with "
Does this mean were closer to dynamically linked dependencies? Or even still static if the intermediate objects can be shared? (So no multi gb target folder per project when using the same dependencies, at least for some version ranges...)
I like ABIs
sounds fun
Noice!
Does the raw-dylib linking mean you could technically write a game for a C++ game engine in just Rust?
I think RUST developers will find this video useful. Man, what do you think about the development of applications in blockchains like NEAR, which are promoting web3?
+1, Really interesting theme
Hii! I applied for your free training, but I haven't received the confirmation mail yet!
Yeah same but it's not free. He will email you 4 useless videos, one each day and then you have to pay 500$ for the actual course. Real scummy way of doing things. Actually unsubscribed from him because of it. If you want to charge 500$ for a course that's fine, but don't pretend it's free and string people along for 4 days before you tell them. Scumbag move.
v1.71.1 already released
Oh, they missed it.
@1:55 - They shoulda called it "DeVA"
tldr;
Here's to hoping Rust isn't the industry's headfake operation - sucker a bunch this direction, then start a new language that gets some traction. They know we'd just give up at that point.
Does anyone know how to contact bogdan ?
Dembélé 11 minutos tarde
So this is about the version from 5 weeks ago?
Really wanted until the last moment to get this out while it's still the latest version lol
I understood nothing 😄
Rust is not meant to be understood, just admired.
I too :)
@@letsgetrusty You've seen write only languages
Now get ready for talk only languages 😄
This is why the industry doesn't use Rust, too much technical debt.
Rust
pretty late
And this is why the industry chose Golang (& the game industry sticks to C/C++/C#)...Rust has way too much technical debt
I believe that Vlang is best rust successor
It's reference counted and I don't see alternatives to Rust's references there (after being 10 mins in the docs).
@@IllIlIIlIllI Too much boilerplate code.