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

陈于康-2023RustChinaConf-final.pptx

上传人: 2*** 编号:132054 2023-06-30 23页 3.28MB

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 comp

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
本文介绍了第三届中国Rust开发者大会上的一个演讲,主要内容是关于在Rust编译器贡献代码的学习经验。演讲者Yukang是一位在编程语言实现方面有深厚兴趣的工程师,曾在多个公司工作,包括Cryptape、DJI和Microsoft,2023年至今在Cryptape工作,使用Rust进行开发。 Yukang对编程语言实现有强烈的兴趣,并在EOPL(Elementary Programming Language)中提出了自己的解决方案。他的Rust经验包括在2014-2018年间开发一些小项目,2020-2021年间参与更多开源项目,如gomoku、youki和dapr-wasm,以及从2022年开始为Rust做出定期贡献。 他在Rust编译器的多个方面做出了贡献,包括 parser、diagnostics、ICE(Intermediate Code Execution)和基础设施工具等。他分享了一些PR(Pull Request)的故事,强调了Rust对错误消息的关注,以及构建足够共情的编译器的重要性。他还提到了一个具体的例子,即避免函数参数检查中的无限循环,这个看似简单的修复实际上需要大量的时间和努力。 Yukang认为Rust在开发阶段几乎解决了内存问题,适合开发具有长期生命周期的软件。他鼓励大家保持好奇心,通过实践学习Rust,将其视为一场游戏,保持耐心并乐于助人。最后,他推荐了一些关于编程语言实现的优质资源,包括《Crafting Interpreters》和rui314/9cc:一个小型C编译器。
"Rust开发者大会有哪些亮点?" "如何通过贡献Rust编译器提升技能?" "Rust编程语言有哪些优势和挑战?"
客服
商务合作
小程序
服务号
折叠