Comments (2)
I'm tempted to add a mode to package:ffigen that can scan a C header and generate package:wasm bindings. But it's tricky because the encoding of higher level types like strings depends on your target (eg WASI or Emscripten).
It's probably safer to just look at the wasm module's type info and generate some low level bindings. The conversion to higher level types can happen in a wrapper.
from wasm.
Rusts solution to this issue: https://rustwasm.github.io/wasm-bindgen/
from wasm.
Related Issues (20)
- WasmError: Missing import: function HOT 5
- Windows dart run wasm:setup fail HOT 1
- WasmError: This case is not (yet) supported. Please file an issue on pkg:wasm HOT 7
- Show wasm stack trace in exception thrown from wasm trap handler
- GitHub CI crash HOT 1
- Provide an explicit public API and hide internals from users. HOT 1
- NativeFinalizer HOT 7
- Multiprocessing use case. HOT 5
- flaky macos CI HOT 2
- Slow CI HOT 1
- Wasmer async module compilation.
- [ux] WASI
- [bindgen] functions starting with an underscore HOT 1
- Example projects are not easy to run HOT 2
- No JIT on iOS HOT 1
- Dart bindings via javascript transpilation/execution.
- iOS support has some problems HOT 1
- run Wasm-wasm_demo in android studio. show. this error "NDK not install"
- intent to discontinue HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm.