News for hackers. Stuff that matters.
Re:Common Expression Language by nojvek on Friday December 11, 2020 @11:02AM (#25387203)
If you’re constantly fighting yaml, consider jsonnet. It’s another project by google and similarly not Turing complete. Works wonderful at generating templates.
Re:Common Expression Language by sbarzowski on Friday December 11, 2020 @11:33AM (#25387561)
Well, actually Jsonnet is Turing complete. Anyway, thanks for the shoutout.
Re:Common Expression Language by nojvek on Friday December 11, 2020 @11:49PM (#25395658)
TIL. AFAIK jsonnet can’t do while loops so I assumed it wasn’t Turing complete and I didn’t see a way of writing a non-halting program.

But now I see, since it has recursion, there are tricks to make it go in an infinite loop.

Thanks for the pointer. I read the rationales again in the doc.