施继成-2023RustChinaConf 异步兼容层.pdf

编号:132096 PDF 22页 957.41KB 下载积分:VIP专享
下载报告请您先登录!

施继成-2023RustChinaConf 异步兼容层.pdf

1、Rust 异步 Runtime 的兼容层施继成 DatenLordIntroduce whats rust async runtime#Rust async runtimeAnalyze the reason of runtime isolation#Async runtime binding#Compatible layer1Create a wheel used everywhere Table of Contents23#Rust async runtime1Light-weight taskLanguage and compiler define tasksHow to run it?

2、When to run it?How does it deal with the I/O?Rust async runtimeRuntime responsibilities Invoke waiting tasks and halt tasks Get notifications from the OS Schedule tasks across threads if its multi-thread modelRust async runtimeAvailable Runtimes Tokio Async-std Smol MonoioRust async runtime#Async ru

3、ntime binding2Which runtime to choose?More adoptersRich eco-systemRich out-of-box featuresMaybe better performanceClean interfaceAsync runtime bindingEco system binding Panic“not currently running on the Tokioruntime”Hyper-fast and safe HTTP for tokio Surf-HTTP client framework for async-stdAsync ru

4、ntime bindingBarriers on runtime switch Switch all I/O related data structures Switch all async macros Switch all functions Scan everywhere We have to provide an abstraction to avoid thatAsync runtime bindingBuild libs for all runtimes Impossible You dont know how many runtimes there Provide a wrapp

5、er for runtimes Easy switch with rust features and conditional compilationAsync runtime binding#Compatible layer3Insight of compatible layerRust lang and compiler syntax and task typeAsync compatible layer I/O and task managementCompatible layerCompatible LayerCompare runtimesTokioAsync-stdSimilar c

6、omponent structuresCompatible layerCompare runtimesTokioAsync-stdAlmost the same APIsCompatible layerMain components in async runtimes Macros Data structures and associate functions Raw functionsCompatible layerMacro wrapperConditional comp

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(施继成-2023RustChinaConf 异步兼容层.pdf)为本站 (2200) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