Questions tagged [webassembly]

WebAssembly (abbreviated Wasm) is a new portable, size- and load-time-efficient format suitable for compilation to the web.

WebAssembly

WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.

Efficient and fast

The Wasm stack machine is designed to be encoded in a size- and load-time-efficient binary format. WebAssembly aims to execute at native speed by taking advantage of common hardware capabilities available on a wide range of platforms.

Safe

WebAssembly describes a memory-safe, sandboxed execution environment that may even be implemented inside existing JavaScript virtual machines. When embedded in the web, WebAssembly will enforce the same-origin and permissions security policies of the browser.

Open and debuggable

WebAssembly is designed to be pretty-printed in a textual format for debugging, testing, experimenting, optimizing, learning, teaching, and writing programs by hand. The textual format will be used when viewing the source of wasm modules on the web.

Part of the open web platform

WebAssembly is designed to maintain the versionless, feature-tested, and backwards-compatible nature of the web. WebAssembly modules will be able to call into and out of the JavaScript context and access browser functionality through the same Web APIs accessible from JavaScript. WebAssembly also supports non-web embeddings.

Resources

2772 questions
1
vote
1 answer

Inconsistent performance of Google's V8 executing WebAssembly

I'm trying to execute a rather trivial WebAssembly benchmark with Google's V8 engine (both in-browser using the current Version of Google Chrome (Version 83.0.4103.106, 64-bit) and via embedding V8 (Version 8.5.183) in a C++ program. All benchmarks…
fscheidl
  • 2,281
  • 3
  • 19
  • 33
1
vote
1 answer

receive 2-d array args as js.Value and want an array ([]js.Value)

I'm using "syscall/js" to export a Go-WebAssembly function to JavaScript. The function in Go is required to be like this: func x ( this js.Value, args []js.Value ) interface{} Now I want to pass a 2-d array from JavaScript to Go. I receive it (…
Xavier Yu
  • 11
  • 1
1
vote
1 answer

emcc won't run on Mac OSX 10.15, clang-10: error unknown argument: '-fignore-exceptions'

I have a simple hello.c file with the following contents: #include #include #include int main() { printf("hello wasm\n"); } I am trying to compile this into a .html with emscripten emcc command using: emcc…
suraj
  • 581
  • 7
  • 17
1
vote
1 answer

Can't load WASM in the browser

I'm using Windows 10 Pro I have this main.cpp test file: #include EMSCRIPTEN_KEEPALIVE const char* testFunc(const char* parameter) { return parameter; } Then, I compiled using: em++ .\main.cpp -s WASM=1 -s…
avi12
  • 2,000
  • 5
  • 24
  • 41
1
vote
0 answers

Running in assembly related Issues while publishing/compiling a blazor client application in release mode

I am getting below errors while trying to build/publish a blazer application (client version) in release mode. The application is running fine and is getting published as well in debug mode. Unhandled exception.…
user13624867
  • 225
  • 4
  • 14
1
vote
0 answers

Could OpenCV compile/use with WASI(WebAssembly System Interface)?

WASI (WebAssembly System Interface) is intended to bring WebAssembly outside the browser. I built a simple face recognition application with the eigenfaces example of OpenCV 4.3.0 (See:…
B.Lee
  • 11
  • 1
1
vote
0 answers

Playwright webkit can't run WebAssembly

I'm trying to run a webpage that calls a .wasm file in playwright webkit const { webkit } = require('playwright'); (async () => { const browser = await webkit.launch(); const page = await browser.newPage(); page.on("pageerror", err =>…
Mendy
  • 7,612
  • 5
  • 28
  • 42
1
vote
1 answer

How to use push notification in qt web Assembly

I am beginner in web assenbly and I want to use of push notification in qt web assenbly. How can I do it?
Mohammad reza Kashi
  • 321
  • 1
  • 5
  • 17
1
vote
1 answer

How to remove debug symbols from a WebAssembly file

I was looking at the browser console while running a wasm program. The warnings emitted shows that the program knows a whole lot about the source. I would like to remove all these and have a small, succinct binary. So given a file file.wasm, how do…
SabreFoxx
  • 13
  • 2
1
vote
0 answers

Unable to debug the blazor wasm project when I add a javascript file

I have a blazor wasm project with jsinterop to be able to scan qrcodes the project builds and works as expected, however i am unable to debug. I have narrowed it down to a single file, it actually happened with another js file for doing the same…
1
vote
2 answers

Webassemly memory management and pointers

I am using webassembly in order to do some calculation using a standard library. In webassembly we can pass only 32bit integers and 64 bits integers. That means that we can pass pointers to arrays as well. That's how we are able to return strings as…
Tito
  • 2,234
  • 6
  • 31
  • 65
1
vote
1 answer

how to use SQLITE in qt webassembly

I want to use sqlite in my application. I compile sqlite in desktop and it compile successfully but when I compile it with qt web-assembly I get ERROR: Unknown module(s) in QT: sql with emsdk 1.38.27-64bit.So I use emsdk 1.38.30-64bit with thread…
Niusha
  • 79
  • 1
  • 10
1
vote
1 answer

Docker not reflecting changes to html file

I'm building a Webassembly app and Docker does not reflect changes to html file. Before I build the Docker file I prune the system, hoping this would force a brand new build. Any pointers? FROM golang:alpine AS builder ENV GO111MODULE=on \ …
pigfox
  • 1,301
  • 3
  • 28
  • 52
1
vote
2 answers

URL Rewrite exceptions for Blazor WebAssembly Hosted deployment

During development, i have used Swagger on the server side of my Blazor WebAssembly App. Always launching (debug) using kestrel instead of IIS Express. Routing worked as expected, all my component routed properly and if i manually typed /swagger, i…
Carl Quirion
  • 765
  • 5
  • 25
1
vote
1 answer

Is it possible for a Blazor WebAssembly PWA to run a local desktop app on the user's file system?

I really doubt it but I figure it never hurts to ask... what I want to do is create a game matchmaking site that is capable of launching the actual games from within the web app. If not I guess I can create a client/server desktop app or something…
ekolis
  • 6,270
  • 12
  • 50
  • 101
1 2 3
99
100