Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Insane Shadow Data Trick in C

55,148 Aufrufe • vor 8 Monaten •via X (Twitter)

26 Kommentare

Profilbild von Тsфdiиg
Тsфdiиgvor 8 Monaten

References: - - - Source Code:

Profilbild von Valentin Ignatev
Valentin Ignatevvor 8 Monaten

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

Profilbild von Тsфdiиg
Тsфdiиgvor 8 Monaten

ikr!

Profilbild von Marcos Capistrano
Marcos Capistranovor 8 Monaten

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!!

Profilbild von Igor
Igorvor 8 Monaten

cries in UB:

Profilbild von Liberté, égalité, anxiété
Liberté, égalité, anxiétévor 8 Monaten

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.

Profilbild von Reece
Reecevor 8 Monaten

Great video! Also great follow up:

Profilbild von Tħ∀TΣΔGIC∀LCΔT
Tħ∀TΣΔGIC∀LCΔTvor 8 Monaten

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

Profilbild von Drewsky
Drewskyvor 8 Monaten

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

Profilbild von Elementary, Watson
Elementary, Watsonvor 8 Monaten

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) 🤷‍♂️

Profilbild von FlyingSolomon
FlyingSolomonvor 8 Monaten

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.

Profilbild von Mario
Mariovor 8 Monaten

Clever C techniques enable hidden data tricks

Profilbild von John
Johnvor 8 Monaten

Where are my Flexible-Array Member brothers @?

Profilbild von Jiří Moravec
Jiří Moravecvor 8 Monaten

That was very entertaining. 20 minutes just flew past!

Profilbild von Momoyon!!!!!!
Momoyon!!!!!!vor 8 Monaten

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

Profilbild von F A B I A N🧋
F A B I A N🧋vor 8 Monaten

Tu canal me da esperanza

Profilbild von Plague
Plaguevor 8 Monaten

you just increased my braincells

Profilbild von facts matter, lies shatter 🇳🇱 🇺🇸
facts matter, lies shatter 🇳🇱 🇺🇸vor 8 Monaten

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.

Profilbild von Salah
Salahvor 8 Monaten

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

Profilbild von Ayan Khan
Ayan Khanvor 8 Monaten

bro dropped Dynamic Array 2: The return of the King

Profilbild von pkuseri (🍉)
pkuseri (🍉)vor 8 Monaten

Where's the dynamic array part

Profilbild von dyma
dymavor 8 Monaten

C for Cool

Profilbild von Yeab - engg / core was in Palo Alto🌴
Yeab - engg / core was in Palo Alto🌴vor 8 Monaten

cool

Profilbild von Da Silva Miguel
Da Silva Miguelvor 8 Monaten

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*

Profilbild von Someone
Someonevor 8 Monaten

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

Profilbild von Kolt
Koltvor 8 Monaten

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

Ähnliche Videos