Skip to content

feat(compiler): Upgrade to Binaryen v124#2333

Merged
ospencer merged 2 commits intograin-lang:mainfrom
spotandjake:spotandjake-binaryen-124
Nov 14, 2025
Merged

feat(compiler): Upgrade to Binaryen v124#2333
ospencer merged 2 commits intograin-lang:mainfrom
spotandjake:spotandjake-binaryen-124

Conversation

@spotandjake
Copy link
Member

@spotandjake spotandjake commented Nov 12, 2025

This upgrades to binaryen.ml v124.

@spotandjake spotandjake self-assigned this Nov 12, 2025
@spotandjake spotandjake force-pushed the spotandjake-binaryen-124 branch 5 times, most recently from be1efcb to 0cab29c Compare November 12, 2025 19:40
@spotandjake spotandjake force-pushed the spotandjake-binaryen-124 branch from 0cab29c to 7583c71 Compare November 12, 2025 20:32
@spotandjake spotandjake marked this pull request as ready for review November 12, 2025 20:33
@spotandjake spotandjake force-pushed the spotandjake-binaryen-124 branch from 7583c71 to f20e746 Compare November 13, 2025 00:41
@spotandjake spotandjake force-pushed the spotandjake-binaryen-124 branch from 7299393 to 7caf96c Compare November 13, 2025 01:32
"copy:js": "cp -f #{$GRAINC_JS_PATH} #{$GRAINDOC_JS_PATH} #{$GRAINFORMAT_JS_PATH} #{$GRAINLSP_JS_PATH} #{$CLI_BIN_DIR}",
"clean": "rm -rf #{self.root}/_esy",
"build:js": "esy b dune build @js --no-buffer #{os == 'windows' ? '-j 2' : ''}",
"build:js": "esy b dune build @js --no-buffer -j 2",
Copy link
Member Author

Choose a reason for hiding this comment

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

I lowered the number of builders as we were running into out-of-memory issues when building on Ubuntu, likely because binaryen has grown.

I decided to lower on all platforms because I noticed that we were actually building faster with fewer workers, even on macOS where there was enough RAM available, likely do to less memory pressure, causing less swap usage. I noticed similar behaviour when building locally previously. I saw macos build times go from ~24minutes to ~15minutes

I went with 2 as it's what we were using on Windows previously; however, it may make sense to play with this number a little more in a separate pr for optimum performance.

@ospencer ospencer changed the title feat(compiler): Upgrade to binaryen 124 feat(compiler): Upgrade to Binaryen v124 Nov 13, 2025
@ospencer ospencer added this pull request to the merge queue Nov 13, 2025
Merged via the queue into grain-lang:main with commit fafad72 Nov 14, 2025
12 checks passed
@github-actions github-actions bot mentioned this pull request Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants