PyConChina2022-上海-在浏览器中运行 Python-韩骏needed, all in browser environment How? Standing on the Shoulders of Giants: • WebAssembly/WASM (https://webassembly.org/) • Emscripten (https://emscripten.org/): Compile your existing projects written (https://pyodide.org/en/stable/): A Python distribution for the browser and Node.js based on WebAssembly. How it works? How it works for more Interpreted Languages? Great minds think alike • https://github in the Integrated Terminal Debugpy with WebAssembly (proposal) https://github.com/microsoft/debugpy/wiki/Debugpy-with-Webassembly-(proposal) WebAssembly is the future! Thanks! 感谢观看0 码力 | 13 页 | 1.79 MB | 1 年前3
Python 标准库参考指南 3.11.10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.1 WebAssembly platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 内置函数 5 3 内置常量 Reference, 发行版本 3.11.10 1.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 behavior of Python on WebAssembly platforms depend on the Emscripten-SDK or WASI-SDK version, WASM runtimes (browser, NodeJS, wasmtime), and Python build time flags. WebAssembly, Emscripten, and WASI are0 码力 | 2248 页 | 11.10 MB | 10 月前3
Python 标准库参考指南 3.11.10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1.1 WebAssembly platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 内置函数 5 glibc 2.27 or newer. 1.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 behavior of Python on WebAssembly platforms depend on the Emscripten-SDK or WASI-SDK ver- sion, WASM runtimes (browser, NodeJS, wasmtime), and Python build time flags. WebAssembly, Emscripten, and WASI0 码力 | 2399 页 | 11.19 MB | 10 月前3
Python 标准库参考指南 3.12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.1 WebAssembly 平台 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 内置函数 5 3 内置常量 Python Library Reference, 发行版本 3.12.7 1.1.1 WebAssembly 平台 WebAssembly 平台 wasm32-emscripten (Emscripten) 和 wasm32-wasi (WASI) 分别提供了 POSIX API 的 一个子集。WebAssembly 运行时和浏览器都处于沙盒模式中并具有对主机和外部资源的受限访问权。任 何使用了进程 I/O。其他阻塞式操作如sleep() 则会阻塞浏览器的事件循环。 Python 在 WebAssembly 平台上的特性与行为依赖于 Emscripten-SDK 或 WASI-SDK 的版本, WASM 运行时 (浏览器, NodeJS, wasmtime) 以及 Python 编译时旗标。WebAssembly, Emscripten 和 WASI 都是尚在不断演 化中的标准;某些特性例如网络可能会在未来被支持。0 码力 | 2253 页 | 11.81 MB | 10 月前3
Python 标准库参考指南 3.12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.1 WebAssembly 平台 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 内置函数 5 3 内置常量 Python Library Reference, 发行版本 3.12.7 1.1.1 WebAssembly 平台 WebAssembly 平台 wasm32-emscripten (Emscripten) 和 wasm32-wasi (WASI) 分别提供了 POSIX API 的 一个子集。WebAssembly 运行时和浏览器都处于沙盒模式中并具有对主机和外部资源的受限访问权。任 何使用了进程 I/O。其他阻塞式操作如sleep() 则会阻塞浏览器的事件循环。 Python 在 WebAssembly 平台上的特性与行为依赖于 Emscripten-SDK 或 WASI-SDK 的版本, WASM 运行时 (浏览器, NodeJS, wasmtime) 以及 Python 编译时旗标。WebAssembly, Emscripten 和 WASI 都是尚在不断演 化中的标准;某些特性例如网络可能会在未来被支持。0 码力 | 2253 页 | 11.81 MB | 10 月前3
Python 标准库参考指南 3.13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.1 WebAssembly 平台 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1.2 移动平台 . . Python Library Reference, 发行版本 3.13.0 1.1.1 WebAssembly 平台 WebAssembly 平台 wasm32-emscripten (Emscripten) 和 wasm32-wasi (WASI) 分别提供了 POSIX API 的 一个子集。WebAssembly 运行时和浏览器都处于沙盒模式中并具有对主机和外部资源的受限访问权。任 何使用了进程 I/O。其他阻塞式操作如sleep() 则会阻塞浏览器的事件循环。 Python 在 WebAssembly 平台上的特性与行为依赖于 Emscripten-SDK 或 WASI-SDK 的版本, WASM 运行时 (浏览器, NodeJS, wasmtime) 以及 Python 编译时旗标。WebAssembly, Emscripten 和 WASI 都是尚在不断演 化中的标准;某些特性例如网络可能会在未来被支持。0 码力 | 2246 页 | 11.74 MB | 10 月前3
Python 标准库参考指南 3.13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.1 WebAssembly 平台 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1.2 移动平台 . . Python Library Reference, 发行版本 3.13.0 1.1.1 WebAssembly 平台 WebAssembly 平台 wasm32-emscripten (Emscripten) 和 wasm32-wasi (WASI) 分别提供了 POSIX API 的 一个子集。WebAssembly 运行时和浏览器都处于沙盒模式中并具有对主机和外部资源的受限访问权。任 何使用了进程 I/O。其他阻塞式操作如sleep() 则会阻塞浏览器的事件循环。 Python 在 WebAssembly 平台上的特性与行为依赖于 Emscripten-SDK 或 WASI-SDK 的版本, WASM 运行时 (浏览器, NodeJS, wasmtime) 以及 Python 编译时旗标。WebAssembly, Emscripten 和 WASI 都是尚在不断演 化中的标准;某些特性例如网络可能会在未来被支持。0 码力 | 2242 页 | 11.73 MB | 10 月前3
共 7 条
- 1













