-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
I am trying to implement a component text/binary parser, and a lot of things are confusing for me. These are validated examples.
(component $C
(type s32)
(instance (export "inline" (type 0)))
)
What kind of component does the instance create? $C?
(component
(type (component
(import "x" (instance $I (export "f" (func))))
(alias export $I "f" (func))
))
)
For me a type should contain only types or some descriptors, but it seems any mutable objects can be added a to (non-mutable?) type.
The most confusing part is how instances are connected? E.g. the (func (param "X" (list (list s32)))) is the import and export of two components, and the import side wants to call this function. What should happen? How this is represented in core module side? How the data is transferred?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels