-
Notifications
You must be signed in to change notification settings - Fork 58
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
Rust+WebAssembly Working Group Meeting #5 #149
Comments
Reminder that this meeting is happening tomorrow! Add your agenda items :) |
The time is perfect, i'll join this meeting. I can answer this question I found in the agenda:
First any feedback on the approach used would be great. I described the transformation here webpack/webpack#6433 (comment). Currently we have a blocking issue, i'm working on https://github.com/xtuc/webassemblyjs/tree/master/packages/wasm-edit to improve the robustness of the tool (some binary + transformation are still failling). |
Oh awesome thanks for the info @xtuc! Looking forward to seeing you soon :) FWIW I don't think any of LLD/Clang/Rust have the ability to import a global right now. For example this IR: @FOO = external global i32
define i32 @foo() {
start:
%0 = load i32, i32* @FOO, align 4
ret i32 %0
} generates this final binary:
In that sense we'd at least be totally workable landing support for the two bugs we have today (not working in chrome and webpack-dev-server caching too aggressively). Once the toolchain has support for importing/exporting globals though I'd love to help out with test cases/fixes where possible! |
@alexcrichton something like that WebAssembly/binaryen#1500? In my free time I'm working on the support in LLVM and Clang. Rust could probably take advantage of it. |
@xtuc I think that binaryen PR is interpreting the "assembly" (is that even the right name for it?) output of LLVM, right? We don't currently use Now it'd be awesome to get this working in LLVM/Clang for sure, this is a definite missing piece of functionality in Rust's wasm support today! |
Yes that's correct, my PR only uses the textual LLVM IR output ( I haven't looked into the object files for the wasm target yet but we can probably add it to the metadata in order to behave correctly during linking (lld). |
Hangouts link for this meeting: https://hangouts.google.com/call/vG6rIQOR0lQcHRMgZx5SAAEE |
Thanks for participating in the meeting, everyone! |
Our next meeting will be Thursday, May 3rd at 16:00 UTC.
Add agenda items here: https://paper.dropbox.com/doc/RustWebAssembly-WG-dcXi5F7Bqlvg10zd7dKve
I will post a hangouts link to this thread and on IRC ~15 minutes before we begin.
Anyone interested in Rust and WebAssembly is invited to join! Yes, that includes you!
The text was updated successfully, but these errors were encountered: