Skip to content

Conversation

@sbc100
Copy link
Member

@sbc100 sbc100 commented Oct 22, 2025

Its good to have an option for this by I don't see why it should be the default.

@sbc100 sbc100 requested a review from kripken October 22, 2025 23:01
@sbc100 sbc100 force-pushed the single_file branch 2 times, most recently from 3431971 to 4913727 Compare October 22, 2025 23:41
@kripken
Copy link
Member

kripken commented Oct 22, 2025

I kind of think it's nice for library providers to give you a single file: just binaryen.js or such. Still, I don't feel strongly, but we should probably check to see how disrupting this change would be for our users.

@sbc100
Copy link
Member Author

sbc100 commented Oct 22, 2025

Thats why we provide the EMSCRIPTEN_ENABLE_SINGLE_FILE thought right? I'm updated the comment for this option to make to clear what the purpose is and why you might want to enable it.

@kripken
Copy link
Member

kripken commented Oct 22, 2025

The flag is good for people building manually, but will this change not affect our own builds? Do we need to flip it in ci to avoid changing what we ship?

@sbc100
Copy link
Member Author

sbc100 commented Oct 23, 2025

Yes if we are shipping a distribut-able version of binaryen.js then yes, perhaps we want to consider using that flag there. I'll take a look

@sbc100
Copy link
Member Author

sbc100 commented Oct 23, 2025

It looks like we are shipping binaryen-version_124-node.tar.gz.. for the node case I think having a separate file makes sense since there are not hosting issues to worry about.

I don't see a distributed versions of binaryen.js for the web that we (binaryen) maintains or ship. I think that is all done externally, right?

@sbc100
Copy link
Member Author

sbc100 commented Oct 23, 2025

It looks like we are shipping binaryen-version_124-node.tar.gz.. for the node case I think having a separate file makes sense since there are not hosting issues to worry about.

I don't see a distributed versions of binaryen.js for the web that we (binaryen) maintains or ship. I think that is all done externally, right?

e.g in https://github.com/AssemblyScript/binaryen.js/? They may choose or use or not use this setting independently of our default.

@kripken
Copy link
Member

kripken commented Oct 23, 2025

Yes, I guess that's easily changed there. Worth giving them a heads up I think, but otherwise lgtm

Its good to have an option for this by I don't see why it should
be the default.
@sbc100
Copy link
Member Author

sbc100 commented Oct 23, 2025

Head up filed: AssemblyScript/binaryen.js#107

@sbc100 sbc100 disabled auto-merge October 23, 2025 23:57
@sbc100 sbc100 merged commit 61924cd into main Oct 23, 2025
16 checks passed
@sbc100 sbc100 deleted the single_file branch October 23, 2025 23:57
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.

3 participants