From the archive
Apple open sources Pkl, a configuration-as-code language with rich validation and tooling, with Swift, Go, Java, and Kotlin integration
We are delighted to announce the open source first release of Pkl (pronounced Pickle), a programming language for producing configuration. Threads: @danielpunkass . Mastodon: @lkanies@hachyderm.io . X: @brianmichel , @omervk , @timsneath , @adam_ruka , @thomaswue , @_mischi , @ch0rx , @_drewbailey , @vitalethomas , @peterfriese , @marandaneto , @ktosopl , @orcunbalcilar , @kushalp , @merowing_ , @krzyzanowskim , @jackkleeman , @ronaldmannak , @marcsavy , @krzyzanowskim , and @vitalethomas Forums: Hacker News , r/programming , and Lobsters Threads: Daniel Jalkut / @danielpunkass : Who had “Apple will release a new language, implemented in Kotlin, with IDE integration for everything but Xcode” on their bing card? https://pkl-lang.org/... Mastodon: Luke Kanies / @lkanies@hachyderm.io : Holy shit. I love everything about this: a cross-platform, standardized configuration language. — I have not had a chance to fully grok this. But this was definitely one of my dreams when I started Puppet. I did not want puppet to win. I just wanted something we all used, something that made us better, able to move on. … X: Brian Michel / @brianmichel : Love that Apple released pkl written in Kotlin instead of Swift because...............? Omer van Kloeten / @omervk : This, like any other statically typed configuration language, could go a long way if it's ever widely adopted Tim Sneath / @timsneath : Introducing Pkl, an open source configuration programming language from @Apple with bindings for Swift, Go, Kotlin and Java: https://pkl-lang.org/... #PklIsNotYaml #OSS Adam Ruka / @adam_ruka : Vision Pro is not the only major launch from Apple today - a team in the company has open-sourced Pkl (pronounced “Pickle"), a new configuration programming language: https://pkl-lang.org/.... Interestingly, it uses @graalvm Truffle in its implementation! Thomas Wuerthinger / @thomaswue : Interesting aspect of the new Pkl configuration language just open sourced by Apple is that it is built on top of the @GraalVM polyglot Truffle framework. New languages with interoperabilty is another use case for Graal next to fast JIT compilation and efficient AOT compilation. [image] @_mischi : Vision Pro is cool and all, but have you ever spent time searching for that format error in your YAML file? Apple just open sourced their new type-safe configuration language Pkl. Define once, and safely render into many formats! https://pkl-lang.org/... https://github.com/... Charles Prado / @ch0rx : Apple's new PKL, a config programming language, feels refreshingly un-Apple—in a good way! Seems they're embracing community openness. https://pkl-lang.org/... Drew Bailey / @_drewbailey : Apple open sourced Pkl! A configuration language I've had the pleasure of using almost every day over the past 2 years. It's pretty slick! Dealing with Typed K8s objects over yaml is pretty sweet. https://pkl-lang.org/... Thomas Vitale / @vitalethomas : Since the only framework supported out-of-the-box is @springboot, I guess it's because Apple is using it internally. I'd love to hear from @apple engineers about their experience working with @java and Spring. Any chance we can make this happen? Perhaps at @spring_io? @k_gamanji Peter Friese / @peterfriese : @krzyzanowskim “Incredible IDE integration”: [image] Manoel Neto / @marandaneto : Long live type safe configurations, death to all YAMLs @ktosopl : We're incredibly happy to include #swift support for #pkl right away from day one! Pkl is an awesome configuration language that can prevent configuration bugs before they hit production. I'm sure it'll be incredibly useful for server side systems and client both! @orcunbalcilar : Apple has just introduced Pkl, a programming language for configuration. 🎉 It provides ahead of time configuration check and type safety for values in config files and more.. Worth reading. 👌Have a nice reading. https://pkl-lang.org/... Kushal Pisavadia / @kushalp : Pkl, a configuration language that I use on a daily basis, is now open source. It's something we use to configure, deploy, and provision some of our largest services. https://pkl-lang.org/... Krzysztof Zabłocki / @merowing_ : PKL format from @Apple looks interesting, a single definition can be used to generate a ton of different configuration formats like yaml, json, plist and also supports code generation for many languages! Check it out! https://pkl-lang.org/... https://github.com/... [image] Marcin Krzyzanowski / @krzyzanowskim : implemented in Java and Kotlin 👀 (not Swift, you read it right) [image] Jack Kleeman / @jackkleeman : An incredible config language that I used extensively at Apple is finally open source. If you ever write YAML, Jsonnet or Cue, you should definitely check it out! https://pkl-lang.org/... Ronald Mannak / @ronaldmannak : This is Apple's second tool (after MLX) that doesn't have Swift support at launch. What's going on? Marc Savy / @marcsavy : Apple are using @mojavelinux's Antora @antoraproject for the documentation on Pkl. Marcin Krzyzanowski / @krzyzanowskim : Apple just released new programming language „Pickle" https://pkl-lang.org/ „We created Pkl because we think that configuration is best expressed as a blend between a static language and a general-purpose programming language." ... checking notes ... without Xcode support for... Thomas Vitale / @vitalethomas : Apple has just open-sourced a new configuration language called Pkl. It can generate static config (YAML, JSON, XML), but it can also integrate with programming languages (Java, Swift, Go, Kotlin). It even comes with Spring Boot support already! https://pkl-lang.org/... Forums: Hacker News : Pkl, a Programming Language for Configuration r/programming : Introducing Pkl, a programming language for configuration Calvin / Lobsters : Introducing Pkl, a programming language for configuration
Context & ripple effects
Pkl places configuration at the intersection of several application stacks: its definitions can generate YAML, JSON, plist, and XML while connecting to Swift, Go, Java, and Kotlin. That makes it more than a format converter; it is a shared interface for configuration across heterogeneous software estates.
The related coverage increasingly centers on development tools that make production work more governed, including Kiro’s focus on specifications, testing, and documentation and GitHub’s coding agent for changes and documentation. Pkl extends that discipline to a frequent source of operational mistakes: application configuration.
First-order effects
- Teams can adopt an open-source, statically typed configuration layer with validation and IDE tooling, then render one definition into the deployment and application formats they already use.
- Swift, Go, Java, Kotlin, and Spring Boot users gain a supported path to share configuration definitions rather than maintain parallel format-specific versions.
Second-order effects
- Organizations using multiple runtimes can reduce bespoke configuration translation and make validation part of the authoring workflow, increasing the appeal of a common configuration source of truth.
- Configuration-tool vendors and format-native workflows face a clearer comparison point: typed schemas, code generation, and multi-format output rather than syntax alone.
Third-order effects
- If adoption develops, configuration can shift from loosely checked text files toward versioned, typed software interfaces that are validated before deployment.
- As AI-assisted coding produces more changes, tools that constrain and verify the surrounding configuration may become more valuable; that outcome depends on ecosystem adoption and integration quality.
The trend: Pkl is one data point in the move to treat operational configuration as governed, typed code rather than an unvalidated collection of environment-specific files.
Related: Apple · Antora · AI industrialization · Amazon launches Kiro, an IDE that aims to bridge the gap between rapid · GitHub debuts an AI coding agent for GitHub Copilot that can fix bugs,
Related coverage
- Holy shit. I love everything about this: a cross-platform, standardized configuration language. — I have not had a chance to fully grok this. But this was definitely one of my dreams when I started Puppet. I did not want puppet to win. I just wanted something we all used, something that made us better, able to move on. …
- Pkl, a Programming Language for Configuration
- Introducing Pkl, a programming language for configuration
Discussion
Who had “Apple will release a new language, implemented in Kotlin, with IDE integration for everything but Xcode” on their bing card? https://pkl-lang.org/...
Love that Apple released pkl written in Kotlin instead of Swift because...............?
This, like any other statically typed configuration language, could go a long way if it's ever widely adopted
More discussion
Introducing Pkl, an open source configuration programming language from @Apple with bindings for Swift, Go, Kotlin and Java: https://pkl-lang.org/... #PklIsNotYaml #OSS
Vision Pro is not the only major launch from Apple today - a team in the company has open-sourced Pkl (pronounced “Pickle"), a new configuration programming language: https://pkl-lang.org/.... Interestingly, it uses @graalvm Truffle in its implementation!
Interesting aspect of the new Pkl configuration language just open sourced by Apple is that it is built on top of the @GraalVM polyglot Truffle framework. New languages with interoperabilty is another use case for Graal next to fast JIT compilation and efficient AOT compilation. …
Vision Pro is cool and all, but have you ever spent time searching for that format error in your YAML file? Apple just open sourced their new type-safe configuration language Pkl. Define once, and safely render into many formats! https://pkl-lang.org/... https://github.com/...
Apple's new PKL, a config programming language, feels refreshingly un-Apple—in a good way! Seems they're embracing community openness. https://pkl-lang.org/...
Apple open sourced Pkl! A configuration language I've had the pleasure of using almost every day over the past 2 years. It's pretty slick! Dealing with Typed K8s objects over yaml is pretty sweet. https://pkl-lang.org/...
Since the only framework supported out-of-the-box is @springboot, I guess it's because Apple is using it internally. I'd love to hear from @apple engineers about their experience working with @java and Spring. Any chance we can make this happen? Perhaps at @spring_io? @k_gamanji
@krzyzanowskim “Incredible IDE integration”: [image]
Long live type safe configurations, death to all YAMLs
We're incredibly happy to include #swift support for #pkl right away from day one! Pkl is an awesome configuration language that can prevent configuration bugs before they hit production. I'm sure it'll be incredibly useful for server side systems and client both!
Apple has just introduced Pkl, a programming language for configuration. 🎉 It provides ahead of time configuration check and type safety for values in config files and more.. Worth reading. 👌Have a nice reading. https://pkl-lang.org/...
Pkl, a configuration language that I use on a daily basis, is now open source. It's something we use to configure, deploy, and provision some of our largest services. https://pkl-lang.org/...
PKL format from @Apple looks interesting, a single definition can be used to generate a ton of different configuration formats like yaml, json, plist and also supports code generation for many languages! Check it out! https://pkl-lang.org/... https://github.com/... [image]
implemented in Java and Kotlin 👀 (not Swift, you read it right) [image]
An incredible config language that I used extensively at Apple is finally open source. If you ever write YAML, Jsonnet or Cue, you should definitely check it out! https://pkl-lang.org/...
This is Apple's second tool (after MLX) that doesn't have Swift support at launch. What's going on?
Apple are using @mojavelinux's Antora @antoraproject for the documentation on Pkl.
Apple just released new programming language „Pickle" https://pkl-lang.org/ „We created Pkl because we think that configuration is best expressed as a blend between a static language and a general-purpose programming language." ... checking notes ... without Xcode support for...
Apple has just open-sourced a new configuration language called Pkl. It can generate static config (YAML, JSON, XML), but it can also integrate with programming languages (Java, Swift, Go, Kotlin). It even comes with Spring Boot support already! https://pkl-lang.org/...
Introducing Pkl, a programming language for configuration