The Register® — Biting the hand that feeds IT

Feeds

Microsoft's saucy compiler exposes privates to devs

All and sundry welcome to slurp build process data

Regcast training : Hyper-V 3.0, VM high availability and disaster recovery

Microsoft has delivered early code for its "compiler-as-a-service" project for Visual Basic and C#, which lets developers hook into the software building process.

Codenamed Roslyn, the project involved Microsoft completely rewriting the existing compilers for Visual Basic and C# from C++ to native Visual Basic and C#, respectively

When it comes to cooking code on Microsoft's platform, the transformation of source files into machine code has traditionally been a closed process that takes place inside the boxed-off compiler.

But Roslyn exposes this conversion process, thereby making it possible for those outside Microsoft to see what's happening – and build better tools for the languages in areas such as refactoring and deep visualisation.

S Somasegar, developer division corporate vice-president, blogged here:

The Roslyn compilers become services exposed for general consumption, with all of that internal compiler-discovered knowledge made available for developers and their tools to harness. The stages of the compiler for parsing, for doing semantic analysis, for binding, and for IL emitting are all exposed to developers via rich managed APIs.

There was no word from Microsoft on when Roslyn would become available, although Somasegar said Roslyn is "focused towards a post-Visual Studio 11 release".

The developer preview for Visual Studio 11 – which will be Visual Studio 2012 – was released at Microsoft's Build conference last month. The suite is expected next year.

"This CTP [Community Technology Preview] will help to illuminate the kinds of exciting end-to-end experiences that are possible with such technology," Somasegar said.

You can download the CTP here. ®

Agentless Backup is Not a Myth

@banjomike

Did you post to the wrong article or something?

Did you even understand any of that article? Do you know what a compiler is?

O_o

4
1

"you're not a developer, are you?"

It's about VB as well remember.

1
0

@banjomike

What’s you issue with this banjomike? Anybody can access the machine code, all as you have to do is look at whatever file the compiler has created to look at the machine code and disassemble it. No big secrets there.

In fact writing your own compiler capable of simple syntax checking is relatively simple, all you need is the a BNF description of the language and programs like LEX and YACC to create a basic parser for the language.

It looks like to me that all mickeysoft have done is make the parse trees available inside studio.

1
0

More from The Register

Bjarne Again: Hallelujah for C++
Plus: Now officially OK to admit you never used STL algorithms
Interwebs taunt Sir Jony over Apple eye candy makeover
Hey Ive, Ive... add more unicorns, willya?
Nuke plants to rely on PDP-11 code UNTIL 2050!
Programmers and their walking sticks converge in Canada
SCO vs. IBM battle resumes over ownership of Unix
Zombie lawsuit back and wants to suck the brains out of Linux
Red Hat to ditch MySQL for MariaDB in RHEL 7
So long, Oracle! Don't let the door hit you on the way out
Shy? Socially inadequate? Fiddling with your phone could help
App 'tells the brutal truth' about social inadequates' chatup lines
Java EE 7 melds HTML5 with enterprise apps
New release arrives with GlassFish, NetBeans support
 breaking news
'Office Facebook' firm Tibbr wants you to PAY for mobe-meetings app
Great idea. Punters won't cough for it though
 breaking news
The only Waze is Google: Ad giant tipped to gobble map app 'for $1.3bn'
Pac-Man-satnav-ish upstart in bidding war with Apple, Facebook
 breaking news
PM Cameron calls for modern, programmable computers! (We think)
IT education musings to G8 chiefs to mystify IT industry