News for hackers. Stuff that matters.
Re:A Minimalist TypeScript for C by dezmou on Thursday January 23, 2025 @07:30AM (#42803324)
Is there another example that show how memory allocation work with pointers and stuff ?
Re:A Minimalist TypeScript for C by mbel on Thursday January 23, 2025 @07:42AM (#42803408)
It seems to work similarly as in C, i.e. you call malloc manually, there is some form of automatic size deduction though:

https://github.com/galileolajara/cp1/blob/main/examples/04-v...