Browse by Tags

All Tags » Haskell (RSS)

Functional Programming Fundamentals Lectures by podwysocki

Earlier this year, I had the privilege to record a Channel 9 video session covering functional programming basics with Erik Meijer and Charles Torre. We covered some of the basics, but at some point you need to go back to the fundamentals in order to...

First Class Composable Events in F# by podwysocki

If you’ve been following me on Twitter lately, I’ve been playing a lot lately with event based programming in both F# events as well as the Reactive Framework (RX) . Today, I’m going to start a series in event processing, starting from the elementary...

Modeling DSLs with F# and Units of Measure by podwysocki

Very recently on Lambda the Ultimate , they had a really good post describing Soccer-Fun, a way to teach functional programming (pdf) . The premise is very simple and is described as the following: ...a domain specific language for simulating football...

The “Anti-For” Campaign by podwysocki

Recently, there has been an effort launched called the “Anti-If Campaign” in which they deride the use of if statements and instead, focus on Object Oriented Principles in order to create more flexible designs. Now certainly, I have a sympathetic ear...

Providing Safe Alternatives by podwysocki

When I was reading through Real World Haskell , I was struck several times by the mention of providing safe function alternatives. The idea is to provide a function that in all cases returns a value as well as the one which is meant to accept valid input...

Revisiting Memoization by podwysocki

After revisiting the Haskell Wiki recently, I wanted to look at memoization again for a brief second after talking about it a while ago . In particular, there were two competing ideas, one around using a generic dictionary/map for storing the memoized...

Axum – Ping Pong with Ordered Interaction Points by podwysocki

UPDATE: Removed code and explained that what I had was not intended behavior After a slight diversion into F# mailbox processing, it’s time to come back to talk a little bit more about Axum . In our last Axum post , we discussed using dataflow networks...
Filed under: , , , ,

Axum – Ping Pong with Dataflow Networks by podwysocki

In the previous post , I gave the canonical Ping-Pong example in Axum and how it compared with Axum. I want to revisit this post because there are some areas in which we can rework it in addition to the other solutions we’ll visit. Some parts were needlessly...
Filed under: , , , ,

Type Classes Are The Secret Sauce by podwysocki

I came across a recent post on adding Ruby and C# operators to F# that sparked a few thoughts in my head. The post was good, but yet there were operators that already existed for some of the operations mentioned such as the defaultArg and ( @ ). But what...

Functionally Implementing Intersperse by podwysocki

This week while seeming to put off finishing many other blog posts on type classes, Collective Intelligence, the war on foreach and so on, I found myself intrigued by solving a simple problem in F# and look at the tradeoffs. This post is meant to be a...
More Posts Next page »