InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

F# Now Supports Silverlight

Posted by Jonathan Allen on Jun 07, 2010

Sections
Development
Topics
F# ,
Silverlight ,
.NET Languages ,
.NET ,
Rich Internet Apps ,
Programming

Slipped into the Silverlight Tools for Visual Studio release is F# for Silverlight 4. While C# or VB is still recommended for UI design, F# offers some interesting capabilities for the business tier, especially if it is heavy on computations or data processing logic.

The F# also has a PowerPack that brings in functionality that either is not ready or is not appropriate for the core release. This release doesn’t add new functionality but does allow the library to be used from Silverlight 3 and 4.

Features that can be found in the F# PowerPack include:

  • F#’s take on Lex and Yacc, including MSBuild support
  • SI unit of measure
  • Tagged immutable sets and maps
  • Matrix library and supporting math types

The F# PowerPack is available on CodePlex under the Microsoft Public License. In order to make developing pure F# applications easier with Silverlight, DmitryLomov has created a F# Silverlight Application template.

Aync workflows is another useful feature by Faisal Waris Posted
  1. Back to top

    Aync workflows is another useful feature

    by Faisal Waris

    Silverlight forces all server interactions to be asynchronous.

    With F# you can easily orchestrate such interactions via the async {} monad as mini workflows. There is even support for fork/join semantics.

    The interesting part is that async code looks almost the same as synchronous code.