gibbon-0.3: A compiler for operating on serialized data
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gibbon.L1.Examples

Synopsis

Documentation

add1Prog :: Prog1 Source #

The basic form of the add1 program where recursions happen immediately as arguments to the data-constructor.

exadd1BodLetRight :: Exp1 Source #

A more challenging case where recursions are performed right-to-left

add1ProgLetLeft :: Prog1 Source #

Add1 program with let bindings, recurring in left-to-right order.

add1ProgLetRight :: Prog1 Source #

Add1 program with let bindings, recurring in right-to-left order.

add1ProgChallenge :: Prog1 Source #

An even more challenging case where there is an (apparent) data dependency where x2 depends on y2.

add1ProgSharing :: Prog1 Source #

This program is a challenge because a packed value flows to two destinations.