| What it is | A general-purpose systems language with static typing, native code and C-like syntax | A language empowering everyone to build reliable and efficient software. | A general-purpose programming language that's approachable for newcomers and powerful for experts | An open-source, object-oriented, actor-model, capabilities-secure, high-performance programming language |
| Features | - static typing with type inference
- compiles to native code
- garbage collection, with manual allocation and a @nogc subset
- templates, ranges and compile-time function evaluation
- direct access to C APIs and hardware
- three compilers: DMD, GDC and LDC
| - ownership and borrowing checked at compile time
- no garbage collector or runtime
- type inference
- Cargo package manager and build tool
- rustfmt formatter and Clippy linter
- compiles to WebAssembly
- stable release every six weeks with nightly and beta channels
| - type inference and optionals that make nil a compile-time error
- Automatic Reference Counting for memory management
- async/await, actors and data-race safety checked at compile time
- generics, protocols, extensions and closures
- Swift Package Manager for building and distributing packages
- LLDB debugger with a REPL, and SourceKit-LSP for editors
- Static Linux SDK, Swift SDK for Android and Swift SDK for WebAssembly
- Embedded Swift for microcontrollers
- All 9 features
| - actors and an actor-model runtime
- reference capabilities checked by the compiler
- data-race free and deadlock-free, with no locks
- type safe, memory safe, no null and exception-safe
- ahead-of-time compilation to native code
- per-actor garbage collection and ORCA actor collection
- C foreign function interface
- language server, linter and Corral dependency manager
|