Questions tagged [webassembly]
WebAssembly (abbreviated Wasm) is a new portable, size- and load-time-efficient format suitable for compilation to the web.
webassembly
3,005
questions
0
votes
0
answers
10
views
How can I store a value on the stack at a constant address in the memory in Webassembly?
I have a value on the stack, and I want to store it at a constant address in memory. Would the operation take the address from the stack first, I could put the address on the stack and store the value ...
3
votes
1
answer
54
views
How to use string slices in Rust targeting WebAssembly
I've developped a library in Rust to parse RTF content. I've initially targeted x86 architectures. So I have use lots of string slices (&str) to reference to the original source without copying ...
0
votes
0
answers
21
views
extract wasmcloud provider and run it in standalone wasmtime runtime [closed]
We are trying to create a wasm app running on wasmtime directly, which uses redis as a key-value store. Currently wasi-keyvalue wit interface has no standard implementation. We'd like to bring ...
-2
votes
0
answers
33
views
how to use EventListener on Rust WebAssembly? [closed]
I can't find any documentation or anything that can show how to work with button click in rust-wasm. I tried to read the documentation, but there are only methods for |event: web_sys::MouseEvent| ...
0
votes
0
answers
34
views
Convert Rust (Wasm-Game-Of-Life style app) to single embedded html page
I was following the guide at: https://rustwasm.github.io/book/game-of-life/introduction.html
I had a lot of trouble getting it to work. Much of this had to do with the contents of the www directory ...
-2
votes
0
answers
18
views
How to convert DOCX files to PDF on browser with javascript or webassembly [closed]
Is this possible to convert docx files to pdf files on browser with javascript or webassembly without using backend or an api? Entirely on the client-side/browser.
0
votes
1
answer
20
views
Enable OnClick on AdornmentText in MudBlazor
<MudTextField AdornmentColor="Color.Primary" AdornmentText="AText" OnAdornmentClick="AdornmentChange" Margin="Margin.Dense" Adornment="Adornment.End&...
0
votes
0
answers
23
views
Cookie not working with webkit using Leptos
I'm working on an app using Leptos as the framework, I need to set some cookies but for some reason the code I use works on Chromium and Firefox, but fails on WebKit.
use leptos::*;
use wasm_bindgen::...
0
votes
0
answers
14
views
How to Implement a Brush Feature in LiveCharts on blazor web assembly to Analyze Detailed Data in a Selected Range?
[enter image description here][1]I'm currently using the LiveCharts library to render temperature data charts on my website. I would like to implement a feature that allows users to select a specific ...
1
vote
1
answer
60
views
How can I call a WebAssembly function in C?
I have a C file runtime.c like this:
#include <stdio.h>
extern int _5();
int main(int argc, char const * argv[]) {
printf("%i", _5());
return 0; }
And I have a WAT file 5....
0
votes
0
answers
34
views
Unable to have clang-cl use wasm-ld as the linker
I never seem to be able to get clang-cl to link with wasm-ld instead of the default lld linker.
CMakeLists.txt
cmake_minimum_required(VERSION 3.18.0)
project(wasm_test)
set(CMAKE_LINKER "C:/...
0
votes
0
answers
12
views
How to use a WASM binary in an NPM package using Rollup
Github Repository to reproduce issue: https://github.com/kyledecot/rollup
I have three packages:
C -> B -> A
Package C is a react component library that wraps package B. Package B contains a ...
0
votes
0
answers
23
views
Wasm works in dev but during build Wasm file is lost
I am working with a wasm library from Manifold-3d. I am able to import it during dev, but in the build directory this gets lost.
import init from "./built/manifold?init";
let newWasm = ...
1
vote
0
answers
46
views
Loading .wasm file compiled from Rust gives "CompileError: wasm validation error: at offset 184: function body too big"
I was trying to create my web assembly module using Rust`s wasm-pack and use it within the .html file. I tried to use replit.com to generate the .wasm .
I created a new blank repl, installed rustup ...
0
votes
0
answers
34
views
Blazor (or vanilla C#) to WASM for showing a console application on a webpage
"That's odd. Why are you doing this?" I just want to know if it's possible. Of course there's alternatives, as there is to everything. This is 100% just a proof of concept.
I have a simple ...