Earlier quoted context omitted.
Nix does this too and maintains perfect caching from top to bottom.
Nix is a build & metaprogramming system, not (just) a configuration language.
Pkl, a Programming Language for Configuration
351–360 of 598 posts
Re: Pkl, a Programming Language for Configuration
#352Earlier quoted context omitted.
Additionally I cant think of other such projects from Apple. They tend to build things that get used extensively till the end of their life is consumed. I wish Apple would continue to open source much more. Especially old software much like Microsoft does. I would kind of enjoy a Linux Distro that can natively run old Apple software and tools.
Clang leaps to mind. Most of LLVM was developed under Apple's auspices, although the project predates Apple hiring Chris Latner. Swift is also open source, although in practice it's almost always used in a macOS context. Which I think is a shame, it's a great language for writing the sorts of servers for which people usually reach for Go. That's not a complete list of programs Apple has open-sourced, although clearly…
Re: Pkl, a Programming Language for Configuration
#353I appreciate what the language is trying to do and simplified configuration that is repeatable / re-usable is the goal. However I can’t help but wonder why systems don’t simply start adopting full programming languages once they hit a certain complexity. Having to use another language just to reproduce YAMl or what have you in a repeatable fashion is a symptom of the problem IMO
Re: Pkl, a Programming Language for Configuration
#354> 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…
Re: Pkl, a Programming Language for Configuration
#355Earlier quoted context omitted.
Nix does this too and maintains perfect caching from top to bottom.
But I have no idea how I would build a config structure for an application using Nix... It seems very powerful so I'm sure it's possible, but I just have no idea where I'd start for this specific use case. Whereas this documentation for Pkl is entirely about that use case.
Might be room for a tool that exposes just the configuration management side of Nix in a more approachable way... on the other hand it would be a bit silly to use nix for conf files and not also for the underlying packages.
Re: Pkl, a Programming Language for Configuration
#356Pkl 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
Your mention of Futamura Projections was a nice reminder of how very mathy/theoretical foundations underpin Nice Things in high-level languages, like Hindley–Milner inspired type systems and modern optimizing compilers targeting SSA form. Value Lattices in Cue [1], another config programmable configuration language, also fall into this bucket. [1]: https://cuelang.org/docs/concepts/logic/
Re: Pkl, a Programming Language for Configuration
#357Earlier quoted context omitted.
Did you activate the virtual environment? For all the flak python gets, dependency setup is pretty simple if you're not flailing around aimlessly python3.12 -m venv --copies --clear --upgrade-deps ".venv" source ".venv/bin/activate" python -m pip install --upgrade pip setuptools wheel python -m pip install --editable .
Yes, I had activated the virtual environment. Thanks for the guide. It works without problems. I had used `virtualenv venv -p /usr/local/bin/python3.12` in my setup. Yours seems to be a better way.
And to think "There should be one-- and preferably only one --obvious way to do it." is in the Zen of Python...
Re: Pkl, a Programming Language for Configuration
#358Earlier quoted context omitted.
Ah sorry - that was an unintended side-effect of re-upping the original submission. I must have done some of the steps in the wrong order.
You mean you don’t have a distributed merge post microservice that emits post migration events, which are then consumed by a post owner conversion service using your existing event-driven architecture to facilitate seamless data synchronization and user notification processes??? That is not very hacker news of you from the guy who owns hacker news.
Re: Pkl, a Programming Language for Configuration
#359Re: Pkl, a Programming Language for Configuration
#360Earlier quoted context omitted.
> ...GraalVM Truffle framework... Futurama Projections... I know it's partly on me for not knowing the domain, but I honestly suspected somebody is trying to make fun of me with some concentrated technobabble. Especially since I wouldn't expect the topic (configuration languages) to require complex mathematical machinery to work with. Now I have something interesting to dig into.
Glad I'm not the only one who had this reaction. I just can't bring myself to accept that a problem that could be solved with a slightly better version of JSON or property lists requires this many buzzwords.