3,059 questions
-2
votes
0
answers
38
views
Why does compiling to WebAssembly require enormous amount of tools and space? [closed]
I would like a way for users to be able to compile their own scripts to run as Web Assembly modules. The only way that's possible from the extensive research I've done is to require users to have ...
1
vote
0
answers
29
views
Wasmtime multi-value returns
It's a kind of odd that after spending a lot of time in attempt to figure out how to define a wasm module in rust it's still a mistery.
Here are the docs
https://docs.wasmtime.dev/examples-rust-multi-...
0
votes
0
answers
29
views
How to cleanup data to reuse ffmpeg.wasm instance
I have multiple files that I am trying to process back to back using ffmpeg.wasm. I have noticed that after around ~150 runs, a memory issue comes up: RuntimeError: memory access out of bounds. I ...
0
votes
1
answer
53
views
Do Rego policies compiled into WASM modules support `http.send`?
The OPA WASM documentation mentions that built-in functions like http.send are not natively supported by WASM.
However, I was able to successfully compile and evaluate WASM modules from Rego policies ...
2
votes
0
answers
57
views
How can I go about converting Node.js Add-On bindings in C++ to target compilation to WASM?
Context
There's an existing HTTP/3 and WebTransport library written exclusively for Node.js, using Node-API. The server implementation works with Chromium and Firefox as clients. node runs the server ...
0
votes
1
answer
48
views
Kotlin Multiplatform Wasm JS – Fixing Uncaught runtime errors: [object WebAssembly.Exception] when using viewModel() in Compose
I'm developing a Kotlin Multiplatform (KMP) project using JetBrains Compose Multiplatform, targeting Android, Desktop, iOS, and WebAssembly (wasmJs).
In composeApp/src/wasmJsMain/kotlin/org/example/...
1
vote
1
answer
76
views
Cannot use canvaskit-wasm outside of the unpkg CDN on my host machine
I'm trying to use canvaskit-wasm on my local machine, hosted with Python's HTTP server module. It seems that I can only use CanvasKit through unpkg with:
<script type="text/javascript" ...
1
vote
2
answers
77
views
How can I poll a Future from a Rust WASM app?
I am playing with WebXR and I would like to draw something that I fetch from the web.
The reqwest library is async and returns Futures. In my rendering loop I do not want to block until the Future is ...
0
votes
0
answers
15
views
How to enable wasm support in vuejs3 and vite
Well, I want to enable using wasm to write some sql.
I have fresh installation of Vuejs3 with Vite. And I'm trying to use sql.js package from here (https://www.npmjs.com/package/sql.js). I've ...
-1
votes
0
answers
64
views
How is it possible that my program which uses WebAssembly Globals seems to work in the Eclipse Lun3r browser on ReactOS 0.4.15?
So, ReactOS 0.4.15 has been released, and with it there came support for a few new Internet browsers, including the Eclipse Lun3r 33.3.3a1 browser. That's probably the most advanced browser that runs ...
1
vote
0
answers
32
views
How to read web.File content in Flutter WASM web app using package:web/web.dart?
I'm building a Flutter WASM web application and need to upload files to AWS S3 using presigned URLs. I'm using package:web/web.dart (not dart:html) and struggling to read the content of a web.File ...
1
vote
0
answers
22
views
Import interface/fuctions through WIT in JS Web Assembly Component Model WASM
I have a WIT compatible Web Assembly Component Model based module written in JAVASCRIPT/TYPESCRIPT and exposed as a WASM using jco and further transpiled to run in the browser. I have 2 questions in ...
0
votes
0
answers
32
views
Cant import scoped Javascript in Blazor Standalone WebAssembly
In the past I have already done this in InteractiveServer Blazor, which is to import {page}.razor.js in my razor page through IJSRuntime in the OnAfterRender step of the page lifecycle. as follows:
...
3
votes
0
answers
145
views
AssemblyScript and JavaScript share memory
When calling a wasm function, I want to avoid frequent copying of function parameters and return values, so I want to use shared memory, but the running results are different from what I expected. How ...
0
votes
1
answer
50
views
Add two different HTML Layout to Blazor WASM
I started a new project using Blazor WASM, I decided to create two group of pages for the frontend and the admin, I Created two different Layout.Razor pages and I copied all of my css and js files to ...