vala
// ExampleApp.vala
public class ExampleApp : Gtk.Application {
public ExampleApp () {
Object (application_id: "com.example.App");
}
public override void activate () {
var win = new Gtk.ApplicationWindow (this);
var btn = new Gtk.Button.with_label ("Hello World");
btn.clicked.connect (win.close);
win.child = btn;
win.present ();
}
public static int main (string[] args) {
var app = new ExampleApp ();
return app.run (args);
}
}
// Compile command (requires gtk4 package to be installed):
// valac --pkg gtk4 ExampleApp.valaПочему Vala?
- Clear and familiar syntax - Based on C, C# and Java
- Object-oriented when you need it - Built-in support for classes, interfaces, inheritance and more, but you can also just use procedural programming features instead.
- Automatic memory management without overhead - Vala uses ref counting by default, so you won't have to worry about managing memory in most programs
- C interoperability - Use GObject-based C Libraries via binding files or call C functions directly from Vala
- Compiles to native binaries - Extremely fast program execution times and no virtual machine or runtime environment is required to be installed for execution
- Modern language features - Type inference, null safety, generics, lambdas, async/await
- First-class GObject and GTK support - Optional, but unmatched when you need it
Что вы можете сделать?
- Графические приложения
- Идеальная интеграция с GTK, Libadwaita и Granite делает разработку очень простой. Так же с легкостью публикуйте свои приложения во Flathub без лишних хлопот.
- Консольные приложения
- Используйте огромную стандартную библиотеку и множество других библиотек, доступных для использования в Vala.
- Библиотеки
- Предоставляйте привязки для большинства языков и документацию по API без ручной работы. Кроме того, поддерживаются как динамические, так и статические привязки.
Блог
Vala Documentation Updates - November 2026
Colin KiamaVala Documentation Updates - September 2026
Colin KiamaVala Documentation Updates - June 2026
Colin KiamaCurrent Versions
- Vala 0.56.19 (Stable)
- Vala 0.56.17 (Stable Long-term Support)
- Vala main (Development)
Roadmap
Демонстрация
- Tuba
Browse the Fediverse
- Workbench
Learn and prototype with Vala and other GNOME technologies
- Dino
A modern open-source chat client for the desktop. Focuses on providing a clean and reliable Jabber/XMPP experience while having your privacy in mind.
- Monitor
Manage processes and monitor system resources
- TextSnatcher
Copy Text from Images with ease, Perform OCR operations in seconds.
- Timeshift
System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots.
- Crown
Crown is a complete and cross-platform game engine designed for flexibility, performance, and fast-iterations.
Сообщество
- Форум
- Задавайте вопросы, связанные с Vala, на форумах GNOME Discourse под тегом „vala“.
- Discourse Форум
- Внутренний чат
- Обращайтесь к разработчикам или задайте вопросы о том, как внести свой вклад в Vala. У нас также есть IRC-сервер.
- Чат Matrix
Социальные сети
Следите за проектом Vala на этих платформах