sambarnes / noir-by-example Goto Github PK
View Code? Open in Web Editor NEWan introduction to noir, with simple examples
Home Page: https://noir-by-example.org
License: Apache License 2.0
an introduction to noir, with simple examples
Home Page: https://noir-by-example.org
License: Apache License 2.0
In comptime
example, you said that
// cannot be mutable tho, so this would fail???
let mut bad_var: comptime Field = 3;
But looks like mutable is ok, the error is unused variable bad_var
. using it e.g. assert(bad_var == 3);
will work
So comptime Field
can be mutable apparently?
also new
https://noir-lang.org/dev/standard_library/options
can probs yoink from the example there and just add a smol test
https://noir-lang.org/dev/modules_packages_crates/workspaces
these look new, probs worth a blurb on it like we have for the modules / submodules
maybe in the same page to keep it simple
Hi there,
I just tried to get started with noir-by-example but was getting the following error when using nargo test --show-output
: Error: Missing 'name' field in /noir-by-example/circuits/examples/hello-world/Nargo.toml
I believe this is related to the latest version of Noir (I am using 0.9.0) requiring a name
and type
in the Nargo.toml files. When adding the below to the Nargo.toml in the hello-world example, the test passes without error:
name = "hello world"
type = "bin"
I am planning to go through all examples over the coming days and could then make a PR with this adjustment for all examples. Just wanted to already highlight it here in case anyone else encounters the same problem.
all the examples worked fine without code changes
but the more built up gadgets might need some work on 0.11.1 and beyond
can see tests failing in ci on main
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.