Questions tagged [webassembly]
WebAssembly (abbreviated Wasm) is a new portable, size- and load-time-efficient format suitable for compilation to the web.
webassembly
2,996
questions
-1
votes
2
answers
100
views
Webassembly as 32bit and 64bit
webassembly emitted from emscripten is 32bit and it can be 64bit. The target device for emscripten is Browsers. Why will it even depend on 32bit ,64bit architectures , as the browser interacts with ...
0
votes
1
answer
106
views
Blazor .NET 8 - How to know where to perform dependency injection (Server side and client side)
I have a problem with the standard Blazor template that I've expanded the content with more pages.
From the standard template, I want to call an external API (with my own base address). This page ...
0
votes
0
answers
41
views
SharedArrayBuffer is not defined & SyntheticBaseEvent
thank you for your help with my problem.
I am using FFmpeg.wasm on Next.js to compress videos when users upload them. I then send the videos to a server and save them on AWS S3. For the client side, I'...
0
votes
1
answer
18
views
Is there any way to prevent the creation of `package_xxx` directory in Uno?
When building the output, Uno creates a package_xxx folder. The docs mention that there is a MSBuild WasmShellOutputPackagePath variable set but I would rather have a constant folder name (eg. ...
0
votes
0
answers
8
views
Prevent Uno BrowserEmbed mode from messing up HTML
When using BrowserEmbeded mode Uno generates embdeded.js that loads the WASM. But the generated code contains unrequired HTML elements:
const html = "<div id='uno-body' class='container-fluid ...
0
votes
0
answers
33
views
Cannot import a wasm node module
I have tried to import a wasm node module from this GitHub link:
(async ()=>global.gp = await require('@sagemath/pari')())(
)
but it did not work and I got this error:
TypeError: Failed to ...
-1
votes
1
answer
41
views
Can't deploy application or retrieve existing applications in WasmCloud
I am trying to deploy a new application in the wasmcloud using the following command
wash app deploy wadm.yaml
It gives the following error,
Error making model request: no responders: no responders
...
2
votes
1
answer
161
views
How you can link a Rust library with C/C++ and wasm-bindgen for the wasm32-unknown-unknown target?
Title.
What are the specific steps to compile and link C/C++ and Rust under the same WASM binary for wasm32-unknown-unknown while using wasm-bindgen?
Context
wasm32-unknown-emscripten is a legacy ...
1
vote
0
answers
57
views
Webassembly WASM is too slow compared with SH shell
I have basic C program (in below) and converting to WASM using emcc to .wasm file.
#include <stdio.h>
int main() {
// Iterate from 1 to 10
for (int i = 1; i <= 10000000; ++i) {
...
0
votes
1
answer
51
views
wasmtime example doesn't run
I am currently exploring the add example for wasm component which is wasi-0.2, from wasmtime component doc diligently following their example, unfortunately it doesn't run
#[allow(warnings)]
mod ...
2
votes
0
answers
87
views
MSAL Authentication downstream API (Azure Function) Blazor Web assembly (WASM) troubles
I have an azure function as a downstream api that i want to connect to my blazor (wasm) web app.
I have 2 app registrations - 1 for the web application (to authenticate users) and 1 for the downstream ...
0
votes
0
answers
39
views
Prevent redundant WASM file downloads when using Mediapipe HandLandmarker and FaceLandmarker
I'm working with the Mediapipe library to initialize both HandLandmarker and FaceLandmarker in my web application. I noticed that the WASM file is being downloaded twice—once for each landmarker. I ...
0
votes
0
answers
129
views
Unable to build flutter web using --wasm flag (flutter 3.22)
When I build the web normally with:
flutter build web
The build is created without any issue. But when I try to build it with the new wasm flag:
flutter build web --wasm
Error states:
Error: Dart ...
0
votes
0
answers
24
views
Unity WebGL Wasm Files return 500 through Nginx on Cloud Run
Our website is hosted with Nginx through a docker container in Cloud Run.
We are trying to add a WebGL built game (created through Unity) onto our website.
Unfortunately, it seems that the wasm file ...
1
vote
0
answers
283
views
Error When Compiling Flutter Web Application with WASM Support: "Dart library 'dart:html' is not available on this platform
I'm currently working on a Flutter web application using the latest version (3.22). I've integrated several packages that rely on the dart:html library. Now, I want to compile my application with ...