Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Describe JS API for GC #45

Merged
merged 9 commits into from
Apr 5, 2019
Merged

Describe JS API for GC #45

merged 9 commits into from
Apr 5, 2019

Conversation

lukewagner
Copy link
Member

This PR moves the stub "JS API" section out of MVP.md into a new MVP-JS.md that defines the JS API in terms of the JS Typed Objects proposal.

Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great explainer!

@lukewagner
Copy link
Member Author

Anyone else want to comment before merging? (Say, @titzer or @ajklein?) Of course the entire design here is still tentative (like MVP.md) and I added a note to the top saying as much, so we can revisit these choices after merging as we get some more experience using/implementing.

Copy link
Member

@binji binji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting read, thanks! Just one comment

@titzer
Copy link
Contributor

titzer commented Nov 12, 2018

I've read most of this PR but I need a day or two to chew on the part about nominal types and importing.

@lukewagner lukewagner assigned lukewagner and titzer and unassigned lukewagner Dec 12, 2018
@titzer
Copy link
Contributor

titzer commented Apr 4, 2019

Ok, I've looked through this again and refreshed myself on it. I think it is sufficiently baked that we should land and iterate on it, particularly around the nominal/structural subtyping issues. I don't see any reason to hold it up for that.

So, lgtm, and sorry for the long delay on this.

@lukewagner
Copy link
Member Author

Thanks for the looking through this. Agreed we'll want to continue iterating on the structural/nominal design.

@lukewagner lukewagner merged commit dfd037d into master Apr 5, 2019
@lukewagner lukewagner deleted the add-js-api branch April 5, 2019 00:31
rossberg pushed a commit that referenced this pull request Feb 24, 2021
The order of the `table.init` and `memory.init` immediates should be the index followed by the reserved byte (which is a placeholder for the table or memory index). This matches ordering of immediates in `call_indirect` (type index, followed by table index reserved byte).
rossberg pushed a commit that referenced this pull request Feb 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants