Skip to content

Conversation

@lourd
Copy link
Contributor

@lourd lourd commented Apr 29, 2020

As discussed in #10697, we're removing the MODULARIZE_INSTANCE build option for these reasons:

  • Making a singleton instance is easy enough for users on their own using the MODULARIZE option
  • It complicates the existing MODULARIZE handling in a non-trivial way, making development and maintenance more difficult.

If you use this build option, please let us know! We may re-add it in the future after reworking the MODULARIZE option, work which has been started in #10697.

Louis DeScioli added 3 commits April 29, 2020 17:30
Removes all references to MODULARIZE_INSTANCE, as well as the tests
and sub-test runs that covered the behavior. Simplified the logic in
some places that had to check for MODULARIZE but not MODULARIZE_INSTANCE
Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

Oh yeah! I'm loving all the code deletion thats getting done these days.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Thanks @lourd !

Please add a mention to the changelog as well.

I'd suggest adding to the overview here, and to the changelog, that we may reintroduce something like MODULARIZE_INSTANCE eventually, if there is demand, and after we finish the major reworking of MODULARIZE.

In particular, originally MODULARIZE_INSTANCE was literally just a few lines of code to add an instance creation, but clearly after reading the removed code here it ended up quite complex! Maybe we can figure out a way to do it in a simple way in the future (again, only if there's demand, and after finishing the new MODULARIZE).

@kripken
Copy link
Member

kripken commented Apr 29, 2020

We should make some effort to see if there are still use cases for this. While it seems like it should be easy for people to live without this, maybe we're missing something. We should at least wait a few days before landing it, and should post to the mailing list as well. (I can do that if you don't want to.)

@lourd
Copy link
Contributor Author

lourd commented Apr 29, 2020

Totally, sounds good. If you could please post to the mailing list about it that'd be great, I've not done that before.

@kripken
Copy link
Member

kripken commented May 4, 2020

Ok, I posted on the mailing list, and no responses in 5 days. No concerns here either, so let's land it!

@kripken kripken merged commit 7d01378 into emscripten-core:master May 4, 2020
@lourd lourd deleted the bye-modularize-instance branch May 4, 2020 21:46
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