3 ms·
I'm curious about the language "bindings" for reading Pkl from Java, Kotlin, Swift, and Golang. At first I thought these were completely independent implementat
by nickm12 3y ago
I'm curious about the language "bindings" for reading Pkl from Java, Kotlin, Swift, and Golang. At first I thought these were completely independent implementations of the language, since they read from Pkl source and not some intermediate format.
However, the CLI talks talk about a "pkl server" mode that is used by the bindings. So it looks like there is a single implementation (written in some JVM language?) that is run in a subprocess. I wish there was more documentation about how this works under the covers.
https://pkl-lang.org/main/current/pkl-cli/index.html#installation https://pkl-lang.org/main/current/pkl-cli/index.html#install...
- bioballer 3y agoAt 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 bind to Pkl. But if you want to learn more about how this works, feel free to connect with us on GitHub! https://github.com/apple/pkl/discussions https://github.com/apple/pkl/discussions