Earlier quoted context omitted.
TS tooling won’t tell you when your config value violates the constraint “isBetween(0, 100)” or “matches(Regex(…))”. Among other things.
A config validator, which can be written in TS, would.
Pkl, a Programming Language for Configuration
571–580 of 598 posts
Re: Pkl, a Programming Language for Configuration
#572Earlier quoted context omitted.
Ah just give me typescript, I do not need to learn a new thing for configuration languages and at the end of the day the output is compatible with JSON. Typescript has all the stuff I would want: types, first class json support, an ecosystem of libraries (if you want it, I would probably not for config generation). And the tooling is amazing. Does pkl have LSP, syntax highlighting in every editor, debugger or repl?
My impression of typescript is that if you do: a = 1; and elsewhere: a = 2; The ultimate value of 'a' will depend on the order in which those statements are executed, right? A configuration language should surface that as an error and tell you where all of the conflicting references are.
Re: Pkl, a Programming Language for Configuration
#573Re: Pkl, a Programming Language for Configuration
#574Earlier quoted context omitted.
TS tooling won’t tell you when your config value violates the constraint “isBetween(0, 100)” or “matches(Regex(…))”. Among other things.
A config validator, which can be written in TS, would.
Re: Pkl, a Programming Language for Configuration
#57525 years ago pretty much every program had a GUI to do the configuration. With help texts. On Windows, programs then either saved stuff into an ini file or the windows registry, both you could also edit manually. Today we have a programming language coming as a 87 MB binary to create config files. And to run that programming language you need to manually crate a ... config file. So what we are missing now is a 500GB…
Yes, the windows registry, the peak of our craft. No need to innovate, this one’s solved, wrap it up and move on Try taking more time to consider the problems you don’t have that others do, instead of writing anything off that doesn’t make sense to you (and simultaneously gatekeeping an entire industry)
Re: Pkl, a Programming Language for Configuration
#576Earlier quoted context omitted.
Oh yes, people DO develop stuff that is not needed. Back in the 90ies pretty much every nerd sooner or later had to write his own programming language (myself included). The difference between then and today: We did throw it away afterwards. These days every week someone spews out a new "programming language", claiming that the re-invented wheel is so much more round than the others. If fully agree that you might nee…
I'm surprised there's no widely-adopted library for general-purpose languages that handles user-friendly object input and outputs static config (perhaps in JSON) for machines to read. Instead, there are several DSLs that act as dynamic config, and even some that generate dynamic config, or something in the middle like k8s YAMLs. Have I just not thought hard enough about this problem yet, and a DSL is really needed fo…
Re: Pkl, a Programming Language for Configuration
#577Earlier quoted context omitted.
A config validator, which can be written in TS, would.
In theory, yes. But I doubt that we’ll see a TS IDE plugin that underlines violated constraints with red squiggles anytime soon. :-)
Re: Pkl, a Programming Language for Configuration
#578Earlier quoted context omitted.
I’m also curious, because Graal is pretty exciting stuff, what this might give over Jsonnet or Cuelang. It’s already a hard enough sell to try to get people to adopt these and they are much older and more robust than Pkl.
Pkl is newly open sourced, but it not new . It's been used for years at Apple, and has been battle tested internally. I'd actually say that our tooling in some ways is more mature. For example, I think our IDE experience (at least in JetBrains editors) is the best out there.
Apple employees can rate it as an old project among themselves, while it is more convenient for everyone else to rate the product from the moment of publication.
Re: Pkl, a Programming Language for Configuration
#579Earlier quoted context omitted.
Yes, the windows registry, the peak of our craft. No need to innovate, this one’s solved, wrap it up and move on Try taking more time to consider the problems you don’t have that others do, instead of writing anything off that doesn’t make sense to you (and simultaneously gatekeeping an entire industry)
How about .ini/.cfg files? Simple and portable, allowing comments, unlike JSON.
Re: Pkl, a Programming Language for Configuration
#58025 years ago pretty much every program had a GUI to do the configuration. With help texts. On Windows, programs then either saved stuff into an ini file or the windows registry, both you could also edit manually. Today we have a programming language coming as a 87 MB binary to create config files. And to run that programming language you need to manually crate a ... config file. So what we are missing now is a 500GB…
I used to see this sort of thing a lot at Apple and I used to classify the people concerned as those that work AT Apple rather than people that work FOR Apple.