#pkl — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #pkl, aggregated by home.social.
-
https://www.europesays.com/pl/235194/ Nie będzie giełdowego debiutu PKL. Pomysł, który rozsierdził górali, trafia do kosza #Biznes #Business #krakow #nat_styl #omp #pkl #PL #podhale #Poland #Polish #Polska #Polski #Prywatyzacja #screening_general
-
@cfgmgmtcamp Any more about #Pkl? I’d love an update on people who’ve adopted it in the 2 years it basically launched at CfgMgmtCamp
-
Trying the new #jdx_hk git-hook manager. It uses #pkl programming language for configuration, and that's a big red flag.
I adapted the config file from their "getting started" and it just keeps crashing on syntax errors.
I think I'm gonna say no to this one, it shouldn't be that complicated.And BTW, never was a big fan of gradle either.
-
Trying the new #jdx_hk git-hook manager. It uses #pkl programming language for configuration, and that's a big red flag.
I adapted the config file from their "getting started" and it just keeps crashing on syntax errors.
I think I'm gonna say no to this one, it shouldn't be that complicated.And BTW, never was a big fan of gradle either.
-
#ITByte: #Pkl, recently released by #Apple, is an open-source #Programming language for configuration. It's designed to simplify tasks and address the shortcomings of JSON and YAML.
Pkl is based on a key value structure, similar to JSON, and is designed to specialize in configuration.
-
Pkl, an open source configuration as code language developed by Apple, appears on the latest thoughtworks Tech Radar as a language and framework to trial https://www.thoughtworks.com/radar/languages-and-frameworks #pkl #opensource
-
Unbiased take on configuration formats to replace
#yaml- #toml, https://toml.io/en/
the only real configuration language.- #kdl, https://kdl.dev/ 🌈
this format has been gaining hurts because it has cristal clear specifications! 🤓It therefore benefits from having the most **implementations in many, many languages!**
Clearly the people choice! 😁
- #hcl hashicorp attempt to replace yaml that resembles pkl 😑
- #pkl apple attempt to replace yaml that resembles pkl 😑 -
5 New Open Source Programming Languages That You Might Have Missed!
#amber #knowledgegraph #languages #lax #pkl #programming #scrapscript
-
#ITByte: #Pkl, recently released by #Apple, is an open-source #Programming language for configuration. It's designed to simplify tasks and address the shortcomings of JSON and YAML.
Pkl is based on a key value structure, similar to JSON, and is designed to specialize in configuration.
-
-
This talk of the new #pkl config lang reminds me of this #CfgMgmtCamp talk from 5 years ago: Why your configuration should have a schema by Gareth Rushgrove
-
-
-
-
-
-
Pkl; Cue; KISS
Two Drops today! This one, which makes up for the time-crunch-skipped one from earlier in the week, and the WPE.
TL;DR
This is an AI-generated summary of today’s edition.
- Apple introduces Pkl, a new “configuration-as-code” language with features like variables, conditionals, and loops, designed to reduce repetitive boilerplate code in configuration files. It supports packages, called “pantries,” and has editor support for IntelliJ, VSCode, and Neovim. Examples for Java, Go, Swift, and Kubernetes are provided, but a tool to convert existing YAML/JSON to Pkl is missing.
- Google’s Cue, another configuration language, is designed to simplify defining and validating data, with a focus on Kubernetes and Terraform. Cue is a superset of JSON, making it easier to learn, and it can convert existing JSON and YAML files into Cue specifications. Cue and Pkl both offer advanced data validation and schema definition, but Pkl adds object-oriented features like classes and inheritance.
- A Golang-based utility,
yamltojson, is mentioned as a simpler alternative for converting YAML to JSON and vice versa, suggesting that sometimes simpler tools may be sufficient for configuration tasks without the need for more complex programming components.
Type your email…
Subscribe
Pkl
Photo by Ju00c9SHOOTS on Pexels.comAs if we didn’t already have enough configuration “languages” to make life miserable across diverse projects, Apple enters the fray with Pkl. This is (as we’ll see) another “configuration-as-code” language + tooling pair vs. traditional, “static” configuration language + tooling such as JSON, YAML, or good ol’ INI files (though there are some aspects of YAML that also give it code-execution powers). That’s right, Pkl has full language features like variables, conditionals, and loops, which are designed to help us avoid repetitive boilerplate code.
It also groks that configuration files need to be valid, so there’s full support for defining rules and testing configurations out, which is handy in a CI/CD context.
While there’s a full, standalone, and robust CLI tool for working with Pkl files, it is also a library with multi-language support, and can be embedded in virtually any framework/app.
Because it’s a language, it supports the use of packages, which can be sourced from any URL with that houses a consistent directory structure. These are called “pantries” (of course they are), and Apple’s core pantry sources are oddly on GitHub. Apple also has many Pkl-oriented project repositories y’all can explore.
There is also nascent editor support for Pkl files (presently IntelliJ, VSCode, and Neovim). And, Apple has some examples for Java, Go, Swift, and Kubernetes which you can peruse to see how various Pkl bits translate to formats you are likely more familiar with.
A glaring “miss” from my perspective is a “turn this existing YAML/JSON/etc. into Pkl” bit of tooling (there is some of this if you read through the various pantry offerings and the language examples referenced in the previous paragraph).
Cue
Photo by Tima Miroshnichenko on Pexels.comGoogle’s Configuration Language, Cue (GH), is yet-another language + tool pair for defining and using data constraints. It, like Pkl, is designed to simplify tasks involving defining and validating data (which include configuration files). With Cue, we can define a schema with constraints, which can then be used to validate data against that schema. It was really designed with Kubernetes and Terraform in mind (likely one reason Apple provided k8’s examples with Pkl). Unlike Apple, Google understood folks already have quite a bit of information to keep in their noggins, so they made Cue a superset of JSON vs. design a new, special, crunchy language syntax we need to learn.
In terms of features, both Cue’s ecosystem and Pkl offer advanced data validation capabilities and the ability to define schemas with constraints. However, Pkl introduces object-oriented features like classes and inheritance, which are not a part of Cue’s more functional approach. Pkl also emphasizes integration with IDEs (oddly lacking direct support in Apple’s own Xcode) and aims to be a polyglot config solution, supporting multiple programming languages out of the gate.
Because Cue has been around for a little longer, it has out-of-the gate support for ingesting existing JSON, YAML (etc.) files and turning them into Cue specifications. So, if you’re just looking to escape YAML hades, you might be better off working with Cue, for now.
If you’re not familiar with Cue at all, there’s a handy Cuetorial.
We’re not showing how to use either, since I cannot see why one would need either bit of tooling. We’ve covered many configuration languages and conversion tools across these 400+ Drops, and some like Jsonnet have been around for nearly a decade and accomplish the same tasks (and, may be able to do more given their age).
Keep It Simple, Sir!
Photo by Sohel Patel on Pexels.comI realize both Cue and Pkl have bigger scopes in mind, sometimes all you need is the ability to go from something sane-ish (JSON) to insane (YAML), and back. While we’ve covered many tools like that, one ~4-year-old one is a Golang-based utility dubbed
yamltojson. It’s a simple install, can convert a single file, or entire directory, and works everywhere. And, perhaps, leave the programming components to the full-on languages?Type your email…
Subscribe
FIN
Remember, you can follow and interact with the full text of The Daily Drop’s free posts on Mastodon via
@[email protected]☮️https://dailydrop.hrbrmstr.dev/2024/02/09/drop-417-2024-02-09-make-up-exam/
-
#Apple launched a new open-source configuration programming language #opensource #Pkl https://www.techradar.com/pro/apple-just-launched-a-new-open-source-programming-language https://github.com/apple/pkl
-
IMO, #Pkl looks a little...too powerful as a #ConfigurationLanguage (https://pkl-lang.org/index.html). 🫤
On HN: https://news.ycombinator.com/item?id=39232976
On Lobsters: https://lobste.rs/s/srsoer/introducing_pkl_programming_language
-
IMO, #Pkl looks a little...too powerful as a #ConfigurationLanguage (https://pkl-lang.org/index.html). 🫤
On HN: https://news.ycombinator.com/item?id=39232976
On Lobsters: https://lobste.rs/s/srsoer/introducing_pkl_programming_language
-
IMO, #Pkl looks a little...too powerful as a #ConfigurationLanguage (https://pkl-lang.org/index.html). 🫤
On HN: https://news.ycombinator.com/item?id=39232976
On Lobsters: https://lobste.rs/s/srsoer/introducing_pkl_programming_language
-
IMO, #Pkl looks a little...too powerful as a #ConfigurationLanguage (https://pkl-lang.org/index.html). 🫤
On HN: https://news.ycombinator.com/item?id=39232976
On Lobsters: https://lobste.rs/s/srsoer/introducing_pkl_programming_language
-
I’m always impressed to see someone live create a regex in a demo. #pkl #CfgMgmtCamp
-
First talk ever about #Pkl premiered at #CfgMgmtCamp. https://cfp.cfgmgmtcamp.org/2024/talk/HHXWYB/
-
#Apple hat eine neue Sprache als Open Source-Projekt veröffentlicht: #Pkl ist dafür da, komplexe Konfigurations-Daten endlich verständlich und übersichtlich verändern zu können. https://winfuture.de/news,141002.html?utm_source=Mastodon&utm_medium=ManualStatus&utm_campaign=SocialMedia
-
Discover the power of GraalVM Truffle and Pkl in revolutionizing configuration languages. Unlock the potential with our latest blog post!
https://www.eliza-ng.me/post/futamuraproject/
#GraalVM #Truffle #Pkl #ConfigurationLanguages #Technology -
On Feb 1st, 2024, #Apple released Pkl. Pronounced "pickle", it is a complete configuration scripting language, including a JSON/YAML/XML/more compiler, a language server, bunch of IDE plugins, and of course direct bindings for your favorite programming language, for quick adoption. A #Python binding seems missing.
I like how a Pkl config's specs and values are colocated. Always hated maintaining separate schemas for very simple configs.
-
#ProKabaddi : Meet Iran’s Mohammadreza Shadloui Chiyaneh, record-breaker & showman
the art of tackling was what first drew him to #kabaddi Now the charismatic, crowd-pleasing Iranian has set the record for most tackle points in a single match.
Since last year, the defender has been sizing up star Indian raiders & has studied their games. It’s information that will help the Iran team in drawing plans if & when they face India at delayed Asian Games next year.
#PKL
https://scroll.in/field/1037873/pro-kabaddi-meet-irans-mohammadreza-shadloui-chiyaneh-record-breaker-and-showman