Live data from Hacker News

The KDL Document Language

kdl.dev

41–50 of 64 posts

Re: The KDL Document Language

#41
I like it :) As "precise" and "analytical" we like to think we are (well I least). I can fully agree with the FAQ section;

Why yet another document language?: "Because nothing out there felt quite right."

Sometimes looking at code (my code) or platforms, frameworks etc, this "does it feels right" plays big part in my decision to use/like it.

Re: The KDL Document Language

#45
I'd love to understand why all the advertised implementations have permissive licenses except for the Rust implementation, which is released under the Parity Public License 7.0.0 [1]? This seems to be as restrictive as the GPL, no?

In my mind, copyleft licenses applied to infrastructural projects like kdl-rs prematurely limits their adoption and promotes the development of alternatives with more permissive licensing, since the spec is released under a Creative Commons license [2].

[1]: https://github.com/kdl-org/kdl-rs/blob/87f836134c1d901ff5ce6...

[2]: https://github.com/kdl-org/kdl/blob/785abebfc507ff6b7bdeac07...

Re: The KDL Document Language

#47
post #3

Nice doc, but I feel like it's confusing documents like XML/HTML and tree-structured data like JSON. It seems like it would be annoying to write this directly, like how do you make a word bold or italic? How do you make a class of hyperlink that's a different color (e.g. internal links vs. external)? HTML is OK but not fun to write directly -- I'm not sure that KDL is an improvement. You would still want something li…

Here's an example of how a HTML page would be presented. https://github.com/kdl-org/kdl/blob/main/examples/website.kd...

Oh wow. That’s actually surprising readable. I’m genuinely impressed.

Re: The KDL Document Language

#48

I have pretty much no interest in another markup language (or whatever we're calling these sorts of things today[1]) but I really want the slashdash comment style in every language I use now, that's an incredible idea. [1] apparently I didn't edit this in fast enough but wow I have even less interest in semantic arguments about what is and isn't a markup language.

Yeah tbh I don't know why syntax commenting isn't more common; when I wrote a language with s-exprs one of the earliest things I did was add a comment form to comment out an expression. And _especially_ in s-exprs it's almost trivial to add! Really don't understand why we don't see it more.

Re: The KDL Document Language

#49
post #3

Nice doc, but I feel like it's confusing documents like XML/HTML and tree-structured data like JSON. It seems like it would be annoying to write this directly, like how do you make a word bold or italic? How do you make a class of hyperlink that's a different color (e.g. internal links vs. external)? HTML is OK but not fun to write directly -- I'm not sure that KDL is an improvement. You would still want something li…

Here's an example of how a HTML page would be presented. https://github.com/kdl-org/kdl/blob/main/examples/website.kd...

reminds me of slim templates, but not just for Ruby

http://slim-lang.com/

Re: The KDL Document Language

#50

I have no idea what people are complaining about in this thread. I find projects like this genius. I love making programming languages and I hate hate hate writing parsers, yet I enjoy experimenting with different syntax. Stuff like this is very convenient because you can just import your code as document, use path language to extract data, and schema language to apply basic checks. Not only is this thing standardize…

To me it looks amazing, and I was literally about to adopt it in one of my open source Rust-based projects, but then I realized that the Rust version (and only the Rust version) is restrictively licensed under the Parity Public License [1].

I want my open source project to be able to be used in commercial applications, and don't want any of my dependencies' licenses to restrict that.

[1]: https://github.com/kdl-org/kdl-rs/blob/87f836134c1d901ff5ce6...

Post reply on HN