Generate Classes From .wasm File
See original GitHub issueWhen you call Compile.FromBinary<>(), you need to specify an abstract class to represent the methods within the WebAssembly module. (Yes, I know you can use dynamic but I’d rather not 😃 ). It would be cool if there was something that would examine the module and emit a class for you so you don’t have to create that yourself. Maybe something along the lines of what the Grpc packages do by automatically generating the class files needed based on the .proto files in the project. Or, just a helper method you can run once, get the class file, and then use that from now on.
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (4 by maintainers)
Top Results From Across the Web
How to compile C++ classes to .wasm files for wasmer?
Check the following pull request: Enable accessing fields that are classes without copying. Using it, you can expose C++ classes as ...
Read more >Build your own WebAssembly Compiler
Code written in a wide variety of languages (Rust, C, C#, etc …) is compiled to WebAssembly that is delivered in a binary...
Read more >Classes in AssemblyScript
A hands-on introduction into WebAssembly ( Wasm ). Containing simple wasm examples and wasm tutorials on how to implement concepts and various tasks...
Read more >Importing a class from JS - The `wasm-bindgen` Guide
Now that we've exported a class to JS we'll want to also be able to import classes in Rust as well to invoke...
Read more >Hands-on with Java and Wasm
Compiling Java code to WebAssembly is an efficient way to get it running in a web browser, and you get a serious performance...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I addressed this in the generator project I made, so I’ll consider this closed.
@galvesribeiro that is a very intriguing idea. @RyanLamansky I may just submit a PR on this in the near future 😃