Skip to content

Sharing #1

@bmsherman

Description

@bmsherman

let x = pi in x + x doesn't reuse work in the shared computation of pi. It reduces to pi + pi, which is

proc () -> do
  x1 <- pi -< ()
  x2 <- pi -< ()
  (+) -< (x1, x2)

whereas we would prefer

proc () -> do
  x <- pi -< ()
  (+) -< (x, x)

I'm not sure how we can do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions