WebAssembly / WebAssembly/component-model
More options for deriving worlds
Nobody has claimed this yet.
- Dominant language
- WebAssembly
- Stars
- 1.4k
- Forks
- 130
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 15
Description
Currently one can use include to derive one world from another, however I've been finding myself wanting more ways:
include_imports- Likeinclude, but only includes importsinclude_exports- Likeinclude, but only includes exportsinclude_imports_exported- Likeinclude_importsexcept translates the imports to exportsinclude_exports_imported- Likeinclude_exportsexcept translates the exports to imports
(suggestions for better syntax/naming welcome)
For example, include_imports would be useful when one wants to make a library component that can link to another component and otherwise occupy the same world. And include_imports_exported would be useful when one wants to make a world for the implementation that components of another world need.
In my current projects, I'm finding myself effectively working around the lack of include_imports by splitting out worlds that only have imports and than having the main worlds and library worlds include them. And for the lack of include_imports_exported I'm manually duplicating and translating imports in one world to exports in another.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the issue's description of the existing include world derivation and the four proposed variants. Review the component model's current world, import, and export semantics, then determine the syntax and behavior for each form. Done means the proposal resolves naming and design questions and specifies all four derivation modes consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100