Questions tagged [webassembly]
WebAssembly (abbreviated Wasm) is a new portable, size- and load-time-efficient format suitable for compilation to the web.
webassembly
3,002
questions
0
votes
0
answers
13
views
How to debug WASM code without debug information?
I have a task to analyze the behavior of someone else's WASM code, for which there is no debug information. The code isn't complex, but there's a problem: in Chrome DevTools, you can't view memory by ...
0
votes
0
answers
20
views
How can I use Rusoto with WebAssembly
I am trying to set up an rust serverless function using the rusoto crates but am unable to build without the following error "run pkg_config fail: pkg-config has not been configured to support ...
0
votes
0
answers
17
views
Create a mmap-able index of a tar to load in WASM
We want to load contents of a tar file in WASM using the emscripten VFS packaging format. Right now we convert the tar file on the server into a data and metadata files according to the above VFS ...
0
votes
1
answer
46
views
What is the entropy source for this C function when compiled to .wasm using emscripten?
static inline void ed25519_randombytes(unsigned char *x,unsigned long long xlen)
{
int i;
if (ed25519_random_fd == -1) {
for (;;) {
ed25519_random_fd = open("/dev/urandom",...
1
vote
1
answer
28
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
61
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
23
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 ...
0
votes
0
answers
37
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 ...
0
votes
1
answer
22
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
16
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
65
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
38
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
25
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 = ...