Python in Azure Functions 基于Python的Azure Functions实践 赵健Python in Azure Functions 基于Python的Azure Functions实践 赵健 - Microsoft 目录 CONTENTS Python 在 Azure 中无处不在 粘合剂 – Azure Functions Azure Functions 实践 Python 在 Azure 中无处不在 IEEE Spectrum’s sixth annual interactive Dev Tools Azure DevOps Azure NoteBook 运行 Python 代码 VM App Service Functions AKS ACI Azure Batch Notebook 连接 & 集成 Azure服务 Functions 认知服务 CosmosDB Event Grid Blob … Python 应用在Azure中的多种方式 Cloud-Optimized Cost control and Operations model Azure Azure 粘合剂 – Azure Functions Serverless in Azure – FaaS 是 Serverless 架构的核心 什么是 Azure Functions .NET, Node, Java, Docker, PHP, Ruby, Python Staging & deployment0 码力 | 28 页 | 12.57 MB | 1 年前3
Await-Tree Async Rust 可观测性的灵丹妙药 - 赵梓淇开发者大会 Await-Tree Async Rust 可观测性的灵丹妙药 赵梓淇 Bugen Zhao Await-Tree Async Rust 可观测性的灵丹妙药 Await-Tree 的 设计原理与实现 2 回顾 Async Rust 的设计与痛点 1 Await-Tree 的 应用与真实案例 3 Await-Tree Async Rust 可观测性的灵丹妙药 Await-Tree Await-Tree 的 设计原理与实现 2 回顾 Async Rust 的设计与痛点 1 Await-Tree 的 应用与真实案例 3 Async Rust 的优势 • 异步编程的共同优势 • async/await 关键字 • 用户态调度 • Async Rust 的独特优势 • Ownership 与 Lifetime • 无栈协程 Async Rust 回顾 Rust 的无栈协程抽象 的无栈协程抽象 — Future Async Rust 回顾 • 通过 poll 驱动的状态机 • 组合嵌套为调度单元: Task • async fn 语法糖 Async Rust 观测与调试的痛点 Async Rust 回顾 • 特性: Future 灵活的可组合性 • 任意定制 Poll 的执行逻辑 (Join / Select / Timeout) • 动态的调用关系 • 痛点:观测与调试工具无法理解灵活的执行逻辑0 码力 | 37 页 | 8.60 MB | 1 年前3
WebAssembly 简介 - 陈思衡之类的 async runtime 中执行一些特别的 WASM 时就会遇到 WASM 阻塞 tokio 最终导致服务不可用的情况。 阻塞示例 WASM 使用场景和问题 利用语言本身 Async 机制 因为 Rust 的 async 机制是无栈协程,会将 async 部分在编译时隐式转换成一个 Future。 所以我们可以利用这一点来实现一个 Async 的 Wasm。 Async Wasm Photo / image / chart 利用本身 Async 机制 自行实现 Async Runtime Async 的 Wasm • 在 wasm 中把 future 存入固定内存处。 • 导出 poll 函数给 host 调用。 • 把 host function 包装成自定义 Future。 • 实现简单 利用本身 Async 机制 优点 • 方案不通用(wasm 局限于某一种语言) 无法与现有生态配合 缺点 Async 的 Wasm 基于 fiber / ucontext Async Wasm 解决方案 wasmtime-fiber 是一个通过内联汇编,保存当前寄存 器和栈数据来实现有栈协程的 rust 库。 wasmtime-fiber Ucontext 和 fiber 功能相同,但是 linux 的系统库。 ucontext 执行流程 Async Wasm 解决方案0 码力 | 24 页 | 773.46 KB | 1 年前3
Comprehensive Rust(简体中文) 202412. . . . . . . . . . . . . . . . . . . . . . . . . . . . 320 XIV 并发:下午 326 63 异步 Rust 327 63.1 async/await . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 63.2 Futures . . 64.2 选择 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 65 关于 async/await 的误区 335 65.1 阻塞执行器 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339 66 习题 342 66.1 Dining Philosophers — Async . . . . . . . . . . . . . . . . . . . . . . . . . . 342 66.2 广播聊天应用 . . . . . . . . . . . . . .0 码力 | 359 页 | 1.33 MB | 10 月前3
Kotlin 1.9.10 官方文档 中文版
object declarations, which were introduced in Kotlin 1.8.20, are now Stable. This includes the functions added for symmetry with data classes: toString() , equals() , and hashCode() . This feature measurement API is Stable. The old time API provided the measureTimeMillis and measureNanoTime functions, which aren't intuitive to use. Although it is clear that they both measure time in different units the result of the block of code, use the measureTimedValue inline function. By default, both functions use a monotonic time source. However, if you want to use an elapsed real-time source, you can.0 码力 | 3753 页 | 29.69 MB | 1 年前3
Kotlin 官方文档中文版 v1.9object declarations, which were introduced in Kotlin 1.8.20, are now Stable. This includes the functions added for symmetry with data classes: toString() , equals() , and hashCode() . This feature measurement API is Stable. The old time API provided the measureTimeMillis and measureNanoTime functions, which aren't intuitive to use. Although it is clear that they both measure time in different units block of code, use the measureTimedValue inline function. Kotlin 1.9.0 75 By default, both functions use a monotonic time source. However, if you want to use an elapsed real- time source, you can0 码力 | 2049 页 | 45.06 MB | 1 年前3
PyWebIO v1.4.0 使用手册# insert C after B -> B C A put_text('D', position=1) # insert D before C B -> B D C A Output functions pywebio.output.put_text(*texts, sep=’ ’, inline=False, scope=None, position=- 1) → pywe- bio.io_ctrl 'json') class pywebio.session.coroutinebased.TaskHandler(close, closed) 协程任务句柄 See also: run_async() close() 关闭协程任务 closed() → bool 任务是否关闭 pywebio.session.hold() 保持会话,直到用户关闭浏览器。 注意: 从 PyWebIO 用。可以在任务函数末尾处调用 hold() 函数来将会话保持,这样在用户关闭浏览器页面前, 会话将一直保持连接。 pywebio.session.run_async(coro_obj) 异步运行协程对象。协程中依然可以调用 PyWebIO 交互函数。 run_async() 仅能在基于协程 的会话上下文中调用 参数 coro_obj –协程对象 返回 TaskHandle 实例。通过 TaskHandle0 码力 | 115 页 | 1.70 MB | 1 年前3
PyWebIO v1.4.0 使用手册position>=0 时表示输出内容到目标Scope的第 position号元素的前面; position<0 时表示输出内容到目标Scope第position号元 素之后: Output functions pywebio.output.put_text(*texts, sep=' ', inline=False, scope=None, position=- 1) → pywebio.io_ctrl Example: class pywebio.session.coroutinebased.TaskHandler(close, closed) 协程任务句柄 See also: run_async() close() 关闭协程任务 closed() → bool 任务是否关闭 pywebio.session.hold() 保持会话,直到用户关闭浏览器。 注意 从PyWebIO put_buttons() 按钮回调)便无法使用。 可以在任务函数末尾处调用 hold() 函数来将会话保持,这样在用户关闭浏览器页面前,会话将一直 保持连接。 pywebio.session.run_async(coro_obj) import json from pywebio.session import info as session_info put_code(json.dumps({0 码力 | 135 页 | 7.45 MB | 1 年前3
PyWebIO v1.8.2 使用手册What’s new in PyWebIO 0.3 What’s new in PyWebIO 0.2 Battery pywebio_battery — PyWebIO battery Functions index 实现文档 服务器-客户端通信协议 Command Event Indices and tables 索引 模块索引 搜索页面 Discussion and support position>=0 时表示输出内容到目标Scope的第 position号元素的前面; position<0 时表示输出内容到目标Scope第position号元 素之后: Output functions pywebio.output.put_text(*texts: Any, sep: str = ' ', inline: bool = False, scope: Optional[str] that you can refer this datatable in datatable_update(), datatable_insert() and datatable_remove() functions. column_order (list) – column order, the order of the column names in the list will be used as the0 码力 | 160 页 | 7.48 MB | 1 年前3
PyWebIO v1.8.1 使用手册What’s new in PyWebIO 0.3 What’s new in PyWebIO 0.2 Battery pywebio_battery — PyWebIO battery Functions list 实现文档 服务器-客户端通信协议 Command Event Indices and tables 索引 模块索引 搜索页面 Discussion and support position>=0 时表示输出内容到目标Scope的第 position号元素的前面; position<0 时表示输出内容到目标Scope第position号元 素之后: Output functions pywebio.output.put_text(*texts: Any, sep: str = ' ', inline: bool = False, scope: Optional[str] that you can refer this datatable in datatable_update(), datatable_insert() and datatable_remove() functions. column_order (list) – column order, the order of the column names in the list will be used as the0 码力 | 158 页 | 7.48 MB | 1 年前3
共 409 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41













