The blog of the F# team at Microsoft
As announced at the Microsoft Research 20th Anniversary event in Cambridge UK, we have updated the F# 2.0 compiler source code drop to include changes related to the www.tryfsharp.org web application. The code drop is the compiler\2.0\Aug2011.1 directory in the F# PowerPack.
These changes allow you to compile the F# compiler as a browser-hosted (Silverlight 4.0) component. This can then be hosted inside a browser application. This is in keeping with our stated aims for the F# compiler source code drop: a source drop enables the F# community to develop and contribute a range of tools to the F# and Visual Studio ecosystem. These could be UI tools such as code visualizers, or editing tools such as refactorings, or new ways of executing, hosting or interpreting F# code, or new F# editing experiences.
A sample browser application has been included under the "samples" directory, which shows how to use the compiler component to do four things:
This source code is under the Apache 2.0 license and is published as part of the F# PowerPack codeplex project, which is now also under the Apache 2.0 license. The F# PowerPack includes libraries, tools and the compiler/library source code drops.
The F# team
Read more here: pitfw.posterous.com/f-pit-repl-in-the-browser
The demo is hosted here: dl.dropbox.com/.../Source.htm