[Tutor] Simplistic drive simulation

R. Alan Monroe amonroe at columbus.rr.com
Tue Mar 15 02:54:36 CET 2011

> "R. Alan Monroe" <amonroe at columbus.rr.com> wrote

>> Neither of these seem like they'd scale very well (say, up to the
>> resolution of your screen, with one block per pixel). The end goal 
>> is
>> just a basic do-nothing light show that simulates
>> fragmentation/defragmentation as eye candy.

> For that purpose the basic style you are using will be adequate.
> You are only talking about 2-5 million pixels at most on
> typical monitors. Usually more like 1.5 million on a laptop.
> And you are not too worried about speed, in fact too fast a
> display would just be wasted as most chanmges would
> never be seen!

Here's my first cut. One thing that surprised me is that none of the
earlier generation (single and double digit filenames) ever survive to
the 80th generation. My expectation was that I would end up with a
wider range of generations in the end.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: defrag004.py
URL: <http://mail.python.org/pipermail/tutor/attachments/20110314/2b18b378/attachment-0001.ksh>

More information about the Tutor mailing list