WEBVTT

00:00:01.890 --> 00:00:06.120
<v Matthias>Welcome to Rust in Production, a podcast about companies who use Rust to shape

00:00:06.120 --> 00:00:07.340
<v Matthias>the future of infrastructure.

00:00:07.520 --> 00:00:11.660
<v Matthias>I'm Matthias Endler from corrode, and in our final episode for this season,

00:00:11.800 --> 00:00:16.710
<v Matthias>we have Orhun Parmaksız from JetBrains to talk about building developer tools for Rust.

00:00:19.590 --> 00:00:24.980
<v Matthias>Orhun, thanks so much for taking the time. I think a lot of people know you,

00:00:24.980 --> 00:00:27.760
<v Matthias>but maybe you want to say a few words about yourself.

00:00:28.290 --> 00:00:33.610
<v Orhun>Hello everyone i am orhun parmarxes i'm from turkey ankara recently moved to

00:00:33.610 --> 00:00:38.880
<v Orhun>berlin and this journey is thanks to open source and i've been,

00:00:39.730 --> 00:00:45.140
<v Orhun>people say that i'm a prolific open source rust maintainer i just say that i'm

00:00:45.140 --> 00:00:48.320
<v Orhun>a rat and that's what i've been working on.

00:00:48.320 --> 00:00:54.030
<v Orhun>ratatui, Rust, open source, some nerd stuff on the side,

00:00:54.030 --> 00:00:57.660
<v Orhun>music, and that's me, basically.

00:00:58.430 --> 00:01:01.380
<v Matthias>And before we get into JetBrains, what is ratatui?

00:01:02.200 --> 00:01:07.360
<v Orhun>So, ratatui is an open source project that changed my life, basically.

00:01:07.970 --> 00:01:15.720
<v Orhun>It's a terminal user interface library for Rust, and it is based on the tui-rs

00:01:15.720 --> 00:01:20.920
<v Orhun>library that existed very long time ago, very early in the Rust ecosystem.

00:01:21.480 --> 00:01:27.190
<v Orhun>Then me and a couple of other interested people, we forked it and we created

00:01:27.190 --> 00:01:30.810
<v Orhun>a community around it. And I've been leading this project for three,

00:01:30.810 --> 00:01:34.370
<v Orhun>four years now and I am very excited about terminals.

00:01:34.740 --> 00:01:42.120
<v Orhun>So this is my main open source work and we have been seeing a lot of progression in this space,

00:01:43.060 --> 00:01:46.450
<v Orhun>A lot of new tools, new experiments with ratatui.

00:01:47.210 --> 00:01:53.200
<v Orhun>And these days it's hard to explain, but it's a thermal user interface library

00:01:53.200 --> 00:01:57.470
<v Orhun>that has been ported to many environments, now runs on your bootloader,

00:01:57.470 --> 00:02:00.320
<v Orhun>embedded on your coffee machine.

00:02:00.880 --> 00:02:03.740
<v Orhun>It's a minimal UI library, let's put it that way.

00:02:04.310 --> 00:02:06.680
<v Orhun>And of course, it's written in Rust.

00:02:07.000 --> 00:02:12.230
<v Matthias>You're here today in Dusseldorf because we have been friends for a while And,

00:02:13.210 --> 00:02:16.040
<v Matthias>yesterday we talked about meeting each other for the first time.

00:02:16.040 --> 00:02:18.240
<v Matthias>That was at FrOSCon a couple of years ago.

00:02:18.790 --> 00:02:24.860
<v Matthias>And that was thanks to you also building a lot of packages, including Lychee

00:02:24.860 --> 00:02:30.190
<v Matthias>or lychee, as I call it, the link checker that I helped build as well.

00:02:30.940 --> 00:02:38.480
<v Matthias>And yeah, I think to me, you represent open source. This is truly what I believe open source is about.

00:02:38.930 --> 00:02:45.750
<v Matthias>So thanks for all your work up front but we are here today to talk about your

00:02:45.750 --> 00:02:49.280
<v Matthias>new gig tell us a little bit about that.

00:02:49.920 --> 00:02:53.950
<v Orhun>So before i dive into that let me talk about the packaging and

00:02:54.370 --> 00:02:59.840
<v Orhun>how i actually got into this space because i actually got into open source open

00:02:59.840 --> 00:03:05.630
<v Orhun>source without even realizing it i was just having fun on the internet and i got,

00:03:06.900 --> 00:03:13.790
<v Orhun>i became part of Arch Linux team I adopted many Rust packages I started creating

00:03:13.790 --> 00:03:19.680
<v Orhun>Rust packages and I packaged lychee some other projects and this gave me,

00:03:20.730 --> 00:03:26.870
<v Orhun>this opportunity to connect with more people and that's how we connected back

00:03:26.870 --> 00:03:32.010
<v Orhun>in the day I'm very grateful of that by the way and I've been just building,

00:03:32.750 --> 00:03:37.070
<v Orhun>projects, communities experiments along the way.

00:03:38.210 --> 00:03:46.430
<v Orhun>And some companies, some people realized my efforts and JetBrains was one of them.

00:03:46.890 --> 00:03:49.840
<v Orhun>I've been seeing them a lot at Rust conferences.

00:03:50.310 --> 00:03:55.890
<v Orhun>I have met people from JetBrains and in the last two years, I think,

00:03:56.380 --> 00:03:59.530
<v Orhun>they have been everywhere in the Rust ecosystem.

00:04:00.330 --> 00:04:04.630
<v Orhun>And basically we have connected, we have collaborated on some things.

00:04:04.630 --> 00:04:09.130
<v Orhun>I also live stream and create content. So we did some collaborations together.

00:04:09.830 --> 00:04:14.790
<v Orhun>And, you know, they had one open position and it was a perfect fit for me.

00:04:15.530 --> 00:04:21.150
<v Orhun>This is a Rust developer advocate position. And I basically,

00:04:21.750 --> 00:04:27.940
<v Orhun>became a part of this nice little team that is trying to represent Rust inside

00:04:27.940 --> 00:04:31.630
<v Orhun>of JetBrains and also represent JetBrains in the Rust ecosystem.

00:04:31.630 --> 00:04:37.740
<v Orhun>So I am now basically a bridge between the developers and also JetBrains.

00:04:38.100 --> 00:04:43.890
<v Orhun>So my job is to just basically do what I was doing, basically advocating for

00:04:43.890 --> 00:04:46.580
<v Orhun>Rust, but at a larger scale.

00:04:46.580 --> 00:04:52.110
<v Orhun>So this is what I've been doing and this is why I moved to Berlin to expand

00:04:52.110 --> 00:04:54.340
<v Orhun>my network, bring more people to Rust,

00:04:55.230 --> 00:05:02.410
<v Orhun>be visible in more events, and also, of course, to open source and spread the

00:05:02.410 --> 00:05:03.870
<v Orhun>name of Red Hat Tree, personally.

00:05:04.080 --> 00:05:10.270
<v Matthias>JetBrains builds integrated development environments. Does that mean you got

00:05:10.270 --> 00:05:12.060
<v Matthias>bored of text user interfaces?

00:05:12.610 --> 00:05:17.350
<v Orhun>That's a very good question, and this is a question that I got asked multiple times.

00:05:18.090 --> 00:05:24.470
<v Orhun>So I see it this way. I've been a part of the terminal UI and the NeoVim,

00:05:24.790 --> 00:05:28.850
<v Orhun>like all this like terminal ecosystem for a while.

00:05:29.480 --> 00:05:32.350
<v Orhun>And I was using NeoVim. I still use it actually.

00:05:33.170 --> 00:05:40.730
<v Orhun>And now that I'm a part of a different side of the editor experience,

00:05:40.730 --> 00:05:44.110
<v Orhun>which is graphical, more involved.

00:05:45.170 --> 00:05:48.250
<v Orhun>More like designed for complex workflows.

00:05:48.840 --> 00:05:56.070
<v Orhun>And I see this as a positive because RustRover is actually a great IDE.

00:05:56.990 --> 00:06:02.540
<v Orhun>It's built for Rust developers. It has many features that is designed for them.

00:06:02.900 --> 00:06:06.410
<v Orhun>And I am not personally being...

