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

noir-compiler support for Nargo workspaces #3202

Open
alexghr opened this issue Nov 2, 2023 · 0 comments
Open

noir-compiler support for Nargo workspaces #3202

alexghr opened this issue Nov 2, 2023 · 0 comments

Comments

@alexghr
Copy link
Contributor

alexghr commented Nov 2, 2023

Currently @aztec/noir-compiler with the wasm backend supports compiling individual contracts. In order to achieve equivalence with Nargo it should support workspaces as well.

Until the wasm backend gets support for workspaces, we could either

  • build each contract sequentially (this could take a long time in big workspaces)
  • use worker threads or child processes to build contracts in parallel

There are two reasons we'd have to parallelize like this:

  • the wasm compilation relies on global state (initializeResolver) so it can't be changed while a contract is being compiled
  • running the wasm 'blocks' the event loop.

Original discussion: #2737 (comment)

@github-project-automation github-project-automation bot moved this to Todo in A3 Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant