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

ZIR-236: Create a new Zirgen Standard Library #73

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jacobdweightman
Copy link
Contributor

[NOT URGENT FOR REVIEW]

It seems to me that there are four tiers of components, divided by importance and frequency of use:

  1. Built-ins: the core building blocks that can't be implemented in Zirgen itself (e.g. NondetReg)
  2. Preamble components: slight abstractions around built-ins that will almost certainly be used in every circuit (e.g. Reg)
  3. Standard components: components that are likely to be sufficiently useful across many circuits, but the user should "opt-in" (e.g. OneHot<N>, BitReg, etc)
  4. Everything else: circuit-specific things, "third party" component libraries, etc.

This PR takes a first pass at introducing a "standard library" for components of variety (3). The build system changes are minimal and this library isn't treated differently than others; the programmer still has to -I path/to/standard-library to use it. I leave that for future work, as it probably warrants discussions and possibly an RFC.

@github-actions github-actions bot changed the title Create a new Zirgen Standard Library ZIR-236: Create a new Zirgen Standard Library Nov 14, 2024
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.

1 participant