00:06:07.200 --> 00:06:13.320
<v Orhun>Like required to use RustRover but since I am a part of JetBrains and RustRover

00:06:13.320 --> 00:06:16.840
<v Orhun>is one of the IDEs and it's for Rust people,

00:06:17.480 --> 00:06:23.470
<v Orhun>I think it makes sense for me to use it nowadays so that I can bring the feedback

00:06:23.470 --> 00:06:29.290
<v Orhun>into RustRover and also see this other side of the table where how,

00:06:29.990 --> 00:06:36.390
<v Orhun>more like how enterprise companies how like other people were not using terminal,

00:06:36.860 --> 00:06:40.550
<v Orhun>using rust and i can just be active in in both,

00:06:41.070 --> 00:06:47.150
<v Orhun>both worlds so i see this as a big positive and i actually liked RustRover like i have.

00:06:47.930 --> 00:06:52.200
<v Orhun>Used it i think when we first collaborated with jetbrains more than a year ago,

00:06:52.760 --> 00:06:55.960
<v Orhun>and now i use it every day and,

00:06:56.570 --> 00:07:01.520
<v Orhun>i like it i've configured in the same way that i use neovim there's a plugin

00:07:01.520 --> 00:07:05.730
<v Orhun>called ideavim and you can just port all of your existing nail vim key bindings,

00:07:06.340 --> 00:07:13.670
<v Orhun>so i am not leaving the terminal that's not the case the terminal is my home and this is how i,

00:07:14.280 --> 00:07:20.650
<v Orhun>get things done i'm just using another tool to develop these days so there's

00:07:20.650 --> 00:07:26.430
<v Orhun>no difference for me it's it's just an editor and it's actually built for,

00:07:26.960 --> 00:07:31.240
<v Orhun>rust people and yeah i'm trying to make it make it better,

00:07:31.730 --> 00:07:36.700
<v Orhun>and improve this thing that is for the rest people so i think this is a this

00:07:36.700 --> 00:07:42.120
<v Orhun>is a positive so yeah i see that there's a bit of a conflict but it's actually a good thing.

00:07:42.320 --> 00:07:47.320
<v Matthias>Chat brains is historically very much rooted in the java ecosystem they even

00:07:47.320 --> 00:07:52.950
<v Matthias>wrote their own java dialect if you will called kotlin does that mean,

00:07:54.170 --> 00:07:59.840
<v Matthias>the IDE will always stay in the JVM environment, or is there a chance that you

00:07:59.840 --> 00:08:02.240
<v Matthias>will integrate more Rust code in the future?

00:08:02.540 --> 00:08:07.600
<v Orhun>So there are some Rust parts in the IntelliJ platform.

00:08:07.980 --> 00:08:13.310
<v Orhun>We call it the platform, the base IDE, and the other IDEs are based on this.

00:08:13.630 --> 00:08:19.500
<v Orhun>So this is a really mature Java and Kotlin code base, and it seems like it's

00:08:19.500 --> 00:08:24.240
<v Orhun>going to stay a JVM-based thing for the foreseeable future.

00:08:25.290 --> 00:08:31.290
<v Orhun>We experiment with new tools. We try to integrate Rust more when it makes sense.

00:08:31.890 --> 00:08:34.710
<v Orhun>But for now, I think it's going to be a JVM-based thing.

00:08:35.500 --> 00:08:42.400
<v Orhun>And for small things, such as some services maybe or some file system operations,

00:08:42.620 --> 00:08:45.190
<v Orhun>Rust really makes sense because you need speed there.

00:08:45.680 --> 00:08:50.110
<v Orhun>But like I said, this is the way for a long time and everything is based on

00:08:50.440 --> 00:08:55.210
<v Orhun>the platform and it's not going to change in the future.

00:08:55.530 --> 00:09:00.730
<v Matthias>Now, I'm personally a Zed user and one thing I noticed was that Zed boots up instantly,

00:09:01.230 --> 00:09:08.330
<v Matthias>and when you open a file with a certain extension, then it starts analyzing the content.

00:09:08.790 --> 00:09:11.970
<v Matthias>For example, if you open a Rust project, it doesn't immediately start.

00:09:11.970 --> 00:09:17.260
<v Matthias>If you open the first file, then lazily it sort of builds up its index.

00:09:17.260 --> 00:09:19.050
<v Matthias>And I think that's kind of a great...

00:09:20.060 --> 00:09:26.730
<v Matthias>Approach because in the past when I worked with IntelliJ products the boot up

00:09:26.730 --> 00:09:29.080
<v Matthias>time was a bit frustrating so I always wondered,

00:09:30.100 --> 00:09:35.440
<v Matthias>okay when's the project done when is it loaded when can I use the IDE properly

00:09:35.580 --> 00:09:40.380
<v Matthias>do you feel the same and are there ways on how to improve that.

00:09:41.020 --> 00:09:47.080
<v Orhun>So I will speak behalf of RustRover because this is what I am focused on.

00:09:47.620 --> 00:09:53.560
<v Orhun>And RustRover is actually designed for more complex use cases.

00:09:53.560 --> 00:09:59.320
<v Orhun>So in the case that you're editing a single file, RustRover might not make sense.

00:09:59.680 --> 00:10:04.660
<v Orhun>There is, of course, a mode called light edit, which you can just run.

00:10:05.680 --> 00:10:11.260
<v Orhun>From the CLI and just edit a single file without loading all the plugins or

00:10:11.260 --> 00:10:14.140
<v Orhun>all the indexing features you could use that,

00:10:14.600 --> 00:10:19.830
<v Orhun>but RustRover itself is is something that comes out of the box with all the

00:10:19.830 --> 00:10:22.480
<v Orhun>features that you need to do rust development,

00:10:22.940 --> 00:10:28.440
<v Orhun>and that's why it is been it's a bit heavy and we are not,

00:10:28.980 --> 00:10:31.460
<v Orhun>trying to compete with with like,

00:10:32.180 --> 00:10:37.490
<v Orhun>light editors in this in this space we are trying to be as much as,

00:10:38.470 --> 00:10:45.400
<v Orhun>as much productive as for for the rust developers themselves we have the the debugger we have the,

00:10:46.180 --> 00:10:51.520
<v Orhun>the library support for the web web frameworks we have other rust specific features so,

00:10:52.120 --> 00:10:55.900
<v Orhun>it comes with everything everything bundled and,

00:10:56.420 --> 00:11:02.210
<v Orhun>this is this is why it feels a bit heavy and the startup time it has improved

00:11:02.210 --> 00:11:08.920
<v Orhun>a lot because there's a lot of ongoing work on that in the platform side And there's actually,

00:11:09.900 --> 00:11:15.140
<v Orhun>another Java runtime you're using in the platform side to make it better.

00:11:15.520 --> 00:11:21.100
<v Orhun>So we are aware of these issues and we're trying to solve them.

00:11:21.100 --> 00:11:26.500
<v Orhun>But like I said, the RustRover itself is for more of a...

00:11:26.680 --> 00:11:31.060
<v Orhun>If you have a complex Rust project, RustRover is the great fit.

00:11:31.690 --> 00:11:35.000
<v Orhun>And just for editing a single file, it might not make sense.

00:11:35.440 --> 00:11:40.310
<v Matthias>There was a new IDE from JetBrains called Fleet, which is now deprecated,

00:11:41.110 --> 00:11:43.360
<v Matthias>and it used a hybrid architecture.

00:11:43.570 --> 00:11:46.030
<v Matthias>That means it was partially written in Rust.

00:11:46.340 --> 00:11:50.030
<v Matthias>Do you know which parts were written in Rust and why Kotlin wasn't used there?

00:11:51.020 --> 00:11:57.620
<v Orhun>So just for some context, Fleet was a lightweight, cloud and collaboration oriented

00:11:58.020 --> 00:12:01.530
<v Orhun>experimental IDE, and it was announced in 2021.

00:12:02.270 --> 00:12:07.890
<v Orhun>And now the Air is the agent-centric successor to Fleet.

00:12:08.750 --> 00:12:12.710
<v Orhun>And Fleet used Rust in its file system daemon.

