应用 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 年前3
servlet mechanismservice() doGet() doPost() Get Request Post Request Response Response Web Server HttpServlet subclass 注意: 方法由 HttpServlet 的子类实现0 码力 | 1 页 | 39.21 KB | 1 年前3
Working with Asynchrony Generically: A Tour of C++ Executorsshould happen … including some standard ones: an event loop, portable access to the system execution context, nursery for spawned work4 P2300: STD::EXECUTION Proposes: • A set of concepts that represent: std::move(work) ).value(); } Launch three tasks to execute concurrently on a custom execution context libunifex: https://github.com/facebookexperimental/libunifex7 EXAMPLE: LAUNCHING CONCURRENT WORK return compute_intensive(2); }) );14 Example 2: Transitioning execution context15 EXAMPLE: TRANSITIONING EXECUTION CONTEXT namespace ex = std::execution; ex::sender auto accept_request(); ex::sender0 码力 | 121 页 | 7.73 MB | 6 月前3
陈东 - 利用Rust重塑移动应用开发-230618process 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
C++23: An Overview of Almost All New and Updated Featuresreturn f(i) + 1; // immediate function context } else { return 42; } } consteval int h(int i) { return f(i) + 1; // immediate function context }16 Agenda C++23 Core Language Explicit0 码力 | 105 页 | 759.96 KB | 6 月前3
C++高性能并行编程与优化 - 课件 - 17 由浅入深学习 map 容器模块能自动识别 [] 位于等号左侧还是右侧,分成两个独立的函数 。 • 如果等号在左侧,则被他的 ast 模块视为写入上下文( store context ),翻译成 __setitem__ 。 • 如果等号在右侧,则被他的 ast 模块视为读取上下文( load context ),翻译成 __getitem__ 。 • 也就是说 Python 的 [] 其实是调用了两个不同的运算符重载: • m[key]0 码力 | 90 页 | 8.76 MB | 1 年前3
新一代分布式高性能图数据库的构建 - 沈游人通过已有的企业数据,通过 GCN 进行半监督学习和分 类,预测企业的违约概率 传统的关系型数据库的存储方式丢失了事物之间的关系信息 Relational Table Real World Multi-Context is Preserved with Graph Analytics Source: KDnuggets 图技术全景图—— Graph Technology Landscape 2020 •0 码力 | 38 页 | 24.68 MB | 1 年前3
C++20's zoned_time • Represents a pairing of a time_zone and a time_point (so a specific point in time in the context of a particular time zone). • Can produce the local_time or equivalent sys_time39 sys_time and0 码力 | 55 页 | 8.67 MB | 6 月前3
共 8 条
- 1













