正在加载视频...

视频加载失败

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!

相关视频