| What it is | The HashiCorp configuration language | A configuration-as-code language with rich validation and tooling | Validate, define, and use dynamic and text-based data | A configuration language for app and tool developers |
| Features | - native syntax of attributes and nested blocks
- JSON-based variant for machine-generated configuration
- expression syntax with application-provided variables and functions
- application-defined schemas with clear error messages
- Go API from a simple decoder (hclsimple) down to low-level parsing
- hclwrite for generating and editing HCL files
- a written specification
| - generate JSON, YAML, property lists and Java properties from one source
- classes, type annotations and constraints that validate configuration
- code generation for Java, Kotlin, Swift and Go
- embed in applications for runtime configuration (JVM, Swift, Go)
- packages published to any host and imported by package:// URI
- pkldoc documentation generator
- language server and IntelliJ, VS Code and Neovim plugins
- native CLI executables that start instantly
| - types and values in one lattice: schemas, constraints and data in one language
- validate JSON and YAML against CUE schemas
- order-independent unification of configuration from many sources
- templates and defaults to remove boilerplate
- generate and extract code and schemas (Go, Protobuf, OpenAPI)
- modules published to OCI registries such as the CUE Central Registry
- Go API and cue command line tool
| - superset of JSON with variables, functions, conditionals and imports
- object inheritance and mixins to remove duplication
- output JSON, YAML, INI and other text formats
- side-effect-free, lazily evaluated
- official C++ and Go interpreters tested against one suite
- jsonnetfmt formatter and a linter (Go build)
- formal specification and standard library
|