Content pfp
Content
@
0 reply
0 recast
2 reactions

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
Guys, I think I finally understand when and how to use pointers! Have avoided them for years, but now couldn't escape it. (Typescript/Python dev)
1 reply
2 recasts
8 reactions

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
Someone way smarter than me: My current understanding is that it is best to use pointers when you don't want to actually pass the object/value around if it is very large, particularly in situations where you may need to access a small piece or perform mutations on it. Happy to be wrong, as long as I learn.
1 reply
0 recast
5 reactions

July pfp
July
@july
Yup pointers are great for zero copy transfer of data By the way, whenever you run any python thread by default it dynamically allocates memory regardless of whether you’ve previously had it before or not, hence pointers
1 reply
0 recast
0 reaction