GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — bpo-40280: Add Tools/wasm with helpers for cross building (GH-29984) by tiran · Pull Request #29984 · python/cpython Conversation
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This will definitely make experimenting with Emscripten based CPython a lot easier!
I have a few suggestions/comments but overall this looks good.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
The binary size looks really great! Though with the number of things disabled, it will probably grow over time... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
a3797c0 to
6a103d9
Compare
|
With I'm able to shrink the core to about 6 MB The The largest 25 files are: @brettcannon now is a good time to discuss what modules belong in a minimum stdlib. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Wow that's a great reduction in size! I played with thin lto and for some reason it greatly increases the binary size (to 21MB!). I guess inlining makes the build a lot bigger. One other idea I had which gives small gains in binary size is compiling with -Os, which seems to not make much of a difference vs -Oz. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Actually it is less. I think I introduced a regression in GH-30001. makesetup is dropping too many modules from the final binary. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
59d8c8e to
218aef5
Compare
218aef5 to
f933b91
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| ## wasm32-emscripten build | ||
|
|
||
| Cross compiling to wasm32-emscripten platform needs [Emscripten](https://emscripten.org/) | ||
| tool chain and a build Python interpreter. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| tool chain and a build Python interpreter. | |
| tool chain and a built Python interpreter. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
build here is I believe a reference to the autotools/configure --build argument. (Same for line 11 below).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That is correct. In lack of a better term I introduced the term "build Python"/
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My brain just keeps reading "build" as a verb instead of an adjective. 😄
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Brett Cannon <[email protected]>
Co-authored-by: Brett Cannon <[email protected]>
CPython upstream now has a config.site for WASM `and make python.html`. See: python/cpython#29984 Signed-off-by: Christian Heimes <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.