Discuss a project

Blog / Technologies

Rust and Zig in everyday applications

Apps written in Rust or Zig are not only high-load services, but also everyday applications for users. You can argue as long as you like about how steadily Rust is developing, what exactly people write in Zig, and how important speed and safety are in programming languages, but these languages speak for themselves. Applications of this level of quality and convenience confirm that these are not just trendy technologies, but truly remarkable tools for building quality applications.

Let's start with Zed, the official code editor written in Rust, and working with it is pure pleasure. Compared to JetBrains products it is faster, the response to user actions is almost instant, with no indexing and no freezes. Compared to VS Code in speed, Zed simply beats it several times over. In features Zed is catching up with the established editors, and new versions with improved capabilities keep coming out: Debugger, Git integration, AI agents integration, connecting to remote servers, too many to list.

But the most interesting part is that it was far from always so. Just a few months ago the Git integration was raw, not so convenient and not native, there were no AI agents, and the missing Debugger was critical for me. From time to time I opened Zed to edit code, which for me personally was much more comfortable than doing it in PyCharm, and right away I would switch to the already open PyCharm with the same project to start the Debugger, set breakpoints and debug the code, and then go back to Zed and continue editing. I used two editors, one for editing code and the other for debugging and working with Git.

So what is so interesting about Rust and why do I like Zed so much? The thing is that starting a new project, application or service is usually always easy; what is hard is maintaining and developing the product afterwards without losing speed and quality. Maybe VS Code was relatively fast at some point too, and JetBrains products, which I consider among the best for writing code, also run at an acceptable speed. But the more features, plugins and tools get added to an IDE, the slower it becomes. Over time such tools turn into all-in-one machines that have everything but run slower and slower, and as far as I understand, adding new features to them gets harder, and it is especially hard to do so without losing performance.

This does not apply to Zed: its developers add new features one after another, and performance does not drop at all, it feels like it does not depend in principle on how much useful functionality has been added to the editor. I have not seen such a ratio of responsiveness to number of features anywhere else. Of course, there are minimalist and nimble Vim and Sublime Text, which work lightning fast, but personally I always feel in them that this is just a text editor and not a full-fledged IDE, you have to configure a lot by hand, it is not intuitive and not reliable, the settings can break, and during refactoring with a regex search the editor can break something in the codebase. You have to look for a compromise: either fast but less functional editors on one side, or all-in-one machines such as VS Code, PyCharm, Eclipse, NetBeans and IntelliJ IDEA on the other, where it feels like the IDE understands your project: Go To Definition, Code Completion, Refactoring and other useful tools work out of the box and speed up development considerably, but unfortunately performance drops. Zed makes no compromises: the features grow and the performance does not drop, and that is incredible! These are not just synthetic tests and RPS that return JSON without making a single SQL query. This is genuinely powerful performance for working with huge codebases and a huge number of tools, without which a modern developer would no longer be as effective.

I will not claim it for certain, but perhaps part of the credit goes to Rust, which lets you write not just performant code, but code that is easy to maintain and scale. In Java the code would be slower, in C++ you would not manage to add so many new features at such a pace and still build a stable product with a minimal number of bugs and practically no crashes. In Python and JavaScript, features would fly into the IDE like hot cakes, but users would wait a long time for the editor to react, and that would be annoying. In web development this thesis is confirmed by the Loco framework, which brings the Ruby on Rails experience to Rust.

Next, let's talk about the Zen browser, built on top of Firefox. Firefox itself is written in C++ and JavaScript, but its key components are built in Rust: the Stylo CSS engine and the WebRender renderer came into the browser from the experimental Servo as part of the Quantum project. Well, first of all, Zen looks gorgeous! Second, it is really convenient, the design is minimalist, you can create separate Workspaces with their own visual styling, and working with tabs is a pleasure. Third, it is secure and private, because it is based on Firefox and, unlike Google Chrome, does not collect user data. Zen is written in C++ and JavaScript, not in Rust, but it uses Rust under the hood since it is based on Firefox, so here we can also praise Rust, which is used to build the technologies that serve as the foundation, the "engine", for new remarkable products.

Last in line is the terminal Ghostty. Here everything is simple: fast, reliable, convenient, cross-platform, beautiful! To be honest, I fell in love with this terminal right away and can no longer give it up. It looks modern on all platforms, it works lightning fast, with no errors and no problems. As the official site says, the philosophy here is zero configuration: everything is set up out of the box, but if needed you can customize everything to your liking. For our topic this is a doubly telling example: the core of Ghostty is written in Zig. For me right now it is the best option for working in a terminal.

Rust and Zig appeared a long time ago, and so far they are not as popular among developers as mainstream languages such as Python, Java and even Golang, which, unlike them, holds its positions more confidently, especially in microservices and high-load application development. But Rust and Zig have their own unique advantages and features that developers should pay attention to, their own philosophy and principles. One thing can be said for sure: code in these languages has maximum performance, rigor and a high level of engineering while leaving a pleasant dev experience, but, unfortunately, modern mainstream languages perhaps lack all of this. And if you are choosing a language for a critical service, take a look at our breakdown of how to decide on moving from C++ to Rust.

Shall we discuss your project?

Tell us about your task and we will come back with an estimate of the time and the cost within two working days.