应用 waPC (rust) 做软件测试工具
的指针 • Guest 可执行任务 • Guest 也可返回请求 host Invoke(ctx,operation,payload) WAPC 流程 • Uses Length of response and error to return result res,err:= Invoke… WAPC 流程 #[no_mangle] pub fn wapc_init() { w HttpResponse, #[serde(rename = "url_path")] pub UrlPath: String, } ResA: Response corresponding to unmodified request ResB: Response corresponding to modified request • 模拟数据规则 • 自动化测试 • https://github req_,err:=wasm.Invoke(ctx,req.url.path, req_payload) … req = req_ } ModifyResponse(res *http.Response) error{ … res_,err:=wasm.Invoke(ctx,res.url.path, req_payload) … res = res_ } Wasm mock server0 码力 | 30 页 | 2.50 MB | 1 年前3servlet mechanism
service() doGet() doPost() Get Request Post Request Response Response Web Server HttpServlet subclass 注意: 方法由 HttpServlet 的子类实现0 码力 | 1 页 | 39.21 KB | 1 年前3Working with Asynchrony Generically: A Tour of C++ Executors
lazy async work (aka, sender) • A completion handler (aka, receiver) • A small, initial set of generic async algorithms: • E.g., then, when_all, sync_wait, let_* • Utilities for integration with C++20 process_request(request)); } } Or write it as a coroutine.17 Schedulers produce senders Generic async algorithms accept and return senders18 SENDER ADAPTORS OF STD::EXECUTION Sender adaptors0 码力 | 121 页 | 7.73 MB | 5 月前3陈东 - 利用Rust重塑移动应用开发-230618
process the error? Panic? App Crash ? Treat the rust module as an independent service - Command <> Response - Using the protobuf as the data encoding/decoding protocol Tools - cargo-dinghy - rust-android-gradle0 码力 | 22 页 | 2.10 MB | 1 年前3使用硬件加速Tokio - 戴翔
MiNetRun – Rust Channel 12 DLB-Assist Channel Overview Hardware-Direct offloading • Can’t carry generic type • Escape safety track Message-Ownership Tracking • Takes message's ownership • Avoid message0 码力 | 17 页 | 1.66 MB | 1 年前3C++20: An (Almost) Complete Overview
(T (&a)[N]) { /* ... */ }28 Templated Lambda Expressions Motivation 1 Generic lambda accepting a vector ; you want to know T (pre C++20): [](const auto& vec) { using V = 0 码力 | 85 页 | 512.18 KB | 5 月前3C++高性能并行编程与优化 - 课件 - 08 CUDA 开启的 GPU 编程
(Jetson) TX1 / Tegra X1, Drive CX, Drive PX, Jetson Nano • 版本 60 : Quadro GP100, Tesla P100, DGX-1 (Generic Pascal) • 版本 61 : GTX 1080, GTX 1070, GTX 1060, GTX 1050, GTX 1030 (GP108), GT 1010 (GP108) Titan0 码力 | 142 页 | 13.52 MB | 1 年前3
共 7 条
- 1