Recent snippets

Popular snippets

  • 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

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    100 people like this

    Posted: 15 years ago by Neil Carrier

  • Chain of responsibility II

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

    106 people like this

    Posted: 15 years ago by Tao Liu

Snippets by tags

generic programming (17) tryfsharp (48) computation builder (17) quotations (21) html (16) dsl (23) web (29) recursion (33) kata (17) lazy (20) list (56) math (35) tutorial (17) array (22) mailboxprocessor (27) algorithms (25) regex (17) sequences (48) lists (15) f# (43)

View all...

Database contains 3209 snippets out of which 1719 is public.