Skip to content

Cheap but slow program #209

@uncomputable

Description

@uncomputable

I found a program that seems to exceed the expected runtime given its cost.

The program is constructed as follows:

f(0)     := iden
f(n + 1) := comp (take f(n)) (drop f(n))

Importantly, the type signature of f(n) differs depending on how it is used. Sharing happens after the program is constructed.

Let's build a C test vector that measures the runtime. The Elements test suite is inaccurate because it runs the same program multiple times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions