Apple's revolutionary programming language: Pkl
With Apple's new open-source programming language Pkl, configuration and setup are moving to a whole new dimension.
12punto
Technology giant Apple has announced a new open-source programming language called Pkl.
While many of today's programming languages rely on step-by-step instructions, Apple's Pkl language aims to simplify the coding process by using a JSON-like key-value format. Pkl works by specifying the desired result rather than detailing actions one by one, which offers the user an easier experience.
Changing various settings on smartphones usually requires navigating through complex menus or writing code. Pkl aims to simplify this process, making it sufficient to just specify the desired result.
The open-source Pkl includes features such as validation, sandboxing, and low priority to ensure data privacy and security. According to Apple, this language has a versatile structure and offers easy configuration capabilities.
Pkl has been used by Apple previously but has now become a language accessible to various communities. Pkl has basic editor plugins available for VS Code and Neovim.
For the convenience of developers, Pkl uses familiar syntax and includes commands such as classes, functions, and loops. Pkl programs can be easily converted to YAML, JSON, and XML formats, and operations such as setting constraints, sharing packages, and integrating with different languages are possible. The Pkl editor also provides support with built-in guidance.