Pat Hickey

Results 236 comments of Pat Hickey

Sorry that tripped you up. That README was written in 2019 when wasm-bindgen and the ideas of interface types were radically different. Its use of wasm-bindgen is super out of...

I like the term `handle`. But rather than change the name of `fd`, I'd prefer to keep the `fd` type, and have its kind (meaning, the type of the type)...

The wasmtime repo's WASI test suite uses Rust as the source language, which fails by panicking. It will print messages to stdout and eventually hit the `unreachable` opcode. Our test...

I think "instance" would be more clear than "store" unless there is some meaningful difference between them in this context. I'm very familiar with the sense of store used in...

It is called "store" in the WASM spec because the term is commonly found in the literature when describing the semantics of a language. http://matt.might.net/articles/cesk-machines/ is a pretty accessible example...

At the moment, we're bound by the LLVM wasm32 ABI for return values after the first to be passed in by reference. The multiple return value (multi-value) proposal is part...

The `witx` crate has a programmatic description of the lowering, but we dont render that into the docs. There's no particular reason why we couldn't. https://docs.rs/witx/0.8.7/witx/struct.InterfaceFunc.html#method.core_type

Sockets are not available in WASI yet, but there is a proposal in #312 that will likely be merged and available in runtimes in the near future. I'm not aware...

The tests themselves live here: https://github.com/bytecodealliance/wasmtime/tree/main/crates/test-programs/wasi-tests/src/bin and their harness is here: https://github.com/bytecodealliance/wasmtime/tree/main/crates/test-programs/tests/wasm_tests I'm currently in the middle of some work to renovate these tests and their harness, though, so I...

WebAssembly linear memory pages are 64KiB in size, and there is no way to support smaller allocations (or page sizes). The page size was selected to ensure that all modern...