Apple has introduced Pkl, a novel open-source programming language aimed at simplifying configuration tasks, ranging from small to large, simple to complex, and ad-hoc to repetitive. Launched on February 1, 2024, with version 0.25, Pkl is characterized by its key-value structure, reminiscent of JSON, rather than traditional imperative instructions found in other programming languages. This specialized focus on configuration tasks, coupled with its support for JSON, XML, and YAML property lists, positions Pkl as a versatile tool for generating static configuration files.

But Pkl aspires to be more than just a configuration pipeline tool; it aims to establish itself as a dependable and user-friendly configuration library. Despite being only four days since its initial release, Pkl already offers language support for Java, Kotlin, Swift, and Go, with plans to expand support to other popular languages and platforms in the future.

While Apple’s enthusiasm for Pkl’s niche functionality is evident, the success of such a specialized tool remains to be seen. Nonetheless, the choice of the name “Pkl” adds a touch of charm and memorability to the language. Despite its niche nature, Pkl’s potential impact on the programming landscape is yet to unfold.

For those interested in exploring Pkl further, the Github page provides access to relevant documentation and resources for getting started with the Pkl command-line interface, which is compatible with macOS, Linux, Alpine Linux, and Java. However, it’s worth noting that while Java facilitates multi-platform support, it comes with certain drawbacks, such as a noticeable startup delay and slower execution of complex Pkl code compared to native executables.

24 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here