Search Wiki:

The F# Samples

A collection of F# sample code, from introductory tutorials to full example F# projects. These samples illustrate the use of F# for a range of programming tasks.

These samples can be used with either VS2010 Beta2, or with VS2008 and the F# May CTP.

Download the most recent version of F# at: http://msdn.microsoft.com/fsharp/
Download the most recent F# Samples download at: FSharp Samples v0.3

Getting Started

Samples101: An interactive WinForms application which shows 101 small F# samples.
Introductory Tutorial: A quick overview of many of the most important F# language concepts.
samples.jpg

Office

Excel: Example of interacting with Excel from F#, using the Excel automation APIs. Requires Excel 2003 or 2007.
Word: Example of interacting with Word from F#, using the Word automation APIs. Requires Word 2003 or 2007.

Scripting

3DVisualiztion: An F# script for graphing 3D functions using DirectX. Note: Requires the seperate DirectX SDK be installed.
visualization.jpg
WebCrawl: F# Scripts which crawl web pages collecting links. Great example of F# scripting.
WinForms: Two examples of using Windows Forms to display UI programattically in an F# script
forms.jpg

Simulation

ConcurrentLife: An F# implementation of Conway's Game of Life, using Windows Forms and .NET concurrency features
life.jpg
SolarSystem: A Solar System simulation application, taking advantage of Units of Measure in F# to do physics simulation
solarsystem.jpg

Send any comments or questions about these samples to fsbugs@microsoft.com.
Last edited Dec 10 2009 at 9:59 AM  by MichaelHale, version 14
Comments
ArtScott wrote  Oct 26 2009 at 10:40 PM  
F# Microo Samples Explorer ... very helpful

M_O wrote  Nov 5 2009 at 6:38 AM  
Why is the Visualizer sample missing in the VS2010 version? I would really like to try it.

MichaelHale wrote  Nov 19 2009 at 7:22 PM  
There was an issue getting calls to the DirectX SDK to work from .NET 4. The Visualizer sample is now included in the 2010 samples solution. Please let us know if you run into any further issues with the samples or if you have any suggestions.

pierrecoach wrote  Nov 29 2009 at 9:31 AM  
why not give the url to download the directx sdk - what a waste of time, AGAIN a sample that does not work directly

MichaelHale wrote  Dec 10 2009 at 10:03 AM  
I added a link to the DirectX SDK. Unfortunately, I can't help you with the download size. :)

Updating...
Page view tracker