| What it is | Simple, fast, safe, compiled. For developing maintainable software | Build simple, secure, scalable systems with Go | A general-purpose programming language and toolchain for maintaining robust, optimal and reusable software | Efficient, expressive, elegant |
| Features | - static typing with generics and sum types
- compiles about 100k to 700k lines a second; self-hosted compiler
- emits human-readable C for GCC or Clang, plus native backends
- no null, no undefined values, immutable by default
- Option and Result types with mandatory error checks
- tracing GC by default, with autofree, manual and arena options
- cross-compilation with -os windows or -os linux
- live code reloading
- All 10 features
| - static typing with type inference and generics
- goroutines and channels for concurrency
- garbage collection
- compiles ahead of time to native machine code
- interfaces and type embedding instead of inheritance
- large standard library
- modules fetched through the Go module mirror and checksum database
- cross-compilation to other systems
| - comptime: compile-time code execution and lazy evaluation
- drop-in C/C++ compiler with zero dependencies
- cross-compilation out of the box
- zig build: a cross-platform build system
- incremental adoption in C/C++ codebases
- prebuilt toolchains for Linux, macOS, Windows, FreeBSD and NetBSD on many architectures
| - statically typed with local type inference, generics, tuples and sum types
- compiles to C, C++ or JavaScript
- small dependency-free native executables for Windows, Linux, BSD and macOS
- deterministic memory management with destructors and move semantics (ORC by default)
- AST macros, templates and compile-time function evaluation
- zero-overhead iterators
- async/await in the standard library
- easy C, C++ and Objective-C wrapping
- All 9 features
|