Browse by Tags

All Tags » F# (RSS)

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...

F# – Async Running with Continuation Scissors by podwysocki

As you may have noticed, I’ve been covering a bit about concurrency on this blog lately, and for good reason. Between Axum, Erlang, Scala and F#, there is a lot to explore with actor model concurrency, task based concurrency, data parallel applications...

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...

F# – Duck Typing and Structural Typing by podwysocki

As you may have noticed on this blog lately that I’ve been focusing on Asynchronous Workflows. In those adventures, I’ve been taking well known APIs such as Twitter, Bing, among others and seeing what I can do with them. In this instance, when using LINQ...

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: , , , ,

When Side Effects and Laziness Collide by podwysocki

While working on a side project recently, I came to rediscover some of the consequences of one of my earlier posts on “Side Effects and Functional Programming” . It’s important that we realize that when we are creating our programs to beware of lazy evaluation...

Actors in F# – The Bounded Buffer Problem by podwysocki

In the previous post , I covered an example of an auction simulation using asynchronous message passing and a shared nothing approach using the MailboxProcessor class in F#. The auction example was a great piece to demonstrate scalability by adding additional...

F# Actors Revisited by podwysocki

UPDATE: Removed ref cells to use two recursive loops In the previous post , I covered briefly about the actor model in F#. This style of concurrency, using asynchronous message passing and a shared-nothing approach through the use of mailboxes is a pretty...
Filed under: , , ,
More Posts Next page »