Rust 异步并发框架在移动端的应用 - 陈明煜
Rust Runtime in Mobile Overview of asynchronous Rust #1 Rust 异步简介 Ylong async runtime #3 Ylong Runtime 并发框架 目录 Table of Contents #2 社区并发框架介绍以及与移动端的不适配性 Introduction to third party Runtime crates task Queue wake Worker Future.poll() Reactor fd fd listen listen find 现有并发框架 Third Party Runtime 目前 Rust 社区最广泛使用的事件 驱动型调度框架,擅长处理大量异 步 IO 的场景。具有非常强大的生 态。 tokio 第一个适配 Rust async/await 原语 的运行时库,与 只持有一个本地 FIFO 队列 移动端诉求:优先级 • 任务区分优先级: UI 显示 vs 后台下载 • 大小核调度 Incompatibility of the third party Runtime with Mobile 现有框架无法完美适配移动端(二) 移动端诉求:易用性 • IO 密集性任务与 CPU 密集型任务融合 异步并发框架如 tokio 大多用于处理大量 异步 IO 场景,而0 码力 | 25 页 | 1.64 MB | 1 年前3CeresDB Rust 生产实践 任春韶
ould-you-use 生产实践 – Async lock runtime.spawn(task0) runtime.spawn(task1) runtime.spawn(task2) 生产实践 – Async lock runtime.spawn(task0) runtime.spawn(task1) runtime.spawn(task2) 生产实践 – Async lock workload runtime.spawn(task0) runtime.spawn(task1) runtime.spawn(task2) runtime.spawn(task3) 生产实践 – Mixed workload cpu_runtime.spawn(task0) cpu_runtime.spawn(task1) cpu_runtime.spawn(task2) cpu_runtime.spawn(task3) https://tokio.rs/blog/2020-04-preemption 2. https://www.influxdata.com/blog/using-rustlangs-async-tokio-runtime- for-cpu-bound-tasks/ 测试源码: https://github.com/chunshao90/tokio-preemption However, this kind of0 码力 | 22 页 | 6.95 MB | 1 年前3Visualize Time Enabled Data using ArcGIS Qt (C++) and Toolkit
information for the time slider - Start and end dates, time interval, etc. - Feature layer URLArcGIS Runtime for Qt - SDK • The Qt SDK allows you to build cross platform desktop and mobile apps • Incorporate mapping, geocoding, routing, geoprocessing, etc. • In this sample we will be using the C++ SDKArcGIS Runtime Toolkit for Qt • Open-source project • Contains UI components and utilities to help simplify Qt https://github.com/Esri/arcgis-runtime-toolkit-qt • How: - Clone the repository and import the path in .pro file in Qt Creator - Register your components in main.cppArcGIS Runtime Toolkit for Qt • Time slider0 码力 | 10 页 | 734.09 KB | 5 月前3基于Rust-vmm实现Kubernetes运行时
Yingzhe Ru(@ruyingzhe), Tencent Liangyu Zhou(@choujimmy), Tencent Implement Kubernetes Runtime Based on Rust-VMM About Us Yingzhe Ru Senior Software Engineer at Tencent Working on TKEStack project io/category=container-runtime&format=card-mode&grouping=category Runtime Landscape cri- containerd runsc+gVisor kubelet dockershim docker containerd containerd runc kata- runtime CRI-O kubelet kubelet kubelet io.kubernetes.cri-o.TrustedSandbox=true containerd- shim-kata-v2 O C I C R I K8s Runtime io.kubernetes.cri-o.TrustedSandbox=false Firecracker- containerd runnc+Nabla OCI Solution OCI Compa0 码力 | 27 页 | 34.17 MB | 1 年前3THE FIRST EXPLORATION OF PROJECT SPARROW
Container Runtimes" is coming soon. 2.3 Unified runtime for eBPF and Wasm Summary II. Practicing Sparrow Our previous talks "GraalVM-based unified runtime for eBPF & Wasm" at GOTC 2021 (Shenzhen) (Shenzhen) & "Revisiting GraalVM-based unified runtime for eBPF & Wasm" at OpenInfra Days China 2021(Beijing), and the third-round discussion of this topic will come in this year,0 码力 | 68 页 | 13.14 MB | 1 年前3使用硬件加速Tokio - 戴翔
compatibility requirements, , and they haven't chosen to lock- in a specific runtime. Why need Tokio? Rust does not provide async runtime in std lib Tokio gets the biggest support from the community, and0 码力 | 17 页 | 1.66 MB | 1 年前3Making Libraries Consumable for Non-C++ Developers
Who am I? Still at Microsoft, now on the .NET Core runtime team. • https://github.com/dotnet/runtimeWhat is interoperability? Enabling two or more disparate entities to work together. Don’t touch it Java Native Access (JNA) – 2007 Go – cgo – permit C in the .go source file – 2009 Swift – share a runtime and be like C – 2014There is no one approach. Make it suck less by recognizing assumptions.What0 码力 | 29 页 | 1.21 MB | 5 月前3whats new in visual studio
MSVC now generally-available • x86 and X64 support • Debug configurations (/MTd, /MDd) included • Runtime libraries automatically linked for command-line builds Visual Studio integration • MSBuild & CMake Learn more at http://aka.ms/18xfaster Link time 28x faster 5x faster 18x faster Runtime Performance for Debug Builds 2x-3x faster Performance of Visual Studio Developer Community0 码力 | 42 页 | 19.02 MB | 5 月前3Bringing Existing Code to CUDA Using constexpr and std::pmr
function from a constexpr function. – That the behavior of your constexpr function matches your runtime behaviour (they can diverge). No Work is Less Work Than Some Work 45 |Questions About constexpr/Execution expands the set of functions available to the GPU. • May improve performance by: • Moving work from runtime to compile time. • Making dimensions of vectors/matrices available at compile time. 49 |Concluding0 码力 | 51 页 | 3.68 MB | 5 月前3C++23: An Overview of Almost All New and Updated Features
and older, the following compiles: std::string s { nullptr }; but has undefined behavior at runtime! C++23 prohibits constructing a string or string_view from nullptr no more undefined behavior56 elements from the original view (sliding window) Similar to views::adjacent, but window size is runtime parameter for slide() E.g.: std::vector v { 1, 2, 3, 4, 5 }; auto r7 { v | std::views::slide(2)0 码力 | 105 页 | 759.96 KB | 5 月前3
共 14 条
- 1
- 2
相关搜索词
陈明煜2023RustChinaConf任春韶ceresdbrust生产实践生产实践VisualizeTimeEnabledDatausingArcGISQtC++andToolkit基于Rustvmm实现Kubernetes运行李枫__SparrowFengLi20230614aofficialtemplate戴翔使用硬件加速硬件加速TokioMakingLibrariesConsumableforNonDeveloperswhatsnewinvisualstudioBringingExistingCodetoCUDAUsingconstexprstdpmr23AnOverviewofAlmostAllNewUpdatedFeatures