Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
erik_seaberg
on Jan 21, 2024
|
parent
|
context
|
favorite
| on:
Memory leak proof every C program
This is like going back to malloc and free but using array indices rather than pointers, and each type has a fixed-size heap. We did it in one Microsoft service because the very first .NET releases had slow GCs.
Karellen
on Jan 21, 2024
[–]
One could argue that pointers are just array indices, where the array is your whole address space, and you only get the one array for all your types.
erik_seaberg
on Jan 23, 2024
|
parent
[–]
It helps that pointer-to-T is a distinct type, where (apart from Ada) index-into-array-of-T is just like any other integer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: