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

I guess so. This is only viable if you have enough time for garbage collection.



Nimrod's pointers to garbage collected memory are separate from the pointers you can allocate yourself. So you could do manual memory management on the parts that really need it - say for a game in a tight loop - and leave the collector to worry about the smaller and less time-critical stuff.

Also the GC is only triggered on a memory allocation. It doesn't run in a background thread or anything like that. So if the GC fails, then the allocation of memory fails (as I understand it) which means your scenario would be caught early.


> Nimrod's pointers to garbage collected memory are separate from the pointers you can allocate yourself.

Does this mean that they use different heaps?


No, they are on the same heap since the GC isn't a moving collector.


They probably use the same heap underneath.




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

Search: