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

[ocaml-gen] rename macros and revert multi-declaration of custom types #195

Merged
merged 4 commits into from
Nov 1, 2021

Conversation

mimoo
Copy link
Contributor

@mimoo mimoo commented Oct 21, 2021

see #172 (comment)

tl;dr is that this is that declaring the same custom type multiple times is error-prone. I'm investigating another solution.

as for name changes:

  • OcamlGen -> ocaml_gen::Struct
  • ocaml_gen -> ocaml_gen::func
  • OCamlCustomType -> ocaml_gen::CustomType
  • OcamlEnum -> ocaml_gen::Enum

@mimoo mimoo requested review from mrmr1993 and jspada October 21, 2021 03:43
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2021

Codecov Report

Merging #195 (f32e5c2) into master (7c5bd58) will increase coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head f32e5c2 differs from pull request most recent head 40b8f05. Consider uploading reports for the commit 40b8f05 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #195      +/-   ##
==========================================
+ Coverage   88.91%   88.93%   +0.01%     
==========================================
  Files          74       74              
  Lines       18248    18207      -41     
==========================================
- Hits        16226    16192      -34     
+ Misses       2022     2015       -7     
Impacted Files Coverage Δ
circuits/plonk-15-wires/src/gate.rs 87.30% <ø> (ø)
circuits/plonk-15-wires/src/nolookup/scalars.rs 100.00% <ø> (ø)
circuits/plonk-15-wires/src/wires.rs 35.71% <ø> (ø)
circuits/plonk/src/scalars.rs 100.00% <ø> (ø)
dlog/commitment/src/commitment.rs 92.25% <ø> (ø)
dlog/plonk-15-wires/src/prover.rs 99.00% <ø> (+0.33%) ⬆️
dlog/plonk/src/prover.rs 97.94% <ø> (ø)
ocaml/ocaml-gen/derive/src/lib.rs 0.17% <0.00%> (+<0.01%) ⬆️
ocaml/ocaml-gen/src/lib.rs 1.58% <ø> (+0.09%) ⬆️
oracle/src/sponge.rs 90.78% <ø> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be94fe4...40b8f05. Read the comment docs.

row: CurrOrNext::Curr,
column,
};
let chacha_pattern = (0..4)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This diff looks very similar to the one from PR193

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is because of reformating issues :/ which will be fixed in one of the PR: #193

@mimoo mimoo force-pushed the mimoo/ocaml_custom2 branch 4 times, most recently from 2875e51 to 234692b Compare October 29, 2021 18:24
@mimoo
Copy link
Contributor Author

mimoo commented Oct 29, 2021

rebased

@mimoo
Copy link
Contributor Author

mimoo commented Oct 29, 2021

rebased

@mimoo mimoo merged commit 1d4b454 into master Nov 1, 2021
@mimoo mimoo deleted the mimoo/ocaml_custom2 branch November 1, 2021 21:24
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.

4 participants