For those of you who didn’t hear of Roslyn project before – in short it is compiler-as-a-service or CaaS for short. The first thing came to my mind when I first saw this term is that I have code in string and I can compile it. And it is wrong. Well, sort of. Compiling of the code is just the tip of an iceberg – and in fact it was available already. What CaaS really is it is possibility to interact with compiler, to work with its AST, to embed and interleave code (DSL, huh?). What’s it for? Well, carry on reading.
The great thing – Roslyn is announced. The second, more great thing – it will be here in four weeks, somewhere in the middle of October.
Those and other things is in Anders Hejlsberg’s talk on BUILD conference here. Entire talk is very interesting, but Roslyn details are from 35:15 and forward.
What Anders had shown in his talk… REPL loop (similar to the one he shown on PDC2008 but more immersive), simple refactoring (not using but writing one) and really crazy stuff – copying C# code and pasting VB code (and vice verse). All of that within Visual Studio with all of its goodies.
I’m really fascinated with all of these things and cannot wait to try them! This talk is a must see for every .NET developer IMO.