00:12:13.250 --> 00:12:18.830
<v Orhun>This was the agent that lives next to your code spawns processes and does a bunch of,

00:12:19.660 --> 00:12:23.650
<v Orhun>other like file system stuff so it really made sense to use Rust there because

00:12:23.650 --> 00:12:25.330
<v Orhun>you need performance you need to fast,

00:12:25.900 --> 00:12:33.340
<v Orhun>do some fast indexing for example you need to call some processes so that's why we picked Rust there,

00:12:33.880 --> 00:12:39.450
<v Orhun>we had the small always running cross-platform service so we didn't really need

00:12:39.450 --> 00:12:45.340
<v Orhun>a JVM We wanted to have less memory usage, less CPU usage.

00:12:45.990 --> 00:12:49.540
<v Orhun>So yeah, this was the part of Fleet that used Rust.

00:12:50.250 --> 00:12:55.790
<v Orhun>So Air is, like I said, it is the successor to Fleet.

00:12:56.130 --> 00:12:59.090
<v Orhun>So it uses the same file system daemon.

00:12:59.850 --> 00:13:04.720
<v Orhun>And that's where the Rust made sense for us. But the rest of the IDE is,

00:13:04.720 --> 00:13:08.140
<v Orhun>again, based on the IntelliJ platform.

00:13:09.160 --> 00:13:13.940
<v Matthias>The other thing I remember about Chatbrain's IDEs was that debugging was always a joy.

00:13:14.600 --> 00:13:17.660
<v Matthias>You could really look at the data structures, and I really liked that part.

00:13:17.660 --> 00:13:20.080
<v Matthias>So you could really go deep on this.

00:13:20.610 --> 00:13:23.650
<v Matthias>But then I also know that Rust has the...

00:13:24.750 --> 00:13:31.990
<v Matthias>MIR, this mid-level intermediate representation. How does RustRover hook into

00:13:31.990 --> 00:13:34.270
<v Matthias>that ecosystem, if at all?

00:13:35.040 --> 00:13:38.850
<v Matthias>How does that part work? Do you use that for debugging sessions in RustRover?

00:13:39.540 --> 00:13:48.090
<v Orhun>Yeah, first off, RustRover right now is the best way to debug Rust programs, in my opinion.

00:13:48.650 --> 00:13:51.610
<v Orhun>There isn't, I think, a better way of doing that.

00:13:51.970 --> 00:14:00.150
<v Orhun>Because it is the same as we are used to for a long time. Before using Rust,

00:14:00.150 --> 00:14:06.630
<v Orhun>I was using IntelliJ IDEA, for example, and just debugging Java applications.

00:14:07.210 --> 00:14:11.520
<v Orhun>And I was really used to the debugger itself. Now I use Rust,

00:14:11.940 --> 00:14:17.850
<v Orhun>and it is almost the same experience, and I am very used to it by default.

00:14:18.350 --> 00:14:28.920
<v Orhun>So the experience is very intuitive and the way that we do debugging in RustRover is we use this,

00:14:29.540 --> 00:14:36.390
<v Orhun>mid-level ir and maybe i could just talk about the life cycle of a rust code

00:14:36.390 --> 00:14:40.140
<v Orhun>before i get more into the technical details so.

00:14:41.640 --> 00:14:44.760
<v Orhun>Let's say you type something in the editor.

00:14:45.230 --> 00:14:52.150
<v Orhun>First, we take that code and we turn that into a super detailed syntax tree.

00:14:52.900 --> 00:15:00.290
<v Orhun>So every character comment, every code is being turned into this PSI,

00:15:00.290 --> 00:15:02.740
<v Orhun>which is Program Structure Interface.

00:15:03.480 --> 00:15:10.240
<v Orhun>Then we take that and we build a cleaned up, type checked version of your program,

00:15:10.940 --> 00:15:16.580
<v Orhun>that matches how Rust understands the code. And this is called typed high-level

00:15:16.580 --> 00:15:17.990
<v Orhun>intermediate representation.

00:15:18.330 --> 00:15:23.870
<v Orhun>And after that, MIR comes, which is the mid-level intermediate representation.

00:15:24.210 --> 00:15:29.050
<v Orhun>And that's where there's like small, simple steps and basic blocks.

00:15:29.730 --> 00:15:35.660
<v Orhun>And this is where it's easy for the compiler and tools to analyze and transform.

00:15:36.040 --> 00:15:44.890
<v Orhun>And that's that representation used in the debugger itself and then after that the machine code comes.

00:15:45.480 --> 00:15:54.560
<v Orhun>So we build our own MIR inside the IDE and we use that in the debugger to interpret Rust expressions.

00:15:55.310 --> 00:16:01.990
<v Orhun>So when you evaluate an expression or a function in a debug session we lower

00:16:01.990 --> 00:16:09.260
<v Orhun>that to MIR and sends that to the debugger, and we execute that against the paused process state.

00:16:09.810 --> 00:16:16.420
<v Orhun>So we can support things like macros or other code that wouldn't be directly

00:16:16.420 --> 00:16:18.690
<v Orhun>available from the compiled binary alone.

00:16:19.490 --> 00:16:25.010
<v Orhun>Of course, this comes with some trade-offs in complexity and edge cases since

00:16:25.010 --> 00:16:29.160
<v Orhun>we use our custom intermediate representation.

00:16:29.560 --> 00:16:35.100
<v Orhun>So if something goes wrong in the debugger we basically fall back to the classic,

00:16:35.650 --> 00:16:42.940
<v Orhun>evaluate in the debugger mode so it has its own fallbacks but it,

00:16:44.020 --> 00:16:49.730
<v Orhun>General overview is that we basically have this transformation in the Rust code.

00:16:50.190 --> 00:16:54.870
<v Orhun>And since we have this custom way of doing things, we have the full control,

00:16:55.390 --> 00:16:59.790
<v Orhun>in the debugger itself. And we can execute expressions. We can step over,

00:16:59.790 --> 00:17:04.750
<v Orhun>step into, and do many things with the Rust code itself.

00:17:05.110 --> 00:17:07.670
<v Orhun>So that's why it's very powerful.

00:17:08.060 --> 00:17:13.850
<v Orhun>And you don't have to rely on any other debugger tooling for this.

00:17:14.610 --> 00:17:19.970
<v Orhun>It's all done in the IDE itself. You don't need things like,

00:17:19.970 --> 00:17:24.570
<v Orhun>for example, JDB or some other LLVM-powered thing.

00:17:25.220 --> 00:17:29.140
<v Orhun>It's all done in there and that's why it makes it so powerful.

00:17:30.420 --> 00:17:34.010
<v Matthias>The Rust-sender library is pretty stable for the most part.

00:17:34.840 --> 00:17:39.700
<v Matthias>But what about Rust internals? It must be a nightmare to keep up with the changes

00:17:39.700 --> 00:17:42.540
<v Matthias>in your own representation of the MIR.

00:17:43.110 --> 00:17:46.930
<v Orhun>So we run some regression tests whenever,

00:17:47.660 --> 00:17:51.140
<v Orhun>a new thing comes out and we have this,

00:17:51.800 --> 00:17:58.980
<v Orhun>way of testing things we have a test suite and we basically make sure that things

00:17:58.980 --> 00:18:05.290
<v Orhun>do not break and we have some automation when it comes to the regression tests.

00:18:06.090 --> 00:18:15.160
<v Orhun>When it comes to Nightly's, for example, they usually break the parser inside of the IDE,

00:18:15.810 --> 00:18:21.670
<v Orhun>and we have to make sure that there is no regressions between new versions.

00:18:22.080 --> 00:18:30.730
<v Orhun>So we built a big parser regression suite over the Rust standard lib.

00:18:31.360 --> 00:18:37.870
<v Orhun>And we specifically test against today's nightly so we see breakages as soon as they land.

00:18:38.520 --> 00:18:43.980
<v Orhun>And whenever that happens, we get a notification on the CI and the on-duty person

00:18:43.980 --> 00:18:50.530
<v Orhun>picks it up and adjust the grammar or extend the fixtures so we don't.

00:18:51.710 --> 00:18:53.950
<v Orhun>Ship something that is broken.

