Загрузка видео...

Не удалось загрузить видео

На главную

Insane Shadow Data Trick in C

55,148 просмотров • 8 месяцев назад •via X (Twitter)

Комментарии: 26

Фото профиля Тsфdiиg
Тsфdiиg8 месяцев назад

References: - - - Source Code:

Фото профиля Valentin Ignatev
Valentin Ignatev8 месяцев назад

Besides the video being great, I gotta say it's super scary that printf does what it does :D

Фото профиля Тsфdiиg
Тsфdiиg8 месяцев назад

ikr!

Фото профиля Marcos Capistrano
Marcos Capistrano8 месяцев назад

The way you structure content makes it extremelly satisfacting as you are able to explain complex topics fast, White not dumbing it down. You sir are a inspiration!!

Фото профиля Igor
Igor8 месяцев назад

cries in UB:

Фото профиля Liberté, égalité, anxiété
Liberté, égalité, anxiété8 месяцев назад

I was learning C in 2016, and this is what I made as soon as I got comfortable with pointers. I didn't even have a header struct, I used raw offsets for the count and capacity.

Фото профиля Reece
Reece8 месяцев назад

Great video! Also great follow up:

Фото профиля Tħ∀TΣΔGIC∀LCΔT
Tħ∀TΣΔGIC∀LCΔT8 месяцев назад

iirc malloc does a similar thing, it also appends a header to the memory it allocated

Фото профиля Drewsky
Drewsky8 месяцев назад

All I see is 69, Weed, Leet and Boobs ^^

Фото профиля Elementary, Watson
Elementary, Watson8 месяцев назад

my first ever implementation of a dynamic data buffer and mutable dynamic string buffer was like that (seriously: if people learned assembly before C, we'd have fewer "memory bugs" and more effective coding) 🤷‍♂️

Фото профиля FlyingSolomon
FlyingSolomon8 месяцев назад

The video is great! I'll add though, the most error prone thing about it is holding long-term pointers to array items as it can be reallocated at any time and most likely the old values will be valid for a while, very frustrating bugs.

Фото профиля Mario
Mario8 месяцев назад

Clever C techniques enable hidden data tricks

Фото профиля John
John8 месяцев назад

Where are my Flexible-Array Member brothers @?

Фото профиля Jiří Moravec
Jiří Moravec8 месяцев назад

That was very entertaining. 20 minutes just flew past!

Фото профиля Momoyon!!!!!!
Momoyon!!!!!!8 месяцев назад

cant wait to see this every now and then from now on

Фото профиля F A B I A N🧋
F A B I A N🧋8 месяцев назад

Tu canal me da esperanza

Фото профиля Plague
Plague8 месяцев назад

you just increased my braincells

Фото профиля facts matter, lies shatter 🇳🇱 🇺🇸
facts matter, lies shatter 🇳🇱 🇺🇸8 месяцев назад

Nice. I personally rather use (inline) functions over macros. Sure you lose type generality, but it's safer. I would not do this in C. I rather use C++ for something like this. Templates, namespaces and friendly constructors.

Фото профиля Salah
Salah8 месяцев назад

Thank you for this good videos. But how many rehearsal times you do for it?

Фото профиля Ayan Khan
Ayan Khan8 месяцев назад

bro dropped Dynamic Array 2: The return of the King

Фото профиля pkuseri (🍉)
pkuseri (🍉)8 месяцев назад

Where's the dynamic array part

Фото профиля dyma
dyma8 месяцев назад

C for Cool

Фото профиля Yeab - engg / core was in Palo Alto🌴
Yeab - engg / core was in Palo Alto🌴8 месяцев назад

cool

Фото профиля Da Silva Miguel
Da Silva Miguel8 месяцев назад

Now this is gold ! I wonder if it’s possible to define a new type just we can know where numbers isn’t just a “simple” float* or int*

Фото профиля Someone
Someone8 месяцев назад

shlen, ха-ха, член

Фото профиля Kolt
Kolt8 месяцев назад

I finally know how to make dynamic arrays in C. Thank you!

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