webassembly Questions
1
I'm a relative newbie to WebAssembly, but I've been working with it and Emscripten for about a month now, and have a decent familiarity with the minimal build kits.
When it comes to debugging, I a...
Advancement asked 10/8, 2019 at 1:39
8
I have a c# WinForms app that I have been converting to Blazor Wasm. It needs to perform a set cpu-intensive calculations (i.e. no IO or UI interaction) after most user inputs. The calculations ent...
Sebi asked 28/11, 2020 at 17:7
4
I have the following dropdown menu:
public class object {
public other_object apple {get; set;}
...
public string stuff {get; set;}
...
}
public class other_object {
public string id {get; s...
Rutilant asked 4/12, 2019 at 13:0
5
Solved
I have a project based on the Blazor sample with a .Client, .Server and .Shared projects. I have a textfile data.txt on the server that I want to be able to read/write using standard StreamReader /...
Pop asked 28/3, 2019 at 22:38
3
Blocks can consume values from the stack and push results back to it, which is cool, but I cannot find any detail on how this works.
The spec for loop says (at 5) that the values are popped from th...
Muddle asked 26/3, 2021 at 2:45
3
Solved
I am wondering if, using C (or C++ or Rust) and javascript, I am able to do CRUD operations to a shared data structure. Using the most basic example, here would be an example or each of the operati...
Gladsome asked 23/5, 2021 at 1:44
3
Solved
Error publishing Blazor Webassembly with AOT (.Net 8.0) - Error :
Precompiling failed for ProjectTest\obj\Release\net8.0\wasm\for-publish\aot-in\aot-instances.dll.
C:\Program Files\dotnet\packs\Mic...
Mccusker asked 6/12, 2023 at 20:59
3
When providing callbacks to JavaScript using Closures, what's a better way to deal with avoiding freeing them? The wasm-bindgen guide suggests using .forget, but admits that that is essentially lea...
Forsythia asked 21/1, 2020 at 7:12
3
I'm trying to port my desktop app written in C and C++ to webassembly platform and am investigating if it is possible at all. One of important things the app does is communicate by sending and rece...
Salesin asked 29/6, 2017 at 7:52
3
I know that wasm doesn't have blocking so how would I do the equivalent. Or is there a different tool to use? I'm new to this so it could also be that my approach is completely off. I'm using wasm-...
Fulton asked 7/6, 2023 at 2:46
3
I have been trying to load a WebAssembly (.wasm) file - generated C++ code compiled to WebAssembly by Emscripten - in a React-Native app.
This is my code to fetch the .wasm file:
import fs from '...
Clubman asked 13/3, 2020 at 16:11
4
Solved
Is there any way to print text onto the window directly in web assembly instead of having to pass string data into javascript, or print to the console?
Sinusoid asked 7/7, 2017 at 16:9
1
I have a lazy loaded assembly that contains services that I need to register with the built in Dependency Injection implementation. How do I register these services so I can inject them as dependen...
Coping asked 30/11, 2020 at 19:43
3
Solved
I have written a C function that I am able to execute from Angular/TypeScript/JavaScript using WebAssembly:
testWebAssembly() {
Module.ccall("aCFunction", null, [], []); // takes a few seconds to...
Eleni asked 7/6, 2018 at 1:11
1
Solved
I am trying to work out how to call a JavaScript function using Rust and wasm-bindgen. Due to lack of browser support, I cannot use wasm-bindgen with ES6 modules together with a Web Worker.
As far ...
Crockery asked 7/9, 2020 at 20:2
2
Solved
I am trying to port my simple collision detection library from JavaScript to WebAssembly for speed. After looking up languages that compile to WASM, AssemblyScript seemed to be perfect as I only ne...
Soapsuds asked 18/4, 2022 at 3:13
5
Solved
I am unable to debug a WASM project in VS 2022, v17.3.6 do to unbound breakpoints. The breakpoints look fine when not running but become an empty circle with the warning sign inside when running th...
Peebles asked 26/10, 2022 at 17:35
1
Solved
everybody.
let rt = tokio::runtime::Runtime::new().unwrap();
This code doesn't work when I try to build wasm.
let rt = tokio::runtime::Runtime::new().unwrap();
| ^^^^^^^ could not find `Runtime` ...
Kondon asked 1/11, 2023 at 10:45
2
I wonder can I use Java and compile it to WASM (WebAssembly)?
The list https://webassembly.org/getting-started/developers-guide/ has no Java, Kotlin
GraalVM WASM project https://www.graalvm.org/re...
Lapides asked 6/7, 2021 at 6:55
4
I've read many articles about running wasm files in node.js. Whenever I test the code, It throws this error
[TypeError: WebAssembly.instantiate(): Import #0 module="wasi_snapshot_preview1" error...
Madelenemadelin asked 14/1, 2020 at 1:23
5
I'm trying to get access to an Iterator over the contents of a file uploaded via an input field.
I can pass the JS file into Wasm just fine via web-sys, but I cannot for the life of me figure out h...
Blase asked 11/6, 2021 at 23:42
1
Solved
So I am exploring the concept of storing WebAssembly inside the JavaScript file so it can all be bundled up in one shippable file. I did manage to make a working example of this where it stores the...
Arlindaarline asked 18/9, 2023 at 11:22
2
Solved
The examples I've seen show essentially this:
fetch('simple.wasm').then(response =>
response.arrayBuffer()
).then(bytes =>
WebAssembly.instantiate(bytes, {})
).then(result =>
result.in...
Summertree asked 20/7, 2018 at 23:16
5
I have recently started using WebAssembly for some of my projects. I am doing this because I heard that WASM is faster than JavaScript.
When I actually started my first WASM project, I realized tha...
Neodarwinism asked 12/1, 2020 at 22:12
3
I need to compile a C# project to WebAssembly and be able to call some methods from JavaScript.
I want to use it in an old ASP.NET MVC 4 application that needs to add some new features and I prefer...
Hydrology asked 24/12, 2021 at 16:14
1 Next >
© 2022 - 2024 — McMap. All rights reserved.