Skip to content

Conversation

@spotandjake
Copy link
Member

@spotandjake spotandjake commented Oct 26, 2025

This updates a bunch of our downstream depencies moving us from binaryen.ml, 0.26.0 to 0.27.0 along with ocaml 5.

This also fixes building on the latest version of macos.

Closes: #2321

Resolves: #2255 and #1909

@spotandjake spotandjake self-assigned this Oct 26, 2025
@spotandjake spotandjake added the admin Issues related to workflow, automation, and contributor documentation label Oct 26, 2025
@spotandjake spotandjake changed the title feat: Upgrade Binaryen and Ocaml and downstream libraries feat: Upgrade to ocaml 5, binaryen.ml 0.27.0 and various other deps. Oct 29, 2025
@spotandjake spotandjake marked this pull request as ready for review October 29, 2025 17:08
@spotandjake
Copy link
Member Author

@hhugo Pinging as I know you were waiting for the jsoo update included in this pr.

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.

Going to mark this as a chore, but glad that we finally made it here!

@spotandjake spotandjake changed the title feat: Upgrade to ocaml 5, binaryen.ml 0.27.0 and various other deps. chore: Upgrade to ocaml 5, binaryen.ml 0.27.0 and various other deps. Oct 29, 2025
@ospencer ospencer changed the title chore: Upgrade to ocaml 5, binaryen.ml 0.27.0 and various other deps. chore: Upgrade to ocaml 5, binaryen.ml 0.27.0 Oct 29, 2025
@ospencer ospencer enabled auto-merge October 29, 2025 17:17
Copy link
Member Author

@spotandjake spotandjake left a comment

Choose a reason for hiding this comment

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

Just some comments for people doing reviews.


let setup_colors = () =>
Misc.Color.setup @@
Misc.Style.setup @@
Copy link
Member Author

Choose a reason for hiding this comment

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

Small code change do to an api change.

let buf = Buffer.create(64);
let ppf = Format.formatter_of_buffer(buf);
Misc.Color.set_color_tag_handling(ppf);
Misc.Style.set_tag_handling(ppf);
Copy link
Member Author

Choose a reason for hiding this comment

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

Small code change do to an api change.

"smallest_grain_program",
"",
6503,
6059,
Copy link
Member Author

Choose a reason for hiding this comment

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

Our smallest program size got reduced after upgrading to binaryen.ml, 0.27.0 as the optimizations were improved slightly.

Copy link
Member

@marcusroberts marcusroberts left a comment

Choose a reason for hiding this comment

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

I welcome our new OCaml 5 overlord!

@ospencer ospencer added this pull request to the merge queue Oct 29, 2025
Merged via the queue into grain-lang:main with commit dc1b04b Oct 29, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

admin Issues related to workflow, automation, and contributor documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grain fails to build on latest version of macos

3 participants