A short interlude from my little "solving games in F#" series today. I've recently moved house and was trying to figure out how long it would take to get to work. I started thinking about this problem in terms of minutes until I realised that I really wanted to calculate it in a much more … Continue reading Inventing new measures of time with F#
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#
Analysing website download sizes
When I go to watch football matches at Tottenham, I find it interesting to see the scores and summaries of other teams during e.g. the half time break. There are many sites and applications that can do this. One I use often is the BBC website, where they have a page that summarises what is … Continue reading Analysing website download sizes
Distributing the F# Mailbox Processor
An introductory guide to distributing F# Mailbox Processors using Azure Service Bus.
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#
On Type Inference
This is a comment I recently saw on a headline-grabbing article about Swift: - I also don't think that "type inferring" is of great use. If you cannot be bothered to hack in a variable's data type, maybe you should not develop software in the first place. I was so infuriated by this comment that … Continue reading On Type Inference
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!
Pattern Matching in C#?
As C# 6 previews have come out, I was not surprised to see pattern matching absent in the feature set. It's a shame but I can understand why it's not included - it's far more powerful than switch/case but with both in the language, it'd probably be difficult to make the two work together without … Continue reading Pattern Matching in C#?