Pkl: Apple's New JSON/YAML Killer (I actually want to use this...)

  Рет қаралды 341,778

Theo - t3․gg

Theo - t3․gg

Күн бұрын

I would never have guessed that Apple of all companies would make ANOTHER YAML alternative, but here we are. I'll admit, pkl (pickle) is actually really cool. Too bad I don't use Kubernetes lol
BLOG POST: pkl-lang.org/blog/introducing...
SITE: pkl-lang.org/index.html
GITHUB: github.com/apple/pkl
XKCD: xkcd.com/927/
Check out my Twitch, Twitter, Discord more at t3.gg
S/O Ph4se0n3 for the awesome edit 🙏

Пікірлер: 806
@Malix_off
@Malix_off 2 ай бұрын
They open-sourced it because they want it to be a standard
@skrypets
@skrypets 2 ай бұрын
because of 'Mother Nature"
@lmao4982
@lmao4982 2 ай бұрын
I mean yeah it would be insane to keep this kind of thing proprietary no?
@Malix_off
@Malix_off 2 ай бұрын
​@@lmao4982you'd be surprised
@no_name4796
@no_name4796 2 ай бұрын
Probably because they want people to freely maintain it. I hate corporations abusing open source, but putting a big price to the end user. Open source it's great when end users benefit from it. If open source is hidden under 20 meters of proprietary garbage, why is it any different then unpaid labor?
@ayoubthegreat
@ayoubthegreat 2 ай бұрын
@@jhuglen whats wrong with it
@TheRyulord
@TheRyulord 2 ай бұрын
The fact that Pickle and .pkl are already the name and extension for a common existing file format is driving me insane.
@ck-dl4to
@ck-dl4to 2 ай бұрын
No one should use a file extension as identifier.
@DemPilafian
@DemPilafian 2 ай бұрын
The fact that pickle ball makes such an annoying popping sound is driving me insane.
@monad_tcp
@monad_tcp 2 ай бұрын
​@@ck-dl4to NTFS had streams and that failed because people hate Metadata inside the file Metadata goes in the file system, the name is Metadata, extension and file type also is
@KaiHenningsen
@KaiHenningsen 2 ай бұрын
@@monad_tcp NTFS probably had streams because MacOS had resource files.
@livioribeiro
@livioribeiro 2 ай бұрын
Swift was already a programming language before Apple release theirs
@FIIRdesu
@FIIRdesu 2 ай бұрын
13:17 "Imagine if your JSON autocompleted and gave you errors when you were editing it" You don't even have to imagine, it's already a thing with JSON Schema.
@ephektz
@ephektz 2 ай бұрын
He mustn’t have edited a package.json in a while.
@CryptoDrewStreams
@CryptoDrewStreams 2 ай бұрын
Within the first 3 mins of this video, I was already screaming JSON Schema. It follows DRY principles, has validation, is standardized, can be transpiled to POCO code in various languages. And JSON Schema files can also be referenced in an OpenAPI/Swagger spec to generate code for entire API endpoints. But sure, Apple, do your own thing. Just like they are trying to build the next standard of podcasting when we already have a well-developed Podcasting 2.0 standard.
@soniablanche5672
@soniablanche5672 2 ай бұрын
yep and it's supported natively by vscode
@fullstack_journey
@fullstack_journey 2 ай бұрын
Typical theo
@omri9325
@omri9325 2 ай бұрын
But it doesn't have for-loopsd!!@#!@#
@jesse9999999
@jesse9999999 2 ай бұрын
as a person who uses python pickle files every day i find this naming choice very annoying
@timothyvandyke9511
@timothyvandyke9511 2 ай бұрын
Literally thought the same thing (but I’ve only used the library like once)
@toeJams
@toeJams 2 ай бұрын
PYTHONISTA: REEEEEEEEEEEEEEEEEE
@soupnoodles
@soupnoodles 2 ай бұрын
Youre supposed to name those as ".dat" files
@magikarpusedsplash8881
@magikarpusedsplash8881 2 ай бұрын
I found it funny because usually if I wanted to pickle something, there was a better solution assuming I wanted my project to be scalable in some way. And to be fair, you're going to choose one or the other, and as far as I know there's no external programs that open pickle files directly so you'll just be opening Apple's .pkl with a text editor and not touching pickles directly anyways.
@Axman6
@Axman6 2 ай бұрын
You should probably stop using the security nightmare that is python pickle.
@SilentFool602
@SilentFool602 2 ай бұрын
You can tell they want folks to use it because they also released a neovim plugin and aren't just catering to VScode users
@lbgstzockt8493
@lbgstzockt8493 2 ай бұрын
Why does the EU live in your head rent-free?@@jhuglen
@lbgstzockt8493
@lbgstzockt8493 2 ай бұрын
@@jhuglen Ah okay, I thought you had some weird hate-boner for the EU 😅
@jambalaya974
@jambalaya974 2 ай бұрын
the neovim plugin is crap though
@jasondclark
@jasondclark 2 ай бұрын
I used to Pickle my Python back in the day.
@marwan7614
@marwan7614 2 ай бұрын
Mmm Pickled python.
@vikingthedude
@vikingthedude 2 ай бұрын
My mom used to as well
@VivekYadav-ds8oz
@VivekYadav-ds8oz 2 ай бұрын
​@@vikingthedudeYour mom used to pickle his python?
@thedoctor5478
@thedoctor5478 2 ай бұрын
I still pickle my python. pkl is a well-known file extension for this. WTF
@ahmadaccino
@ahmadaccino 2 ай бұрын
the smartest thing a new standard can do is make it easy to incrementally migrate, and it seems they are doing that
@dstick14
@dstick14 2 ай бұрын
Someone's writing Doom in that
@NotNazuh
@NotNazuh 2 ай бұрын
the funny thing is is that you're probably correct
@TanukiYT
@TanukiYT 2 ай бұрын
I love that the example password they used was "hunter2" lol
@SeafoodFriedRice
@SeafoodFriedRice 2 ай бұрын
What was the password? All I see is *******.
@sion123ful
@sion123ful 2 ай бұрын
I work at apple, i joined when it wasn’t open source and i was very skeptical about PCL ( internal it’s called PCL instead of PKL) but it does solve a lot of problems and the IDE integration is great. It has completely replaced helm in our team, it’s much better. I hope eventually helm charts will also be published in PKL.
@dronicx7974
@dronicx7974 2 ай бұрын
I feel bad for people that have to now use this and the pickle module for file saving in python programs
@catalystcorp
@catalystcorp 2 ай бұрын
I feel bad for people that have to use python.
@techsavvy9258
@techsavvy9258 2 ай бұрын
Yeah fuck me
@X-3K
@X-3K 2 ай бұрын
@@catalystcorpi feel bad for people
@gh0stcloud499
@gh0stcloud499 2 ай бұрын
@@X-3KI feel bad
@tsvetanvasilev8346
@tsvetanvasilev8346 2 ай бұрын
@@gh0stcloud499I feel
@thegittubaba
@thegittubaba 2 ай бұрын
About the IDE autocompletion 13:30, you do have json-schema.
@Gunzy83
@Gunzy83 2 ай бұрын
​@@jhuglen Wtf are you on about
@ParasocialCatgirl
@ParasocialCatgirl 2 ай бұрын
​@@jhuglenthe easiest comments to delete are the comments that never get made 🙏
@iivarimokelainen
@iivarimokelainen 2 ай бұрын
​@@jhuglenyou need to get off the internet
@DrumMeister
@DrumMeister 2 ай бұрын
It’s time consuming to write, even if tools can help it’s full of boilerplate
@Brixster
@Brixster 2 ай бұрын
Regex makes this all the more cursed. Now you can have a string format language inside of a data format language which can now be directly processed inside of your application's language, which means you have a language in a language in a language. I am absolutely digging this! 😂
@mortenhattesen
@mortenhattesen 2 ай бұрын
Strictly speaking, RegEx is not a language, it is a pattern matching syntax. What would a better alternative have been? Invent yet another string pattern matching syntax for Pkl?
@lunakid12
@lunakid12 Ай бұрын
​@@mortenhattesenIt was (basically) a tongue-in-cheek comment.
@Ali-sc6dh
@Ali-sc6dh 2 ай бұрын
This is so awesome ! Currently I'm using json config file to validate and get autocomplete on my json files. And I do not have the best experience with it. Pkl could be a game changer !
@corscheid
@corscheid 2 ай бұрын
It's basically the SCSS/SASS of config. Slick.
@jacoL8
@jacoL8 2 ай бұрын
@@jhuglen hey can you stop spamming replies with this nonsense… You are conflating two completely different things… Apple is forced by the eu to conform to certain standards that the eu has set, like using USB-C ports, but that doesn’t mean that the eu has “forced” them to make a config language they developed open source… Like.. I really don’t know what you mean by “eu forced them” or “only in eu” here
@SwatejTech
@SwatejTech 2 ай бұрын
I'm guessing you are 14 @@jhuglen
@sebastianskovnielsen6472
@sebastianskovnielsen6472 2 ай бұрын
@@SwatejTech I wan't to know what he said ):
@OverG88
@OverG88 2 ай бұрын
Actually, it's mostly HOCON.
@thetukars
@thetukars 2 ай бұрын
Just taking a preliminary look, it genuinely looks fantastic
@ilonachan
@ilonachan 2 ай бұрын
chatter getting worked up about "version conflicts in config files": that's literally just a thing. The config format (or parts of it) may change over time after all, and it's important to keep track of that. It's great if Pkl can encode these existing problems and provide editor support for solving them... tho I wonder what form that'll take in practice, if and how different versions of a config format might be supported at the same time.
@MichaelBabcock
@MichaelBabcock 2 ай бұрын
There's a difference between changing config files and tracking configuration versions so you can load data from older formats properly.
@qandstuff
@qandstuff 2 ай бұрын
That’s really interesting, thanks for doing a video on this.
@DeuxisWasTaken
@DeuxisWasTaken 2 ай бұрын
When I saw a configuration language that is "a blend between a static language and a general-purpose programming language" I immediately thought of Nix, a language with similar ideas created for a similar purpose. Nix doesn't seem to do very well outside Nix and NixOS ecosystems though, and Pkl does seem easier to grasp.
@miallo
@miallo 2 ай бұрын
Totally agreed - for my NixOS system that I have been using for almost 4 years now I am happy with the subset of the Nix language that I need to know, but even then it sometimes still is hard for me to understand the syntax. And for programmer that is not used to it I think it is harder to fight with some of the constraints that you will run into when using nix in a very dynamic ecosystem: in the company I work for we are using it e.g. for building some JavaScript stuff and just the amount of work it takes for _some_ of the dependencies to be packaged is just insane (but to be honest, so is what those dependencies are doing on installation...). So yes - I really love NixOS, but I personally am sometimes struggling a bit with the nix language (yes - because I don't use it (or something similar) that often)
@dotanuki3371
@dotanuki3371 2 ай бұрын
@@miallo just learn FP .. here's a hint: you can do everything with foldl'
@kevanschwitzer8585
@kevanschwitzer8585 2 ай бұрын
This is the kind of content I'd subscribe for. Have seen your videos ocassionally, but valuable content like this is subsbscription worthy.
@_fudgepop01
@_fudgepop01 2 ай бұрын
honestly this seems REALLY cool - from the title I thought it was just another way of storing data that's nicer to use than json like hjson or yaml, but no this seems like WAY more!! really cool stuff :D
@chhihihi
@chhihihi 2 ай бұрын
Being a big fan of comptime in Zig, this will work beautifully. Types in more complex use cases are in desperate need of logic that can be resolved during the compilation of a particular program.
@AndrewTSq
@AndrewTSq 2 ай бұрын
My first thought was it sounds just more complicated to use
@justa9560
@justa9560 2 ай бұрын
@@jhuglen You really need to take a nap or some shit man. It's either extreme sleep deprivation, an absurd amount of alcohol, or you're doped the fuck up on psychedelics. Either way, you need a break
@ESPViper100
@ESPViper100 Ай бұрын
That's my second and third thought as well. No, wait, the third is overengineered.
@John-zz6fz
@John-zz6fz 2 ай бұрын
This is really pretty awesome... I am very excited to use this
@zephyr7k
@zephyr7k 2 ай бұрын
I can't wait to see this for Terraform
@gearboxworks
@gearboxworks 2 ай бұрын
Of course a third party might do it, but it's not likely to get first-class support from Hashicorp since they defined their own config language in HCL. It *might* make Hashicorp listen to users more and address some of the issues with HCL, though.
@LaoZhao11
@LaoZhao11 2 ай бұрын
I agree with your point of view!!!
@pqnet84
@pqnet84 Ай бұрын
Have you tried cdktf?
@PatrikStutz
@PatrikStutz 2 ай бұрын
Sooo... They didn't know Nix, Nickel, Dhall, CUE, Jsonnet or HCL existed and therefore had to create their own thing? :/ It doesn't even look that good tbh. But yeah, impressive that Apple open sources something. That doesn't happen very often.
@DemPilafian
@DemPilafian 2 ай бұрын
What browser did you use to make your comment?
@nikkiofthevalley
@nikkiofthevalley 2 ай бұрын
​@@jhuglenWhy on Earth are you constantly talking about the EU in every single comment?? What about any of this has anything to do with the EU????
@game_time1633
@game_time1633 2 ай бұрын
@@jhuglenbro you’re drunk get off KZbin 💀
@torsten_dev
@torsten_dev 2 ай бұрын
​@@jhuglen The EU just said you need user consent before you store data on their PC for reasons other than purely functional. The Industry could have just followed the Do Not Track setting, but they want your data. Not the EU's fault that sites are evil.
@ytdlgandalf
@ytdlgandalf 2 ай бұрын
Cuelang is still rough but the real deal. I'm trying to understand it better and contribute.
@3ombieautopilot
@3ombieautopilot 2 ай бұрын
There's another configuration language I like which is Dhall. For those who love Haskell, Rust and etc.
@PRIMARYATIAS
@PRIMARYATIAS 2 ай бұрын
Unfortunately it seems only the Haskell bindings are maintained and non of the other languages.
@togofar
@togofar 2 ай бұрын
That you can reference an environment variable from a pkl file is absolutely terrifying.
@franklerch1012
@franklerch1012 2 ай бұрын
reading an article while recording yourself is soooo creative, original and value adding....
@murtadha96
@murtadha96 2 ай бұрын
This actually seems AWESOME!
@ChristopherCricketWallace
@ChristopherCricketWallace 2 ай бұрын
I would rather them put thos energy into fixing the crashing bug in Xcode. Or maybe decoupling that IDE and compiler from MacOS versions so you can work on old apps without having to switch to old Macs with old MacOS versions.
@wolfeygamedev1688
@wolfeygamedev1688 2 ай бұрын
lol, apple dev will always be somewhat cursed. Its what they chose when they decided to be super proprietary.
@designator7402
@designator7402 2 ай бұрын
>old (anyhting) >Apple There is no backwards compatibility. There is no tolerance. You will work with the newest version, whether or not it makes sense.
@markuskonrad6049
@markuskonrad6049 2 ай бұрын
You do realise Apple has more than 5 engineers and not all of them can meaningfully work on xcode, right?
@U20E0
@U20E0 2 ай бұрын
does Apple even use XCode internally?
@TheKmsaboor
@TheKmsaboor 2 ай бұрын
Yes .properties are still being used especially in default spring boot apps
@31redorange08
@31redorange08 2 ай бұрын
Can't blame him. He lives in a frontend bubble.
@shubitoxX
@shubitoxX 2 ай бұрын
you can use yaml configs which are more readable for larger configs
@TheKmsaboor
@TheKmsaboor 2 ай бұрын
@shubitoxX I know I just wished my department used YAML more often 😂
@Lemmy4555
@Lemmy4555 2 ай бұрын
As a Typescript developer i don't see much value in this, because a pkl file have roughly the same lines of code of a regular js/ts file used for configuration, but using js/ts doesn't need to install additional binaries or dependencies. However i can see some potential for more complex languages like Go/Rust/Java/etc. that are not suited for small "scripts" since they take in account stuff that you don't care when creating a configuration file such as pointers, packages, namespaces, classes, the borrow checker, constructors, errors handling.
@dealloc
@dealloc 2 ай бұрын
> but using js/ts doesn't need to install additional binaries or dependencies Huh? What world are you living in where JS and TS doesn't require binaries or dependencies?
@recepciftci2642
@recepciftci2642 2 ай бұрын
@@dealloc Computer has already NodeJS installed. So you don't need to install anything extra.
@dealloc
@dealloc 2 ай бұрын
@@recepciftci2642 What computer? No computer comes with NodeJS preinstalled. You may have Docker images, but then it makes his initial point moot. Plus you'd still need to add TSC compiler as a dependency. That is besides the point, it's comparing apples to oranges.
@Nekroido
@Nekroido 2 ай бұрын
@@dealloc you don't need to add TSC to a TS project, because it's already been added. Use TS configs for TS projects, PHP for PHP projects, you get it
@MrBa143
@MrBa143 2 ай бұрын
​@@dealloc I will help you understand the comment. The comment did not mean that JS and TS doesnt require binaries / dependencies to be installed, the commentor was talking about simply using JS/TS files as a configuration file, thus not having to install any other binaries related to configuration management tools. Sometimes its okay to assume things and not take everything literal, especially in a world in which english is a secondary or tertiary language for many people. Perfect grammar is something alot of us wish we'd have. Sometimes we slip up, and the meaning of a sentence might differ from what we actually had in mind when we wrote it.
@HaraldEngels
@HaraldEngels 2 ай бұрын
Cool, if that should become available for PHP I will use this straight away. Thanks for sharing.
@jocdiazm
@jocdiazm 2 ай бұрын
Honey, I shrunk the JSON!
@terabit7400
@terabit7400 2 ай бұрын
Don’t worry, you have a great personality ❤
@mortenhattesen
@mortenhattesen 2 ай бұрын
Did you end up with YAML?
@victorperezasuaje255
@victorperezasuaje255 2 ай бұрын
Pkl feels like Typescript meets SASS
@scottamolinari
@scottamolinari 2 ай бұрын
I was about to say something similar.
@cobrasys
@cobrasys 2 ай бұрын
Very true.
@Ebiko
@Ebiko 2 ай бұрын
So from my understanding, this is supposed to help checking out projects, where the default config is ommitted from the repository, but you still want a default config to be created on first run, like an ENV bootstrap ? Or what is this useful for ?
@seannewell397
@seannewell397 2 ай бұрын
Types + constraints. That is cool. I feel like esoteric langa in the haskell/fp space have explored that.
@seannewell397
@seannewell397 2 ай бұрын
Like Idris and the like
@mohitkumar-jv2bx
@mohitkumar-jv2bx 2 ай бұрын
I am loving that theo has returned back to his roots in terms of tye content he is putting out.
@spaphy
@spaphy 2 ай бұрын
I'm going to keep using JSON, avoid YAML, never use XML on principal and now avoid using Pkl. Sounds good!
@froxx93
@froxx93 2 ай бұрын
That gives me strong Proto vibes. Looks cool. Especially for data APIs
@PieJee1
@PieJee1 2 ай бұрын
When i heard about pkl i was not interested thinking we already have enough tools, but the features shown here have some features. I can imagine using this to share a configuration between a frontend js and a backend rust/php/c application.
@JoshuaBarone
@JoshuaBarone 2 ай бұрын
How would you compare this to Cue? Seems like they are solving the same problems
@WeaponBalalaika
@WeaponBalalaika 2 ай бұрын
Yes, definitely! cue seems more pure and pkl more eng oriented. They clearly share underlying abstraction.
@codingjake
@codingjake 2 ай бұрын
I was thinking the same thing
@DryBones111
@DryBones111 2 ай бұрын
Cue looks more powerful to me. The built in scripting engine in Cue is brilliant.
@brodriguez11000
@brodriguez11000 2 ай бұрын
@@DryBones111 Hopefully no security holes.
@asmod4n
@asmod4n 2 ай бұрын
Til now I’ve just used URLs for configuration, this looks like the first replacement which actually adds useful functionality beyond that.
@joseph_p
@joseph_p 2 ай бұрын
I could see this being useful for generating docker compose files.
@offroaders123
@offroaders123 2 ай бұрын
Wow this is extra cool! Been looking into doing things like this lately, with TS types. I've been wanting to write a language-agnostic schema for Minecraft NBT types, which can be saved down to any language's type system as needed. This could work extra well for that. It kind of reminds me of WebIDL as well!
@palmberry5576
@palmberry5576 2 ай бұрын
??? What do you mean by language agnostic? Nbt is language agnostic and if you are too lazy to parse binary data, snbt exists
@offroaders123
@offroaders123 2 ай бұрын
@@palmberry5576 I meant that like rather than writing the type definitions for the NBT shapes using `.d.ts` files, I'd like to build those using some form of intermediate definition language, which could be more-easily converted to that of other programming languages. Say like how this is in TS, `interface Hi { Hello: StringTag; }`, it would be nice to have a way to deduce the equivalent of what that would be in C++, so something like `struct Hi { string Hello; }`.
@carmineingaldi47
@carmineingaldi47 2 ай бұрын
It seems they tried to recreate Terraform's HCL language, but without Terraform behind. Still I don't see it's usage overlapping wit json/yaml/toml or whatever. Let's see 3 use cases: 1. Transport format: it doesn't seem suitable (if I need schema oriented stuff and validation why not using binary formats such as thrift,avro or protobuffers?) 2. app configuration: imho I still would go for something simple and execute logic in my application instead of adding an additional step in my build process for compiling and packaging 3. Build configuration: do i really need standardization?eg If I'm in the jvm ecosystem I use gradle with groovy or kts and there is one in a billion cases where I need to transfer this configuration to another stack. Yes it takes more mental energy to learn all the tools and languages in order to be a polyglot developer but there is not so much to do unless you don't want to invent a an ecosystem agnostic deps/build management system...and good luck with that!
@_RafaelKr
@_RafaelKr 2 ай бұрын
Awesome, finally I can write my Ansible configs in a sane way. Not the full config, but what I define in my Inventory.
@BastianInukChristensen
@BastianInukChristensen 2 ай бұрын
1:26, Apple has an official Swift LSP for VSCode btw
@virkony
@virkony Ай бұрын
Nickel also have constraints and documentation. And Nix is really cool in merging things and have inter-dependent pluggable modules of configurations.
@DeuxisWasTaken
@DeuxisWasTaken 2 ай бұрын
They thankfully realised that the only way to have it adopted is to not only open source it but provide extensions to major editors, even VS Code. It's a good call, if they tried to make something proprietary, it would die painfully. Pkl seems cool, but it smells of something that will be infamous for quirks and hard to make parsers like YAML. Time will tell I guess, I do like it and hope it catches on and ends up being good.
@pifpafize
@pifpafize Ай бұрын
wow thats soooo cool! solves alot of things that i wrote my own stuff for..
@krellin
@krellin 2 ай бұрын
this is a great tool that solves something that is not big of a deal... i'll use it too. Nice that someone solved it and shared as open source.
@mattmmilli8287
@mattmmilli8287 2 ай бұрын
ngl the most interesting part to me is standardizing the way runtime json gets generated 😮 it’s an easy task but cool not to have to decipher whatever madness someone cooks up to do it
@ssshenkie
@ssshenkie 2 ай бұрын
Cool idea, but I'm having a hard time understanding the actual use case. I have never found myself needing a language agnostic config, Both JSON and YAML have schema files which solves auto complete.
@dealloc
@dealloc 2 ай бұрын
When you work with environments which practically live on configurations and a mistake can take down a fleet of services, this is _very_ useful.
@omri9325
@omri9325 2 ай бұрын
This is very very cursed, could not expect less from Apple
@patricknelson
@patricknelson 2 ай бұрын
All the Python folks are hissing about this (don’t blame ‘em, they’ve been using “pickle” for serialization for ages). Anyway - I wonder if at Apple, all their Kubernetes cluster manifests are written in Pkl files. Hmm… that’d be interesting to look at!
@Danny-zn8hd
@Danny-zn8hd 2 ай бұрын
A few years ago Apple introduced a conditional and declarative configuration mobile device management model to set conditional parameters to be set on the iOS, MacOS operating systems. This seems like the underlying programming framework is pKL.
@rpWeb3
@rpWeb3 2 ай бұрын
I am not sure why, but I love this..
@Moosems-pk8vc
@Moosems-pk8vc 2 ай бұрын
Does it support references/pointers from one variable to another? It would make so many past JSONS of mine so much cleaner. For example: if I have a file that outlines the theme of a custom code editor and I want to have an easy to edit color scheme, I have to change each occurrence of a color in a JSON file but if I could reference variables I could put the color scheme at the top and make all uses references so it can easily be modified.
@Jebediah_w
@Jebediah_w 2 ай бұрын
This feels like a great format for openapi honestly. It's easy to generate clients for APIs if you share the pkl files
@ArizeOW
@ArizeOW 2 ай бұрын
"Pickle" sounds like "Pickel" which is German for "Pimple". Can't wait to hear my coworkers say "Create a pimple file for this project!". For that reason, I'm out 😆
@mortenhattesen
@mortenhattesen 2 ай бұрын
It's like what CMAKE is to Make (and other build systems). A meta-configuration language/syntax to generate/validate configuration files
@withindreams
@withindreams 2 ай бұрын
Dude this isn't as big of a problem in JS land. For JSON, we have schemas. For JavaScript and TypeScript, most packages come with a defineConfig out of the box, and if they don't, rest assured somebody has already published an NPM package for that purpose.
@emo4123
@emo4123 2 ай бұрын
apple and open source in the same sentence is funny af
@Wurlipurili
@Wurlipurili 2 ай бұрын
Is there a specific software that records Arc pages in such a way (rounded edges, link in the middle-top, square camera feed)? Seen it a few times
@chyldstudios
@chyldstudios 2 ай бұрын
nice job apple!
@joaodiasconde
@joaodiasconde 2 ай бұрын
I dont want logic in my config files, jesus christ I cant find this appealing at all.
@geomorillo
@geomorillo 2 ай бұрын
Really i prefer to validate my jsonf config file in my code, i dont like this and i agree with you, whats with this trend of overcomplicating things....omg, for example in c# i could use a library like fluenvalidation an validate rules for my json's structure with rules like "port" is an int for example .... not needing to define a new language for that 🤣🤣
@henlostinky273
@henlostinky273 2 ай бұрын
this, just writing the parser for this was probably some intern's whole summer and it only made the problem worse. JSON is from 2001 and it's not impressive to be slightly better than one part of it 20 years later.
@duartecunhaleao
@duartecunhaleao 2 ай бұрын
I would love not to have to write any more validation code along the main code...
@joaodiasconde
@joaodiasconde 2 ай бұрын
@@duartecunhaleao but consider that what is 'valid' may change from consumer or other factors and I doubt you are going to skip server/app side validations anyways and just leave it to this config, so you will end up doubling the validations. Also validation should be close to the app code im reading/writing as it is crucial.
@Spoonbringer
@Spoonbringer 2 ай бұрын
Seriously. And if you are creating long config files with a lot of repetition just write a script to generate them.
@trietang2304
@trietang2304 2 ай бұрын
Such a cool thing. I think an app need to have a lot complex config to require something like this.
@mkaufmandev
@mkaufmandev 2 ай бұрын
Did I miss a way to fix iterating over and parsing arrays and/or objects and mixes of the two? JavaScript's nested for loops or for ins or Lodash etc.. to get properties and values is stupid. Did I miss where Pkl fixes this? The casting of obj/array just to iterate and put in the correct order and other things? Thanks for the video nonetheless.
@prozacgodgamedev
@prozacgodgamedev 2 ай бұрын
I tried something tangentially similar to this - I had a half hearted attempt years ago at SQL -> yaml for minecraft server (modded) The idea was I would normalize all configuration into a database, and then through a FUSE filesystem mounted over your config folder, it would magically generate confs to read and accept changes written to it. I never finished it but it seemed like a cool idea.
@dzivojelic
@dzivojelic Ай бұрын
once again reinventing the wheel 😅😅
@Mikenight120
@Mikenight120 2 ай бұрын
The fact Go is considered as the first 4, shows Go is going places🔥
@nO_d3N1AL
@nO_d3N1AL 2 ай бұрын
This came out of nowhere, they basically made a very accessible and powerful modelling language with generators and all... incredible
@vitalysuper3193
@vitalysuper3193 2 ай бұрын
Every year you present two vscode killers and three json replacements
@MSparta4ever
@MSparta4ever 2 ай бұрын
Seems pretty nice for testing purposes too. Could define data structure in pkl and create tests that are invalid. If you also could import data restrictions from pkl into the code, that would be awesome. Like defining data structure in pkl and define constraits on the data there, and using data described in the structure in the code would then import the constraints too. Though exporting logic out of the code is not necessarily that good, but maybe could use some autocomplete function in IDE instead.
@excitedbox5705
@excitedbox5705 2 ай бұрын
So C macros for config files? something like Cmake? This is just another syntax to add to the collection I have to use once every few weeks. Between all these scripting languages, config formats, CLIs, programming languages, etc we are expected to know is nearing 100+.
@soniablanche5672
@soniablanche5672 2 ай бұрын
you can actually use C macros in any languages, but nobody does it because it would confuse newbies who have no idea what a preprocessor is EDIT: also your IDE would complain about syntax errors lol
@dealloc
@dealloc 2 ай бұрын
Definitely not like CMake. Thankfully.
@Rudxain
@Rudxain 2 ай бұрын
2:01 I wish Rust had built-in syntax for that. Ranged Ints are cool and all, but it should be built-in for any lang like Rust
@Thorax232
@Thorax232 2 ай бұрын
JetBrains editors already have a decent understanding of common config files. package.json for example has the autocomplete that's shown here (it will even do lookups for dependency versions). next.config.js has this too. But I understand the value of codifying this into something common.
@edumorphology
@edumorphology 2 ай бұрын
Super hyped
@jugendhacker2833
@jugendhacker2833 2 ай бұрын
Gives me xkcd 927 vibes... "One standard to rule them all"
@jugendhacker2833
@jugendhacker2833 2 ай бұрын
Oh and what could possibly go wrong if you have a config language that could actually contain logic 🤦
@charliecarrot
@charliecarrot 2 ай бұрын
Does it give you those vibes because he showed that exact xkcd comic at 3:46?
@jugendhacker2833
@jugendhacker2833 2 ай бұрын
​@@charliecarrotoh I did not even notice that 😅
@enderger5308
@enderger5308 2 ай бұрын
This concept has already been executed in the form of Dhall and Nickel. Nice to see another competitor, but I’ll stick with Dhall.
@gearboxworks
@gearboxworks 2 ай бұрын
Had not heard of DHall or Nickel. Just found their websites and notice that while DHall has a VS Code plug-in, they have no support for JetBrains IDEs. So for that reason alone Pkl is more attractive to me, since I'm spend most of my days in GoLand.
@sergiotortosabenedito8604
@sergiotortosabenedito8604 2 ай бұрын
Honestly, I've already seen all of this before. There's a language much smaller called Nickel, same concept but it's based on FP (perfect for config) and it's already past 1.0.0.
@torb-no
@torb-no 2 ай бұрын
Wouldn’t say say Apple dislike JavaScript when they have integrated JavaScript support all over the place in their products. But yeah, Pkl looks cool! Always great to see more safety in languages. Thanks for showcasing it.
@gatsbysdead
@gatsbysdead 2 ай бұрын
Python’s pickle library: am I a joke to you?
@rafaelnegron_web
@rafaelnegron_web 2 ай бұрын
I feel like that laugh at 3:49 was a genuine Theo, almost like he broke character for a second and had a real chuckle. Great content! Keep it up.
@jenreiss3107
@jenreiss3107 2 ай бұрын
I wish there was a rust integration. this looks fantastic for my work
@CalebHesse01
@CalebHesse01 2 ай бұрын
Am I the only one that thinks this would be creating more work and costing more time than it saves? It just seems awfully redundant. Maybe it's just because of the nature of what my projects usually are...
@VincentFree
@VincentFree 2 ай бұрын
Don't think kotlin support is mainly about android. Kotlin is used to build ios apps and apps across the Apple eco system. Also it's just a better java and it's able to interop with java so it seems like low hanging fruit though if it's true multi platform kotlin it'll be a bit more that java -> kotlin. Happy to see Go support as a first class supported language btw!
@PASTRAMIKick
@PASTRAMIKick 2 ай бұрын
idk, Apple is kinda growing on me, if they allow sideloading on their phones one day I might find myself being an Apple guy
@flipperiflop
@flipperiflop 2 ай бұрын
Be careful with identifying yourself with a corporation - they are not your friends, and that logic can blind you to the dirty tricks the corporation does.
@secretzpt176
@secretzpt176 2 ай бұрын
If it has anything to do with the USB-C, removable batteries or sideloading then it seems like the EU regulations are growing on you 😂 Maybe one day the EU will also enforce right to repair, we can only hope.
@PASTRAMIKick
@PASTRAMIKick 2 ай бұрын
@@flipperiflop it's just an expression I would never be a consoomer or simp for a corporation. I would never base my identity on a corporation that thought is repulsive to me, don't worry bud
@PASTRAMIKick
@PASTRAMIKick 2 ай бұрын
@@secretzpt176 that'd be awesome, although I'm sure Apple will to anything in its power to only apply these good changes in the EU as long as it doesn't affect their bottom line
@JordanShurmer
@JordanShurmer 2 ай бұрын
Theo, I like your style. You should look into bespoke british tailoring
@tombuckley91
@tombuckley91 2 ай бұрын
I knew Silicon Valleys fondness of pickleball was going to spill over into the collective unconscious.
@y2k04
@y2k04 2 ай бұрын
yessss talk about XCode and its horrors :D
@j.r.qwertz
@j.r.qwertz 2 ай бұрын
Sounds nice. Now I'm thinking about Pkl generating XML files...
@ChristopherButeau
@ChristopherButeau 2 ай бұрын
Seems really neat tech. I do not see a use case where I need to generate all these configuration files.
@markolson8569
@markolson8569 2 ай бұрын
I swear people undervalue the importance of ease of writing a parser. JSON was designed to be easy to parse; this obviously is not
@parlor3115
@parlor3115 2 ай бұрын
I'm all in for built-in declarative validation rules, but built-in programming will make it hard to maintain readability (you don't know the result until the file is executed / compiled). Still will give it a go, though
@GnomeEU
@GnomeEU 2 ай бұрын
Why they need validation in a config file? My program can read the file and tell the user what is wrong. I don't need to learn a new scripting language for that. And if you config file gets too big I want to use a real programming language to create it anyway. Plus source control.
@gearboxworks
@gearboxworks 2 ай бұрын
So, they created Cascading Configuration Language; they should have named it CCL. Given how maintainable the seemed-like-a-good-idea-at-the-time CSS turned out to be, I am not so sure that we should consider them creating a cascading configuration language to be a good thing... 🤷‍♂️ #jmtcw
@wannafedor4
@wannafedor4 2 ай бұрын
Can’t wait for a new 50 kits :)
UI Libraries Are Dying, Here's Why
13:28
Theo - t3․gg
Рет қаралды 254 М.
The Problem With UUIDs
25:53
Theo - t3․gg
Рет қаралды 92 М.
[실시간] 전철에서 찍힌 기생생물 감염 장면 | 기생수: 더 그레이
00:15
Netflix Korea 넷플릭스 코리아
Рет қаралды 38 МЛН
蜘蛛侠这操作也太坏了吧#蜘蛛侠#超人#超凡蜘蛛
00:47
超凡蜘蛛
Рет қаралды 44 МЛН
маленький брат прыгает в бассейн
00:15
GL Show Russian
Рет қаралды 2 МЛН
Apple Built The Vision Pro To FAIL, And It's GENIUS
12:39
Enrico Tartarotti
Рет қаралды 472 М.
How Senior Programmers ACTUALLY Write Code
13:37
Healthy Software Developer
Рет қаралды 1,2 МЛН
Is JSON Blazingly Fast or...?
9:57
ThePrimeagen
Рет қаралды 183 М.
BREAKING: jQuery V4 Is Here (YES REALLY)
12:30
Theo - t3․gg
Рет қаралды 182 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
CSS Is 2.4x Slower Than Inline Styles (Oh No...)
19:39
Theo - t3․gg
Рет қаралды 31 М.
The ARM chip race is getting wild… Apple M4 unveiled
4:07
Fireship
Рет қаралды 434 М.
The purest coding style, where bugs are near impossible
10:25
Coderized
Рет қаралды 815 М.
Why Doesn’t Everyone Use This Animation???
23:59
Theo - t3․gg
Рет қаралды 69 М.
Gleam 1.0 Is Out! (I think I'm in love...)
33:26
Theo - t3․gg
Рет қаралды 174 М.
Windows или Linux: что выбрать?
0:57
CompShop Shorts
Рет қаралды 1,4 МЛН
Теперь это его телефон
0:21
Хорошие Новости
Рет қаралды 227 М.
ИГРОВОЙ ПК от DEXP за 37 тысяч рублей из DNS
27:53
Распаковка айфона под водой!💦(🎥: @saken_kagarov on IG)
0:20
Взрывная История
Рет қаралды 11 МЛН