Skip to content

Enable string builtins with SHARED_WASMGC - #27473

Open
tlively wants to merge 1 commit into
shared-wasmgc-pthread-createfrom
wasm-wasmgc-string-builtins
Open

Enable string builtins with SHARED_WASMGC#27473
tlively wants to merge 1 commit into
shared-wasmgc-pthread-createfrom
wasm-wasmgc-string-builtins

Conversation

@tlively

@tlively tlively commented Aug 1, 2026

Copy link
Copy Markdown
Member

And also imported string constants. Update every location that compiles a Wasm module to pass the necessary compileOptions.

And also imported string constants. Update every location that compiles a Wasm module to pass the necessary compileOptions.
@tlively
tlively requested a review from sbc100 August 1, 2026 06:00
Comment thread test/test_other.py
(call $print_int (call $length (global.get $msg)))
(call $print_int (call $length (call $fromCharCode (i32.const 65))))
)
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I wonder if this could be written in assembly? (Thus avoiding the need to wasm-merge?) If not, I wonder how hard it would be to enable llvm assembly to support this?

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.

Almost, or even C given that clang nominally supports externrefs. The thing that prevents it from working in this case is that we're using shared externrefs in the import signatures to test the use of strings allocated on the shared heap. Clang definitely doesn't support that.

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