00:18:54.770 --> 00:18:59.660
<v Orhun>So the platform that we use for this is actually something custom and something

00:18:59.660 --> 00:19:06.070
<v Orhun>that we have built with Rust. It's called Crate Rover and it runs almost on,

00:19:06.910 --> 00:19:08.630
<v Orhun>every RustRover commit.

00:19:08.950 --> 00:19:17.690
<v Orhun>So whenever we land a feature or a fix, we run some tests, some diagnostics on 60 real projects.

00:19:18.230 --> 00:19:24.580
<v Orhun>And CrateRover aggregates those results and we highlight the false positives,

00:19:25.110 --> 00:19:26.500
<v Orhun>and we get notifications.

00:19:27.170 --> 00:19:33.260
<v Orhun>We also have a classic way of testing, which is called Crawler.

00:19:33.260 --> 00:19:36.620
<v Orhun>And we use the same like diagnostics.

00:19:37.820 --> 00:19:43.930
<v Orhun>Approach but the scroller periodically scans thousands of projects on an external

00:19:43.930 --> 00:19:47.930
<v Orhun>linux machine and dumps everything on on a duck db,

00:19:48.520 --> 00:19:55.200
<v Orhun>and we basically go ahead and mine the easy false positives and see like the global health,

00:19:55.820 --> 00:20:02.590
<v Orhun>of our analysis so this is more like a less less automated but more like a manual approach,

00:20:03.440 --> 00:20:08.360
<v Orhun>so that's what we use to make sure that nothing breaks And this is actually

00:20:08.360 --> 00:20:15.030
<v Orhun>quite similar to what the Rust project itself, the Rust compiler itself is doing.

00:20:15.410 --> 00:20:21.410
<v Orhun>There is a service called Crater, and this is the tool that rebuilds a lot of

00:20:21.410 --> 00:20:24.770
<v Orhun>crates against new compilers to catch breakages.

00:20:26.980 --> 00:20:32.320
<v Orhun>Inspired by this and built CrateRover. And we basically have this test regression

00:20:32.320 --> 00:20:34.760
<v Orhun>suite that runs very frequently.

00:20:35.120 --> 00:20:42.100
<v Orhun>We catch any regressions or bugs this way and we don't really ship anything broken.

00:20:42.850 --> 00:20:46.900
<v Matthias>I like the name CrateRover because it's a fun play on CrateR and RustRover.

00:20:47.520 --> 00:20:52.380
<v Matthias>Kudos to whoever came up with that one. Earlier you mentioned procedural macros.

00:20:53.180 --> 00:20:56.680
<v Matthias>And these can be particularly gnarly to get right.

00:20:56.970 --> 00:21:02.780
<v Matthias>And procedural macros are also very powerful because you can run pretty much

00:21:02.780 --> 00:21:05.350
<v Matthias>any code on a user's machine.

00:21:05.900 --> 00:21:09.490
<v Matthias>That means they can be a hazard.

00:21:10.240 --> 00:21:17.300
<v Matthias>How do you sandbox those heavy, malicious procedural macros without freezing

00:21:17.300 --> 00:21:21.840
<v Matthias>the IDE or without really troubling the user too much about it?

00:21:22.650 --> 00:21:29.140
<v Orhun>Have you seen the pop-up box whenever you open a Rust project in RustRover ?

00:21:29.140 --> 00:21:29.940
<v Matthias>Yeah, yeah.

00:21:29.940 --> 00:21:37.730
<v Orhun>It asks for a confirmation because we don't trust projects by itself.

00:21:38.300 --> 00:21:41.560
<v Orhun>You have to actually click trust project.

00:21:42.070 --> 00:21:49.200
<v Orhun>And this notification box is actually very tied to this procedural macros question

00:21:49.200 --> 00:21:53.770
<v Orhun>because we don't want to run any untrusted code as default.

00:21:54.170 --> 00:22:01.800
<v Orhun>So based on your input to this notification box, we either run the macros or

00:22:01.800 --> 00:22:04.800
<v Orhun>we don't run them. So they are untrusted by default.

00:22:05.340 --> 00:22:09.100
<v Orhun>And they're also running in a separate helper process.

00:22:09.820 --> 00:22:12.780
<v Orhun>And in this way, we...

00:22:13.740 --> 00:22:17.420
<v Orhun>We catch panics or crashes.

00:22:17.690 --> 00:22:22.640
<v Orhun>So they don't really affect the IDE itself, but it just crashes the process

00:22:22.640 --> 00:22:29.530
<v Orhun>itself. So we run them off the UI thread with timeouts, size limits, and caching.

00:22:29.930 --> 00:22:38.560
<v Orhun>So if macro is malicious or too slow or laggy, we basically cancel that and

00:22:38.920 --> 00:22:43.310
<v Orhun>fall back to the no expansion, which is close to the untrusted mode.

00:22:44.000 --> 00:22:48.130
<v Orhun>And so that the editor does not affect from it. Also, you're not affected from,

00:22:48.680 --> 00:22:50.320
<v Orhun>the side effects of macros.

00:22:50.850 --> 00:22:57.330
<v Matthias>We talked about the Rust MIR, the medium intermediate representation.

00:22:58.200 --> 00:23:04.360
<v Matthias>But the other part of Rust's static analysis ecosystem is Rust Analyzer.

00:23:04.870 --> 00:23:09.470
<v Matthias>And that's another huge project with a lot of contributors. There's a lot of,

00:23:10.950 --> 00:23:13.540
<v Matthias>work that went into that project.

00:23:14.630 --> 00:23:20.310
<v Matthias>Do you use that somehow or do you have an alternative to that in Chatbrain's products?

00:23:21.640 --> 00:23:27.310
<v Orhun>There's a really good talk from our rust ecosystem leader vitaly and there's

00:23:27.310 --> 00:23:31.320
<v Orhun>also a live stream from some time ago with,

00:23:32.430 --> 00:23:38.810
<v Orhun>with someone from our team and also from rust analyzer team lucas from rust analyzer and,

00:23:39.720 --> 00:23:45.740
<v Orhun>vlad from our team so they're like really good conversations happening in this

00:23:45.740 --> 00:23:47.090
<v Orhun>space and we are actually trying

00:23:47.090 --> 00:23:52.070
<v Orhun>to solve the same problem and we complement each other in some ways.

00:23:52.600 --> 00:23:54.310
<v Orhun>But let's put it this way. So.

00:23:58.140 --> 00:24:04.810
<v Orhun>We are solving problems in the same space, but we have different answers to those questions.

00:24:05.300 --> 00:24:14.140
<v Orhun>So JetBrains program structure interface and Rust Analyzer's internals,

00:24:14.670 --> 00:24:17.390
<v Orhun>they both keep a lot of stuff in memory.

00:24:17.850 --> 00:24:22.970
<v Orhun>And that's why they can be quick in doing operations in,

00:24:24.090 --> 00:24:31.050
<v Orhun>in terms of lsp features we just have like like i said different answers to those so,

00:24:31.800 --> 00:24:37.180
<v Orhun>the the way that we handle things is different in the way that we organize them

00:24:37.180 --> 00:24:40.230
<v Orhun>differently in the memory so rpsi,

00:24:40.850 --> 00:24:48.110
<v Orhun>keeps one big shared picture of the whole project, whereas Rust Analyzer keeps lots of tiny cached,

00:24:48.940 --> 00:24:50.390
<v Orhun>questions and answers.

00:24:52.480 --> 00:24:58.090
<v Orhun>They are just in different ways and different ways of spanning the memory.

00:24:58.510 --> 00:25:02.790
<v Orhun>Another difference is that our way of,

00:25:03.750 --> 00:25:09.970
<v Orhun>handling things in terms of memory is good at doing refactors,

00:25:10.140 --> 00:25:15.260
<v Orhun>renames, and cross-language changes because we have this big picture of the,

00:25:15.720 --> 00:25:17.150
<v Orhun>layout of your Rust program,

00:25:17.660 --> 00:25:20.650
<v Orhun>whereas Rust Analyzer is super

00:25:20.650 --> 00:25:26.630
<v Orhun>fast for quick questions such as what is this type doing or what is the,

