question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate Classes From .wasm File

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JasonBockcommented, May 3, 2021

I addressed this in the generator project I made, so I’ll consider this closed.

1reaction
JasonBockcommented, Apr 25, 2021

@galvesribeiro that is a very intriguing idea. @RyanLamansky I may just submit a PR on this in the near future 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found