Posts filed under 'current work'

Compiling the Compiler with the Compiler you just Compiled


This is a neat trick to get your compiler(not your program) run faster. I haven’t tried this but it seems very logical to do so

To understand this toungue twister trick, First we need to understand what a comiler is. A compiler is basically a program that translate your programming language in to binary code that your machine can understand. But, it’d be bland if that’s the only thing compiler does to your program. A smart compiler, gcc for example, optimize you code as well. How does it optimize you code? Take this bad code for example…

Continue Reading Add comment July 7th, 2005

Histogram made easy for command line freak


It’s quite a chore to make a histogram. It comes to me many time that I have to make a histogram for a list of numbers. I had to rewrite the program everytime. But, this time I’ll just write a good one and publish it so that other people(including me) won’t have to do this chore again. Without saying much…

Continue Reading Add comment July 4th, 2005

Logarithmic way of printing program status


Imagine, you are working on a program that will manipulate an unknown length file. Printing the output to tell user is necessary for telling the user that the program is not halting.

 
 

Continue Reading 1 comment July 3rd, 2005


Calendar

February 2012
M T W T F S S
« Apr    
 12345
6789101112
13141516171819
20212223242526
272829  

Posts by Month

Posts by Category