Skip to content

Index spaces feel inconsistent about what they might or might not contain #11

Closed
@alexcrichton

Description

@alexcrichton

Personally I get confused about the various index spaces that are introduced in the component model:

  • Type index space - this includes all interface types, component types, module types, etc. This, however, cannot name module instance types.
  • Module index space - this includes only defined core wasm modules
  • Component index space - this includes only defined components
  • Function index space - this includes all of core wasm functions, lifted functions, and lowered functions
  • Instance index space - this includes both module instances and component instances

Personally I keep getting lost about which index space includes what. For example just now I wasn't sure if modules and components were in the same index space because their instances are in the same index space.

Would it be possible to separate these index spaces? For example could the function and index spaces be split between module/component types?

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