Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

F# Zen – The Literal Attribute

When pattern matching it is easy to forget that you are capturing a new value instead of matching against an existing one. Take this function for example: let E = 2.718281828459 let PI = 3.141592653589 // Ooops - this captures a value let isConstant x
Posted by ChrSmith | 5 Comments
Filed under:

F# Zen - Colored printf

It’s easy to lose track of important data when logging output to the console window, fortunately you can use the System.Console.ConsoleColor property to set the output color. But unlike F#’s printfn, System.Console.WriteLine doesn’t use type inference
Posted by ChrSmith | 1 Comments
Filed under:

F# Scripting Zen – Word Interop

Edit: Added a ‘comarg’ function to dramatically clean up the syntax for doing COM-interop, since F# will pass ‘ref types’ as byrefs to COM calls. In a previous post I talked about how to take advantage of .FSX (F# Script) files to automate tasks for you.
Posted by ChrSmith | 2 Comments
Filed under: ,

Shameless Plug Roundup

This post is entirely devoted to shameless plugs and ‘Me Too’ blogging.   The Stack Overflow public beta is out! I’m trying to get the specialized badge, so ask some F# questions for me.   Amanda Laucher and Ted “Some Guy” Neward on .NET Rocks
Posted by ChrSmith | 1 Comments
Filed under: ,

Book Review – F# for Scientists

A few weeks ago Dr. Jon Harrop published F# for Scientists and I had the fortune of snagging a copy at work. In short, it is an excellent book and an invaluable resource for those working in quantitative computing. The best feature of the book is its
Posted by ChrSmith | 4 Comments

Scripting in F#

The thing you hear most about F# is that it is multi-paradigm , meaning that you can use it to code in multiple styles of programming. But F# spans multiple-domains too. F# is not only well suited for quantitative computing, but it is surprisingly well
Posted by ChrSmith | 3 Comments
Filed under:

MSBuild tasks for Lex and Yacc

While I am thrilled about all the new features we've put into the F# CTP, perhaps the thing I'm most excited about are the MSBuild tasks for Lex and Yacc. You heard that right. If you want to use fslex.exe of fsyacc.exe as part of your project, you can
Posted by ChrSmith | 3 Comments
Filed under: , , ,

Attachment(s): MegaCalc-v1.0.zip

Simple F# Game using WPF

With the F# CTP out the door, let’s take a look at what it can do. Ryan Cavanaugh, not the famous Banjo Player , the one on the VS Pro Tools Team, helped me put together an artillery game called BurnedLand. (Kudos if you can catch the subtle reference.)
Posted by ChrSmith | 5 Comments
Filed under: ,

Attachment(s): BurnedLand-v1.0.zip

CTP Awesomeness – Goto Definition

If you’ve used Visual Studio for a few years you’ve probably memorized all the shortcuts and methods for navigating source code. For example, if some XML looks unruly just press CTRL+K+D to automatically format the document. (If you’re interested in learning
Posted by ChrSmith | 1 Comments
Filed under: ,

FSharpp to FSProj Converter

Wow, what a busy week! The F# CTP is out the door, and it's already making reverberations around the blogospphere: Don's Announcement Units of Measure in F#: Part One, Introducing Units - HOTNESS Downloading stock prices in F# - Part I - Data modeling
Posted by ChrSmith | 1 Comments
Filed under: , , ,

Attachment(s): FSharppToFSProj-v1.1.zip

Understanding Tail Recursion

You may have heard of Tail Recursion before, in fact, you may have even written tail recursive functions before without even knowing it. Even so, why should you care? Safety. Functional programming relies on recursive functions heavily since imperative
Posted by ChrSmith | 4 Comments
Filed under: ,

Countdown to F# CTP

In case you didn’t see it over on Brian’s blog, he’s posted a sneak peak at the F# Project System: Part I   Part II . If you’ve used the Visual Studio integrate for our previous releases you might have noticed it was a tad ‘unsavory’. Well the images
Posted by ChrSmith | 10 Comments

ICFP Programming Contest

As far as elite programming contests go, I thought the only one around was the ACM-ICP . (The ACM International Collegiate Programming Contest.) However there is a less well known but arguably more hard core contest called the ICFP . Each year as part
Posted by ChrSmith | 3 Comments
Filed under:

Mastering F# Lists

Lists represent the backbone of functional programming and in order to be an effective F# programmer you must truly master list processing. Fortunately lists are simple and straight forward, so let’s begin. Mastering F# Lists There are several things
Posted by ChrSmith | 6 Comments
Filed under: ,

Some guidelines for readable F# code

When learning a new programming language it isn’t enough to know the syntax, you must also take the time to learn the idioms and styles for the language. Unfortunately those idioms and styles develop over years and F# still hasn’t had its ‘official v1'.0’
Posted by ChrSmith | 1 Comments
More Posts Next page »
 
Page view tracker