应用 waPC (rust) 做软件测试工具waPC Host (Go) waPC Guest Rust • Read wasm file • Select engine • Wazero • Wasmer-go • Wasmertime-go • Define hostcall capability • Instantiate • Invoke - command with data • Guest 指 wasm • Operation Operation 是我们要在 wasm 里注册 命名 • 以数据的长度,设置 wasm 的 linear memory 的指针 • Guest 可执行任务 • Guest 也可返回请求 host Invoke(ctx,operation,payload) WAPC 流程 • Uses Length of response and error to return result res,err:= wapc::register_function("ping", ping); } fn ping(msg: &[u8]) -> wapc::CallResult { …. Ok(msg.to_vec()) } waPC Guest Rust waPC • Use wapc_init to register function • Register_function can only be used inside WAPC_init0 码力 | 30 页 | 2.50 MB | 1 年前3
基于Rust-vmm实现Kubernetes运行时container Pod QEMU VMM Firecracker VMM Rust-VMM container container Pod Sandbox Agent gVisor Guest Kernel O C I Gofer container container Pod Sandbox Sentry KVM/ptrace File Access OCI Implementation QEMU containerd + mVMd Host Kernel MicroVM/Pod container Guest Kernel container EKS TencentCloud API eklet MicroVM/Pod container Guest Kernel container CFS CFS persistent volume CBS CBS APIC vhost Cloud Hypervisor KVM File System Device Driver Host Linux Kernel vCPU block Memory Guest VM containerd + Kata-runtime create start VM start proxy create container start agent cat <<0 码力 | 27 页 | 34.17 MB | 1 年前3
C++20: An (Almost) Complete OverviewConstants std::source_location [[nodiscard(reason)]] Bit Operations Small Standard Library Additions5 Agenda New keywords: concept requires constinit consteval co_await co_return I/O Lazy computations Event driven applications17 Coroutines C++20 contains language additions to support coroutines Standard Library does not yet include helper classes such as generators number of 1 bits in 01100101: int count { std::popcount(0b01100101) };82 Small Standard Library Additions starts_with() and ends_with() for basic_string/basic_string_view: std::string str { "Hello world0 码力 | 85 页 | 512.18 KB | 6 月前3
Working with Asynchrony Generically: A Tour of C++ Executorsalgorithms, • coroutine integration, and • integration with the C++17 parallel algorithms. Future additions will include: • more standard async algorithms (see libunifex) • a timed_scheduler concept and0 码力 | 121 页 | 7.73 MB | 6 月前3
共 4 条
- 1













