quasiTech

experiments

Nostalgia

Long ago I used to program C. I loved it. In those days, access to the net was restricted to a 30 minute session once a week. There used to be a ‘superfast’ 14400 baud US Robotics modem connected to a DOS PC in our collage library. We had to pay for the access. I used to spend those 30 minutes downloading stuff at optimal speeds for later consumption. Either I used to download code snippets from ftp servers and boards or some random Anarchist documents or I used to be downloading images of angels compressed in this magical format called JPEG. These were so much better and smaller than the prevalent GIF files at that time. 16 million colours as opposed to 256 and that too at 1/5 the size !!

I taught myself ‘C’ programing using ‘Let us C’ by Yeshvant Kanhetkar. I also loved the book ‘Programing in ANSI C’ by Ram Kumar and Rakesh Agarwal. DOS 6.2 was an awesome OS to play with. You could do anything you wanted. :) I wrote a couple of interesting TSR’s and a system information utility which gave complete information about your hardware. I also wrote a graphical copy program. The inspiration was the hours we spent transferring bootleg material around on floppy disks and waiting for them to get copied not knowing how much % was remaining or which files were written on bad sectors. We could skip files which gave the dreaded Abort, Retry, Fail? error.

One of the most amazing and inspirational C programs I came across was from the The International Obfuscated C Code Contest (IOCCC). The program calculated a factorial of any large number. I have let it run for about 30 minutes on my AMD 386 DX 40MHz machine, watching the endless stream of numbers. It is written by one Michael Savastio and the source code is beautiful and can be found here (savastio.c).

‘Nuff of the nostalgia :)

Comments