Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bioballer
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
bioballer
3y ago
Very cool! You might want to consider also publishing a schema for it too, as a Pkl package. The package can simply be published as a GitHub release (see details in this post here: https://github.com/apple/pkl/disc
2.
▲
by
bioballer
3y ago
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 leas
3.
▲
by
bioballer
3y ago
Hey, I recognize this name :D Yeah, it's been a long time coming, and it feels great to finally get this out in open source. FDB is open source too, BTW: https://github.com/apple/foundationdb
4.
▲
by
bioballer
3y ago
At some point, we'll publish more documentation about this, including instructions for how to build your own language binding. And, it's only a sub-process right now, but we plan on also providing a C library as another way to bin
5.
▲
by
bioballer
3y ago
There's no "walled garden" here. We want Pkl to be useful for many developers, for a variety of purposes. Hopefully that's clear enough with Java, Kotlin, and Go being amongst the various supported language bindings. We
6.
▲
by
bioballer
3y ago
I/O can be sandboxed via flags. For example, see these CLI flags: https://pkl-lang.org/main/current/pkl-cli/index.html#common-... And when using the different language bindings, you can specify sandboxin
7.
▲
by
bioballer
3y ago
I think this is a reasonable approach if you only have one stack, and don't have a lot of config. If you have one stack, you can put all the validation, types, and everything else in your runtime application, and then you don't ne
8.
▲
by
bioballer
3y ago
> A problem space I'm familiar with is having a bunch of Terraform or Cloudformation configuration you want to share/repeat in multiple projects. Doing-so can get hairy quickly, as the path of least resistance is to copy-paste
9.
▲
by
bioballer
3y ago
Python isn't oriented around defining and validating data. For example, something like: "this number is be between 1 and 10" means you have to come up with a novel way to add validation, because it isn't built into the l
10.
▲
Pkl, a Programming Language for Configuration
(pkl-lang.org)
930 points
by
bioballer
3y ago
|
564 comments
11.
▲
by
bioballer
3y ago
Pkl is a new language for describing configuration. It blends together the declarative nature of static formats like YAML or JSON, with the expressiveness, safety, and tooling of a general purpose programming language.