Hacker News new | past | comments | ask | show | jobs | submit login

Just use structs, unions and arrays of them:

http://dlang.org/struct.html

http://dlang.org/arrays.html

Preallocate them and don't increase their size one at the time. And in them use indexes to positions instead of pointers. Then GC won't make you problems anymore. It would be used but it won't be a bottleneck as it would simply get much less but bigger chunks of memory and much less pointers to worry about.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: