Monday, September 26, 2005

Sweet story - or is it?!

** BEGIN **

He is dressed in clean pressed spotless white shirt and a flawless navy blue pants. He has a fresh red rose in his hands. He's at a engagement party and is consciously looking every now and then towards the entrance. 30 uneasy minutes pass on and with every passing moment, the eagerness is more and more evident from his eyes. During this time, he's not accepted anything to eat or drink. Its pretty late for dinner and quite a few people have finished dinner. Some people do notice that he's got a rose in his hand and are wondering why he's not giving it to the bride-to-be. No, it was not his engagement and no one seemed to know how he was related to the people in the engagement.

His face suddenly lits up in enthusiasm. A fine young lady draped in crisp white dress gracefully walks in. He thinks everyone's eyes are on her. She walks straight to him. He now thinks that everyone is jealous of this fact!

She: Is the rose for me?
He: Of course sweety!
She: You're too sweet
He: Its getting pretty late for dinner and you must be hungry.
She: Oh no dear, I was late, 'cos I finished dinner before coming

(Background laughters if required!)

He: Yeah, even I don't feel like eating.
He: You look beautiful!
She: (Blushes) Thanks. You look pretty dashing too.
He: Well, I've to be my best when I'm with you.
He: Hey, there's a counter where we can get some chocolates to eat!
She: How wonderful!

(They reach the counter, but find only 1 piece remaining!!)

She: Aww, there's only one left.
He: You have it - I know how much you love chocolates
She: Yeah, but you should have it dear - you're such a darling
He: No problems, I could buy a chocolate on the way back
She: No, I'd feel bad if you did'nt have it.
He: And I'd feel bad if I ate it alone
She: Why not split it - we can both eat together!
He: How sweet and romantic?!

As they turn back to the counter, a third person has taken the last piece. He eats the whole piece at one go, tosses the wrapper skillfully to the dumpster a few feet away and walks away thinking - "Sheeesh! GET A LIFE!"

** END **

Friday, September 16, 2005

Fix you

I see a lot of unhappy souls around - this is dedicated to all of them...

When you try your best but you don't succeed
When you get what you want but not what you need
When you feel so tired but you can't sleep
Stuck in reverse

And the tears come streaming down your face
When you lose something you can't replace
When you love someone but it goes to waste
could it be worse?

Lights will guide you home
And ignite your bones
And I will try to fix you

And high up above or down below
When you're too in love to let it go
But if you never try you'll never know
Just what you're worth

Lights will guide you home
And ignite your bones
And I will try to fix you

Tears stream down your face
When you lose something you cannot replace
Tears stream down your face
And I

Tears stream down your face
I promise you I will learn from my mistakes
Tears stream down your face
And I

Lights will guide you home
And ignite your bones
And I will try to fix you.

