WebAPIKit icon indicating copy to clipboard operation
WebAPIKit copied to clipboard

Try splitting modules

Open kateinoigakukun opened this issue 3 years ago • 2 comments

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

kateinoigakukun avatar May 03 '22 12:05 kateinoigakukun

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

MaxDesiatov avatar May 03 '22 12:05 MaxDesiatov

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

kateinoigakukun avatar May 03 '22 13:05 kateinoigakukun