The status of parallel rustc - Nicholas Nethercote - RustNL 2023

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

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

  • @anotherelvis
    @anotherelvis Месяц назад

    Great talk

  • @BIELSIMON
    @BIELSIMON Год назад +4

    My question is, why the compiler uses parking_lot for Mutex and RwLock? Couldn't they include this implementations of synchronization primitives in the standard library? Quite ironic they need to use an external library for something they themselves are offering

    • @dynfoxx
      @dynfoxx Год назад +13

      Parking lot is based on the web pack structure of the same name. It has some issues(global allocation table, interface with OS) that make It difficult to use as a standard lock for all platforms. So its unclear if this should be the standard implementation or even can be.
      A quick answer to your question is they can use internal mutexes and RWlocks. Until recently they were larger and slower then parking lot. This made the tradoff easier but now that STD mutexes have improved its unclear if they should still be using parking lot.
      Either way many synchronization implementations exist outside the STD in all languages. Like anything else its a tradeoff based on your requirements.

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

    Sounds a bit like Russel Crowe. Is Nethercote Australian? (yeah, I know, Russel is actually a Kiwi, but still)