00:25:27.700 --> 00:25:32.810
<v Orhun>the underlying thing behind this Rust object, and so on.

00:25:33.230 --> 00:25:39.700
<v Orhun>So there are some differences, but they are just different tools that are solving,

00:25:40.290 --> 00:25:42.450
<v Orhun>a similar, same problem, let's say.

00:25:43.040 --> 00:25:46.600
<v Matthias>And JetBrains PSI is written in a JVM language.

00:25:46.960 --> 00:25:53.870
<v Matthias>That means there's no chance to merge those efforts into a shared library at some point.

00:25:54.630 --> 00:25:57.960
<v Matthias>If I understand you correctly, that's also not the goal because you're looking

00:25:57.960 --> 00:25:59.770
<v Matthias>at the problem from a different angle.

00:26:00.050 --> 00:26:02.760
<v Matthias>One is the global view, the other one is the local view.

00:26:03.710 --> 00:26:08.150
<v Matthias>But I still wonder if there's any middle ground that both projects could profit

00:26:08.150 --> 00:26:10.800
<v Matthias>from as part of a shared library, so to say.

00:26:11.680 --> 00:26:18.330
<v Orhun>I think there are some parts that they're handling very similarly and we are,

00:26:19.310 --> 00:26:20.880
<v Orhun>basically sharing those with

00:26:20.880 --> 00:26:25.690
<v Orhun>each other and just trying to inspire each other to make things better.

00:26:26.140 --> 00:26:30.720
<v Orhun>But I don't think there's an effort to merge things together and just have one

00:26:31.080 --> 00:26:34.280
<v Orhun>shared way or like a common way of handling things.

00:26:34.590 --> 00:26:42.150
<v Orhun>So Rust Analyzer's internals, which is called the Salsa framework or JetBrains PSI indexing,

00:26:43.210 --> 00:26:48.420
<v Orhun>is just different approaches and we usually share those things with each other

00:26:48.420 --> 00:26:53.240
<v Orhun>but there isn't a work going on to have a middle ground.

00:26:53.730 --> 00:26:56.640
<v Orhun>We don't share code but we share a lot of ideas.

00:26:56.810 --> 00:27:04.550
<v Matthias>But if you wanted to share code inside of jetbrains ide would you then use the classic jvm,

00:27:05.610 --> 00:27:12.770
<v Matthias>jni ffi interface or would you keep them strict strictly separate sorry let me rephrase that,

00:27:13.960 --> 00:27:16.390
<v Matthias>no i would just ask it just like it is here,

00:27:18.050 --> 00:27:22.970
<v Matthias>do you run any rust code inside your classic jvm ide's via,

00:27:24.470 --> 00:27:32.290
<v Matthias>the j via the java native interface or the foreign function interface or do

00:27:32.290 --> 00:27:34.840
<v Matthias>you keep those parts strictly separate.

00:27:35.860 --> 00:27:41.960
<v Orhun>So there's nothing that that runs rust so they are strictly separate because

00:27:41.960 --> 00:27:46.400
<v Orhun>we have this intellij platform that is JVM and Kotlin,

00:27:46.920 --> 00:27:52.100
<v Orhun>and we have some helper utilities, some external tools that we call,

00:27:52.100 --> 00:27:58.630
<v Orhun>and those use Rust, but we don't actually have Rust code that is running inside the IDE.

00:27:58.880 --> 00:28:03.330
<v Orhun>We talk to these processes via IPC, inter-process communication,

00:28:03.940 --> 00:28:07.630
<v Orhun>so those Rust libraries are not loaded into JVM.

00:28:08.480 --> 00:28:16.370
<v Orhun>This also helps us to avoid any crashes or panics when they happen and we don't,

00:28:16.930 --> 00:28:19.450
<v Orhun>we don't crash the whole id basically we just,

00:28:20.190 --> 00:28:26.210
<v Orhun>the process just crashes so that's also the benefit of that so we don't have any like rust code,

00:28:26.960 --> 00:28:29.700
<v Orhun>running inside of the jvm runtime.

00:28:29.940 --> 00:28:35.270
<v Matthias>You said that you have this global overview of everything that's going on in a rust project but,

00:28:36.190 --> 00:28:40.720
<v Matthias>doesn't that consume a lot of memory? Do you really load all the objects into

00:28:40.720 --> 00:28:45.000
<v Matthias>memory for indexing libraries or do you use stops?

00:28:45.250 --> 00:28:52.660
<v Orhun>So we don't load everything. We just keep a skinny table of contents in memory.

00:28:52.990 --> 00:28:57.340
<v Orhun>So we have name, signature, types, instead of the whole thing.

00:28:57.730 --> 00:29:03.980
<v Orhun>So the library index is just a thin graph of their APIs rather than just having

00:29:03.980 --> 00:29:06.370
<v Orhun>the whole AST in the memory.

00:29:07.180 --> 00:29:13.140
<v Orhun>So we keep a lot of crates as known without using the memory,

00:29:13.600 --> 00:29:17.720
<v Orhun>but we still have some kind of understanding of what,

00:29:18.240 --> 00:29:22.100
<v Orhun>the library is doing, how to go to their function definitions,

00:29:22.100 --> 00:29:27.090
<v Orhun>how to do code completion and refactors on their public APIs.

00:29:27.090 --> 00:29:34.060
<v Orhun>So there's some optimizations that we do in order to keep the memory usage low

00:29:34.060 --> 00:29:40.450
<v Orhun>as possible, but also keep the functionality as much as possible.

00:29:41.000 --> 00:29:45.770
<v Matthias>A lot of your competitors are open source projects. We talked about that before.

00:29:46.570 --> 00:29:52.860
<v Matthias>JetBrains is not, at least at its core. Do you still support the open source ecosystem?

00:29:53.150 --> 00:30:02.200
<v Orhun>So JetBrains has always invested in open source. There's some examples of Kotlin and its ecosystem,

00:30:03.140 --> 00:30:08.590
<v Orhun>intelj idea community edition many plugins are open source so we are actually,

00:30:09.470 --> 00:30:15.570
<v Orhun>we are we keep supporting open source in any way that is possible and in the

00:30:15.570 --> 00:30:22.220
<v Orhun>rust world as well we have RustRover is a commercial id it's for professional teams,

00:30:22.800 --> 00:30:30.920
<v Orhun>but we actually give complementary all products pack licenses to open source,

00:30:31.410 --> 00:30:35.830
<v Orhun>projects and individuals to support them and they can build,

00:30:36.380 --> 00:30:43.320
<v Orhun>non-commercial open source applications and they can just use the ides for free also,

00:30:43.870 --> 00:30:51.070
<v Orhun>many people in JetBrains they are active in open source themselves and the company gives them room.

00:30:51.370 --> 00:30:57.800
<v Orhun>For example, me, I am usually in my free time and in some places.

00:30:58.590 --> 00:31:04.620
<v Orhun>In some ways that I am contributing to open source rather to other projects that I maintain.

00:31:05.080 --> 00:31:12.010
<v Orhun>And it's very welcome in JetBrains to do that because it's been seen as a part of my work.

00:31:12.400 --> 00:31:17.240
<v Orhun>And this is an improvement in the Rust ecosystem, in the Rust tooling,

00:31:17.240 --> 00:31:23.140
<v Orhun>and it's a contribution to the community so it's been supported in JetBrains.

00:31:23.850 --> 00:31:31.290
<v Orhun>We also support the human side of the open source ecosystem as well with meetups

00:31:31.290 --> 00:31:37.740
<v Orhun>and events so for example we just did a meetup in the berlin office two days ago,

00:31:38.350 --> 00:31:44.610
<v Orhun>we try to bring many people together we try to create a network we try to learn,

00:31:45.320 --> 00:31:51.000
<v Orhun>experiment and you know give people some way that they can represent themselves.

00:31:51.670 --> 00:31:59.270
<v Orhun>And this is how we try to contribute to the ecosystem and open source ecosystem at scale.

00:31:59.580 --> 00:32:04.570
<v Matthias>Supporting local communities is always great. Are there other ways you support the Rust ecosystem?

