Phineas 'fossoid' Holstrom on Nostr: Going to start writing bigass macros to slightly decrease the amount of writing I ...
Going to start writing bigass macros to slightly decrease the amount of writing I need to do in C, lower time complexity
Why do val = (int *) malloc(sizeof(int)) when I can do int_malloc(val, 1)
Published at
2023-11-06 21:55:38Event JSON
{
"id": "19182310f1c82202ba3ff8b91aa20f1fb674b4cbbc093b8907672221df1b0023",
"pubkey": "65cddc1bbe6b215bd1b395b27b62dadf1fb8bdc380caf9d3d877fdeb74654ba5",
"created_at": 1699307738,
"kind": 1,
"tags": [
[
"proxy",
"https://cawfee.club/objects/a5a9a36a-47cf-4208-9e15-177f3d202adc",
"activitypub"
]
],
"content": "Going to start writing bigass macros to slightly decrease the amount of writing I need to do in C, lower time complexity\n\nWhy do val = (int *) malloc(sizeof(int)) when I can do int_malloc(val, 1)",
"sig": "4e9d1a4fd546e882297aa18f58294aa42faea94fbbab089dfc456dd1a5ecbc7b503fef09abb6bfdeeb8f9e0a58e00b08c373024f021e5ec7f44c26989d36c0ef"
}