- We design and build extraordinary applications for companies looking to make the next great idea a reality.
- learn more
MS Volta: GWT for .NET
I missed this yesterday as I was immersed in the GWT conference. Over at MS Labs, you can see Volta, Microsoft's take on compiling to JavaScript, sort of like a GWT for the .NET platform.
You architect and build your application as a .NET client application,
assigning the portions of the application that run on the server tier
and client tier late in the development process. You can target either
web browsers or the CLR as clients and Volta handles the complexities
of tier-splitting. The compiler creates cross-browser JavaScript for
the client tier, web services for the server tier, and all
communication, serialization, synchronization, security, and other
boilerplate code to tie the tiers together. In effect, Volta offers a
best-effort experience in multiple environments without requiring
tailoring of the application.
Supposedly it compiles from MSIL (Microsoft Intermediate Language) to JavaScript, which allows you to compile from all of the .NET supported languages. Also, you can debug in VisualStudio.
There was a project call Script# that compiled C# to JavaScript, but this is a lot more substantial. Lots of docs and demos, too. I haven't kicked the tires on this yet, but I'll ask one of my .NET guys to check it out.
As for how it works under the covers:
In essence Volta is a recompiler. Volta works on MSIL rather than on a textual source language. Volta rewrites MSIL into any number of target languages, including, today JavaScript and MSIL itself. Rewriting, as a general technology, lets us delay permanent decisions about architecture, execution platform and browser until after our code is basically working. Furthermore, it frees us from having to express all these irreversible decisions in your source code. The result is a programming model that enables us to easily reshape a working application, and finally realizes the promise of one application running anywhere.
If you think about it, this is really not a threat to GWT, but a validation. If GWT is good for Java developers and Java projects, the same holds true for .NET. If you have C# developers, have them write C# for both the client and server side. Check as much as you can at compile time. Let the compiler deal with optimization, etc.
This, combined with the announcement on IE8 makes me more optimistic about MS's support for Ajax in the browser.
Leave a comment
About Pathfinder
Recent
- A Look Back At Past Posts
- Flash Player on iPhone gossip
- Microsoft to Jump on Board EC2
- TAE Boston 2008: The Unsexy Presentations
- The Ajax Experience 2008: Hope to see you in Beantown
- TankEngine: New plugin for Rails iPhone Development
- Simphony of Ruby on Rails and Flex through RubyAMF
- “Build half a product, not a half-assed product” - tips on clarity and focus from Jason Fried of 37Signals
- Rails Performance, Code Metrics, and Locking Down your Application: Tips & Tricks from Windy City Rails 2008
- Betting Your Business on the iPhone
Archives
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006

