Comments (3)
Hi, thanks for the issue!
-
This is primarily a Dart package. Could you explain how is the interaction with Javascript? You don't need much Javascript to use this package. However, the same wasm module could be reused on both languages. Could you explain more of what you mean?
-
You can find more information in their documentation. However I think you could do it by using
StreamSink
as an argument to a Rust function. Within this package we provide a way to run function from threaded wasm modules asynchronously.
You can see the latest code and multiple packages examples that use wasm_run in this PR #14
from wasm_run.
Hi, thanks for the issue!
- This is primarily a Dart package. Could you explain how is the interaction with Javascript? You don't need much Javascript to use this package. However, the same wasm module could be reused on both languages. Could you explain more of what you mean?
- You can find more information in their documentation. However I think you could do it by using
StreamSink
as an argument to a Rust function. Within this package we provide a way to run function from threaded wasm modules asynchronously.You can see the latest code and multiple packages examples that use wasm_run in this PR #14
Thanks for quick response.
- As code speak louder and clearer, let's me show you some codes :). The
surrealdb.wasm
is built bywasmpack
and thewasm-bindgen
will produce a JavaScript bindings (index.js) and a wasm module (index_bg.wasm). A single-page application or static html need to use the JavaScript bindings in order to interact with the wasm module, please take a look on the code here. I managed to integrate the JavaScript bindings and wasm module of surrealdb.wasm into a Flutter Web app using package:js. My question: How thewasm_run
package able to make the surrealdb.wasm run across platforms such Android, iOS, Linux, Windows, including Web with/without JavaScript? - Could you elaborate more on the statement
Within this package we provide a way to run function from threaded wasm modules asynchronously
? Better with code snippets.
I will look into PR #14.
Please advise. Thank you.
from wasm_run.
Related Issues (13)
- Add binary version validation
- Test multiple modules concurrently and disposeMethodWasmRunModuleId
- Test atomics
- remove unused getMemoryDataPointer, getMemoryData, readMemory, writeMemory
- test getMemoryType, getTableType, growTable, fillTable
- WIT generator configuration for named vs positional parameters in code generation.
- return null in `toJson` if the inner value is not an Option instead of always returning `{"none":null}`
- ToWasmSerializable interface and `toWasm` documentation comment
- Previous binaries are not working with flutter_rust_bridge: 1.82.0 HOT 8
- `isVoidReturn` should be exposed HOT 1
- Command missing: `dart run wasm_run:setup` HOT 3
- Publish wasm_wit_component to pub.dev HOT 2
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_run.