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
20
votes
1 answer

Blazor WebAssembly Environment Variables

I'm currently working on a .NET Standard 2.1 Blazor WebAssembly application. I try to include or exclude Stylesheets according to an environment variable. In .NET Core there are usually Environment Tag Helpers like in the following…
azzurro123
  • 521
  • 2
  • 10
  • 19
20
votes
3 answers

SQL on top of apache arrow in-browser?

I have data that is stored on a client's browser in-memory. For example, let's say the dataset is as follows: "name" (string), "age" (int32), "isAdult" (bool) "Tom" , 29 1 "Tom" , 14 …
David542
  • 104,438
  • 178
  • 489
  • 842
19
votes
3 answers

Compiling C# project to WebAssembly

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 to use C# instead JavaScript/TypeScript. Ideally I…
vcRobe
  • 1,671
  • 3
  • 17
  • 35
19
votes
2 answers

Compiling existing C# code to WebAssembly

Is it possible to compile existing C# code to WebAssembly (.wasm) so that no or nearly no code changes have to be done? Do I have to use Blazor for it or are their other possibilities?
Janine
  • 297
  • 3
  • 9
19
votes
2 answers

How to load .wasm file in React-Native?

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 'react-native-fs'; if (!global.WebAssembly) { …
19
votes
3 answers

How to bind object to