Rust & AI: Keeping Humans in the Loop
Read full transcript 61 segments
-
Hey everyone, welcome back to another Rust Rover live stream. I'm Orhun Rustole Advocate at Jet Brains and lead maintainer of Ratui. This live stream is a part of series uh from Jet Brains and Russ Foundation. We are exploring the intersection of Rust and AI. How Rust can help us use AI more effectively and how AI can help us build better R software. Today we are talking about how AI changes open source contributions especially in the Rust project itself. I'm joined by Jen Nelson, compiler team lead at Fair Systems and author of this new LLM policy adopted by the Rust project. Jyn, welcome. How's it going? >> Thank you. It's going all right. Uh, it is evening here in the Netherlands as you can see out the window. Um, I live on the on the bike path to the university, so you may see people going to and fro, but things are going well.
-
>> Really nice. I was going to ask where are you joining but you said Netherlands and that's a good view out there. So uh just as a note that's not a green screen everyone. So that's great. So before we dive into the policy just to give people more context and and what you're doing in the EOS ecosystem can you tell me about um your your role? Um what are you working on? um how did how how did you end up writing this policy like the the backstory of it? Uh what are you working on right now? >> That is a good question with a complicated answer. So I have been working on the rest project for about 7 years now. Um and I would describe myself as doing the strange things that no one else thinks to do. So the way I got into the project was through docs.rs RS the documentation site and then I moved to Rustto which is the tool that generates the documentation and then to bootstrap or actually founded the bootstrap team that currently exists. Um but the way I got into LLMs was rather strange. So in March of this year I had actually not been active in the Rust project for quite a few months actually.
-
I had been active in Ferris systems. Um, and Ferris is a fork of the REST compiler. Well, not exactly a fork. We try to stay as close to upstream as we can, but but um, so I was working at Ferris Systems. Um, and Ferris actually does not currently allow LLMs for most uses. Um, certainly at the time they didn't allow LLMs and so they weren't affecting me personally very much. But what was affecting me was I would go on to the rest zulip where most of the discussions happen and people would just be upset all the time about LLMs. Um and sometimes it would be about specific things happening with LMS. It would be like particular PRs that were causing a burden or things like this. Um but often they would be upset at each other. this was causing conflict within the project of of of people getting frustrated with each other about what to do about this.
-
Um, and so the way I got involved is I said, I I don't really care what the policy is. I just want there to be a policy so we can all stop arguing about it. Um, and I think because I was somewhat of a neutral party of like not really being affected and also not really wanting to use LLMs that put me in a good position to like do the the diplomacy that this policy required. >> I see. So you started contributing to RS project through dogs and then you said you started the bootstrap team. Um, right? Is that is that true? >> That's right. >> Okay. And then um right now you're working as a compiler team lead at fair systems and for context uh fair systems are is they are building um a safety critical focused Rust compiler and I want to understand like your your exact role there because you're saying you're not affected by these LLM changes and and why is that like why um this new like this safety critical compiler is not affected. So we're affected by the code the LLM's right um like if something gets into merged to to the rest monor repo that does affect us um but what does not affect us is the review burden right so one of the reasons this was such a controversy is because if
-
somebody opens a PR that is fully or mostly LLM generated then it is very very hard for a reviewer to tell how much effort they have put into it right it used to be that if someone had like taken the time and like fixed all the typos and and written this very complicated PR, you could tell like they've put thought into it, right? And now that an LLM can do all that, you really can't tell how much effort someone has put in a PR until you've already put in a bunch of effort. And so, um, it takes this existing asymmetry of it being easier to to write code than to review it. And it makes it even worse. It makes that gap even larger. So since this is a like you said fork in quotes uh of the rust compiler you're directly dependent on upstream and I want to like understand your your workflow at fair systems a bit more >> uh so what you are currently working on is uh is it keeping track of the upstream changes and adjusting it for a safety critical compiler and that's why Um is that why are you you are um kind of affected but like you're dependent on the upstream so not directly >> you're dependent on upstream for reliability. So the way that Ferosene works, Ferosine is the the name of our sage critical compiler is that every few
-
days um at least once a week, sometimes more than once a week, we will take a giant PR which is just a big merge of every single thing that has been merged to the rest monor repo since the last um we call them upstream polls. So here the rust mono repo is upstream and ferosine is downstream and we have this giant PR which we call an upstream pull that is merging all those changes into ferosine um which tends to be complicated partly because we test things that the upstream rust project does not test. For example uh we have several targets that either don't exist upstream or are tier three targets upstream. Um, and so those tests that we run for our targets, uh, just those tests simply aren't run upstream. Um, either because of of the target tier policy or because they're they're specific to Ferosene. And so when we run them on our CI, they'll fail because that's the point of tests. But then we have to isolate that failure, right? And because it's a week full of PRs to the mono reboot, it's generally like 30 or 50 or sometimes even more PRs. And isolating a failure when you have that many changes can be quite tricky.
-
I got into safety critical a bit in the uh last months and it's very tedious work I would say because >> I know that uh fair systems and like ferosene compiler needs to be compatible with many uh different things and um I don't know what those things are called exactly but I know that there are some standards that you need to follow so um that's uh really tedious work. And for context, uh Rust Rover has uh Ferosene support in in the uh previous minor releases. So that's why I had the chance to try it out a little bit. So you guys are doing great work there. So tell me about uh what does being a compiler engineer mean to you? Like of course you are part of the Rust project. you are um you know some topics deeply but uh what is your your uh day-to-day work outside of uh working on these upstream pools?
-
Uh tell me about that a little bit. >> Yeah, so I would say there's like roughly three kinds of work. Um one is upstream pools. I mean they really do take a lot of our time. Uh one is feature work. So for example, we add new lints downstream that don't exist upstream. um things that generally upstream wouldn't be very interested in. Um so for example we say you can use exactly these functions in a safety critical system and any other function hasn't been it doesn't have code coverage for example so you can't use it. Um and outside of safety critical there's not a lot of interest for this. Like you don't really want to be limited to only a subset of core. That's not a very fun environment to program in. Um but that said the the way we implemented it I think can be generalized and in fact I'm aware of I think Fedul has written a panic detection lint based on our work.
-
>> Yes. So related to your work uh how does AI come into play? Uh do you remember your first interaction with AI and how how did it start to affect you? I'm asking this uh from a standpoint of like you know Rust developer. How did the did it come into your workflow? And I'm guessing you're using AI nowadays. >> I am using AI nowadays. Um so the very first time I used AI was in 2023 or 2024 and I was like this thing doesn't seem very useful. It doesn't seem very smart. I asked it a few questions. I got most of them wrong. asked them um like very specific things about Bootstrap and it like wasn't able to use Google search properly and I was like okay it's it's a toy at this point. Um and then 2025 and 2026 roll around and suddenly I see people talking about it more. Um and I remember the the thing that really made me sit up and take notice. There is a professor at the University of Utah. His name is John Ragger and he does quite a lot of work on LLVM which is the compiler back end that Rust uses. Um and and he's written like a lot of the LLVM like language reference like he's he's very deeply involved in this project that Rust deeply depends on. Um and he was talking on Masttoon about how he used AI all the time in 2025. So this was like before it was being used by everyone. And I looked at this and I was
-
like huh that's interesting. Um, and specifically what he was using it for was for projects that he otherwise did not have time to do. So because he's a professor, because he's deeply involved in all these open source projects, um, he's quite busy all the time. Um, and so what AI did for him is he could throw an idea at it and have it work on it and maybe it worked and maybe it didn't. Um, but now he could try it at all whereas before he simply didn't have time. Um, so I heard that story from him. I heard another story from Shriram. I've forgotten his last name. I believe he's an HCI professor at Brown University. Um I know him through Will Kiteon. Will Kiteon has also done HCI work on the rest tool chain. Um and Trey Brown was saying similar things that it gave him time to do projects that he simply would not have done before. Like he he just would not have even started. Um and so that was the point at which I started thinking, okay, maybe maybe there's something there. like it's it's not been something that I want to use as you know someone who's whose craft whose profession is programming but like there's something there. Um and then in March of this year when I saw people within the project talking so much about how like it was a big help to them I was like okay like maybe maybe like it's not useful for me personally but but if people on the creat.io IO team, if people on the cargo team, all these things are are using it, then probably there's something there because I trust
-
these people, right? Um, and that was the point at which I was like, okay, it's something to to set up and take seriously. >> And do you remember um the timeline of AI causing problems in the Rust project? because you said it started as something interesting to you and at what point it was like so many PRs, so many uh things are um being being created but not reviewed. Uh when when was this exactly? [sighs] >> So there is a long and complicated history. I'm trying to remember how much of it is public um since this is a live stream. Um I believe what's public is uh the the first thing that's public is when Nico opened symposium. So do you know what project goals are by any chance? >> Project goals. >> Project goals are an initiative that >> project goals. Yes. >> Mhm. Yeah. >> That Niko Matsaki's created I believe in 2024. Um and the idea is that you bring together people who are maintainers in the project uh people uh at companies who want to fund work and then what are called I think uh goal owners right and so the maintainers are reviewing the companies are funding the work and the owners are making sure that the work actually gets done.
-
Um, and so Nico had opened a project goal for this thing called symposium, which is essentially like how can we allow companies that use Rust to like take better advantage of AI when using Rust. Um, and this was deeply deeply unpopular within the Rust project um, for many reasons, but one of them was that if you call something a project goal, it sounds like something that the project as a whole wants. Um, and people did not want to be represented in that way. They didn't want people to think of Rust and think of let's make AI easier to use. They had a very strong aversion to AI. Um and so that was around when this whole debate this this whole friction started happening. Um I don't know exactly when the PR started being a problem because I actually was not on review rotation for upstream at the time. I was reviewing ferosine PRs but I was not reviewing PRs to the Rust monor repo. >> Mhm. I I remember like we first of all we did a live stream uh with Nico uh about symposium. So if the viewers are curious they can go and watch that and we uh really dove deep into it. And also um yeah the project goals I agree that it really looks like something that is R something Rust project is officially putting out there but um I have maybe last year I learned that anyone can submit goals and I now
-
have a goal uh which is a a toy for cargo tree. I need to actually put it in a good shape and make it reviewable but um anyone can submit goals. So I understand uh that this this caused some uh discussions. So uh you mentioned code review. Um I'm I'm curious about like so do you do code review on the uh like the upstream rust compiler or or on the fering side? Um, how's your process? >> I do code review on the Ferosine side and I do code review for the RustC dev guide, which is documentation about how the compiler works. Um, but I generally do not do very much review for the compiler itself. Um, people tend to believe that I'm on the compiler team. I am not on the compiler team and have not ever been. Um, but I have worked with the compiler quite a lot. So, it's it's the the dive guide is about my level of familiarity where I can say this is probably wrong. I don't know exactly how but but maybe go take a second look.
-
>> Yep. And h how has AI changed your code review process? Do you still um go through each line or do you get some summary from from an agent? And uh do you have some kind of workflow like that? And how is your workflow these days? >> Yeah. So for for reviewing PRs that someone has created without an LLM, um well actually let me step back. Um I think in general posting LLM text is just rude. If you ask an LLM a question and it gives you an answer and you post that answer and just copy it over to GitHub, that's rude. You know, the author of the PR could have done that. You you might as well have given them token credits. Like it's it's it's not a good use of anyone's time. Um, if someone has not used AI to open a PR and especially to rest, they generally don't like LLMs. Um, and so if you say something like, I don't know exactly what's wrong here, but the AI said is probably wrong, they generally don't like that, right? [laughter] Even if the AI is right, even if it turns out that that there was some mistake they could fix, the idea of like someone outsourcing that effort is generally frustrating for them. Um, and so I try not to use AI, especially in upstream REST for people who have not asked that I do so. Um that said, um if someone has used AI for
-
their own PR, if it's like in in Ferosine for for PRs like that, then I do use AI for review especially because AI is very good at catching bugs. Um you probably know that there's a whole bunch of security findings that are coming from AI these days. I actually wrote a blog post about that a few months ago. Um and it really is very very effective. Um, and one of the things that I do believe strongly is that if you use AI the right way, which is a big if, you can use it to write code that is better than if you just written it by yourself. Um, and so that's the way that I try to use AI is not to work faster, but to emit a better better product in the end. You said don't post LLM generated text uh on GitHub and I want to focus on that a bit. Is there any other thing that you would say uh do not like do not do this with LLM? Um, when it comes to specifically for the Rust project, the compiler contributions or or anything in the ecosystem, do you have anything else that you could share like don't do this with AI or something?
-
>> I can I can read down the list of [laughter] the R project policies? Yeah. Yeah. Yeah. So, the first one is comments from an LLM. Um, you the the policy says you can post them if they're quoted. Um, but the quote cannot be the only thing in your comment. You have to you have to say the thing that you mean and the quote can only be supporting evidence. Um the second thing is documentation always has to be written by a human. LLMs you probably know tend to emit slop. They're not very good at writing. Um and so even if every single fact is correct, it just reads that. Um and so documentation has to be written by a person. Um documentation has to be for humans first. Um so AI is already good at reading English. That's the point of AI that it's general purpose. If if your documentation for a process for for some thing that you regularly do is only written as for example an agent skill, that kind of sucks, right? Like it's it's easy for the eye and it's hard for you. It's like the worst of both worlds.
-
Um whereas if you write it as documentation for humans, then a like people can read it. They don't need to have credits for OpenAI to to read the docs. Um, but two, it's just as easy for the AI to read. Like, it's they're really not that the things you do to make an AI better at coding are really quite similar to the things you do to make a human better at coding. So, you may as well target things towards humans. >> So, now that other you have other items, go ahead. >> Oh, yes, thank you. Um, and then the last one is that the the AI cannot approve a PR by itself. Um, you can say I I consulted with the AI and it makes me more sure than I was before, but you cannot say because the AI said it's okay, I'm going to merge it. That's just like not allowed. Um, and there's like a whole thing. There's some PRs in the REST repos at all or don't require review at all except for self-re. The dev guide is one of those where if you fix a typo, you can just merge that typo fix. Um, and those also you can consult an LLM, but you you didn't need review in the first place, so it like doesn't matter.
-
>> So, we got a a little bit of a spoiler of the uh policy. Now, I want to get really deep into it. So uh for context uh in August 2026 five Rust team themes adopted this policy and the underlying idea is to get some kind of like get things under control a bit and um have some rules uh when it comes to working with AI in in the Rust uh these Rust projects. U I'm going to put up the policy on my screen and maybe you can give us some some rundown of uh what's happening here. So we have an overview. Um [clears throat] yeah so there's a lot of things going on here even just in the overview. Um.
-
>> Mhm. >> So the first thing is that it does not say the rest project. Uh nowhere in this document does it say the rest project. It says rest lane rest which is the monor repo. Um there are parts of the rest project that are not part of that monor repo. Um creates.io restup um infrastructure various things that that aren't part of this. And you might ask like why did we do this? Why did we scope it to the monor repo? The answer is we couldn't agree. Uh if you go to the PR, I don't know if you have it open, but the very first comment that I have up there is we've spent months arguing about this and we can agree. And so because of that, we're going to scope this to specifically the rest of repo because there we think we can come to a consensus. It's it's easier to establish this for a smaller scope. So here we can get an idea of um uh what these uh markers mean basically and >> there is a lot of things included on in this policy um if I'm being honest. So >> it is long and complicated. Yes, it's I described it to someone once as almost every sentence in this policy is a carveout to someone. It's not all the same person. There's many many different people who contributed to this policy.
-
But almost every sentence in the policy is because someone said, "I think this should be changed." >> So um >> yeah, on on the >> uh left side we see different uh themes I believe. Right. >> Mhm. And here we have uh some some rules. And >> you're looking at Forge and Forge does not have every single team on it. If you want an exhaustive list of teams, you can go to wrestling.org/governance. >> Yes. >> That will have a full list. >> Yep. >> Got it. So um now I need to ask this um like while writing this policy um was AI used? >> No. No. AI did not write a single word in this policy.
-
>> Okay. >> Um I did use AI to review it at some points. It like caught typos and it caught contradictions between sections. Um but I did not write a single word of the policy. >> All right. So um what problems were there in um in the discussions that you see that there should be a policy uh there should be some some guidelines um like can you give us some concrete examples such as you know were there so many like uh slow PRs or some people used um LLMs some people didn't and did they complain and and what was the like the main reasons behind the uh the policy? >> Yeah, so there are several things going on. Um the biggest problem, the thing that was like causing the most issues is that people would like I said before just copy paste things into an LLM and post the output and they wouldn't say that they were doing that. You would you would get this giant wall of AI slop back full of cloudisms and you would be like okay you're you're messing with us and you don't even like tell us like Um, [sighs] so that was one of the problems was people just copy pasting.
-
Another problem was issues opened by AI are generally very hard to read. And it's a hard thing to say no to that issue because generally it is a problem. Maybe it's not the most common problem or maybe it's not phrased well, but it's usually a problem. Um, but if you can't read it and understand it, it it's almost useless. Um, and so one of the things we wanted from this policy is to say like it says now you can discover the problem using an AI, but you cannot uh post AI text as an issue because it's it's offloading work from you onto us, right? You've you've done very little other than tell the AI report the bug and you're expecting us to just figure it all out without any any help from you. Um, so those were the two big things. And then the third big point of conflict was should AI code be allowed? So say that you have someone who is in the Rust project, who is trusted by everyone, who uses AI as part of their workflow. Um, how do you know whether their code is good or not? How how do you how do you how do you know that they've put time and care into it, I guess, is what I would say. Um, and this was like a really big sticking point for people. A lot of people felt that if you use AI to generate the code that you would not have like thought about it in as much detail. Um, and so they wanted to ban
-
every single type of AI generated code regardless of of time because you can't you can't prove effort, right? All you have is is the artifact itself. That's an interesting question. That's actually u one of the questions that I wanted to ask you. Uh how can we even tell uh if AI is um being used to to do the work or um just doing the work for for the person? Like how can we even tell the difference nowadays? >> Yeah, that's a hard question. Um I think so there's a lot of different positions on [sighs] this, right? Um one of the positions is you just shouldn't use AI. Like just using it at all ever is just ethical and immoral and you shouldn't do it. Um another position is that you can use it for research, I guess, but it should never touch your code because it won't do as good a job. Um another position is you should only use it for tests and things like that. That's about where I am. Um, and then some people were like, well, as long as you put time and care. And then some people it's it's like Steve Yag's gas town. It's like, I don't even look at the code. I don't care if it's good or bad. All I care is if it does the thing, and I don't care how many tokens it uses either.
-
Um, and I think what's interesting about AI is it's uncovering cultural splits that did not exist a year ago. Um, a year ago, if you wanted to produce the best code that you possibly could, the way you did that is you got into a community like the rest community or like something else and you talked to people and you learned. That's that's how you wrote good code that had a good impact. Um, and now you don't need to do that so much. like you you can sit down on your own as a developer and write quite a complicated tool or product that mostly works without ever talking to another human being. Um, and I think that's kind of created this gap between people who are like, well, if it works, I don't care. And people who are like, well, it's the community that matters, right? Like it's if without the community, rest wouldn't even exist, right? And so people who previously like had nothing to quarre about suddenly have this like giant gap between them. Um, and so when you say like how do you tell when someone's put the effort in? This is a question that only matters to some of those people, right? Some of the people are like it does it's not the effort that matters, it's it's the result of the thing that matters. Um, and yeah, I think whenever we ask questions about AI, we have to ask ourselves like how are we choosing these questions? What framing produced these questions? And and what
-
questions are we not thinking of? Yeah. On the other hand, um some could argue um for example um this policy now requires a higher bar for like LLM LM based contributions and some could argue that if the LLM produced code is let's say objectively better than the code that they would that a human would write Why should it be uh facing this higher bar? >> How do you determine what is objectively better? What does it mean for some bit of code to be better than others? >> Yeah, that's that's the that's probably the same question that we uh talked about just now. >> Right. Right. And so everyone has a different idea of what better means. Um, and so we don't we don't try to say like your code has to meet this standard because that doesn't really work.
-
Everyone has a different standard. Um, one of the pre-existing problems we had is is that depending on which reviewer you got, maybe your PR would be merged or maybe it wouldn't for the exact same code, right? Um, and so what we do instead in the policy is we say um, and I'm going to look at the exact caveats here because they're quite complicated. um it has to be non-critical. Um so one of the parts of a compiler is if it makes a logic bug that turns into a memory safety bug, right? One of the the parts of Rust that appeals to a lot of people is that you just don't get memory safety bugs if you're writing safe code. Um but the only reason that's possible is if the compiler is always right. Right? If there's any case where the compiler is wrong, suddenly you can get memory safety bugs again. Um, and so in those cases, even more than everything else, it's really important that we know what our code is doing and how it works. Um, so for those parts of the code, you're not allowed to use AI at all to write the code. Um, we have well tested.
-
So lots of parts of the compiler are very very hard to test. I've written about this for many years on on hacker news on my blog and various places. And there are invariants. So an invariant in code is something that you expect to always be true um regardless of what input you ever get. Um and some of these invariants are very very hard to enforce. There's a part of the compiler that says um if you call this function, you have to call [clears throat] um resolve varss if possible. Um so vars here is like an inference variable. It's it's the maybe the compiler knows the type of your expression and maybe it doesn't. And this says if you can figure it out, give me the concrete type back. And if you forget to do this inside of the compiler, then some programs will crash it. Which programs? I don't know. Very complicated programs. Usually, it involves like associated types or super traits or or like very intricate parts of the type system. In some cases, constructing the example is harder than just reviewing the code. And so what do people do? They review the code. Um, and so what we say for AI is if you touch a part of the compiler where like this even could be a problem, you have to write a test for it. It doesn't matter how hard it is to write the test, you have to come up with a test for it. Even if we wouldn't hold a human to that standard. Um, and then well reviewed and and high quality, which kind of don't mean anything. It's it's
-
it's we want the code to be good and whether it's good or not is up to the discretion of of the author and reviewer. >> Yeah, I think [clears throat] it's very very subjective when it comes to reviewing. Everyone has a different taste, different um of course there are some guidelines but different preferences when it comes to the structure of the code and like the the comments uh the way that things are being presented and and so on. So yeah, like the the reviewer plays a big part when it when it comes to getting some kind [clears throat] of a review going. So >> yeah, we have some comments from the chat. I will quickly read them. So Glober says most of AI usage for public things may be related to spam and this is bad.
-
>> I agree with that. Yeah, I I think one of the things that frustrates me, especially about Frontier Labs, but about AI companies in general, is there's very little attention paid to externalities. Um, and I mean externalities in the economic sense of you did a thing and it made you a bunch of money and it caused a bunch of harm to other people. Uh, and the canonical example of this is pollution, right? If you have some factory, they're making money by selling the products they make and they don't care about the pollution they produce in the air. And I think AI causes a lot of pollution, right? So for example, you know, these these AI generated comments, AI generated PRs where you can't tell how much um how how much effort people have put in, but also other kinds of of pollution. So for example, if you find something on the internet now, you don't know if it's written by a human or not, right? It's to some extent like this was always true. Like if you find a recipe in 2019 that's it's probably full of ads. It's probably you know written in 5 minutes by someone who doesn't care but it's recognizable and now I think it's less recognizable. And so I think that's another kind of of pollution. Um I forgot how we got on to this topic.
-
So, um, sermons from Russ Foundation live stream says, "This live stream is great and nuance. I really think AI haters should hear this." Thank you, Simmons. >> AI haters have heard this um both within and within the project and most of them think I'm wrong and have bad opinions. But [laughter] >> also he asks um first he says I have tried fully wipe coding Ross and I got to say the end product is horrible especially the amount of lines produced. Every feature always adds to the code base. Any insights on how to keep entropy down when letting LLM emit code or is this just inevitable? Any thoughts? Yeah. So, AI has very bad taste. Um, and I don't know how to describe what taste is. If I could, I would have written a blog post about it.
-
Um, but in general, for any instruction you give it, it will find some way to do it that is probably just weird and bad. Um, while still doing exactly the thing you told it to do. And I think one of the ways you can combat this is by writing specifications. So this is something that often as developers we don't do. We we figure out what we want to do as we write the code and whatever the code does is the behavior. We don't we don't really I mean we document some parts of it but not in the level of detail that specification does. And if you let an AI do this, if you let it write code first, it will not do the thing you want it to do. I mean it will it will do something and the something will probably match the documentation but will not be what you want. And so I think if you force it to write a specification first and you go through this adversarial review process on the specification itself rather than on the code, I think this can be really good at at least keeping the entropy manageable even if it's you have to review the code.
-
>> Some people say that skills are good. How do you what do you think about skills? >> That is a very broad statement. Um, I saw a blue sky post the other day which I liked which went something like, "A skill that is tailored to your personal workflow and is ridiculously detailed is probably good and a skill that tries to make the model be smarter is probably bad." Um, and and I would generally agree with that. It's you can't teach taste. What you can teach is these are the things that are important. generally like when I see AI doing something that is just silly, it's because it's not thinking about some constraint. So, for example, AI doesn't skim, AI doesn't understand what skimming is because it just reads every single word, right? And so, if you let it write a read me, it will write 15 paragraphs of, you know, 10 sentences each and you have no idea what's going on in there. And and to read it, you have to get an AI to read it back to you. Um, but I actually wrote a skill. I call it holistic writing that says this is how humans read writing.
-
Um, now the writing is still not good. Like I would not show it to another person, but it's good enough that like I can read the read me that I wrote without having to ask it to summarize it back to me, right? And and so if you say these are the things that I care about, this is how I want information to be organized, then I think skills can be good. Um, if the skill is make the code good, make no mistakes, like it's not going to work. Sermons also says if the code contains swear words it's objectively better. >> Okay, >> that [laughter] is a personal preference I think. Acquire your taste let's say >> I like that. >> I will say that the Photoshop comment is good. Do you know about the Photoshop comment? >> I don't know what is that. There is somebody who reverse engineered the Photoshop file format and they wrote a giant dot comment which I think is like 10 or 12 paragraphs long which is about how much they hate Adobe in general and Photoshop in specific. Um they say there are three different formats built into here. They have both little and big and even looking at this code is is bad for your mental health. That was a good comment and it did have profanity and so you know I do agree. I do. [laughter] >> Great. I need to check that out later.
-
>> So, G [clears throat] GME_RS says, "I found it quite heartbreaking, but when some of the Rust people expressed their views on the issue that proposed the symposium project goals in a way that I see as offensive, we could always disagree to some degree, but it's important if we could do that in a respectful way. Yeah. Yeah. I don't I don't have much to say about that except yeah, it frustrates me too and I don't like how people interact around this topic. Um I this is something I've talked about with other friends who maintain open source projects is when it comes to AI, it feels like people have stopped believing in the idea of liberalism. And when I say liberalism, I mean the idea that people who believe different things can still come together for a shared purpose. And I feel like when it comes to AI, people have have stopped believing that. They they they start believing if you use AI, we will just never get along. We will never be able to work together. And I think that's a shame.
-
>> Yeah. Um there's also some other comments. >> Mhm. >> Um Sermon says, "I guess people see the issue of AI as transcending nuance. LLMs are just evil technology in their eyes. And then GM GME says that is that is justified in their opinion, but not everyone shares the same point of view. For some of us, this is a great technology like any other that came by in the past. Do you see AI as um just another technology as well? Because I to some I I agree with the majority of the of the comment. I I see it as a just another tool, but I wonder what you think about it. >> I think AI is a tool of power like many tools and software. Um, and when people say that it's intrinsically evil, they're saying that when it is used, it is usually causing harm. And I would actually agree with that. Um, it it's >> it's not always the case, but is very often the case. Um, I think of AI similar to cars, actually. Um, cars and driving are one of the most dangerous things that Americans do on a daily basis. Commuting to work is very, very dangerous. Um, and people do it anyway.
-
Why? Because they have an economic need. It's it's how they get to work. It's how they get to school. It's how they get to the grocery store. Um, and so what I would say is I don't think AI is intrinsically evil, but I think the the society and the material conditions that we live in make it evil. And I would I would love to see a different society. And I've written about this on length on my blog. >> We will uh link to your blog in the description then. >> Mhm. It's jin.deaf. It's easy to remember. >> Yep. So um going back to the policy, I am curious about some of the practical aspects of um how things are being handled. For example, uh what happens if there is one large PR dropped in the repo? LLM generated um comments, description, everything is LM. Is it just being closed? What happened?
-
>> It's just being closed. Yeah. One of the reasons for this policy was to have a bright line of if you break this policy, we will just close your PR. Um and and whether to go further than that is up to moderator judgment. But if you just outright break the policy and you don't talk to us, like we're closing your PR. Like we're not going to spend any on it. >> People like your car analogy, by the way. And also they say I could argue that knife is evil. A knife isn't is evil. So yeah, I mean, of course. [laughter] All right. [clears throat] >> Yeah, it there's a tweet I like from a few years ago now that says um sweet summer child. Um, did you did you really believe that computers were not a tool of force? Right. It it there's another post by a professor I believe at MIT who wrote banking software for IBM in I think the 1970s and he says at the time it was a fun technical problem. It was very challenging. It was very interesting. I liked working on it. And 10 a and 10 years later, 10 years down the line, I think it was immoral of me to do that because what people were using that banking software for was to like fire accountants and send bills to people that they didn't, you know, like like taking them to collections for things they didn't do and and so on and so forth. Um and he says this professor
-
when you build a technology you have to think not only about the uses it can be put to but also the uses that it encourages right the uses that it will be put to in practice. And one example that he gives is computer vision. He says computer vision is going to be used for facial recognition. That's what it's going to be used for. And if you're building computer vision you have to think about is that something you're okay with? And if you don't think about it, that that's that's a problem. >> Yeah. >> And Glober says, "I think AI usage may be evil, but a tool shouldn't have opinion bias, etc." >> Actually disagree with that. I think any tool, regardless of whether it's AI or not, encourages you to use it in a certain way, and using it in that way brings you into the the viewpoint of the author. Um, and one example since we're talking about Rust, Rust brings you into the viewpoint that correctness matters and that memory safety is bad and that tools should help you rather than forcing you to think about forcing you to be correct every time, right? And that if you use Rust is is a view of the world that you are drawn into. But if you use C, it's not a view of the world that you're drawn into. Se is a view of the world that says you should just get it right. You should spend more time on it. you should be a better programmer.
-
Um, and it doesn't matter like how careful you are when you use C. It will still draw you into that view of the world no matter how careful you are. >> Uh, Jimmy wonders about your thoughts on symposium or any other tool that make AI rust coding better. >> I think those should be third party tools. anything that is like sponsored by the rest project intrinsically it means that the project approves of them right we we build clippy because we think clippy is good we have docs because we think clippy is good and so if we put symposium on wrestling.org that says to the world that we think AI is good and I don't think we should do that and and I don't think even for the people who use AI that it would be a good thing. There's this saying in the Python ecosystem that the standard library is where libraries go to die.
-
And I think it's often the same for Rust as much as we try it to be the opposite. Right. I think it's good that people are experimenting in the ecosystem. I don't think it needs to be official. >> I see. I have some questions about the policy. Um >> so we we talked about what happens uh when there's a large PR. it's being closed if it's been just no effort put in. Uh let's put it that way. >> Um I also seen that there is now this uh requirement or some some rule that says you you need to talk to a reviewer uh before starting a LLM generated uh pull request. um how does that work and what was the thought process behind this uh new rule? >> Yeah, so the basic idea is that people should consent to seeing LLM output. Um that's the reason that you can't post issues and GitHub comments without without quoting them and that's the reason that you need to ask a reviewer if you want to post LM code. Um, and the idea is that you shouldn't have to use an LLM if you don't want to, and you shouldn't have to see LLM text if you don't want to. People can use them as tools if they like, um, but they can't impose those tools and workflows on other people.
-
Yeah. Yeah. I see. And one other thing that is part of this policy is that um Na'vi if you use um AI while creating a PR or u writing a comment or or any interaction, you need to disclose it. I I think and um how does that work with things that you are doing behind the scenes? For example, I can use AI and kind of make a prototype and then I I go over the code and kind of put it in the shape that you know I maybe I I will rewrite it or maybe I'll I'll learn some concept using AI and and so on but the end result is produced by me. In that case, uh what happens? >> That is to disclose it. >> Which case? Yeah.
-
>> It's encouraged but not required. If if you wrote the code, then you don't need to disclose is the rule. We would like you to disclose, but we're not going to close your PR if we found out you didn't. >> Is there like a very like hard rule that you need to uh you need to disclose it? Like whether let's say I didn't use any AI. Do I need to say that still or no? >> No. We actually tried doing that at first and people found it really really annoying because they had to think about AI every time they open PR and so we just killed that whole idea. >> So okay. >> So if I use um LLM to write some pool request something I need to say that I used it and if I didn't use it then just don't say anything. >> That's right. >> Okay. [gasps] So is there any other thing that you want to share with people um who wants to interact with uh the rustlang uh repos rust lang rust repository like any other rules any other things to be careful about um any any other points about the policy that you want to specifically share >> I think the things I want to say are mostly not about the policy they're about open source in general Mhm.
-
>> Um, >> open source is such a complicated topic. There's another blog post by Aenoir who is the CEO of Tailscale called the gift of it's your problem now about open source and he says there's there's two ways to look at open source. One is that it's a gift by volunteers who have built this thing that they're proud of and they're sharing it with the world so that you can see it and also benefit. And the other is that it's it's an adversarial thing. People are trading their time for for more reputation, for better chances at a job and all these things. Um, and I think the hard part is that it's both, right? And so when people say I want to get into open source, I have to there's another talk by Evan, I think Chapelli is his name, the the the founder of Elm, the the programming language, where he says, let's not spend more decades encouraging bright young people to spend years of their lives um on a thing that will not help them. You know, like if someone send spends 10 years on an open source project and they get nothing out of it and they didn't want to do it, they're doing it because of social encouragement, right? Like like we have all these we have all these feedback loops that encourage people to get involved in open source, but we never really ask if that's a good thing or not. And I think we should be I think the people like me, like the people
-
getting funded to work on project goals and rest in general are very very very rare. Um there's a survivor effect bias and I don't think we should assume that open source the culture of open source is good. I have a lot of problems with the culture of open source. And how do you say that it has changed over the years after AI? Because I for example I started like many years ago like just because I I liked contributing to open source and nowadays I see the ecosystem changing a lot and >> sometimes it's hard to find the same motivation towards working on projects because there are a lot of changes related to AI. How do you see the culture change? >> Yeah. So for I was saying earlier how there's this this new split that didn't used to be there between people who care about the effects of their code and people who care about the the craft the community of their code. Um and I think this is another place where that comes up. Um can you repeat your question? Sorry I've forgotten.
-
>> Yeah. Um basically I want to like [clears throat] learn your thoughts on how the culture of open source changed after AI. >> Right. Yeah. And so I think another place where culture has changed is if you are doing AI for craft and I've seen this from people who hate AI like like on Masttodon and I posted about how it's bad. If you are doing code for the craft of it and AI does the thing first, it doesn't feel as good, right? You look at it and you're like, well, why am I spending time on it? Um, even if you would do higher quality, even if your code would be better, it it it doesn't it doesn't feel as good. Um, and I think in some ways it's it's ironic, right? like we as programmers have spent years and decades automating other professions and finally we've managed to automate our own profession and and we don't like it right we don't we don't like the result of this um and yeah I don't know what the answer to this is I I I think we need like economic changes to allow people to to not be dependent on on code and on programming for their livelihood but I don't know how to address the the lack of meaning, right?
-
Like how how do you address someone who just doesn't want to program if the AI can do it almost as well? I don't know. I don't know. So compared to now, so you you started contributing to uh to the Russ project compared that time uh with now and um could you tell me like would you be still motivated um if the same things would happen today with with all of the AI changes and open source? Would you still have the same motivation and and uh same desire to contribute? >> Yes, my motivation has always been on the effects and on the consequences um and AI although it's bad in very many ways. Um [sighs and gasps] is good at what it does. Like it's it's effective at what it does is what I would say. Um and so I would I would still want to get involved. I would still want to fix my problems and problems that other people have and contribute back to the community.
-
GM asks, "Do you see this LM policy evolving as AI tools get better or do you expect the core rule to stay the same?" >> Oh, so that question changed in the second half. Um, so the first half was will it change at all? And the answer is yes, definitely yes. Um, and the second question was, will the core of it stay the same even if other parts of it change? Um, and that I don't know because the world is changing so quickly. Um, I think really that depends more on the culture of the project than anything else, even more than capabilities. Um, and I don't want to try and predict how culture will change because that's not fair to other people in the project. Do you do you um think that AI companies nowadays they should contribute more directly to open source and communities like this?
-
>> Well, they are we had just recently Open AAI announced that they were contributing I think over half a million dollars to the Rust Foundation, right? um through grants through maintainers and residents through tokens for security scanning things like this. Um I I think the companies are like four for us companies that depend on open source are doing a pretty good job of contributing back. Maybe not ideal but pretty good. Um I think open source in general has always been fragile, right? Like the economic balance that allows open source to exist is fragile. Um, but I don't I don't think AI is necessarily the cause of that. It's like exacerbating things that were already there. >> I think there's also a trust um like growing trust issue >> um because of the like the LLM generated content in the open source communities. Do you think we will be able to preserve the trust in open source if things move on like this?
-
>> That I really don't know. That is a hard question. Um what I can say is that [sighs and gasps] the policy did not resolve the culture conflicts. Um it it resolved the external conflicts of like what do we do about a PR that's AI generated for the most part. um but did not resolve the the conflict of like what should we do you know how should the policy change what do people believe about AI what does this mean for the future of open source like people are still very very deeply conflicted about that >> sermon says I think vipcoded projects are essentially closed source you cannot read the slope it's a it's like a mockery of open source [laughter and gasps] interesting There's >> I think there's some truth to that. Yeah, you you cannot read the source unless an LLM explains it back to you.
-
Yeah, I would agree with that. Um I don't think it's I think there's always been a confusion between source available and free software in the free software foundation sense and open source. Um, and I think open source as a community of people who come together to build a shared project is like very comparatively rare and most like freely available code is not that. Um, and so I think if we described like vibe coded stuff on GitHub as source available that would like that would be better description of it. Mhm. N and N Jigglypuff says, "How actively are LMS used for security analysis of the compiler? Is manual analysis without LM assistance still the main approach?" >> That I don't have enough details about to answer. Well, um I know that LLMs are definitely used for security scanning both in the ecosystem and for the compiler and the rest of the project. Um I don't know the extent of that use. I do know for the standard library a very high percentage of security issues recently were caught by LLMs. Um I believe Pedrag Krevsky who is maintainer of cargo some vertex and represents open AI on the press foundation board has written several posts about security bugs that he's caught using security scanning.
-
>> We also did a live stream and we talked a lot about those. So you can go ahead and watch that. Um I am also curious about like learning Rust nowadays. Um how has that changed? Um do you think it's it's better now like it's easy to get into Rust or do you think learning actual Rust is is nowadays harder because we don't read code or documentation? This is something I've talked about a lot about, not not the specific thing of of learning REST, but of like does AI help or hurt you learn? Um, >> and one of the things that comes up over and over is if you use it like very judiciously, if you if you use it to do research and to find papers and things like this, then it can be helpful. But it's very easy to go from that to well, I'll ask it to tell me directly. I'll have it explain it to me and well I'll have it write some code and then I'll learn from the code it writes and then to well I'll just have it write all the code right is this this slippery slope um and I don't know what the answer is there yet I don't know um I have thoughts about education in general but you asked about learning rest so I'll not take too much of our time >> throughout the live stream you dropped
-
some um some papers ers. I wonder how you are getting aware of these things like through social media and other sources because um they were really valuable. Um we will probably link to them later but how was your um your learning process nowadays because yeah this seems like >> you read some stuff. >> I do read a lot. Um funnily enough I find a lot of things through Blue Sky. Blue Sky has a very active community around AI and about [cough] excuse me around current events. Um, and so for things that are happening right now, I generally find it through there. I also find things just through random things that my friends post through social media, um, through links on other blogs that I like, so on and so forth. >> Simon says, I think new developers are so cooked. I think economically they are really cooked. Like the job market right now is really really bad. And this is one of those externalities that I was talking about earlier where if you graduated computer science in 2024 or later even earlier like like between the end of CO and now it's just so bad it's just so bad. And I think companies are eating their own seed corn here. And what I mean by that is that they're going to stop hiring junior developers. their senior developers are going to age out or move to a different company and they're going to have no one
-
at all to replace them and at that point they're dependent on AI, right? Like like even even though they're not today, they will be and I think it's very shortsighted to them. >> Do you agree that Rust is the the best language for AI? >> That is a loaded question. Um best language for what purpose? What are you what are you using the AI to do, right? There's a thousand different things you can do with AI. >> Yeah. >> Um I think if your goal is to knock something out real quick, it probably doesn't matter what language you use. Um I think if you want something that is maintainable, then the language alone is not going to help you and you need like stricter processes and ways to avoid the entropy like someone said earlier. Um maybe rest helps a little bit. I wouldn't want to quantify it in any way. I asked that because there is this um this opinion that since the RS compiler is is kind of stopping you from making mistakes and generated code is like generated in a in a way that it just works. It's like a good pick for using AI. What do you think about this take? It really depends on what code you write. So we talked earlier about soundness and how your code is only memory safe if the compiler
-
is correct. Um the compiler is not completely correct. If you open the rest issue tracker at any point you see about 50 or so issues that are labeled with I unound which means that this bit of code is written in safe rest and causes a memory safety issue. Um and generally this is not a giant deal because people don't write code that looks like that. like it's it's bad code that looks weird and is hard to think about and people just don't write that code. But what does AI do? It writes bad code that is complicated and hard to think about, right? Um and so I actually don't trust soundness for safe rest code written by AI in the same way that I don't trust lean proofs that are written by AI. I don't know if you heard about this, but OpenAI had several proofs a few months ago where they said AI has solved this problem. They have formally proved it in lean and what they had formally proved is that the lean compiler had a bug you know. >> Yeah. So um when looking at the totality of the situation um how do you see we're we're moving forward? Um I I'm asking this question not like from like from a like AI standpoint or like the whole industry standpoint but in terms of Rust. Um how do you see things moving forward? You you're excited or how do you feel?
-
>> I think we are at a watershed moment. I I think we're at the a time in history and a time in the project where, you know, days feel like like weeks and and weeks feel like years. Um, very small actions are having a very outsized effect. Uh, and so it's hard for me to predict the future. I know what I want the future to be, which is people using AI to write code that is better, not faster to generate. Um, but that's not what everyone in the project wants, and I don't think it's necessarily what will be the outcome. Mhm. Yeah. And what is one thing that you want to uh say to people that you know after watching this live stream what they should do differently or how should they think uh what is your message out there? I think [sighs and gasps] my message is that AI despite all the harms that it causes um can be used locally to do good. Um, and the more effort that you personally put into that, the better it will be at that. Um, there's there's various things you can do to to constrain it and and to make it so that your judgment is the thing being amplified rather than whatever it cooks up. Um, and so if you're going to use AI, like like please use your judgment, right? Like that should be the thing that's at the forefront of your mind.
-
Before we wrap up, there are some questions. Um, I want to go through them really quickly. So, GME asks, "Would you use a vipcoded alternative rewrite of a big project?" For example, >> Oh, I already do. [laughter] >> So, for example, well, curl curl is like one of the largest projects, so I don't know if I would use a vibe coded thing of curl because it's it's security sensitive. Um, but for example, I use a like local issue tracker that's vibecoded. I use um what else? a sandbox uh is based on pi and and vcoded on top of docker like it it it depends what the base is right like what is the thing that you are trusting um just because it's I if you can have the foundation be secure and have the foundation be something you trust then like all the rest of the bugs you can fix as they come up but if you can't trust your foundation then you have a problem right >> and I think that actually can be a model for open source itself which is that we don't need to have every feature. What we do need to have is a foundation that you can trust, that you can rely on.
-
>> Yep. Okay. Maybe uh lastly, this is something that I I wonder um what is your AI setup? >> Oh god. Um we could be here for another half hour. [laughter] So I use a like I said, Pi on top of Docker. Um, but not just that. For example, I wanted to allow it to commit things, but I did not want to allow it to delete my git directory. So, I actually introduced what I call a broker. So, when it says git commit, that is not running the command. Um, it is actually going across a network boundary and the thing across the network boundary is running git commit. Um, and actually the the git folder is mounted read only in the agents environment. Um, and so you can get very very fine grained permissions by introducing this network boundary which I call a broker. Um, that's one thing I do. I have a whole thing. I was trying to get AI to work effectively over long periods of time. So I had something run for 18 hours in the last day or two and it actually pretty much worked. I corrected it twice or three times. Um, but otherwise it just worked. And the way I did that is I have like a system of checks and balances where I have what's called an executive. And the executive's only job is to make sure that everyone else is doing work that is important. Not that they're doing anything at all because AI loves to do things that don't matter, but doing work that is important. Um, and then there's like a builder role that builds the things or QA role whose only job is to
-
critique the thing. Um, and there's a strategist. And the strategist's job is to ask good questions. So whenever the the executive is confused like what should we be doing anyway, it asks the strategist and the strategist's prompt is assume that the executive is confused and wrong and on the wrong path. Um what are some questions you could ask that would get it back onto the right path, right? Because that's how I get things back onto the right path. Like I don't tell it do this, this, this, and this because the project's too big. What I do instead is I ask it like what has happened? Why has it happened? Why are all this complexity that you added necessary and what are the ways we can simplify it? Right? And and so I'm trying to to externalize that judgment to some extent at least. >> This is very similar to one of the projects that I was working on. Um um it's um I can send you the link later. It's called VOF and it's basically what you have described multiple agents just one of them is leading one of them is testing one of them is uh building and and so on but very interesting setup um and also JMR says in the chat I brought a git broker too I don't trust it committing directly.
-
>> Mhm. >> So yeah [laughter] >> very I want I want to note that you said lead there. Um lead is a different thing. Lead lead is someone who knows things and gives advice. Uh the executive is not that. The executive does not give advice because it doesn't know enough. Right? There's a good another good post. You were talking about posts before. Um also about also by Abanoir, the CEO of Tailscale and it's titled what does what does an executive do? What do they do all day? Why do they get paid money? Um and he says they have two jobs. One job is to enforce culture and values to make sure everyone working at a company has the right values. And their second job is to ratify the decisions. Not to make the decisions because they don't have enough information to make the decisions, but to ratify decisions that were already made. And if they don't like a decision that was already made, they take the two people, you say, "Go figure out something else between yourselves and come back to me with a better solution." Um, and you keep doing that until you like the solution. Mhm.
-
>> Got it. But you still in the like uh the like front seat controlling everything, but you have a setup where things are being delegated in a way, I think. >> Yeah. I I have a setup where I I get hand you the things that they don't know how to handle, right? >> Um and then I use the thing and I say, "Okay, this is where it's broken. Broken broken broken broken, right?" And then I hand that back to them. >> Okay. Interesting. Do you have a blog post about um your setup because we might add it to >> No. And I should write one. I've been meaning to for many months. I started on the sandbox portion of it. Um I actually have something called AI maintainers.jin.dev where have like little bits and pieces of this but not not the majority of it. >> Yeah, I think it it'll be very interesting. So >> yeah, >> I'll keep an eye eye out for that. All right, Jen, thank you so much. Um, anything you want to say to our audience, to the internet, last message to the world? [laughter] >> Um, I'll say the two things I always say when I write, which are, um, be intentional and how he communicate, know the outcome that you want. Um, and have positive visions of the future. I think those two things are very, very important.
-
>> And with that, we'll wrap this live stream up. Thank you everyone for joining us today. Uh we had Jen and we had very nice conversation about AI and Rust in open source. Um Jen, thank you again for being with us today. >> Thank you. >> All right, see you guys next time. Bye-bye.
No summary available yet.
View original episode ↗