A very soothing, slow song (for a change, eh?! - Yeah!)
[ Some of you might be thinking - why do I post song lyrics?? I am a guy of very few words - I used to talk a lot - but now I usually don't talk that much. I let songs do my talking :) ]

Tuesday, September 13, 2005

There's just so much going on at office - with a new product getting transitioned to us, there's always some or theother training session dialy. And I've also been studying documentation everyday to increase my understanding of the product. Life is progressing at a blinding pace - so much that I've not been able to clearly see things that've passed by. But every now and then there are things that come to one's mind, some things that happen during one's fast paced life, that makes one stop for a while and ponder a bit over it. Exactly something like that did happen today.

It dates back to my primary school days. I used to go to a school near to my home. I had so many friends, most ofwhom were living quite nearby. Today we all are seperated - not so much by distance, but by the lack of time! Most of us still live in the same locality but still don't meet often - actually, we seldom meet. Today I was reminded of a strange meeting with a very old school pal, almost 3 years ago. That just has made me take a break from a runaway life and think about him - wonder where he is and what he's doing today? I just hope that he's doing fineand is happy with life.

He's this very good chum of mine, and we knew each other since LKG! Even today, I clearly remember he used to come to my home as it was on the way to school for him. We used to go to school together. The last we saw each other wasat the end of the 7th standard. He continued with high school studies in the same school, while I switched schools. He was a very simple person - I mean, we were just kids then, not knowing too much about each other's qualities. But we got along very well - Its only now that I can see the difference that he was from a relatively poor family. In those days, we were just like brothers - no difference in anyway that we could point out in each other!

It so happened that 3 years earlier, on a lazy morning, as I was strolling around the terrace, I see the newspaper guy come with the dialy newspaper. I rush downstairs to get it. By the time I reach the gate, the guy was at the next door. It was someone familiar - very clear resemblance. I slowly walked up to him, still trying to figure out who it was. As he turned back, there was no doubt - it was indeed him! He recognised me instantly. I was a tad surprised to see him deliver newspapers. We chatted for a while and then I asked him as to what he's doing nowadays. He told me that he was doing B-COM and since he was having vacations, he was doing some part-time jobs to help his parents with some income. Now I was surprised that he never contacted me when he'd been delivering newspapers since a month! I asked him why he never called me out whenver he came to my home every morning. To this he bent his head down - for a moment I could not understand, but then I realized that it was probably that he felt a bit ashamed about it. I quickly changed the topic and asked him to take me to his house. They had changed their home - but it was still in the same area. I went to his home and talked to his mother too. Even his mother recognized me fairly quickly. I stayed there for a while and then left. I did meet him often from that day, for about 4 months. Then suddenly he disappeared again. After 3-4 months, I heard from another friend of mine that he's joined some night shift job and was living in a different locality. Till date I have not heard from him or anything about him.

I just wonder sometimes, people do not give any name to some relations - I mean, in this case, we were just kids studying in the same school for 8-9 years - at that age, we did not know these deep meanings of friendship, etc. But yet, there's always this thing in our head that brings us back memories from the past. Today, I remembered my very good pal who I knew from kindergarten. Even though I do not know his whereabouts or how he's doing, in myheart, I just hope that he's fine and happy in life. And yeah - hope he remembers about me too :)

Friday, September 09, 2005

Velvet Revolver - Contraband

Contraband - Velvet Revolver Posted by Picasa

Finally I got my hands on this album after roaming around from one store to another for almost 2 months now! Its a neat album - got all ingredients of a hard rock album. Fast, racy tracks and also some slow, rhythmic, melodious songs. Here's the complete list of tracks. Do keep an eye on the warning - (Strong language - it really is! Mind you!!)

Sucker train blues *
Do it for the kids
Big machine
Illegal I song
Spectacle *
Fall to pieces ***
Superhuman *
Set me free **
You got no right ***
Slither ***
Dirty little thing
Loving the alien ***

The starred songs are my personal picks. For the racy/heavy music buffs, Slither, Set me free are racy enough to get your pulse racing. For those who favor melody, I'd recommend - Loving the alien, You got no right and Fall to pieces.

Now something about the band itself - Its got 3 of Ex-GNR members. Scott Weiland on the vocals, Slash (Ex-GNR, Saul Hudson is his real name) on lead guitars, Dave Kushner on rhythm guitars, Duff McKagan (Ex-GNR) on Bass guitars, and Matt Sorum (Ex-GNR) on the drums.

To make the long story short: Certainly worth a buy - at least, get the songs and listen to them (AT LEAST the starred ones!)

Thursday, September 08, 2005

Stay tuned for an update tomorrow!

Been out of action for a while - reason: viral infection. I'm back at office tomorrow. Wait for a review of the album "Contraband" of Velvet Revolver!

PS: I missed you people!

Friday, September 02, 2005

Valuable interaction

A small doubt of mine - really, it was nothing - but I still wanted to pursue to find out the answer. Okay - I had this doubt when going through the GotW archives - for the un-initiated, GotW stands for "Guru Of The Week" and it has a collection of design puzzles that got discussed on comp.lang.c++.moderated. Herb Sutter maintains an archive of these at his website. In the item pertaining to "forwarding functions", this was what was mentioned. A code example -

class X { };

bool g(X x)
   // ...
   return true; // or false

bool f(X x)
   return g(x);

// user code
X xObj;
bool truth = f(xObj);

In cases like this, one would think that the compiler can optimize away the copy of xObj in function 'f'. BUT, the standard now prohibits the compiler from making such an optimization! The reason given was this -

This change was necessary to avoid the problems that can come up when compilers are permitted to wantonly elide copy construction, especially when copy construction has side effects. There are cases where reasonable code may rely on the number of copies actually made of an object.

The only places where a compiler can elide extra copies of objects is during Retrun Value Optimization and for temporaries. (Look into your favorite C++ book for more details on return value optimization). I was not really clear on why totally prohibit such optimizations and also make them standard. Only for types which cared about things such as number of copies made, etc would be affected by such optimization. But for other types, it can incur a performance penalty. Also, if number of copies made is an issue, even the return value optimization can affect code! I did post a query on a usenet group - but that did not generate much light on this issue. I mailed a well known C++ expert who's active on that usenet group - Alf P. Steinbach. He helped me get in touch with Herb Sutter through e-mail and a day later I had got a reply from Herb himself. This is what he had to say -

This was a compromise. Yes, it(RVO) can cause the same change to side effects. But the RVO has clear value that people didn't want to lose, and it's much more constrained so that programmers can learn that copies can be elided in this one place. But in the end it was a compromise.

Well - I was glad that my doubt was a valid one and thrilled to have interacted with gurus like Alf P. Steinbach and Herb Sutter!