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

Generic bundle transformers #404

Open
rachitnigam opened this issue Nov 28, 2023 · 0 comments
Open

Generic bundle transformers #404

rachitnigam opened this issue Nov 28, 2023 · 0 comments
Labels
C: language Component: the Filament language S: needs triage Status: Needs some more thinking before being actionable

Comments

@rachitnigam
Copy link
Member

It is currently impossible to write the following user-level program:

comp Flatten[W, N, M]<'G:??, 'L:??>(
  in[N][M]: for<i, j> ['G, 'L] W
) -> (
  out[N * M]: for<i> ['G, 'L] W
) where 'L > 'G {
  out{0..M*N} = in{0..N}{0..M}
}

There are a bunch of problems but the big one is that we do not allow 'L > 'G on the user-level component. A possible solution is allowing this when neither event requires @interface since it means we don't need to generate circuitry for them (which is not supported).

There are other problems where, if the bundles have dependent availabilities, we cannot pass them as inputs and its unclear if we can even pass ones with independent availabilities.

@rachitnigam rachitnigam added C: language Component: the Filament language S: needs triage Status: Needs some more thinking before being actionable labels Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: language Component: the Filament language S: needs triage Status: Needs some more thinking before being actionable
Projects
None yet
Development

No branches or pull requests

1 participant