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

Move stack switching logic into a new stack switching folder. #3987

Merged
merged 4 commits into from Jul 10, 2023

Conversation

hoodmane
Copy link
Member

This is a minor rearrangment.

I renamed "continuations" stuff to "stack_switching" and made a new folder for stack switching logic. I also added logic in esbuild.config.mjs to calculate which functions exported from stack_switching.mjs and automatically copy them to Module and into the Emscripten namespace. This makes unit testing a little neater since there is no modification of the Module object.

This is a minor rearrangment.

I renamed "continuations" stuff to "stack_switching" and made a new folder
for stack switching logic. I also added logic in esbuild.config.mjs to calculate
which functions exported from stack_switching.mjs and automatically copy them to
Module and into the Emscripten namespace. This makes unit testing a little neater
since there is no modification of the Module object.
Copy link
Member

@rth rth left a comment

Choose a reason for hiding this comment

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

One comment otherwise LGTM.

Makefile Outdated
rm -fr node_modules
shopt -s globstar && rm -fr src/**/*.o
Copy link
Member

@rth rth Jul 10, 2023

Choose a reason for hiding this comment

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

On my Ubuntu system,

zsh: command not found: shopt

so it's bash specific. Not sure if it's worth having bash-specific commands here.

Similarly, MacOS has zsh so it will not work there.

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 switched to using find -delete which should hopefully work more broadly.

@hoodmane
Copy link
Member Author

Thanks for the review @rth!

@hoodmane hoodmane merged commit 11827cf into pyodide:next Jul 10, 2023
6 of 8 checks passed
@hoodmane hoodmane deleted the stack-switching-folder branch July 10, 2023 18:35
hoodmane added a commit that referenced this pull request Jul 31, 2023
This is a minor rearrangment.

I renamed "continuations" stuff to "stack_switching" and made a new folder
for stack switching logic. I also added logic in esbuild.config.mjs to calculate
which functions exported from stack_switching.mjs and automatically copy them to
Module and into the Emscripten namespace. This makes unit testing a little neater
since there is no modification of the Module object.
hoodmane added a commit that referenced this pull request Sep 13, 2023
This is a minor rearrangment.

I renamed "continuations" stuff to "stack_switching" and made a new folder
for stack switching logic. I also added logic in esbuild.config.mjs to calculate
which functions exported from stack_switching.mjs and automatically copy them to
Module and into the Emscripten namespace. This makes unit testing a little neater
since there is no modification of the Module object.
hoodmane added a commit to hoodmane/pyodide that referenced this pull request Sep 15, 2023
…e#3987)

This is a minor rearrangment.

I renamed "continuations" stuff to "stack_switching" and made a new folder
for stack switching logic. I also added logic in esbuild.config.mjs to calculate
which functions exported from stack_switching.mjs and automatically copy them to
Module and into the Emscripten namespace. This makes unit testing a little neater
since there is no modification of the Module object.
hoodmane added a commit to hoodmane/pyodide that referenced this pull request Oct 19, 2023
…e#3987)

This is a minor rearrangment.

I renamed "continuations" stuff to "stack_switching" and made a new folder
for stack switching logic. I also added logic in esbuild.config.mjs to calculate
which functions exported from stack_switching.mjs and automatically copy them to
Module and into the Emscripten namespace. This makes unit testing a little neater
since there is no modification of the Module object.
hoodmane added a commit that referenced this pull request Oct 21, 2023
This is a minor rearrangment.

I renamed "continuations" stuff to "stack_switching" and made a new folder
for stack switching logic. I also added logic in esbuild.config.mjs to calculate
which functions exported from stack_switching.mjs and automatically copy them to
Module and into the Emscripten namespace. This makes unit testing a little neater
since there is no modification of the Module object.
lesteve pushed a commit to lesteve/pyodide that referenced this pull request Nov 13, 2023
…e#3987)

This is a minor rearrangment.

I renamed "continuations" stuff to "stack_switching" and made a new folder
for stack switching logic. I also added logic in esbuild.config.mjs to calculate
which functions exported from stack_switching.mjs and automatically copy them to
Module and into the Emscripten namespace. This makes unit testing a little neater
since there is no modification of the Module object.
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.

None yet

2 participants