Determining graph sizes efficiently with F#


Introduction Continuing on with my gaming-in-F# post, this week's post is derived from this challenge. The initial challenge is, for each node, to determine the "efficiency" of a node within a network, that is, to calculate the maximum number of hops it takes to reach all edges of the graph starting from that node. So … Continue reading Determining graph sizes efficiently with F#

Modelling game states with Active Patterns


After a (long) hiatus from posting here I've decided to finally start up again. This week: F# and Active Patterns. Game Logic in F# I came across https://www.codingame.com/ recently - a great website that essentially has a set of "game challenges". Your task for most of these games is to write the "message pump" (any … Continue reading Modelling game states with Active Patterns

Demystifying the Enigma machine with F#


I had a couple of evenings free this week so decided to see if I could implement the Enigma machine, used during WW2 by the Nazis (and famously decrypted by the Polish, French and ultimately the British in Bletchley Park via some of the first programmable computers) in F#. An overview of Enigma The initial … Continue reading Demystifying the Enigma machine with F#

Lightweight websites with F#


There are several common approaches I've seen people take on the .NET platform when writing web-based applications that I want to review in terms of language and framework choice: -Adopt a conventional MVC application approach. Write static HTML that is emitted from the server using e.g. Razor markup + C# / VB .NET, write your … Continue reading Lightweight websites with F#

F# Azure Storage Type Provider v1.0 released!


So, last week I finally released the F# Azure Storage Type Provider as v1! I learned a hell of a lot about writing Type Providers in F# as a result over the last few months... Anyway - v1.0 deals with Blobs and Tables; I'm hoping to integrate Queues and possibly Files in the future (the … Continue reading F# Azure Storage Type Provider v1.0 released!