Tag Archives: Project Roslyn

Project Roslyn (What's a compiler?)

Some requirements:
• Visual Studio 2010 Professional SP1
• Visual Studio 2010 Professional SDK
• Windows 7
What is Roslyn?
To know what Roslyn is, you have to know what a compiler is. A compiler is the device that is used to compile the code we write (in any .net language). After you click the nice “debug” button in Visual Studio, what actually happens is your code getting send to this “factory”, and then this factory translates your code into machine code that your computer can execute.

Sorry for my poor paint skills, but you kind of get the idea.
The situation now is that you write code in a language. Then you send it trough this black box called a compiler where magic stuff happens, and at the end of this process you get this .exe file that can execute the code you wrote.

But, what does this black box do? I don’t believe in magic and probably neither do you.
Project Roslyn is all about opening up this black box of mystery and showing us what happens during compilation, and allowing us to play with this.
I can already hear a voice in your head shouting “Why the f.. do we need to open up a compiler, it works just fine doesn’t it?”

Yes, the compiler is a good friend of every programmer and works amazing. But when building your application the compiler generates a LOT of information. This information can be useful to us programmers. (Think of finding bugs etc…) This information is very valuable.
With the output of this program developers could also refactor, reorganize and add C# / VB functionality to programmers written in another application.

This is once again a step forward in C#’s approach of being a dynamic language, objects can be created on the fly.
If you want to play around with Roslyn yourself, here is the download link: http://www.microsoft.com/download/en/details.aspx?id=27746&utm_source=feedburner&utm_medium=twitter&utm_campaign=Feed%3A+MicrosoftDownloadCenter+%28Microsoft+Download+Center%29#tm