A Taste of F# Interactive in Visual Studio
Also shown is something I haven't made much noise about on this blog, and that's the ability to display windows interactively from F# Interactive. The windows are fully active - they can paint and respond to interactions while the programmer evaluates new expressions, code, types and classes in the interactive session. You can also dynamically load new .NET components on-the-fly.
At the bottom of the screen you'll see a tool window containing the F# Interactive session. The WinForms/DirectX window in the foreground was created by running simple F# code such as
let
form = new Form();;
form.Text <- "F# surface plot";;
as well as some introductory DirectX triangle creation.
The code shown in the editor is part of this script - we've just executed the command that specifies a new function to display (this is the line highlighted in the editor). We did this just by evaluating the code in the F# Interactive Session below using a key short-cut. (I've scrolled the F# Interactive window back up to the top so you can see the banner printed out when F# Interactive starts up.)
What's really striking is the combination of interactive visualization, Visual Studio, .NET programming and efficiently executing F# code (remember, .the floating point code is running as optimized native code, often close to C++ speed). We have a few things to add before this is complete: for example some form of intellisense in the interaction window. But this combination feels like it is bringing many things together nicely. (Aside: you can of course do interactive visualization when using F# Interactive from Emacs too :-) I'm not so sure about "vi" !!)
Comments
Anonymous
February 20, 2006
This is going to be so cool :-)
Can you give a hint of what level of communication is available between the fsi window and the code windows? If I make a change to a file that has been "#use"-d in fsi, can I have it automatically loaded once it compiles OK?Anonymous
February 24, 2006
&nbsp;
I'm glad to announce that F# 1.1.10.2 is now up on http://research.microsoft.com/downloads ...Anonymous
March 06, 2006
The comment has been removedAnonymous
June 25, 2006
Is this functionality in the release version 1.1.10.4?
I have installed it, but cannot find mention of the tool in the documentation or the VS2005 menus.Anonymous
June 25, 2006
Hi sp,
Yes, this is in 1.1.10 and 1.1.11 - look for "Using F# Interactive in Visual Studio", and also look under the AddIn Manager
DonAnonymous
July 18, 2006
From the F# Site at http://research.microsoft.com/fsharp/fsharp.aspx
F# is a programming language that...Anonymous
July 26, 2006
F# on VS2005 is great, but I cannot use F# interactive on VisualStudio2005 Version 8.0.50727.42(Japanese).
When I invoke F# interactive Add-in, below dialog is showed 2 times.
--
Raised: System.ArgumentException: value is out of range
at EnvDTE.Command.set_Bindings(Object pVar)
at Microsoft.FSharp.Compiler.VSFSI.Locals.addCommand@25.Invoke(Unit _unit)
Microsoft.FSharp.Compiler.VSFSI.Locals.catchAll(FastFunc `2 f)
--
F# interactive window is correctly showed, but "Alt-Enter" doesn't work.
I hope this is bugfixed.
Thanks.Anonymous
February 08, 2007
Oh my goodness! I just tested it and it works. F# is such a delightful treasure trove. I'm starting to notice the wrinkles in our good old C#.Anonymous
April 20, 2007
PingBack from http://d3mon.wordpress.com/2007/04/20/c%cf%89-f/Anonymous
May 23, 2007
PingBack from http://archworx.wordpress.com/2007/05/23/f/Anonymous
May 28, 2007
PingBack from http://arnulfoperez.com/blog/2007/05/28/caml/Anonymous
June 23, 2007
PingBack from http://www.fsharp.net/?p=3Anonymous
October 24, 2007
PingBack from http://keyurvachhani.wordpress.com/2007/10/24/microsofts-programming-language-f/Anonymous
October 24, 2007
PingBack from http://ghillie-suits.info/?p=25576Anonymous
October 27, 2007
PingBack from http://www.orbifold.net/default/?p=751Anonymous
October 28, 2007
PingBack from http://babestud.com/tech-thoughts/microsoftnet-family-welcomes-f-to-be-as-first-class-net-languageAnonymous
October 28, 2007
PingBack from http://rusticgeek.net/logbook/2007/10/27/f-functional-programming-on-net-framework/Anonymous
October 30, 2007
PingBack from http://discount-perfume-hq.com/?p=1603Anonymous
October 31, 2007
PingBack from http://discount-perfume-hq.com/?p=2503Anonymous
January 11, 2008
PingBack from http://itakate.net/index.php?blog/show/166Anonymous
January 12, 2008
PingBack from http://www.itakate.net/index.php?blog/show/166Anonymous
April 16, 2008
PingBack from http://drugsmoviesblog.info/don-symes-weblog-on-f-and-other-research-projects-a-taste-of-f/Anonymous
June 15, 2008
PingBack from http://rant.blackapache.net/2008/06/14/an-interesting-little-problem/Anonymous
September 15, 2008
Microsoft F# September 2008 CTPAnonymous
December 23, 2008
Don Syme has announced that F# would ship as part of Visual Studio 2010 in his blog entry, F# to shipAnonymous
January 29, 2009
I think that this maybe what all the hype about EMACS.NET was about.Anonymous
May 31, 2009
It is a shame that the image here is no longer there. F# sounds very interesting - I may have to find a little time to play with it.Anonymous
June 08, 2009
PingBack from http://jointpainreliefs.info/story.php?id=654Anonymous
June 08, 2009
PingBack from http://goneale.com/2009/06/09/what-why-choose-f/Anonymous
June 09, 2009
PingBack from http://cellulitecreamsite.info/story.php?id=11609