[EN] F# articles

Entries feed - Comments feed

Monday, February 14 2011

F# Intellisense in Emacs - in progress

Bringing Intellisense for F#, in Emacs. A prototype

Continue reading...

Friday, June 25 2010

New F#-mode for Emacs

Two years later, I finally released a new version of fsharp-mode for Emacs. It contains many bug fixes, and new great feature.

Continue reading...

Wednesday, June 23 2010

F# + OpenGL: a cross-platform sample

I love OpenGL but, until now, I used it only in C++ (plus one quick test in OCaml). I wanted to try it with F#. As OpenGL is a portable library, the result should be cross-platform; that's what I checked. I found OpenTK, which is the library that wraps OpenGL in .NET (there is also OpenAL and OpenCL).

Continue reading...

Tuesday, June 8 2010

F# getopt to parse the command line

Many programs (especially console applications) need to parse the command line, and find which options the user want to set. As far as I know, .NET doesn't provide any function for this, but there several third-party libraries to do it. In F#, there are some functions for this in the Powerpack.

Continue reading...

Monday, June 7 2010

F# and FParsec: a GLSL parser example

An example using FParsec and F# to parse a C-like language and generate the AST.

Continue reading...

Saturday, October 17 2009

Dynamic lookup operator, aka duck typing in F#

In the latest F# release (May 2009 CTP), the dynamic lookup operator "?" was introduced. I expected people would play with it, but it seems like it went nearly unnoticed. This blog post describes a few ways to use it, it's mostly for fun. Whenever you can, I recommend you to stay in the safe static typed world. But dynamic features sometimes might come in handy...

Continue reading...

Sunday, October 5 2008

Poker: a programming problem

A programming problem: how to evaluate Texas Hold 'Em hands (7 cards), find the winner and print the results?

Continue reading...

Tuesday, September 23 2008

My wish-list for F#

Some suggestions to improve F#

Continue reading...

Thursday, June 5 2008

How to use F# on Mono?

Latest version of F# has several issues on Mono. This post explains how to install F# and get the interactive mode work.

Continue reading...

Friday, May 30 2008

Duck typing in F#

A sample to get duck typing in F#.

Continue reading...

Wednesday, March 26 2008

Design by Contract with F#

This article presents a way to get design by contract in F#. Preconditions and postconditions may be grouped at the beginning of the function.

Continue reading...

Saturday, March 8 2008

F# syntax highlighter in PHP

A syntax file for GeSHi.

Continue reading...

Generic memoization for dynamic programming

This article shows a generic way to perform dynamic programming.

Continue reading...

Tuesday, July 17 2007

A lazy example

On a french forum, someone wrote an little exercise: how to get all sets of numbers (> 0) whose sum is exactly n? Here is my solution, using lazy evaluation.

Continue reading...

Sunday, May 6 2007

Pretty Printer

F# features some tools for pretty printing (any kind of data, including trees). This article explains how to use StructuredFormat library and provides a complete example.

Continue reading...