Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Pkl - A Programming Language for Configuration

Pkl - A Programming Language for Configuration

Pkl is a programming language for configuration, open sourced in February of 2024 by Apple under the Apache 2.0 license. In this talk we’ll look at how the features of Pkl and the surrounding ecosystem help make configuration easier, safer and more consistent across a range of environments.

James Nugent

February 10, 2025
Tweet

More Decks by James Nugent

Other Decks in Technology

Transcript

  1. Static Data Format General Purpose Language JSON YAML Property Files

    Ruby Scheme Kotlin JavaScript Configuration Formats
  2. Pkl • Bindings and code generation for multiple languages: •

    Java & Kotlin • Swift • Go • Community working on support for: • TypeScript • Python • Rust
  3. Pkl • Language optimised for expressing con fi guration •

    Scales from simple to complex • Aims to catch errors in con fi guration at the earliest point possible • First-class IDE support • Two approaches to consuming con fi guration: • Standalone CLI to generate con fi guration fi les in common formats • Embedded in applications to load Pkl fi les natively