Some simple functions for writing more idiomatic F# tests with NUnit.
90 people like thisPosted: 13 years ago by Ryan Riley
Extensions to dictionaries.
36 people like thisPosted: 13 years ago by Ryan Riley
Wraps an Async as an IObservable to allow easier consumption by other .NET languages. Many thanks to desco for his help: http://cs.hubfs.net/forums/thread/16545.aspx
5 people like thisPosted: 13 years ago by Ryan Riley
A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async
Posted: 13 years ago by Ryan Riley
An iteratee based on https://john-millikin.com/software/enumerator/ and http://okmij.org/ftp/Haskell/Iteratee/IterateeIO-talk-notes.pdf
8 people like thisPosted: 13 years ago by Ryan Riley
A JoinList is a variation on the list type that offers a constant time append operation.
5 people like thisPosted: 13 years ago by Ryan Riley
This is an implementation of the Continuation monad using a type, taking an exception handler, and allowing for Call/CC. This specific implementation is mostly Matt Podwysocki's. I have a similar implementation using a purely functional, exception-handler-less version in FSharp.Monad. Until now, I haven't been able to resolve the callCC operator.
4 people like thisPosted: 13 years ago by Ryan Riley
The name is a bit trying, but the overall callback approach greatly simplifies the mechanism for calling and handling the System.Net.Sockets.Socket Async methods.
0 people like thisPosted: 13 years ago by Ryan Riley
Yet another ping pong sample with agents.
5 people like thisPosted: 12 years ago by Ryan Riley
A set of Async primitives as described by Dave Thomas [1] (and derived from Stephen Toub [2]). [1] http://moiraesoftware.com/blog/2012/04/22/back-to-the-primitive-ii/ [2] http://blogs.msdn.com/b/pfxteam/archive/2012/02/11/10266923.aspx
2 people like thisPosted: 12 years ago by Ryan Riley
Demonstration of the manyproc sample from Erlang using F# MailboxProcessor.
3 people like thisPosted: 10 years ago by Ryan Riley
A sitemap-based url tester that runs in parallel.
43 people like thisPosted: 13 years ago by Ryan Riley
Similar to http://fssnip.net/7Tr, this implementation translates the Scala from https://functional.works-hub.com/blog/Type-classes-from-OO-perspective but uses statically resolved type parameters to show how something similar could be done with computation expression instances. It's really too bad you have to pass an instance of the implementation. It would be nice to be able to specify a module or class with a static member.
3 people like thisPosted: 7 years ago by Ryan Riley
A lazy enumerable/stream of bytes.
9 people like thisPosted: 13 years ago by Ryan Riley
A basic, asynchronous TCP server
41 people like thisPosted: 13 years ago by Ryan Riley
A Uri parser using the Cashel library [1]. This implementation is using ArraySegment
Posted: 13 years ago by Ryan Riley
Generates a sequence using a sequence generator and Async.StartWithContinuations. This is an attempt at modeling the OWIN delegate structure in F#
6 people like thisPosted: 13 years ago by Ryan Riley
An initial attempt at creating a ByteString type based on the Haskell version.
4 people like thisPosted: 13 years ago by Ryan Riley
An iteratee that uses continuation-passing style as an optimization. There is no more discriminated union, and the signature should feel familiar to those using Async.StartWithContinuations.
5 people like thisPosted: 13 years ago by Ryan Riley
An implementation of call-with-current-continuation for Async.
2 people like thisPosted: 13 years ago by Ryan Riley
A Circular, or Ring, Buffer that flattens incoming arrays and allows consumers to take arbitrary-sized chunks. Improvements and suggestions welcome. Fork my gist at https://gist.github.com/1648579.
7 people like thisPosted: 12 years ago by Ryan Riley
Parameterizing pong allows us to do even more fun things. Here we use a few message types to allow stateful consumption of data sent by ping to its pongs.
3 people like thisPosted: 12 years ago by Ryan Riley
Lazily generate fizzbuzz results and provide a test function. Parameterize the inputs and predicates.
1 people like thisPosted: 10 years ago by Ryan Riley
Overrides the standard Web API ApiControllerActionInvoker with one that works with controller actions return F# Async<'T> results.
5 people like thisPosted: 9 years ago by Ryan Riley
This is the F# translation of the Scala program written for https://functional.works-hub.com/blog/Type-classes-from-OO-perspective. F# doesn't have implicits, so type classes don't work. However, it's interesting to see just how close you can come by passing an instance of the implementation. By flipping the parameters, you can use partial application to create type-specific functions. Here, we follow the use of the interface, but we could also use statically resolved type parameters to structurally infer different implementations.
4 people like thisPosted: 7 years ago by Ryan Riley