00:32:05.220 --> 00:32:10.190
<v Orhun>So our primary objective is to bring more people to Rust.

00:32:10.890 --> 00:32:16.750
<v Orhun>And sometimes it's a bit confusing in terms of what I'm doing is because I am

00:32:16.750 --> 00:32:23.290
<v Orhun>a Rust developer advocate and it's been seen as I've been advocating for RustRover .

00:32:23.660 --> 00:32:29.230
<v Orhun>But our main objective is to bring more people to Rust. So in order to do that,

00:32:29.570 --> 00:32:36.860
<v Orhun>we ship JetBrains Academy plugin and in-ID Rust courses. So you can basically,

00:32:37.800 --> 00:32:45.610
<v Orhun>use Rustlings and some other exercises inside of the IDE to learn and practice Rust.

00:32:45.830 --> 00:32:53.780
<v Orhun>One of the courses that we ship is called 100 Exercises in Rust by Luca Palmieri from Mainmatter.

00:32:54.210 --> 00:33:00.940
<v Orhun>So we try to bring more people to Rust by teaching them Rust in an easy, easy way.

00:33:01.100 --> 00:33:06.730
<v Matthias>Now that's pretty cool. How deep does this 100 exercises in Rust integration go?

00:33:07.510 --> 00:33:10.730
<v Matthias>Can I see the exercises I still need to do?

00:33:10.960 --> 00:33:17.710
<v Orhun>I would say it's fully IDE native, so it's not just 10 layer of exercise runner.

00:33:19.230 --> 00:33:24.200
<v Orhun>It shows up directly on the Rastrover welcome page in the learn tab,

00:33:24.200 --> 00:33:29.660
<v Orhun>so you can just click on things and it installs the academic plugin.

00:33:30.050 --> 00:33:34.030
<v Orhun>You can pick the course, you can start it in the same IDE window,

00:33:34.730 --> 00:33:41.210
<v Orhun>and also it adds some additional UI elements such as the core structure,

00:33:41.210 --> 00:33:43.590
<v Orhun>there's a progress tracking, some,

00:33:45.390 --> 00:33:50.070
<v Orhun>inline hints and everything just happens in the normal IDE.

00:33:50.410 --> 00:33:59.100
<v Orhun>So it is quite a nice way of using Rust and also learning Rust in one place.

00:33:59.280 --> 00:34:05.080
<v Matthias>We recently had the Rust Foundation on the podcast and they announced the Rust commercial network.

00:34:06.030 --> 00:34:07.830
<v Matthias>Is JetBrains already part of it?

00:34:08.470 --> 00:34:16.040
<v Orhun>Yes, JetBrains is a part of it. And we have been collaborating with the members already.

00:34:16.490 --> 00:34:20.780
<v Orhun>And I am also part of it as well as a maintainer of PradaTui.

00:34:21.140 --> 00:34:28.360
<v Orhun>I haven't initiated anything yet, but it's good to always have contact with

00:34:28.360 --> 00:34:33.700
<v Orhun>the Rust project to build commercial Rust tools and services.

00:34:34.200 --> 00:34:40.720
<v Orhun>And it really helps to keep Rust sustainable and well supported in production.

00:34:40.970 --> 00:34:47.100
<v Matthias>I had no idea that there was such a deep integration with the 100 exercises in Rust.

00:34:48.400 --> 00:34:53.150
<v Matthias>But I know that there's a deep integration with the testing frameworks in Rust,

00:34:53.410 --> 00:34:56.500
<v Matthias>in RustRover . Can you talk a little bit about that?

00:34:57.480 --> 00:35:02.850
<v Orhun>Yeah, we have integrated Cargo Next Test, which is next generation test runner

00:35:02.850 --> 00:35:06.740
<v Orhun>for Rust projects. It's quite fast and more modern.

00:35:07.000 --> 00:35:10.860
<v Orhun>So we have integrated this tool inside of the IDE.

00:35:11.220 --> 00:35:15.520
<v Orhun>And you can simply just switch to Cargo Next Test as a runner.

00:35:15.980 --> 00:35:18.890
<v Orhun>And it takes all the stats and all the logs from it.

00:35:19.330 --> 00:35:26.430
<v Orhun>So it's showing the output of Nexttest also as a part of the IDE itself.

00:35:27.020 --> 00:35:32.510
<v Orhun>And it's way faster to run this way and also use it like I personally use it

00:35:32.510 --> 00:35:35.060
<v Orhun>in my own open source development.

00:35:35.440 --> 00:35:41.630
<v Orhun>Speaking of integration with other tools and libraries, maybe it's a good time

00:35:41.630 --> 00:35:47.710
<v Orhun>to announce the new version of RustRover , which just shipped two days ago.

00:35:48.130 --> 00:35:50.690
<v Orhun>It's called 2026.2.

00:35:51.250 --> 00:35:56.750
<v Orhun>And in this release, we have new integration with the Axiom framework.

00:35:57.220 --> 00:36:04.170
<v Orhun>So if you have a web project, if you have a Rust web project that is using the

00:36:04.170 --> 00:36:09.550
<v Orhun>Axiom framework, the IDE just recognizes everything.

00:36:10.290 --> 00:36:13.860
<v Orhun>Including the endpoints and the handler functions.

00:36:14.220 --> 00:36:18.750
<v Orhun>So you can basically jump back and forth between the endpoints,

00:36:19.370 --> 00:36:25.600
<v Orhun>the functions, the routes, and there's a dedicated UI for this as part of the

00:36:25.600 --> 00:36:27.920
<v Orhun>IDE that shows all your endpoints.

00:36:28.240 --> 00:36:35.620
<v Orhun>So let's say you have a really big Rust project that has hundreds of endpoints.

00:36:36.030 --> 00:36:38.600
<v Orhun>You can basically browse them really quickly.

00:36:39.080 --> 00:36:43.840
<v Orhun>You can explore them. You can see which HTTP method they use.

00:36:43.840 --> 00:36:48.180
<v Orhun>And there are like inlay hints for each of these features. So you don't have

00:36:48.180 --> 00:36:49.860
<v Orhun>to actually go and look for.

00:36:51.020 --> 00:36:56.270
<v Orhun>What this method is using or like which function it's calling.

00:36:56.920 --> 00:37:03.290
<v Orhun>One of the problems that I had in the past while using Web Frameworks in Rust

00:37:03.290 --> 00:37:09.280
<v Orhun>was I had util functions that was just laying in some module.

00:37:09.280 --> 00:37:12.640
<v Orhun>And if you don't look at the code for, let's say, two months,

00:37:12.640 --> 00:37:17.810
<v Orhun>you just forget which function is being used for which endpoint.

00:37:18.140 --> 00:37:25.460
<v Orhun>And now this problem is solved by this because there's a hint just on just above

00:37:25.460 --> 00:37:30.470
<v Orhun>the function that shows which endpoint it's calling. And this is very useful.

00:37:30.950 --> 00:37:38.980
<v Orhun>And on top of that, there's now request library support, request the HTTP client

00:37:38.980 --> 00:37:41.000
<v Orhun>library for Rust with the W.

00:37:41.400 --> 00:37:48.540
<v Orhun>So now when you click on one of the endpoints, you can generate example test

00:37:48.540 --> 00:37:55.040
<v Orhun>code for those endpoints for using the request library.

00:37:55.350 --> 00:38:02.750
<v Orhun>So let's say you have some endpoints as part of your Rust project and you have some HTTP client code.

00:38:03.320 --> 00:38:10.420
<v Orhun>So this code can be easily generated from this window and can just copy paste

00:38:10.820 --> 00:38:16.670
<v Orhun>and you can just have like a HTTP test methods easily for your Rust web application.

00:38:17.330 --> 00:38:20.800
<v Matthias>My first JetBrains product was PHPStorm.

00:38:21.740 --> 00:38:28.620
<v Matthias>And I was fascinated how much you can auto-generate with that IDE. Even 10 years ago.

00:38:29.750 --> 00:38:36.350
<v Matthias>When someone knew what they were doing, they would be able to create very quick

00:38:36.350 --> 00:38:39.800
<v Matthias>stops for endpoints and routers and so on.

