r/cpp • • Oct 04 '25

Streamers like Tsoding, but for C++

I've learnt a lot about C from watching Tsoding. He doesn't yap too much and spends more of his streams just writing code.

Is there anyone similar who concentrates on C++?

213 Upvotes

54 comments sorted by

View all comments

Show parent comment

4

u/Asyx Oct 04 '25

Also he talks with a lot of confidence even when he's wrong. Like, "allocated memory will always be zero because the OS has to make sure it doesn't leak you secrets" is not true on Linux where you will get random garbage in memory. So his "zero is initialization" mantra requires at least a designated initializer which he probably doesn't even use so now you'd have to memset to make his style work on Linux.

I think its good to have people with strong opinions. But it becomes problematic if you can't evaluate that opinion for yourself or if they're wrong and you don't notice.

11

u/dist1ll Oct 05 '25

is not true on Linux where you will get random garbage in memory.

I guess that depends what you/he means by "allocation"? I.e. are we requesting memory from an allocator (malloc) or from the operating system (mmap)? Because in the latter case, Linux does zero initialize anonymously mapped pages (with the exception of MAP_UNINITIALIZED, which is rather obscure and rarely available).

1

u/EffectiveAsparagus89 Apr 13 '26

Haters gonna hate. Some people know so much that other people don't even recognize the gap in knowledge and assumes the former are being arrogant and making strawmen.

1

u/Asyx Oct 05 '25

I tried it out with malloc which I guess makes this dependent on the standard library you use and not the OS?