《陈于康-2023RustChinaConf-final.pptx》由会员分享,可在线阅读,更多相关《陈于康-2023RustChinaConf-final.pptx(23页珍藏版)》请在三个皮匠报告上搜索。
1、第三届中国第三届中国 Rust 开发者大会开发者大会Learning by Contributing to Rust CompilerYukang CryptapeLeveling Up in Rust 2011 2014 EDA startup C/C+2014 2020 DJI Ruby,Lua 2020 2023 Microsoft C#,PowerShell 2023 now Cryptape Rust My work experience Strongly interested in programming languages implementation My solutions
2、to EOPLMy experience 2014 2018 Some small projects 2020 2021 More open-source projects,gomoku,youki,dapr-wasm 2022 Regular contributions to RustMy Rust experience A real case Remove duplicated diagnostics Issue#100000,Rust is beautifulHow I started hacking Rustc100+Prsparser,diagnostics,ICE,Infra to
3、ols,code refactor,algorithms improvementsSome PR stories Rust cares about error messages We are building a sufficiently empathetic compiler Its a trade-offDiagnostic is an artSimple diagnostic is a good startCompiler is a teacher/friend#100502 Avoid infinite loop in function arguments checkingA triv
4、ial fix may require a lot of time Fix the bug of next_point in source_mapIts a closet bug!Twitter-Driven DevelopmentRefactoringFind the correct mismatch delimiter pairsAha Moment!Its sad,but we need to remove featureWe care about performance and dev experience A lot of fun!A lot of open-source exper
5、ience 2023 Rust Foundation Project Grants A member of rustc compiler team contributorsWhat Ive earned Rust has almost solved the memory issue in development phase Rust is good for software with a long lifetime Rust is open,but it may lead to a lot of chaos at the same time Be the worst player in the
6、 best teamWhat Ive learned Stay curious,learn by doing You dont need to master Rust;learning Rust by hacking Rust compiler is a great way Treat it as a game,have fun,remain patient Ask for help on Zulip if neededWant to have a try?Rust compiling phase 花花 10 年写一本编程语言实现的书年写一本编程语言实现的书 Crafting Interpreters Essentials of Programming Languages rui314/9cc:A Small C CompilerGreat resources for programming languagesThank you!