Skip to content
#

wasm

web-assembly logo

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 1,174 public repositories matching this topic...

webmaster128
webmaster128 commented Jan 20, 2020

It would be cool if ./node_modules/.bin/asinit . --yes would answer all questions with yes to allow for quick or automatic project setups of throw away projects.

Interface could work like npm init --yes:

$ npm help init
NPM-INIT(1)                                                        NPM-INIT(1)



NAME
       npm-init - create a package.json file

   Synopsis
         
ellemlabs
ellemlabs commented Dec 20, 2019

The following code compiles without problem:

func main() {
	ch := make(chan bool)
	js.Global().Call("setTimeout", js.FuncOf(func(this js.Value, args []js.Value) interface{} {
		println("sending")
		ch <- true
		println("sent")
		return nil
	}), 2000)
	println("waiting")
	<- ch
	println("done")
}

When executed in the browser, the following is outputted:

waiting
s
wasmer
CreatCodeBuild
CreatCodeBuild commented Apr 23, 2018

Great framework. I am amazed by how easy it is to set up.

I believe there are 2 kinds of docs which are missing:

  1. Tutorials and concepts explanations
  2. Discussion and articles of how its core is designed and implemented.

This first one is for users to quickly start to write applications. It has examples right now, but not enough. The communities can probably contribute examples slowly.

mstange
mstange commented Jul 5, 2019

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 {
  
uno
mathiversen
mathiversen commented Jul 18, 2019
  • There seems to be a bug when navigating to the catch_all route but not contributors, ex. localhost:7878/test. The current implementation panics using both rocket and actix as server.
  • Rocket currently has 404 for unknown routes and this should be added to the actix example as well.
giuliomoro
giuliomoro commented Jan 13, 2019

When you have two numerical constants with the same value, the svg shows them with the name of the first constant declared in the script.
This applies to both faust2svg and https://faust.grame.fr/tools/editor/

Example code:

gain1 = 0.4;
gain2 = 0.4;
process = _ : gain1 * _  : gain2 * _;

generates
<img width="463" alt="screen shot 2019-01-13 at 22 40 29" src="https://user-image

maackle
maackle commented Apr 19, 2019

admin/instance/remove could take an extra boolean clean parameter, which if true, also deletes the instance's storage.

Alternatively, add the option to admin/instance/add (perhaps calling it replace in this case), which will cause storage to be cleared if it already exists.

Use case:

During development, let's say I have been testing my DNA with a particular instance. Now I want to

Organization
WebAssembly
Website
webassembly.org
Wikipedia
Wikipedia

Related Topics

asmjs javascript
You can’t perform that action at this time.