News for hackers. Stuff that matters.
Re:The KCL Programming Language for Data Validation by peefy on Monday January 09, 2023 @01:56AM (#34307587)
Kusion Configuration Language (KCL) is an open source constraint-based record and functional language. KCL improves the writing of a large number of complex configurations such as cloud native scenarios through mature programming language technology and practice, and is committed to building better modularity, scalability and stability around configuration, simpler logic writing, fast automation and good ecological extensionality.
Re:The KCL Programming Language for Data Validation by tejtm on Monday January 09, 2023 @02:33PM (#34314866)
Re:The KCL Programming Language for Data Validation by t0suj4 on Monday January 09, 2023 @02:45PM (#34314997)
I see a problem there with the pythonic range() function. I suggest to create syntax that can express closed, partially closed and open intervals. And make it always requiring two arguments.

As it is now, people have to know the quirks of python to understand what this schema wants to say. The meaning should be clear on first look.

Re:The KCL Programming Language for Data Validation by peefy on Monday January 09, 2023 @09:49PM (#34319853)
Thank you for your suggestion. At first, we expected to make an SRE-friendly language and made enhancements in configuration and policy writing (try to be close to python and shell in use, and use some pythonic built-in functions such as range). However, this does bring additional learning costs to some users who are unfamiliar with python's usage. We will try to eliminate some of python's triks in the future to make the syntax and semantics of KCL clearer.
Re:The KCL Programming Language for Data Validation by jauco on Monday January 09, 2023 @04:26PM (#34316324)
Recent related post (22 comments) https://news.ycombinator.com/item?id=34144566

Also: comparison with other languages such as dhall or cue or jsonnet at https://kcl-lang.io/docs/user_docs/getting-started/intro/