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

Add missing JS binding functions #14

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

rbonichon
Copy link
Contributor

  • group example custom gates test functions together at the end
  • provide simple int64_of_int32 missing conversion function
  • add caml_fq_srs_add_lagrange_basis, whichs an updating function (no return value)

@rbonichon rbonichon requested a review from a team as a code owner May 8, 2023 19:49
Copy link
Member

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

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

thanks for adding these!

kimchi/js/bindings.js Outdated Show resolved Hide resolved
@rbonichon rbonichon force-pushed the rb/js-bindings-missing-functions branch from 839ca2a to 8c6be40 Compare May 8, 2023 20:22
- group *_example_* custom gates test functions together at the end
- provide simple int64_of_int32 missing conversion function
- add caml_fq_srs_add_lagrange_basis, whichs an updating function (no return value)
@rbonichon rbonichon force-pushed the rb/js-bindings-missing-functions branch from 8c6be40 to 5bb793e Compare May 9, 2023 10:01
@mitschabaude
Copy link
Member

This PR should specify what Mina / snarkyjs PR it is compatible with

Copy link
Member

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

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

I added a snarkyjs PR which includes these changes, to test them in CI: o1-labs/o1js#1001


// Provides: integers_uint64_of_uint32
// Requires: UInt64, caml_int64_of_int32
function integers_uint64_of_uint32(i) {
Copy link
Member

Choose a reason for hiding this comment

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

Makes sense to have this converter. However, I would rather forbid the use of uint64 in the code to avoid 64bits values as wasm supports only 32bits.

@dannywillems
Copy link
Member

LGTM, waiting for the CI

Base automatically changed from rb/wasm-clippify to main June 26, 2023 15:10
@mitschabaude mitschabaude merged commit 1c1b2e8 into main Jun 26, 2023
@mitschabaude mitschabaude deleted the rb/js-bindings-missing-functions branch June 26, 2023 15:18
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.

None yet

4 participants