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

feat!: Update libbinaryen to v105 #142

Merged
merged 14 commits into from
Mar 16, 2022
Merged

feat!: Update libbinaryen to v105 #142

merged 14 commits into from
Mar 16, 2022

Conversation

phated
Copy link
Member

@phated phated commented Mar 9, 2022

Closes #104

Once completed, this will update the underlying libbinaryen to v105.1.0 and switch out the virtual module for more standard js_of_ocaml externals.

This was a beast of an undertaking, so the review will probably take a while.

@phated phated requested a review from ospencer March 9, 2022 03:52
@phated phated force-pushed the phated/libbinaryen_105 branch 2 times, most recently from f18d443 to 8807ea4 Compare March 9, 2022 18:35
@phated phated marked this pull request as ready for review March 14, 2022 19:39
@phated
Copy link
Member Author

phated commented Mar 14, 2022

@ospencer this is ready for review!

@@ -98,6 +98,7 @@ caml_binaryen_element_segment_get_name(value _elem) {
CAMLreturn(caml_copy_string(BinaryenElementSegmentGetName(elem)));
}

// TODO: Expose to bindings
Copy link
Member

Choose a reason for hiding this comment

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

Should we do this now or no?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can't do it now because the JS version doesn't actually expose this at all! I was so happy to find that we didn't implement it 😅

Copy link
Member

Choose a reason for hiding this comment

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

Awk.

Copy link
Member

@ospencer ospencer left a comment

Choose a reason for hiding this comment

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

This looks great! When I initially looked this over, all of the implementations looked reasonable/correct, though of course the eyes tend to start glazing over after a certain point. I didn't see any obvious mistakes, so let's ship it! Do you think it's possible to run the Grain test suite in JS? It sounds possible but feels difficult 😛

@phated
Copy link
Member Author

phated commented Mar 16, 2022

I can give it a try with this new JSOO structure! But let's get this merged first. I'll try it before releasing the new version.

@phated phated merged commit 3c81209 into master Mar 16, 2022
@phated phated deleted the phated/libbinaryen_105 branch March 16, 2022 02:36
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.

Rewrite the JS bindings with JSOO externals
2 participants