You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #3080 we have added the ability to execute Noir functions in TypeScript environments.
Problem is it hardly matches the speed with running native TS code given its ACVM overheads.
Happy Case
We should create a tool for codegening arbitrary Noir functions into TS functions, where developers can then execute such functions natively in TS environments.
Savio-Sou
changed the title
Add ability to export noir functions to be called by acvm_js in typescript
Create a Noir --> TypeScript codegen tool
Dec 4, 2023
Problem is it hardly matches the speed with running native TS code given its ACVM overheads.
Just to be clear, this will have the exact same overheads as before. We're not transpiling ACIR into Javascript, just adding a more usable wrapper around it.
Problem
With #3080 we have added the ability to
execute
Noir functions in TypeScript environments.Problem is it hardly matches the speed with running native TS code given its ACVM overheads.
Happy Case
We should create a tool for codegening arbitrary Noir functions into TS functions, where developers can then execute such functions natively in TS environments.
For first step, we would have:
This would then make the bytecode for
foo
be available in a json file to b executed/simulated in typescript.This becomes a lot nicer once we migrate and finalize our typescript wrapper for the json file which will automaticallt generate the typescript types.
Tasks
noir_codegen
package #3392noir_codegen
#3533CompiledCircuit
from codegened TS #3589noir_codegen
#3592nargo export
command #3870noir_codegen
functions #3933noir-codegen
#4093Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: