Skip to content

Update componentize-py to 0.22.1#85

Merged
posborne merged 1 commit into
mainfrom
upgrade-componentize-py
Apr 13, 2026
Merged

Update componentize-py to 0.22.1#85
posborne merged 1 commit into
mainfrom
upgrade-componentize-py

Conversation

@posborne
Copy link
Copy Markdown
Member

This update includes a few small fixes and tweaks in upstream; more noticeably, however, it includes some changes that reduce the size of the wasm we generate (mostly by stripping bundled .so modules).

Other cargo dependencies also received bumps to the current latest versions. In the future, we can hopefully move to pointing at crates.io or tags for componentize-py, but for now that isn't available.

Before:

Permissions Size User         Date Modified Name
.rw-r--r--@  43M paul.osborne 10 Apr 13:47  backend-requests.composed.wasm
.rw-r--r--@  43M paul.osborne 10 Apr 13:47  bottle-app.composed.wasm
.rw-r--r--@  50M paul.osborne 10 Apr 13:47  flask-app.composed.wasm
.rw-r--r--@  50M paul.osborne 10 Apr 13:47  game-of-life.composed.wasm

After:

.rw-r--r--@  21M paul.osborne 10 Apr 13:50  backend-requests.composed.wasm
.rw-r--r--@  21M paul.osborne 10 Apr 13:50  bottle-app.composed.wasm
.rw-r--r--@  27M paul.osborne 10 Apr 13:50  flask-app.composed.wasm
.rw-r--r--@  27M paul.osborne 10 Apr 13:50  game-of-life.composed.wasm

This update includes a few small fixes and tweaks in upstream;
more noticeably, however, it includes some changes that reduce
the size of the wasm we generate (mostly by stripping bundled
.so modules).

Other cargo dependencies also received bumps to the current
latest versions.  In the future, we can hopefully move to
pointing at crates.io or tags for componentize-py, but for
now that isn't available.

```
Before:

Permissions Size User         Date Modified Name
.rw-r--r--@  43M paul.osborne 10 Apr 13:47  backend-requests.composed.wasm
.rw-r--r--@  43M paul.osborne 10 Apr 13:47  bottle-app.composed.wasm
.rw-r--r--@  50M paul.osborne 10 Apr 13:47  flask-app.composed.wasm
.rw-r--r--@  50M paul.osborne 10 Apr 13:47  game-of-life.composed.wasm

After:

.rw-r--r--@  21M paul.osborne 10 Apr 13:50  backend-requests.composed.wasm
.rw-r--r--@  21M paul.osborne 10 Apr 13:50  bottle-app.composed.wasm
.rw-r--r--@  27M paul.osborne 10 Apr 13:50  flask-app.composed.wasm
.rw-r--r--@  27M paul.osborne 10 Apr 13:50  game-of-life.composed.wasm
```
@posborne posborne requested a review from erikrose April 10, 2026 19:06
Copy link
Copy Markdown
Member

@erikrose erikrose left a comment

Choose a reason for hiding this comment

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

Great to glean the fruits of the new stuff! I just want to make sure the import wiggles don't make it in unless they're stable now. I generally see the wiggles upon re-generating the stubs.

import weakref

from componentize_py_types import Result, Ok, Err, Some
from ..imports import async_io
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I've found that, unfortunately, the order of imports in stubs is unstable. I'd prefer to not keep committing changes that wiggle them back and forth unless we can show it's stable now. (Maybe we should run a fixer over them in the interrim.)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is actually changing due to changes in upstream to hopefully fix that issue: bytecodealliance/componentize-py@81d582a

@posborne posborne merged commit 9c59ee0 into main Apr 13, 2026
1 of 5 checks passed
@posborne posborne deleted the upgrade-componentize-py branch April 13, 2026 18:33
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.

2 participants