Популярное

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

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

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

Топ запросов

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

Rust Functions Are Weird (But Be Glad)

Автор: Logan Smith

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

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

Описание:

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/

Rust Functions Are Weird (But Be Glad)

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

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

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

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

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

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

The Dark Side of .reserve()

The Dark Side of .reserve()

Конструкторы сломаны

Конструкторы сломаны

Использовать дугу вместо вектора

Использовать дугу вместо вектора

Программирование с использованием математики | Лямбда-исчисление

Программирование с использованием математики | Лямбда-исчисление

but what is 'a lifetime?

but what is 'a lifetime?

Why Everyone's Switching to Rust (And Why You Shouldn't)

Why Everyone's Switching to Rust (And Why You Shouldn't)

Rust's Witchcraft

Rust's Witchcraft

The worst programming language of all time

The worst programming language of all time

The Absolute Best Intro to Monads For Software Engineers

The Absolute Best Intro to Monads For Software Engineers

Rust 2025: $400K Salaries, Go, AI & Why It's Not Everywhere (Yet) — Jon Gjengset Explains

Rust 2025: $400K Salaries, Go, AI & Why It's Not Everywhere (Yet) — Jon Gjengset Explains

Zig is better than Rust (sometimes)

Zig is better than Rust (sometimes)

A Simpler Way to See Results

A Simpler Way to See Results

Ходы сломаны

Ходы сломаны

Порталы не создают вечный двигатель, если телепортировать гравитацию

Порталы не создают вечный двигатель, если телепортировать гравитацию

Zig for Impatient Devs

Zig for Impatient Devs

Choose the Right Option

Choose the Right Option

Async Isn't Real & Cannot Hurt You

Async Isn't Real & Cannot Hurt You

Arc instead of Vec? | Prime Reacts

Arc instead of Vec? | Prime Reacts

От C ➡️ C++ ➡️ Rust

От C ➡️ C++ ➡️ Rust

Cursed C++ Casts

Cursed C++ Casts

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



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



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