Python 标准库参考指南 3.11.10 1.1 WebAssembly platforms The WebAssembly platforms wasm32-emscripten (Emscripten) and wasm32-wasi (WASI) provide a subset of POSIX APIs. WebAssembly runtimes and browsers are sandboxed and have limited platforms depend on the Emscripten-SDK or WASI-SDK version, WASM runtimes (browser, NodeJS, wasmtime), and Python build time flags. WebAssembly, Emscripten, and WASI are evolving standards; some features like helpers on the server to proxy TCP through WebSockets; see Emscripten Networking for more information. WASI snapshot preview 1 only permits sockets from an existing file descriptor. • Some functions are stubs0 码力 | 2248 页 | 11.10 MB | 10 月前3
Python 标准库参考指南 3.11.10 1.1 WebAssembly platforms The WebAssembly platforms wasm32-emscripten (Emscripten) and wasm32-wasi (WASI) provide a subset of POSIX APIs. WebAssembly runtimes and browsers are sandboxed and have limited platforms depend on the Emscripten-SDK or WASI-SDK ver- sion, WASM runtimes (browser, NodeJS, wasmtime), and Python build time flags. WebAssembly, Emscripten, and WASI are evolving standards; some features helpers on the server to proxy TCP through WebSockets; see Emscripten Networking for more information. WASI snapshot preview 1 only permits sockets from an existing file descriptor. • Some functions are stubs0 码力 | 2399 页 | 11.19 MB | 10 月前3
Python 标准库参考指南 3.12 Reference, 发行版本 3.12.7 1.1.1 WebAssembly 平台 WebAssembly 平台 wasm32-emscripten (Emscripten) 和 wasm32-wasi (WASI) 分别提供了 POSIX API 的 一个子集。WebAssembly 运行时和浏览器都处于沙盒模式中并具有对主机和外部资源的受限访问权。任 何使用了进程、线程、网络、信号或其他形式的进程间通信 则会阻塞浏览器的事件循环。 Python 在 WebAssembly 平台上的特性与行为依赖于 Emscripten-SDK 或 WASI-SDK 的版本, WASM 运行时 (浏览器, NodeJS, wasmtime) 以及 Python 编译时旗标。WebAssembly, Emscripten 和 WASI 都是尚在不断演 化中的标准;某些特性例如网络可能会在未来被支持。 对于在浏览器上运行的 Python,用户可以考虑 的 TCP;请参阅 Emscripten Networking 了解详情。WASI snapshot preview 1 只允许来自现有文件描 述符的套接字。 • 某些函数是不执行任何操作的空壳或是始终返回硬编码的值。 • 有关文件描述符、文件访问权、文件所有权和链接的函数均受到限制并且不支持某些操作。例如, WASI 不允许具有绝对文件名的符号链接。 4 Chapter 1. 概述 CHAPTER20 码力 | 2253 页 | 11.81 MB | 10 月前3
Python 标准库参考指南 3.12 Reference, 发行版本 3.12.7 1.1.1 WebAssembly 平台 WebAssembly 平台 wasm32-emscripten (Emscripten) 和 wasm32-wasi (WASI) 分别提供了 POSIX API 的 一个子集。WebAssembly 运行时和浏览器都处于沙盒模式中并具有对主机和外部资源的受限访问权。任 何使用了进程、线程、网络、信号或其他形式的进程间通信 则会阻塞浏览器的事件循环。 Python 在 WebAssembly 平台上的特性与行为依赖于 Emscripten-SDK 或 WASI-SDK 的版本, WASM 运行时 (浏览器, NodeJS, wasmtime) 以及 Python 编译时旗标。WebAssembly, Emscripten 和 WASI 都是尚在不断演 化中的标准;某些特性例如网络可能会在未来被支持。 对于在浏览器上运行的 Python,用户可以考虑 的 TCP;请参阅 Emscripten Networking 了解详情。WASI snapshot preview 1 只允许来自现有文件描 述符的套接字。 • 某些函数是不执行任何操作的空壳或是始终返回硬编码的值。 • 有关文件描述符、文件访问权、文件所有权和链接的函数均受到限制并且不支持某些操作。例如, WASI 不允许具有绝对文件名的符号链接。 4 Chapter 1. 概述 CHAPTER20 码力 | 2253 页 | 11.81 MB | 10 月前3
The Zig Programming Language 0.11.0 Documentationresult is 3 47.2. WASI Zig's support for WebAssembly System Interface (WASI) is under active development. Example of using the standard library and reading command line arguments: wasi_args.zig 1 const {s}\n", .{ i, arg }); 11 } 12 } Shell $ zig build-exe wasi_args.zig -target wasm32-wasi Shell $ wasmtime wasi_args.wasm 123 hello 0: wasi_args.wasm 1: 123 2: hello A more interesting example would list of preopens from the runtime. This is now supported in the standard library via std.fs.wasi.PreopenList : wasi_preopens.zig 1 const std = @import("std"); 2 const fs = std.fs; 3 4 pub fn main() !void0 码力 | 238 页 | 7.80 MB | 1 年前3
Python 标准库参考指南 3.13 Reference, 发行版本 3.13.0 1.1.1 WebAssembly 平台 WebAssembly 平台 wasm32-emscripten (Emscripten) 和 wasm32-wasi (WASI) 分别提供了 POSIX API 的 一个子集。WebAssembly 运行时和浏览器都处于沙盒模式中并具有对主机和外部资源的受限访问权。任 何使用了进程、线程、网络、信号或其他形式的进程间通信 则会阻塞浏览器的事件循环。 Python 在 WebAssembly 平台上的特性与行为依赖于 Emscripten-SDK 或 WASI-SDK 的版本, WASM 运行时 (浏览器, NodeJS, wasmtime) 以及 Python 编译时旗标。WebAssembly, Emscripten 和 WASI 都是尚在不断演 化中的标准;某些特性例如网络可能会在未来被支持。 对于在浏览器上运行的 Python,用户可以考虑 的 TCP;请参阅 Emscripten Networking 了解详情。WASI snapshot preview 1 只允许来自现有文件描 述符的套接字。 • 某些函数是不执行任何操作的空壳或是始终返回硬编码的值。 • 有关文件描述符、文件访问权、文件所有权和链接的函数均受到限制并且不支持某些操作。例如, WASI 不允许具有绝对文件名的符号链接。 1.1.2 移动平台 Android0 码力 | 2246 页 | 11.74 MB | 10 月前3
Python 标准库参考指南 3.13 Reference, 发行版本 3.13.0 1.1.1 WebAssembly 平台 WebAssembly 平台 wasm32-emscripten (Emscripten) 和 wasm32-wasi (WASI) 分别提供了 POSIX API 的 一个子集。WebAssembly 运行时和浏览器都处于沙盒模式中并具有对主机和外部资源的受限访问权。任 何使用了进程、线程、网络、信号或其他形式的进程间通信 则会阻塞浏览器的事件循环。 Python 在 WebAssembly 平台上的特性与行为依赖于 Emscripten-SDK 或 WASI-SDK 的版本, WASM 运行时 (浏览器, NodeJS, wasmtime) 以及 Python 编译时旗标。WebAssembly, Emscripten 和 WASI 都是尚在不断演 化中的标准;某些特性例如网络可能会在未来被支持。 对于在浏览器上运行的 Python,用户可以考虑 的 TCP;请参阅 Emscripten Networking 了解详情。WASI snapshot preview 1 只允许来自现有文件描 述符的套接字。 • 某些函数是不执行任何操作的空壳或是始终返回硬编码的值。 • 有关文件描述符、文件访问权、文件所有权和链接的函数均受到限制并且不支持某些操作。例如, WASI 不允许具有绝对文件名的符号链接。 1.1.2 移动平台 Android0 码力 | 2242 页 | 11.73 MB | 10 月前3
The Zig Programming Language 0.12.0 DocumentationThe result is 3 WASI Zig's support for WebAssembly System Interface (WASI) is under active development. Example of using the standard library and reading command line arguments: wasi_args.zig const print("{}: {s}\n", .{ i, arg }); } } Shell $ zig build-exe wasi_args.zig -target wasm32-wasi Shell $ wasmtime wasi_args.wasm 123 hello 0: wasi_args.wasm 1: 123 2: hello A more interesting example would list of preopens from the runtime. This is now supported in the standard library via std.fs.wasi.Preopens : wasi_preopens.zig const std = @import("std"); const fs = std.fs; pub fn main() !void { var0 码力 | 241 页 | 7.37 MB | 1 年前3
The Zig Programming Language 0.5.0 Documentationfrom C Header File C Pointers Exporting a C Library Mixing Object Files WebAssembly Freestanding WASI Targets Style Guide Whitespace Names Examples Source Encoding Keyword Reference Keyword: pub elfiamcu, tvos, watchos, mesa3d, contiki, amdpal, hermit, hurd, wasi, emscripten, zen, uefi, }; pub const Arch = union(enum) { arm: Arm32, armeb: The result is 3 WASI Zig's support for WebAssembly System Interface (WASI) is under active development. Example of using the standard library and reading command line arguments: wasi.zig const std =0 码力 | 224 页 | 5.80 MB | 1 年前3
The Zig Programming Language 0.8.1 Documentationinstance.exports.add; add(1, 2); }); $ node test.js The result is 3 WASI Zig's support for WebAssembly System Interface (WASI) is under active development. Example of using the standard library and std.debug.print("{}: {s}\n", .{ i, arg }); } } $ zig build-exe args.zig -target wasm32-wasi $ wasmtime args.wasm 123 hello 0: args.wasm 1: 123 2: hello A more interesting example would be This is now supported in the standard library via std.fs.wasi.PreopenList: preopens.zig const std = @import("std"); const PreopenList = std.fs.wasi.PreopenList; pub fn main() !void { var general_purpose_allocator0 码力 | 234 页 | 6.01 MB | 1 年前3
共 27 条
- 1
- 2
- 3













