wasm

WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable target for compilation of high-level languages like C/C++/Rust, enabling deployment on the web for client and server applications.
Here are 2,503 public repositories matching this topic...
fitDataset() expects a Dataset that produces elements of a certain shape, with matching batch sizes etc., and throws errors (from standardizeDataIteratorOutput()) when the conditions are not met. These errors should be tested.
It is awkward, but TypeScript officially supports using .js
in import specifiers, like so:
import {foo} from './path/to/some/file.js'
console.log(foo)
where ./path/to/some/file.js
does not actually exist, but th
JavaScript Request: Expose Texture methods getWidth(), getHeight(), getDepth(), getLevels(), etc.
Problem:
After using Engine.createTextureFromKtx/jpeg/Png, I need to query the texture width and height so I can generate proper UV coordinates for font display.
Proposed solution
Expose the Texture.getWidth(), getHeight(), etc. methods to get texture information. I currently only need width and height, but I can see usage cases for many of the other "getters" available in the C++ in
It would be nice to also have some sort of screenshot functionality for text mode too. A not-too-complicated way to do it may be extracting the text_screen
outerHTML to pop it into a data:text/html
with the necessary styles.
-
Updated
Sep 27, 2021 - Rust
-
Updated
Sep 19, 2021 - JavaScript
The following functions are currently missing:
-
acos
-
acosh
-
asin
-
asinh
-
atan
-
atanh
-
cos
-
cosh
-
log
-
log10
-
sin
-
sinh
-
sqrt
-
tan
-
tanh
Inspiration for how their implementation might look can be found in Modules/cmathmodule.c
(and Modules/clinic/cmathmodule.c.h
for arg
Summa
-
Updated
Sep 27, 2021 - C
-
Updated
Jun 25, 2021
-
Updated
Aug 17, 2021 - JavaScript
fuzzing: Use `wasm-encoder` rather than generating WAT text and then assembling it in dummy imports
In bytecodealliance/wasmtime#2497 (comment) we added support for generating nested modules, and we generate these modules by concatenating strings of WAT and then passing it to Module::new
which internally checks for WAT strings and assembles them into Wasm bytes if necessary.
We can make this more efficient, improving the number of test cases we fuzz in a
Current behavior
When I removed the status bar by adding those 4 lines in the style.xml
<item name="android:windowTranslucentStatus">false</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
Applying `VisibleBoundsPadding
Motivation
I am using the following pattern to efficiently initialize a large buffer inside wasm memory from JavaScript without copies (see #1079 for full motivation):
#[wasm_bindgen]
pub struct WasmMemBuffer {
buffer: Vec<u8>,
}
#[wasm_bindgen]
impl WasmMemBuffer {
#[wasm_bindgen(constructor)]
pub fn new(byte_length: u32, f: &js_sys::Function) -> Self {
When passing Wasm function to the host as a callback, it's passed as an index in the table.
Wasm3 needs to provide an API to call such functions.
-
Updated
Sep 25, 2021 - Rust
InputPassword style
Describe the bug
![image](https://user-images.githubusercontent.com/25119211/125054605-fc934600-e0d8-11eb
-
Updated
Sep 1, 2021 - Go
Most of the macros exported by seed are undocumented, see: https://docs.rs/seed/0.7.0/seed/#macros
It would be good if at least the most commonly used are documented with an example.
-
Updated
Aug 7, 2021
-
Updated
Sep 20, 2021 - C++
-
Updated
Sep 27, 2021 - Rust
- Organization
- WebAssembly
- Website
- webassembly.org
- Wikipedia
- Wikipedia
Yew has recently got support for keyed elements, but the documentation lacks any mention of them. A mention should be added in the website, the doc of
yew::virtual_dom::key::Key
should be