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
  • НаукаНаука

Комментарии • 44

  • @letsgetrusty
    @letsgetrusty  10 месяцев назад +2

    📝Get your *FREE Rust cheat sheet* :
    letsgetrusty.com/cheatsheet

  • @SkyyySi
    @SkyyySi 10 месяцев назад +167

    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

    • @lawrencemanning
      @lawrencemanning 10 месяцев назад +5

      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. 😊

    • @negativeseven
      @negativeseven 10 месяцев назад +4

      I think it's in 15 years, not 6, but I like your idea of skipping forward a few years.

    • @SkyyySi
      @SkyyySi 10 месяцев назад

      @@negativeseven Oops I misremembered it as 2029 for some reason

    • @meqativ
      @meqativ 10 месяцев назад +4

      by the time the 64 bit clocks reset - processors will be 512kbit as a standart lol

    • @majweezy
      @majweezy 10 месяцев назад

      😂😂😂 screaming

  • @patrickmiharisoa5501
    @patrickmiharisoa5501 10 месяцев назад +55

    The raw-dylib linking is wild 🔥

    • @lawrencemanning
      @lawrencemanning 10 месяцев назад +5

      Yeah! No more opening the lib and extracting pointers etc.

  • @moondevonyt
    @moondevonyt 10 месяцев назад +2

    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

  • @Light_Akira
    @Light_Akira 10 месяцев назад +2

    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.

  • @julienmarcuse9023
    @julienmarcuse9023 10 месяцев назад +16

    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

    • @cg909
      @cg909 10 месяцев назад +11

      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.

  • @tmahad5447
    @tmahad5447 10 месяцев назад +19

    4 day left to release 1.72.0

  • @cheako91155
    @cheako91155 10 месяцев назад +5

    2:19 for this XML example it's hard to follow. "name" is used as an identifier in several contexts, for the lines with "

  • @johanngambolputty5351
    @johanngambolputty5351 10 месяцев назад +4

    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...)

  • @arch-btw
    @arch-btw 10 месяцев назад +4

    I like ABIs

  • @pratikghimire-wn9pb
    @pratikghimire-wn9pb 10 месяцев назад

    sounds fun

  • @AEStolfo
    @AEStolfo 10 месяцев назад

    Noice!

  • @Seyunx
    @Seyunx 10 месяцев назад

    Does the raw-dylib linking mean you could technically write a game for a C++ game engine in just Rust?

  • @McRinato90
    @McRinato90 9 месяцев назад

    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?

  • @gamingstartech2915
    @gamingstartech2915 10 месяцев назад +1

    Hii! I applied for your free training, but I haven't received the confirmation mail yet!

    • @StfuSiriusly
      @StfuSiriusly 10 месяцев назад

      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.

  • @uboxer
    @uboxer 10 месяцев назад

    v1.71.1 already released

  • @jeffg4686
    @jeffg4686 10 месяцев назад

    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.

  • @hungba6751
    @hungba6751 10 месяцев назад

    Does anyone know how to contact bogdan ?

  • @SuperLink15
    @SuperLink15 10 месяцев назад

    Dembélé 11 minutos tarde

  • @thekwoka4707
    @thekwoka4707 10 месяцев назад +4

    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

  • @heliospace
    @heliospace 10 месяцев назад +10

    I understood nothing 😄

    • @letsgetrusty
      @letsgetrusty  10 месяцев назад +27

      Rust is not meant to be understood, just admired.

    • @alexgo4081
      @alexgo4081 10 месяцев назад

      I too :)

    • @TheMrKeksLp
      @TheMrKeksLp 10 месяцев назад +3

      @@letsgetrusty You've seen write only languages
      Now get ready for talk only languages 😄

    • @jazzycoder
      @jazzycoder 10 месяцев назад

      This is why the industry doesn't use Rust, too much technical debt.

  • @nyxalexandra-io
    @nyxalexandra-io 10 месяцев назад +1

    Rust

  • @adsick_ua
    @adsick_ua 10 месяцев назад

    pretty late

  • @jazzycoder
    @jazzycoder 10 месяцев назад

    And this is why the industry chose Golang (& the game industry sticks to C/C++/C#)...Rust has way too much technical debt

  • @dimitrobest5293
    @dimitrobest5293 10 месяцев назад +1

    I believe that Vlang is best rust successor

    • @dmitriidemenev5258
      @dmitriidemenev5258 10 месяцев назад +5

      It's reference counted and I don't see alternatives to Rust's references there (after being 10 mins in the docs).

    • @MrEnsiferum77
      @MrEnsiferum77 10 месяцев назад

      ​@@IllIlIIlIllI Too much boilerplate code.