Live data from Hacker News

Pkl, a Programming Language for Configuration

pkl-lang.org

211–220 of 598 posts

Re: Pkl, a Programming Language for Configuration

#211
post #188

Earlier quoted context omitted.

Really glad it wasn't just me. Genuinely thought someone was trying to make a joke.

Same - it doesn't help that I read Futamura as Futurama the first 3 times.

Probably because the original comment said “Futurama” not “Futamura” due to autocorrect [0], and was later edited to correct the misspelling.

Even now the OG comment says “Fuamura” but the quote in the GP comment has the original “Futurama” written in it.

[0] https://news.ycombinator.com/item?id=39239965

Re: Pkl, a Programming Language for Configuration

#212

Earlier quoted context omitted.

sounds like a perfectly cromulent topic to embiggen our knowledge.

Perfectumentous!

You joke, but this is surprisingly close to the name given to Dumbledore in the Dutch translation of Harry Potter.

Re: Pkl, a Programming Language for Configuration

#213

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

> ...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.

Shameless self plug: Giving an introduction in this video: https://youtu.be/pksRrON5XfU?si=CmutoA5Fcwa287Yl

Re: Pkl, a Programming Language for Configuration

#214
post #188

Earlier quoted context omitted.

Really glad it wasn't just me. Genuinely thought someone was trying to make a joke.

Same - it doesn't help that I read Futamura as Futurama the first 3 times.

For me it was about 5, until I read your comment. :/

Re: Pkl, a Programming Language for Configuration

#215
post #174

Earlier quoted context omitted.

As I understand it: GraalVM is an alternate JDK that can, among other things, do ahead-of-time compilation for Java. Truffle is a framework for building languages, that sits on top of Graal. Futamura Projections are a particularly interesting use case for compile-time partial evaluation. With partial evaluation you have static (known at compile time) arguments to your function, and dynamic (known at runtime) argument…

That all sounds cool, but is any of that especially useful for a configuration language?

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.

Re: Pkl, a Programming Language for Configuration

#216

Earlier quoted context omitted.

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

all I saw was oracle

FWIW Graal is probably one of the most exciting technologies to come out of Oracle in a long time.

Re: Pkl, a Programming Language for Configuration

#218

Earlier 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.

> but I honestly suspected somebody is trying to make fun of me with some concentrated technobabble Let me tell about a revolutionary device called a Turbo encabulator.

You joke but newer rails versions come with a front end framework named Turbo, and there's also a JS bundler named Turbo, so this is actually too close to reality

Re: Pkl, a Programming Language for Configuration

#219

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

Not completely related to the OP, but is Truffle going to be upstreamed as part of Project Galahad or will it remain as a library maintained by Oracle Labs? I ask cause the Project Galahad page on openjdk.org is a bit sparse on details.

The truffle compiler extensions in Graal will be part of Galahad. For example the partial evaluator. The truffle framework and all the languages are consumed from a maven repo as a regular java library these days.

Some background on the recent changes there: https://medium.com/graalvm/truffle-unchained-13887b77b62c

Post reply on HN