Anybody know how long-running processes in functional languages keep from grinding to a halt from heap fragmentation? @chrisamaphone?
-
-
-
Replying to @chrisamaphone
@chrisamaphone hm. i will have to find out what that is. thanks!1 reply 0 retweets 0 likes -
Replying to @chaosprime
@chaosprime short story: divide the heap in half; periodically copy live data from old half to new half (& consolidate in the process)1 reply 0 retweets 0 likes -
Replying to @chrisamaphone
@chrisamaphone hm. you can still only consolidate as far as free blocks are contiguous, right?1 reply 0 retweets 0 likes -
Replying to @chaosprime
@chaosprime iirc the entire second half is kept free for this reason (obviously having half of memory is non ideal)1 reply 0 retweets 0 likes -
Replying to @chrisamaphone
@chrisamaphone for that to help i guess you have to have some magic or another that lets you rewrite stored pointers?2 replies 0 retweets 0 likes
@chrisamaphone i mean, in C you can't remap pointers because a pointer to mem:0xf00 looks exactly like the number 0xf00
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.