Thursday, September 30, 2004

What CLR and FCL Provide?

The following is a small list of what CLR and FCL provide:

  1. Consistent Programming Model: all application services are offered via common object oriented programming model.
  2. Run once, Run always: In COM, if you replace a COM DLL, the previously installed application may show strange behaviour or stop working at all. The architecture of .Net allows to run more than 2 versions of same component side-by-side. So once an application runs using a component, it will always run and load the component it was built and tested with, even if new versions of the same components are added to the library.
  3. Simplified Deployment: Deployment of .Net applications is as easy as copying the application files to a directory and creating short-cuts on desktop or start menu.
  4. Wide Platform Reach: Source code of a .Net application is compiled into a Intermediate Language (IL) code. At run time the CLR translates the IL code into the native CPU instructions. The translation is done for the host CPU. This means you can deploy the .Net application on any machines that has CLR and FCL runnint on it.
  5. Programming Language Integration: .Net allows programming language to integrate with one another so that you can use types written in one programming language into other programming languages. Common Type System (CTS) makes this possible.
  6. Automatic Memory Management (Garbage Collection): CLR provides automatic memory management which avoids the problems of memory leak.
  7. Type-safe Varification: CLR can varify that your code is type-safe. Type safety ensures that the objects are always accessed in compatible ways.

Components of .Net Framework

.Net framework consists of two parts:
1. Common Language Runtime (CLR)
2. Framework Class Library (FCL)

Currently CLR and FCL are available for only Windows platform...but it won't be long before these technologies are available on wide variety of operating systems and CPUs. One such effort is already made by Novell....see details on www.mono-project.com


Sunday, September 26, 2004

What's .Net ?

There is not a single defination of .Net. Simply stating, .Net Framwork is a development platform for developing any kind of application using developer's choice of programming language. We can say it's like Java. Let's see here a simple comparision of the two technologies:

Java technology: Write in Java and run on any platform, provided JVM (Java Virtual Machine) is available on that platform.

.Net technology: It's one step ahead than Java. It says: Write in any language and run on any platform, provided .Net Framework is available on that platform.

As of today, the .Net Framework is only available available for Windows OS family. But there are third-party developers who are working on projects to make .Net framework available on other platforms like linus, unix, MacOS etc.

More on .Net tomorrow...