00:38:40.150 --> 00:38:47.910
<v Matthias>And we used Symfony back then for a project, and they were pretty heavy on dependency

00:38:47.910 --> 00:38:51.030
<v Matthias>injection, and JetBrains really hooked into that system.

00:38:51.730 --> 00:38:57.490
<v Matthias>So I envision a future where you can do the same with Rust, maybe building larger

00:38:57.490 --> 00:39:01.820
<v Matthias>backend applications with the same automation.

00:39:02.400 --> 00:39:09.470
<v Matthias>Of course, we have LLMs now, but that doesn't mean that creating stops is obsolete.

00:39:09.950 --> 00:39:16.290
<v Matthias>There's still value in this because first off it's accurate it's always correct

00:39:16.690 --> 00:39:23.330
<v Matthias>you you generate the code based on a model of your language and second is super fast,

00:39:24.570 --> 00:39:29.570
<v Matthias>do you have any plans for larger refactoring tools for rust code in general,

00:39:31.540 --> 00:39:38.890
<v Matthias>And I asked that because recently you had an interview with Andrew Kelly on the JetBrains podcast.

00:39:39.510 --> 00:39:43.940
<v Matthias>And he specifically said that he would like to see more refactoring tools for

00:39:43.940 --> 00:39:46.780
<v Matthias>SIG as well. So what's cooking?

00:39:47.030 --> 00:39:54.150
<v Orhun>So it seems like everyone is trying to align themselves with the latest AI changes.

00:39:54.660 --> 00:40:01.420
<v Orhun>And of course, JetBrains is trying to find its place while these things are happening.

00:40:02.130 --> 00:40:05.990
<v Orhun>When it comes to rust side of things we have,

00:40:06.680 --> 00:40:14.500
<v Orhun>some nice things cooking and we want to just get as many feedback as possible

00:40:14.500 --> 00:40:21.170
<v Orhun>from the ecosystem to just see what is the best to build next,

00:40:21.820 --> 00:40:28.160
<v Orhun>so maybe i could not reveal too much here but i could talk about what we have

00:40:28.160 --> 00:40:34.940
<v Orhun>cooked in the last release because there are some really nice stuff that I think change,

00:40:36.100 --> 00:40:41.050
<v Orhun>how we use Rust code and how we use these development environments.

00:40:41.510 --> 00:40:50.630
<v Orhun>So one of the really nice additions that we had in the 2026.2 release was the macro tester.

00:40:51.800 --> 00:40:56.310
<v Orhun>This is something that I haven't seen anywhere else before.

00:40:56.850 --> 00:41:01.730
<v Orhun>And just to remind you, I was using NeoWim and I was using all the Rust plugins there.

00:41:01.730 --> 00:41:08.780
<v Orhun>And I was using also some web tools to just generate Rust code and check Rust code.

00:41:08.780 --> 00:41:15.940
<v Orhun>But this is, I think, very game changing. So we had already the macro expansion

00:41:16.280 --> 00:41:20.210
<v Orhun>and cargo expand integration. You could generate...

00:41:22.320 --> 00:41:27.470
<v Orhun>The Rust code from macros, but now there's an additional menu where you can

00:41:27.800 --> 00:41:33.780
<v Orhun>see your macro and you can give some input and see the output real-time.

00:41:34.480 --> 00:41:41.500
<v Orhun>So this makes it possible to debug your macros and just see for which input,

00:41:42.130 --> 00:41:47.260
<v Orhun>you are getting the correct result and and for which input it's failing.

00:41:47.260 --> 00:41:52.080
<v Orhun>Or let's say you have some macro which has different branches.

00:41:52.080 --> 00:41:57.010
<v Orhun>So based on some conditions, you generate different code.

00:41:57.320 --> 00:42:02.580
<v Orhun>You could also select that in this menu and you could basically just see the

00:42:02.580 --> 00:42:04.140
<v Orhun>macro generation real time.

00:42:04.430 --> 00:42:11.650
<v Orhun>And I think this is very useful because macros are painful to debug or painful to read.

00:42:11.970 --> 00:42:15.900
<v Orhun>So now this menu just makes things very simple.

00:42:16.320 --> 00:42:22.800
<v Orhun>And I think this is a really nice addition to the Rust development ecosystem.

00:42:23.280 --> 00:42:28.670
<v Orhun>And as a part of that, we had many other UX improvements.

00:42:29.070 --> 00:42:35.510
<v Orhun>Now you can basically copy the fully qualified paths for functions,

00:42:35.840 --> 00:42:37.820
<v Orhun>which means that you can.

00:42:38.660 --> 00:42:48.370
<v Orhun>When you copy some line from a Rust file, it gives you the module definition

00:42:48.370 --> 00:42:52.040
<v Orhun>instead of just the line or things like that.

00:42:52.560 --> 00:42:55.960
<v Orhun>We always had other things such as.

00:42:57.090 --> 00:43:04.010
<v Orhun>Optimize imports, which does some cleanup for your import statements,

00:43:04.610 --> 00:43:07.140
<v Orhun>this is now quite improved.

00:43:07.570 --> 00:43:13.920
<v Orhun>We have now some other like inlay completion related improvements.

00:43:14.060 --> 00:43:19.630
<v Orhun>So we are actively monitoring the Rust developers to see what they are using and what they need.

00:43:19.980 --> 00:43:25.510
<v Orhun>And based on that, we try to adjust what we're going to build next.

00:43:25.930 --> 00:43:31.660
<v Orhun>And each time, it's always, I think, something useful and something that we need.

00:43:33.470 --> 00:43:37.740
<v Orhun>For example, this macro tester feature was something that I needed,

00:43:38.170 --> 00:43:43.460
<v Orhun>and now we have it. So the feedback from the Rust ecosystem is something that

00:43:43.770 --> 00:43:45.240
<v Orhun>we consider all the time.

00:43:45.410 --> 00:43:52.220
<v Matthias>That import optimizer is a feature i wished for in rust analyzer for a long

00:43:52.220 --> 00:43:55.490
<v Matthias>time and it's still in the making there's still an open issue,

00:43:56.420 --> 00:44:02.260
<v Matthias>so i'm glad to hear that it's integrated into RustRover with all of that what

00:44:02.260 --> 00:44:05.790
<v Matthias>makes RustRover the best platform for writing rust code today.

00:44:06.320 --> 00:44:09.860
<v Orhun>I think it's best for serious rust projects,

00:44:11.140 --> 00:44:19.300
<v Orhun>big-scale projects rather than best for everything because the idea itself, it comes out of the box.

00:44:19.810 --> 00:44:25.480
<v Orhun>It builds a deep understanding of your whole codebase with all the lifetimes,

00:44:25.480 --> 00:44:27.940
<v Orhun>macros, traits, and tests.

00:44:28.390 --> 00:44:35.110
<v Orhun>And it's built on top of IntelliJ platform, which has been battle-tested for many years.

00:44:35.550 --> 00:44:39.290
<v Orhun>So you get industrial-grade refactoring tools.

00:44:40.220 --> 00:44:47.650
<v Orhun>Really nice navigation between files functions modules an awesome debugger and test,

00:44:48.510 --> 00:44:53.970
<v Orhun>coverage tools you know i'm not even talking about the git integration and also

00:44:53.970 --> 00:44:59.610
<v Orhun>the database explorer so everything is in one place and,

00:45:00.420 --> 00:45:07.280
<v Orhun>it's exactly what you want if you're working on a large long-lived Rust projects

00:45:07.580 --> 00:45:09.880
<v Orhun>rather than just editing a few files.

00:45:10.610 --> 00:45:17.530
<v Orhun>What I like the most about RustRover is that the setup part just works.

00:45:17.530 --> 00:45:22.280
<v Orhun>You just install it, you can start using it instantly, and everything works.

00:45:22.280 --> 00:45:27.300
<v Orhun>So I have installed it on two of my machines.

00:45:27.720 --> 00:45:32.510
<v Orhun>First, the personal one, and then I configured it and I installed it on my work

00:45:32.510 --> 00:45:39.300
<v Orhun>laptop and both of them now work in the same way and some people are usually,

00:45:40.110 --> 00:45:45.950
<v Orhun>a bit lost on the setup in terms of the key bindings and so on and,

