Apple just launched a new open-source programming language
Date:
Mon, 05 Feb 2024 12:25:16 +0000
Description:
With Pkl (pronounced pickle, just to spite everyone), Apple wants to make configuration easy and scalable on its own, but does support existing popular configuration formats like JSON to help ease the transition from one workflow to another.
FULL STORY ======================================================================
Apple has released Pkl, a new open source embeddable configuration language, hoping to take the stress out of small to large, simple to complex, ad-hoc to repetitive configuration tasks.
Launched on February 1 2024 into version 0.25, the tech giants team have provided a quick tour of the language in a text post on the Pkl documentation website.
Per that tour, Pkl is designed around a key value structure, in a manner akin to JSON, rather than imperative instructions like many other traditional programming languages , Apple has designed Pkl to specialise in
configuration, along with a few neat quality-of-life features to turn heads. Indeed, Pkl supports JSON, XML, and YAML property lists at launch to generate static configuration files. But wait, theres more
However, Pkl wants to be more than just a helping hand in your configuration pipeline, and claims that Pkl can stand on its own as a safe, easy, and enjoyable to use configuration library. Although its only been four days, at time of writing, since Pkls first version release, there are languages available for Jafa, Kotlin, Swift and Go, with more, with any luck, on the way.
In the future, we hope to add support for other popular languages and platforms, realizing our vision of a polyglot config solution based on a single config language.
Apple seem very excited about something so very niche, but good for them, I suppose. It does seem like a novel way of setting out a programming language, so even if were not talking about Pkl in however many years the same way we
do Python (which you should learn, actually, as its surprisingly down to
Earth and very versatile), we can at least note here, now, that its a
creative solution to what Im sure is someone somewhere's problem. Hello,
Apple marketing department, can you hear me?
Yes, okay, this is very niche stuff, but for anything to be successful, its helpful to have a unique name or acronym. Pkl is cute, we all like pickles, and, to be fair, its easily memorable on that basis. But will something this niche ever supplant the dreaded Google SEO for the Pro Kabaddi League, or a place in the UK that will do up your kitchen? Only time will tell.
So far, only searching pkl apple, which I only knew to do because this story was there in our news list when I staggered in this morning, gets you the one weve all been waiting for: the Github page for the language, containing a
link to the relevant documentation for getting started with the Pkl command line interface , available on macOS, Linux, Alpine Linux, and Java.
While Java will ensure multi-platform support, this comes with caveats: it requires a Java 8 (or higher) runtime on the system path, has a noticeable startup delay, and runs complex Pkl code slower than the native executables. More from TechRadar Pro It's official, these are the most popular (and lucrative) programming languages right now Google's Carbon programming language could be a worthy successor to C++ Weve also listed the best laptops for programming right now
======================================================================
Link to news story:
https://www.techradar.com/pro/apple-just-launched-a-new-open-source-programmin g-language
--- Mystic BBS v1.12 A47 (Linux/64)
* Origin: tqwNet Technology News (1337:1/100)