当前位置:首页 > 报告详情

王俊吉-RustConf2023-RustBelt.pptx

上传人: 2*** 编号:132055 2023-06-30 21页 2.63MB

1、第三届中国第三届中国Rust开发者大会开发者大会王俊吉RustBelt-Rust的形式化语义模型的形式化语义模型OutlineBackground RustBelt Project Rust Types OverviewRust SemanticsType SystemThe own PredictExclusive Ownership&Mutable BorrowExamplesRcLogics Hoare Logic Separation LogicBackgroundERC Project RustBelt2015-2021Unlike C/C+,Rust is a safe langu

2、ageBut,like C/C+,Rust is also an unsafe languageThere are guaranteed memory safety,thread safety,.There are plenty of unsafe codes in Rusts standard library.use after freedata racearray-index overflowuse after freedata racearray-index overflow?.RustBelt ProjectBackgroundRalf Jung,et.al.RustBelt:Secu

3、ring the Foundations of the Rust Programming Language.In POPL 2018:ACM SIGPLAN Symposium on Principles of Programming LanguagesRalf Jung.Understanding and Evolving the Rust Programming Language.PhD dissertation,Saarland University,August 2020Recipient of the 2020 ACM Doctoral Dissertation Award Hono

4、rable MentionRecipient of the 2021 ACM SIGPLAN John C.Reynolds Doctoral Dissertation AwardRecipient of the 2021 ETAPS Doctoral Dissertation AwardRecipient of the 2021 Otto Hahn MedalRalf JungAssistant professor,Institute for Programming Languages and Systems,ETH ZrichRustBelt ProjectBackgroundIris:A

5、 Higher-Order Concurrent Separation Logic FrameworkRustBelt:Securing the Foundations of the Rust Programming LanguageCoq Proof Assistant:A Formal Proof Management Systembuilt on top ofbuilt on top ofRust Types OverviewBackgroundT&mut mut T&Tmutable borrowimmutable borrowcoercionmovemutablereborrowre

6、borrow()dropnewexclusivesharedownsborrowsHoare LogicLogicsCPreconditionPostconditionProgramGiven the precondition“P”,if we execute the program“C”and it terminates,it will hold the postcondition“Q”.PQLogicsTrue let x=10 x=10 x=3 x+=1 x=4True loop FalseHoare LogicLogicsP:x vOwnershipWe own“x”,and“x”po

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
本文主要介绍了Rust编程语言的内存安全性和线程安全性,以及RustBelt项目旨在通过形式化方法证明Rust语言安全性的研究。文章阐述了Rust的基本概念,如所有权的类型系统,以及如何通过形式化语义模型来描述这些概念。此外,还讨论了Rc类型,它是一个简化版的共享所有权的引用计数类型,以及如何实现其克隆操作。文章还提到了Hoare逻辑和分离逻辑,这些是用于描述程序正确性的形式化方法。最后,文章概述了RustBelt项目的背景和研究内容,以及相关的研究成果和荣誉。
"Rust语言中的所有权与借用机制如何确保内存安全?" "Rc类型在Rust中的作用是什么?如何实现共享所有权的管理?" "RustBelt项目旨在解决什么问题?它是如何提高Rust编程语言的安全性的?"
客服
商务合作
小程序
服务号
折叠