00:45:46.970 --> 00:45:47.620
<v Orhun>Rust Rovers.

00:45:50.070 --> 00:45:55.500
<v Orhun>Actually can be used very keyboard-oriented. If you use the IDEA Vim plugin,

00:45:56.220 --> 00:46:01.730
<v Orhun>you can just spawn up a codec session and then say, just port my NeoVim config to RustRover .

00:46:01.730 --> 00:46:07.870
<v Orhun>And for me, it just worked. So now I just use it in the same way that I use NeoVim.

00:46:08.240 --> 00:46:11.800
<v Orhun>And that's why it's like out of the box.

00:46:12.180 --> 00:46:17.380
<v Orhun>It just works and it's the best for serious RAS projects.

00:46:17.980 --> 00:46:21.310
<v Matthias>You do so much. How do you split up?

00:46:22.090 --> 00:46:27.210
<v Matthias>You do so much. How do you divide your time between your work projects and your

00:46:27.210 --> 00:46:28.920
<v Matthias>personal projects like ratatui?

00:46:29.360 --> 00:46:32.280
<v Orhun>I try to do other things every once in a while.

00:46:33.270 --> 00:46:37.800
<v Orhun>I work out quite often. We actually did a workout together with Matthias today.

00:46:37.990 --> 00:46:38.820
<v Matthias>Yeah, yeah.

00:46:38.820 --> 00:46:43.920
<v Orhun>That was quite fun. So this is one of the things that I try to do.

00:46:44.100 --> 00:46:51.270
<v Orhun>And ever since I moved to Berlin, I don't really have much time other than doing a workout and working.

00:46:52.090 --> 00:46:59.390
<v Orhun>The live streams are usually also good. I try to play Minecraft and just sometimes chat with people.

00:47:00.360 --> 00:47:05.910
<v Orhun>But go to the gym. Everyone listening to this episode, go to the gym, for sure.

00:47:06.070 --> 00:47:08.760
<v Matthias>What does the gym and Rust development have in common?

00:47:09.120 --> 00:47:10.140
<v Orhun>The plates are rusty.

00:47:12.900 --> 00:47:14.470
<v Matthias>You work close to the metal?

00:47:15.230 --> 00:47:17.810
<v Orhun>Close to the metal. It's embedded systems.

00:47:20.390 --> 00:47:23.910
<v Matthias>When will you launch your Rust-based workout app?

00:47:24.190 --> 00:47:30.910
<v Orhun>We are working on that. just two weeks ago i had a workout session on a live

00:47:30.910 --> 00:47:37.920
<v Orhun>stream with one of the rust people swen shout out to swen from cargo generate,

00:47:38.700 --> 00:47:42.700
<v Orhun>no we are not actually working on that but i want to make it happen i want to

00:47:42.700 --> 00:47:46.900
<v Orhun>actually do more rust and workout,

00:47:47.890 --> 00:47:55.280
<v Orhun>related content one of the ideas is to just interview people in the gym like the rust maintainers so,

00:47:56.350 --> 00:48:02.400
<v Orhun>i'm trying to find the the common i'm trying to find some clash between those

00:48:02.400 --> 00:48:05.760
<v Orhun>two it's it's not easy other than the plates are rusty i guess.

00:48:06.280 --> 00:48:12.760
<v Matthias>Yeah i wonder what the intersection of rust developers and people go to the gym is but we will see.

00:48:13.600 --> 00:48:14.270
<v Orhun>We will see.

00:48:14.910 --> 00:48:20.030
<v Matthias>One thing that's fascinating about you other than your rust work is how you

00:48:20.030 --> 00:48:23.890
<v Matthias>can build communities and bring these people together,

00:48:25.120 --> 00:48:25.960
<v Matthias>How do you do that?

00:48:26.990 --> 00:48:31.620
<v Orhun>I think people just see the crazy stuff that I do on the internet and I try

00:48:31.620 --> 00:48:36.090
<v Orhun>to bring them together through some platforms.

00:48:36.090 --> 00:48:41.740
<v Orhun>The main one that I have is Grindhouse, which is, it was supposed to be a joke,

00:48:41.740 --> 00:48:44.660
<v Orhun>but it turned into a reality. It's now a real community.

00:48:45.290 --> 00:48:50.880
<v Orhun>We have really talented Rust people there, also other people from other backgrounds.

00:48:51.360 --> 00:48:59.880
<v Orhun>And it's just because I've been trying to keep myself visible and just share most of my steps.

00:49:00.180 --> 00:49:06.870
<v Orhun>I have a blog, I have social media, so I post what I'm doing and as a part of

00:49:06.870 --> 00:49:12.060
<v Orhun>that, I am also sharing that I have this Discord server.

00:49:12.400 --> 00:49:15.950
<v Orhun>So people just come there and I met a lot of friends there.

00:49:16.750 --> 00:49:23.500
<v Orhun>Some of them actually now work together. So I am quite happy with what we're doing there and.

00:49:25.000 --> 00:49:32.810
<v Orhun>As a part of my other community work now i am organizing a podcast about terminals

00:49:33.180 --> 00:49:38.650
<v Orhun>so it's called terminal tuesdays and is part of our terminal collective discord

00:49:38.650 --> 00:49:43.240
<v Orhun>server so i'm trying to like interview people about their terminal setups so

00:49:43.620 --> 00:49:46.500
<v Orhun>i just like talking to people and just you know get,

00:49:47.370 --> 00:49:52.270
<v Orhun>get some insights about what they are doing and also collaborate with them on

00:49:52.270 --> 00:49:56.870
<v Orhun>on projects not just talk but share ideas share code,

00:49:57.730 --> 00:50:04.130
<v Orhun>i have recently released a 3d terminal emulator called ratty and the the foundation

00:50:04.130 --> 00:50:09.340
<v Orhun>of that terminal emulator was actually built by one of my friends that,

00:50:10.250 --> 00:50:15.820
<v Orhun>that has been active on the discord server and he basically built that because

00:50:15.820 --> 00:50:19.320
<v Orhun>we've been just talking and we've been saying hey would it be nice to have this

00:50:19.640 --> 00:50:23.600
<v Orhun>and So this way we collaborate,

00:50:24.490 --> 00:50:26.350
<v Orhun>in terms of code, ideas,

00:50:27.660 --> 00:50:28.480
<v Orhun>and just have fun.

00:50:29.210 --> 00:50:31.120
<v Matthias>What's your message to the rust community.

00:50:31.540 --> 00:50:39.580
<v Orhun>Rust is a growing language and if you want to be ahead of the curve write rust

00:50:39.780 --> 00:50:41.540
<v Orhun>it's now the perfect time,

00:50:42.550 --> 00:50:48.280
<v Orhun>you're not going to be late but we need more people we need more interested

00:50:48.280 --> 00:50:55.000
<v Orhun>people we need more cracked people So the common problem with open source is that there isn't,

00:50:55.920 --> 00:50:58.820
<v Orhun>enough people to do the work.

00:50:59.880 --> 00:51:06.330
<v Orhun>So if you're interested in compilers, tooling, terminal UIs,

00:51:06.870 --> 00:51:10.420
<v Orhun>embedded, we need you. You can start small.

00:51:10.770 --> 00:51:15.590
<v Orhun>Don't be afraid to contribute. Don't be afraid to talk to people.

00:51:16.710 --> 00:51:23.130
<v Orhun>And you will find your place in this community. we are very welcoming and I

00:51:23.130 --> 00:51:25.690
<v Orhun>guess keep grinding, keep building stuff

00:51:26.670 --> 00:51:28.520
<v Orhun>thank you so much it's been a pleasure.

00:51:29.110 --> 00:51:32.930
<v Matthias>Rust in Production is a podcast by corrode it is hosted by me,

00:51:33.050 --> 00:51:35.990
<v Matthias>Matthias Endler and produced by Simon Brüggen

00:51:36.210 --> 00:51:40.420
<v Matthias>for show notes, transcripts and to learn more about how we can help your company

00:51:40.420 --> 00:51:46.100
<v Matthias>make the most of Rust visit corrode.dev. Thanks for listening to Rust in Production.