Archive

Archive for March, 2005

yahoo 360

March 29th, 2005

Really excited about this. Want an invite?

Now for some Managed C++

March 23rd, 2005

I’ve been doing vanilla C# for some time now. (For the uninitiated, thats read as C sharp – as in music. If you say C hash or C pound, they will kill you.) The latest being some Windows.Forms. While this has been interesting, it looks like its now time to move on to some more exciting stuff. I started reading up a bit on Managed extensions to C++ today. And I thought, what the hell, its something to fill up my blog with. Most of the stuff you will find here can be found elsewhere too. “MSDN?” you ask. Yes.

The philosophy behind managed C++ seems to be this:

You have a legacy C++ library, do you? And is that holding you from writing a .net app? Don’t let it.

Since interop is what this really is for, there have to be two sides to it. One side that can talk to your legacy C++ (which is just regular C++), and the other side that can talk to the Common Language Runtime (CLR). This other side is the “managed extension” part of it. Which to a programmer means that we have some new syntax and some new semantics. The biggest noticeable change in managed C++, as compared to standard C++, is the ability to utilize the garbage collection provided by the CLR and to make use of the .net library.

Consider an example of the syntax change. There is now a new keyword called __gc. So if you want to create a class which gets “managed” by the CLR, here’s how you would define it.

#using <mscorlib.dll>

__gc class GCExample
{
};

And… it magically becomes managed. With the GC at your service, you no longer have to call delete on objects of this class.

More to come…

Now for some Managed C++

March 23rd, 2005

I’ve been doing vanilla C# for some time now. (For the uninitiated, thats read as C sharp – as in music. If you say C hash or C pound, they will kill you.) The latest being some Windows.Forms. While this has been interesting, it looks like its now time to move on to some more exciting stuff. I started reading up a bit on Managed extensions to C++ today. And I thought, what the hell, its something to fill up my blog with. Most of the stuff you will find here can be found elsewhere too. “MSDN?” you ask. Yes.

The philosophy behind managed C++ seems to be this:

You have a legacy C++ library, do you? And is that holding you from writing a .net app? Don’t let it.

Since interop is what this really is for, there have to be two sides to it. One side that can talk to your legacy C++ (which is just regular C++), and the other side that can talk to the Common Language Runtime (CLR). This other side is the “managed extension” part of it. Which to a programmer means that we have some new syntax and some new semantics. The biggest noticeable change in managed C++, as compared to standard C++, is the ability to utilize the garbage collection provided by the CLR and to make use of the .net library.

Consider an example of the syntax change. There is now a new keyword called __gc. So if you want to create a class which gets “managed” by the CLR, here’s how you would define it.

#using <mscorlib.dll>

__gc class GCExample
{
};

And… it magically becomes managed. With the GC at your service, you no longer have to call delete on objects of this class.

More to come…

Ex-Finance get-together

March 9th, 2005

 contacted me yesterday over IM. All the ex Yahoo! finance team members at Bangalore are meeting up tonight.

, ,, Gaj, Divy, Akshay, Ankit will all be there (or so I hope). Sounds like fun. Looking forward to the evening.

Portraying heaven

March 8th, 2005


People generally have vague notions about heaven. Even hell for that matter. But if you were asked to actually depict heaven – say for a movie – how would you do it? This makes an interesting reading of how heaven was created for the movie Constantine.

Reflecting on our own (indian television’s) depiction of heaven…

  1. Each God has his/her own environment that’s very well defined. If you’re shown the place, you can guess which God it is.
  2. If its swarga we’re talking about, then I find that
    • The architecture of the place is pretty much the same as palaces found on earth. So I guess you can’t blame the makers of Constantine for wanting to put the LA skyline in heaven.
    • There is an over abundance of smoke over the floor(clouds?)
    • In the background, you can see space (dark). And there are large planets, most notably jupiter and saturn, that keep floating around. Not to mention the spiral galaxies.
  3. Anyway, the point is that it can be really difficult to convince another person of your model of heaven, however good it is, however close it is to your perception of heaven.

Portraying heaven

March 8th, 2005


People generally have vague notions about heaven. Even hell for that matter. But if you were asked to actually depict heaven – say for a movie – how would you do it? This makes an interesting reading of how heaven was created for the movie Constantine.

Reflecting on our own (indian television’s) depiction of heaven…

  1. Each God has his/her own environment that’s very well defined. If you’re shown the place, you can guess which God it is.
  2. If its swarga we’re talking about, then I find that
    • The architecture of the place is pretty much the same as palaces found on earth. So I guess you can’t blame the makers of Constantine for wanting to put the LA skyline in heaven.
    • There is an over abundance of smoke over the floor(clouds?)
    • In the background, you can see space (dark). And there are large planets, most notably jupiter and saturn, that keep floating around. Not to mention the spiral galaxies.
  3. Anyway, the point is that it can be really difficult to convince another person of your model of heaven, however good it is, however close it is to your perception of heaven.

Blogging as a profession?

March 7th, 2005

I’ve heard of people blogging for:

  • fun
  • Adsense revenue
  • their company

But its interesting to me to learn that there are people who get paid just to blog. (“Blogging Professionals”)

There are also people who have a few “Sponsored posts” in a normal blog.

I find it a little difficult to perceive blogging as “just another form of journalism”.

Blogging as a profession?

March 7th, 2005

I’ve heard of people blogging for:

  • fun
  • Adsense revenue
  • their company

But its interesting to me to learn that there are people who get paid just to blog. (“Blogging Professionals”)

There are also people who have a few “Sponsored posts” in a normal blog.

I find it a little difficult to perceive blogging as “just another form of journalism”.

Yahoo to buy flickr?

March 4th, 2005

RTO site

March 2nd, 2005

We all hate going to the RTO. Checking at the RTO site first can save you a lot of trouble.