Skip to content

Unbound arrays #5

@rengolin

Description

@rengolin

Rise seems to have only bound arrays, from literals. This is fine for small test cases but it gets annoying when writing functions that take in an array of any size and try to apply a map:

%map = rise.map #rise.nat<?> #rise.array<?, !rise.float> #rise.array<?, !rise.float>

Without unbound arrays, programs will either have to generate all variants (like templates) or inline everything to make sure all unbounded dimensions are defined at code generation, neither of which are generic enough.

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