Re:Visualizing Garbage Collection Algorithms
by jaredmcateer on Wednesday September 03, 2014 @03:16PM
(#8264746)
Yea kinda annoying by the time I finished reading/watching the no-gc and reference count gc the animations were all done. Even better if they were side by side.
[ Parent
| on HN ]
Re:Visualizing Garbage Collection Algorithms
by aftbit on Wednesday September 03, 2014 @03:36PM
(#8264867)
Paste this into your address bar, and press Ctrl-F5 to make it loop again.
data:text/html,<img src="http://d37rcl8t6g8sj5.cloudfront.net/wp-content/uploads/NO_GC.gif" /> <img src="http://d37rcl8t6g8sj5.cloudfront.net/wp-content/uploads/REF_COUNT_GC.gif" /> <img src="http://d37rcl8t6g8sj5.cloudfront.net/wp-content/uploads/MARK_SWEEP_GC.gif" /> <img src="http://d37rcl8t6g8sj5.cloudfront.net/wp-content/uploads/MARK_COMPACT_GC.gif" /> <img src="http://d37rcl8t6g8sj5.cloudfront.net/wp-content/uploads/COPY_GC.gif" />
Re:Visualizing Garbage Collection Algorithms
by kenfox on Wednesday September 03, 2014 @05:28PM
(#8265564)
Author here. That's a nice trick to put the animations side-by-side. Thanks!
I had looping versions of the images, but changed them to stop because it seemed confusing to not clearly see the initial and ending states. Refreshing the page to replay an image seemed to work ok, but maybe not in all browsers?
The github project has versions animating longer runtime programs. They are linked from the smaller images in the blog post and might be useful to open side-by-side when reading the text.
Re:Visualizing Garbage Collection Algorithms
by infogulch on Thursday September 04, 2014 @12:11AM
(#8266734)
Instead of looping immediately, you could make the last frame last like 6 seconds, and perhaps have a couple seconds of all-black at the beginning.
Re:Visualizing Garbage Collection Algorithms
by aftbit on Wednesday September 03, 2014 @08:23PM
(#8266134)
I've found that even in cases where a normal refresh won't restart the animations, a Ctrl-F5 will (forcing the images to be reloaded from the server, instead of cache). This is in Firefox on Arch.
Re:Visualizing Garbage Collection Algorithms
by jrapdx3 on Wednesday September 03, 2014 @11:56PM
(#8266694)
Though in this particular case, just reloading the page restarted the animations just fine. Even so, I'll try C-F5 to see if that's better.
Re:Visualizing Garbage Collection Algorithms
by gridspy on Wednesday September 03, 2014 @10:31PM
(#8266496)
What you should do to fix that is to make the very last frame and very first frame much longer. That would make the loop obvious.
Nice graphics!