ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Rust Functions Are Weird (But Be Glad)

Автор: Logan Smith

Загружено: 2023-07-13

Просмотров: 193517

Описание: Rust takes a unique approach to function types, for both closures and fn items. In this video we'll talk about a way to fit these strange function types into your existing understanding of what types are. Then we'll look at how another language (okay, it's C++) does function types in a way that causes poor codegen in generic higher-order functions if you aren't careful--and how/why Rust avoids this problem.

Compiler Explorer - https://godbolt.org/

Godbolt code samples from the video:
C++ - https://godbolt.org/z/xo83Ecfqb
Rust - https://rust.godbolt.org/z/E5fvaxWPM

Rust Stuff
fn pointers vs. fn items - https://doc.rust-lang.org/std/primiti...
Fn (the trait) - https://doc.rust-lang.org/std/ops/tra...

C++ Stuff
Decay - https://en.cppreference.com/w/cpp/typ...
Boost.TypeIndex - https://www.boost.org/doc/libs/1_82_0...
std::reduce - https://en.cppreference.com/w/cpp/alg...
Ranges - https://en.cppreference.com/w/cpp/ranges
static - https://en.cppreference.com/w/cpp/lan...

I use the amazing Manim library for animating these videos, and I edit them with Blender and Audacity.
https://www.manim.community/
https://www.blender.org/
https://www.audacityteam.org/

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Rust Functions Are Weird (But Be Glad)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]