Live data from Hacker News

Pkl, a Programming Language for Configuration

pkl-lang.org

111–120 of 598 posts

Re: Pkl, a Programming Language for Configuration

#111

Is this a joke? Why? We have so many usable formats already. Every language can do JSON. What problem does this solve? Or is this another Apple solution to a problem that doesn't exist?

I do not find this particularly interesting because the problem has been solved by several projects already, but this is a programmable configuration file.

i.e. you can write code statements and it transpiles down to other formats

Re: Pkl, a Programming Language for Configuration

#112

Pkl was built using the GraalVM Truffle framework. So it supports runtime compilation using Futamura Projections. We have been working with Apple on this for a while, and I am quite happy that we can finally read the sources! https://github.com/oracle/graal/tree/master/truffle Disclaimer: graalvm dev here. Edit: typo

> Pkl was built using the GraalVM Truffle framework. So it supports runtime compilation using Futamura Projections. What now?

A LOT of projects in the Java world do add new features to java. My favorite is CraC

Re: Pkl, a Programming Language for Configuration

#113
post #34

it's very brave to release a new configuration language with no Python support today.

Python is able to load Python code at runtime, so one can use Python for configuration. A solution doesn’t need to go looking for problems that are already solved.

Re: Pkl, a Programming Language for Configuration

#114
post #66

> We offer plugins and extensions for IntelliJ, Visual Studio Code and Neovim, with Language Server Protocol support coming soon. Why? Why would they not have just done the language server first (or only)? All of those have built-in support for it, so separate implementations wouldn't have been necessary; that's the point . I just don't understand why you'd make that decision on a greenfield project today, especially…

When distributing LSP servers you need to compile them to the target platform. Afterwards you normally also need an extension or plugin to actually activate the LSP server. So it is possible that there is an LSP server, but they haven’t figured out the distribution yet (sharing binaries? Homebrew?).
Post reply on HN