Recent snippets

Popular snippets

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    106 people like this

    Posted: 14 years ago by Tao Liu

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    109 people like this

    Posted: 15 years ago by Tomas Petricek

  • Implementing active objects with a MailboxProcessor

    Mailbox processors can easily be used to implement active objects. This example shows how to do that with a reusable wrapper type and minimal boilerplate code in the actual class definitions. Supports both asynchronous calls and synchronous calls. For the latter case, exceptions are automatically propagated back to the caller.

    92 people like this

    Posted: 15 years ago by Wolfgang Meyer

Snippets by tags

monad (24) web (29) agent (20) computation builder (17) design patterns (18) parsing (28) f# (43) tutorial (17) html (16) mailboxprocessor (27) wpf (20) json (16) reflection (19) lazy (20) async (98) staging (18) quotations (21) dsl (23) sequence (32) math (35)

View all...

Database contains 3208 snippets out of which 1719 is public.