Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try splitting modules #30

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft

Try splitting modules #30

wants to merge 24 commits into from

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented May 3, 2022

One of the difficulties of splitting modules is that webidl files make circular references.
For example, dom.idl and html.idl reference each other.

Here is my basic idea to solve the problem without tuning idl files by hands:

  1. Analyze all *.idl files at once
  2. Build a dependency graph against type symbols
  3. Compute SCC to merge only circularly referenced symbols across idl files, then translate it into DAG
  4. Compact the graph by merging by source idl file names as much as possible.

The DAG looks like:
dag

@MaxDesiatov
Copy link
Contributor

I'm going to put my PRs on hold until you're done with this one, again sorry about the conflicts 😅

@kateinoigakukun
Copy link
Member Author

kateinoigakukun commented May 3, 2022

There was a lot more work and issues than I originally envisioned, so this PR is not meant to be merged in a near day. This is just for call for advice hehe. So this doesn't block the merge of other PRs

MaxDesiatov added a commit that referenced this pull request Aug 27, 2022
New `Module` type is added that specifies dependencies between modules manually.

More advanced approaches could be implemented in the future. For example, automated dependency resolution as investigated in #30.

Partially resolves #14.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants