Splitting repos #6225
Replies: 4 comments 34 replies
-
An example of the TS/JS unsync is |
Beta Was this translation helpful? Give feedback.
-
Agreed that we are in an awkward position atm. As background, we generate js/wasm here for the same reason e.g. the wabt repo does: it was easy to add, and in the same repo it's easy to keep in sync. I would personally be ok either moving the JS from here to another repo, or moving the JS fully here. Both have advantages. I do think automation of the C and JS APIs might be a possible reason to do everything in this repo, but that would require some investigation probably. |
Beta Was this translation helpful? Give feedback.
-
Hi there. Any progress on the thinking ? I believe status quo is the worst option. |
Beta Was this translation helpful? Give feedback.
-
I guess the reason for having TypeScript in this project is because it's a better way to produce JS bindings. I personally think all language bindings should sit under the WebAssembly org, and preferably within the binaryen repo, simply because that's the best way to keep things in sync. The purpose of this discussion is to understand how it affects governance. Notably, it might require evolving from a centralized governance to a decentralized one (where experts are in charge of approvals in specific sub-areas). If that's not acceptable, then let's not do it.
@phated I think you might want to have a closer look ? Precisely, my proposal produces a very lean wasm wrapper, almost the same as the one you proposed (check this vs this) and I believe it wouldn't require any additional work or additional tooling. The typescript bindings live alongside, not within, and they are in no way mandatory. |
Beta Was this translation helpful? Give feedback.
-
Following up on #6192 and #6224, that are both trying, in opposite ways, to address the issue of the TypeScript API not being in sync with the JavaScript API, itself not being in sync with the C++ API.
The opposite ways are:
What appears from various comments is 2 things:
It smells like a perfect setup for an unmaintained API... despite the talent and goodwill of maintainers
Do we need a different governance, where the repo for the JS wrapper of the WebAssembly of the C++ API is managed by its users rather than authors who have little or no interest in it ?
To clarify the goals of such a repo:
Ideally, that repo would live in the WebAssembly org, but I suspect it might take months to reach consensus on that...
I'll happily create that repo (and transfer it later to WebAssembly org) if users are supportive...
Beta Was this translation helpful? Give feedback.
All reactions