News for hackers. Stuff that matters.
Re:The YANG 1.1 Data Modeling Language by ZenoArrow on Tuesday November 01, 2016 @01:20PM (#12848005)
Thanks for the clarification. Out of interest, did you evaluate building a Lisp DSL? If so, any pros and cons you identified from that approach? I would've thought it would have been a quicker option to get going, though if you've reached version 1 you've put in the groundwork required now.
Re:The YANG 1.1 Data Modeling Language by camoberg on Wednesday November 02, 2016 @01:42AM (#12852557)
I know that parts of the original design team for YANG are old lisp-fans, but I can't recall the option of developing a lisp-based DSL ever being evaluated. I would personally suggest that the fit would not be very good, since YANG is fundamentally a modeling language that "models the hierarchical organization of data as a tree in which each node has a name, and either a value or a set of child nodes." (https://tools.ietf.org/html/rfc7950#section-4.1).

But I happen to personally think that a datalog- or lisp-based policy language for YANG-modelled data sources would be a very interesting concept.

Re:The YANG 1.1 Data Modeling Language by ZenoArrow on Thursday November 03, 2016 @02:29AM (#12861989)
> "models the hierarchical organization of data as a tree in which each node has a name, and either a value or a set of child nodes"

That matches the structure of Lisp. Lisp code is basically set out as an AST. A Lisp node basically either contains a function and a list, or a function and simple value(s). The former can be thought of as a parent node, the latter can be thought of as a child node.

Re:The YANG 1.1 Data Modeling Language by camoberg on Friday November 04, 2016 @05:57PM (#12876498)
So what you're saying then is that YANG could be a data modeling language for Lisp ;-)