2019年Rust跨平台客户端开发在字节跳动的实践.pdf

编号:95897 PDF 32页 1.35MB 下载积分:VIP专享
下载报告请您先登录!

2019年Rust跨平台客户端开发在字节跳动的实践.pdf

1、C R O S S-P L A T F O R M R U S TO N T H E C L I E N T-S I D EBy wangcong ByteDanceA G E N D AWhy cross-platform and why Rust?Our experience using RustBuilding with RustPerformance requirementsEver-growing requirements withfixed resourcesNeed to achieve more with lessbattery consumptionImplementatio

2、n complexityAlmost monolithic architectureLow-level code comes with lesssafety guaranteed,traditionallySecurity considerationsClient-side programming ishardAnd,each platform isdifferentWe have to repeat our work and make newmistakesGoing cross-platform bringsusOne codebase to design,implement andrev

3、iewOne server-facing clientOne place to implement security policesC O N C E R N SPerformanceThe app should run fastThe app should not be battery-hungryLook and feelWe need platform-native appearance&interactionsWe care about user experiencewhen doing cross-platformOnly for some componentsWorks but n

4、ot enoughAll code,but with tradeoffNo system UI componentsSystem UI components with tediousand high-cost bindingsHow far do we go cross-platform?We dont sacrifice UX,especially not in frequently-used apps like FeishuNon-UI code in cross-platform,systemlanguages.Optimized for performanceUI code uses

5、platform-specific APIsW H YR U S T?We want a systems programminglanguage with safetyguaranteed,best effort isnot enoughC+is great,but your team only livesin peace when everyone is a guruWhile in Rust,the compiler acts as theguru,always watching your backGuaranteed safety,that meansmemory safety and

6、fearlessconcurrencyWe can focus on the business logic,spend less time hunting for bugsWe have the bravery and confidence toachieve moreOther things we love aboutRustMinimal runtime that easily embeds intoother languagesPerformance with zero-overheadabstractionsHigh-level language with modernfeatures

友情提示

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

本文(2019年Rust跨平台客户端开发在字节跳动的实践.pdf)为本站 (云闲) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

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