[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki ]

A banner for soyjak.party

/pol/ - International /Pol/itics & /Bant/er

Politics & countrywars
Catalog
Name
Email
Subject
Comment
Flag
File
Password (For file deletion.)

File: ClipboardImage.png 📥︎ (55.03 KB, 1205x649) ImgOps

 â„–3983893[Quote]

this is one of the best functions I've ever written.

 â„–3983898[Quote]

Incomprehensible

 â„–3983901[Quote]

umm marge….

 â„–3983907[Quote]

File: 1788408005554f.png 📥︎ (40.55 KB, 150x150) ImgOps

YAGNI

 â„–3983915[Quote]

>>3983898
>>3983901
it maintains a continuous array of varied sized elements on the heap.

 â„–3983923[Quote]

using pointer in the big 26?

 â„–3983933[Quote]


 â„–3983948[Quote]

>>3983915
previously the problem with code was that realloc would implicitly free the memory and allocate my data somewhere else, rendering my array of void pointers wrapped in structs useless and segfault prone. But i fixed it by just substracting the previous address if that happens and adding the new one. I love treating pointers like integers.

 â„–3983951[Quote]

>>3983948
Implement a better garbage collector
See more info on how I implemented it here >>3983900 (OP)

 â„–3983983[Quote]

fuck i accidentally wrote break instead of return



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki ]