Snippets created by Nick Palladinos

  • Hughes's FuncList

    A FuncList is a "list-like" datatype with constant time append (represented as a function of cons-lists). The implementation is based on a convenient computation builder.

    1 people like this
    Posted: 11 months ago by Nick Palladinos

  • Hughes's CPSFuncList

    A CPS version of FuncList, in order to avoid blowing the stack.

    3 people like this
    Posted: 11 months ago by Nick Palladinos

  • Functional Unparsing SQL

    A combinator based DSL for composing type-safe parameterized sql queries. Inspired by Olivier Danvy's "Functional Unparsing" paper.

    8 people like this
    Posted: 10 months ago by Nick Palladinos

  • Norvig's Spelling Corrector

    A line-by-line translation of Norvig's original Python code. An attempt to view F# as a "typed" Python.

    4 people like this
    Posted: 10 months ago by Nick Palladinos

  • Erik Lippert's Comma Quibbling

    An old solution of mine to Erik Lippert's Comma Quibbling challenge. I really like this snippet because it shows that with F# we can hack elegant but also fast code.

    1 people like this
    Posted: 9 months ago by Nick Palladinos

  • Async based MapReduce

    Async is a very versatile structure, which has been used to compose CPU/IO bound computations. So it is very tempting to implement a MapReduce function based on Async and borrowing ideas from the theory of list homomorphisms.

    7 people like this
    Posted: 9 months ago by Nick Palladinos

  • Scrap Your Boilerplate

    Scrap Your Boilerplate with the help of F#. Based on the original paper by Ralf Laemmel and Simon Peyton Jones.

    6 people like this
    Posted: 8 months ago by Nick Palladinos

  • Monadic Retry

    A Monad for composing computations with retry logic. (Useful when we work with Cloud Services)

    6 people like this
    Posted: 7 months ago by Nick Palladinos

  • Polyvariadic fixpoint

    Polyvariadic fixpoint combinator in F# (heavily inspired by Haskell)

    2 people like this
    Posted: 5 months ago by Nick Palladinos

  • n-ary Seq.map

    A pattern for creating n-ary Seq.map functions.

    2 people like this
    Posted: 4 months ago by Nick Palladinos

  • n-ary Seq.map (Numerals)

    A pattern for creating n-ary Seq.map functions, based on numerals.

    2 people like this
    Posted: 4 months ago by Nick Palladinos

  • Bananas in F#

    A pattern for programming with generic folds (catamorphisms). Based on the classic "Functional Programming with Bananas, Lenses, Envelopes and Barbed Wire" (1991) (Meijer, Fokkinga, Paterson).

    6 people like this
    Posted: 3 months ago by Nick Palladinos

  • Dining philosophers (Joinads)

    A simple and declarative solution based on Joinads.

    5 people like this
    Posted: 2 months ago by Nick Palladinos

  • Lazy Xml

    A Lazy Xml structure for processing large xml documents.

    6 people like this
    Posted: 1 months ago by Nick Palladinos

  • Scrap Your Boilerplate (with class)

    A typecast free experiment in Generic Programming. Inspired by "Scrap Your Boilerplate (with class)".

    4 people like this
    Posted: 10 days ago by Nick Palladinos