Vela is a modern, memory-safe systems programming language. It pairs
ownership-based borrow checking — no garbage collector — with a
self-hosting compiler, native ahead-of-time machine-code generation,
and a portable bytecode VM. Built for high-performance and embedded software.
Memory safety, no GCOwnership, lifetimes and a borrow checker (NLL + region analysis) guarantee safety at compile time, without a garbage collector.
Native AOT + VMCompiles ahead-of-time to native machine code for x86-64, ARM and RISC-V, and also runs on a portable bytecode virtual machine.
Self-hosting compilerThe Vela toolchain is written in Vela itself — compiler, VM and standard library.
Embedded & bare-metalFirst-class support for microcontrollers, RTOS and bare-metal targets with deterministic, low-overhead runtime.
High performanceSIMD, GPU compute (SPIR-V) and data-layout optimization for cache-friendly, kernel-grade code.
Rich standard libraryTensors & numerics, networking, cryptography, async concurrency and a clean C FFI.
AI & machine learning
Vela ships first-class infrastructure for high-performance and on-device AI — from tensors to quantized inference and model export.
Vela; modern, bellek-güvenli bir sistem programlama dilidir. Sahiplik (ownership)
temelli borrow checking — çöp toplayıcı (GC) yok — ile birlikte
self-hosting bir derleyici, native ahead-of-time makine kodu üretimi ve
taşınabilir bir bytecode VM sunar. Yüksek performanslı ve gömülü yazılımlar için tasarlandı.
Bellek güvenliği, GC yokOwnership, lifetime ve borrow checker (NLL + region analizi) ile güvenlik derleme zamanında garanti edilir; çöp toplayıcı gerektirmez.
Native AOT + VMx86-64, ARM ve RISC-V için ahead-of-time native makine koduna derlenir; ayrıca taşınabilir bytecode VM üzerinde çalışır.
Self-hosting derleyiciVela araç zinciri Vela ile yazılır — derleyici, VM ve standart kütüphane.
Gömülü & bare-metalMikrodenetleyici, RTOS ve bare-metal hedefleri için deterministik, düşük maliyetli birinci sınıf destek.
Yüksek performansSIMD, GPU (SPIR-V) hesaplama ve veri-yerleşimi optimizasyonu ile cache-dostu, kernel seviyesinde kod.
Zengin standart kütüphaneTensör & sayısal işlemler, ağ, kriptografi, async eşzamanlılık ve temiz bir C FFI.
Yapay zeka ve makine öğrenmesi
Vela; tensörlerden kuantize çıkarıma ve model dışa aktarımına kadar yüksek performanslı ve cihaz-üstü yapay zeka için birinci sınıf altyapı sunar.
Tensör & sayısal işlemlerSinir ağlarıKuantize int8 çıkarımVNNI / SIMD çekirdekleriGPU hesaplama · SPIR-VTFLite dışa aktarımONNX dışa aktarımEdge TPU uyumluCihaz-üstü / edge AIML çalışma zamanları için C FFI
Platformlar ve hedefler
x86-64ARMARM32 / Thumb-2RISC-V · RV32 / RV64LinuxWindowsmacOSBare-metalRTOSMikrodenetleyicilerGPU · SPIR-VBytecode VM
Vela programlama dilinden bir örnek
// Küçük bir Vela programıstructPoint { x: i64, y: i64 }
implPoint {
fnmanhattan(self: Point) -> i64 {
returnabs(self.x) + abs(self.y)
}
}
pub fnmain() -> i64 {
let p = Point { x: 3, y: -4 }
print("distance=" + to_string(p.manhattan()))
return0
}
distance=7
// Enum'lar ve kapsamlı pattern matchingenumShape {
Circle(i64),
Rect(i64, i64),
}
fnarea(s: Shape) -> i64 {
match s {
Shape::Circle(r) => 3 * r * r,
Shape::Rect(w, h) => w * h,
}
}
area(Circle(2)) = 12
area(Rect(3, 4)) = 12
// Null yok, exception yok: Option ve Resultfnfirst(items: [i64]) -> Option<i64> {
iflen(items) == 0 {
returnNone
}
returnSome(items[0])
}
fndivide(a: i64, b: i64) -> Result<i64, string> {
if b == 0 {
returnErr("sıfıra bölme")
}
returnOk(a / b)
}