Trending

#kdl

Latest posts tagged with #kdl on Bluesky

Latest Top
Trending

Posts tagged #kdl

Preview
[ANN] kdl-hs 1.0.0 released with v2 support kdl-hs is a parser for the KDL configuration language, providing both monadic and arrow-based decoding functionality. v1.0.0 reimplements the parser to be v2 compliant. The parser now preserves forma...

[ANN] kdl-hs 1.0.0 released with v2 support

kdl-hs is a parser for the #KDL configuration language, now compliant with the v2 standard.

discourse.haskell.org/t/ann-kdl-hs...

#Haskell

8 1 1 0

L'ensemble du Bureau du #KDL vous souhaite de passer une agréable fête d'Imbolc ce soir 🏵️🌙

1 0 0 0

Brigitte Bardot restera à jamais la meilleure amie des animaux.
Le Bureau du #KDL et moi-même nous inclinons avec émotion devant la mémoire de cette figure emblématique de la Cause Animale.

1 0 0 0

Le Bureau du #KDL et moi-même vous souhaitons une belle fête de Yule 🎄❄️🎁🔥

1 0 0 0

Le Bureau du #KDL et moi-même vous souhaitons un très bon Solstice d'hiver ❄️🔥
Sol Invictus ☀️

1 0 0 0
Preview
Parsing and Lexing in F# For the F# advent calendar this year, I wrote a KDL parser.

An essay about parsing and lexing, and how some principles behind a KDL parser I wrote for this year's F# advent calendar. #kdl #fsharp #FsAdvent

10 1 0 0

Le Bureau du #KDL et moi-même vous souhaitons une belle fête de Samonios 🔥🍂

1 0 0 0

Today's motto: if Konami won't hire me to work with them, then I'll build my own Silent Hill 😏 Because why not 😌 #ttrpg #silenthill #horror #horrorgames #kult #kultdivinitylost #KDL

1 0 0 0

ok hear me out

what if

#KDL args/prop vals could be nodes, too? This seems... tremendously silly, but I can imagine use cases even if I can't imagine how to make it look reasonable.

4 0 0 0

Le Bureau du #KDL et moi-même vous souhaitons une belle célébration de Lugnasad 🌾🌻🐾

1 0 0 0
Post image

L'association Le Klan du Loup vous souhaite une très belle fête de Lugnasad 🌾🌾🌻🌻🐾

#KDL

1 0 0 1

Le Bureau du #KDL et moi-même vous souhaitons un joyeux Solstice d'Eté 🔥🌞

1 0 0 0

Le Bureau du #KDL et moi-même souhaitons une belle fête des pères aux amis du Loup 🐺

1 0 0 0
Preview
Drap de bain Drap de bain distribué par l'association le Klan du Loup. Le drap de bain a le marquage Liberté pour le Loup ! , à l'avant. Il est blanc unis au verso.

C'est le moment de préparer vos journées à la plage 🏖️
💯 des bénéfices sont reversés à l'association Le Klan du Loup 🐺
laboutiqueduloup.fr/produit/drap...

#KDL

0 0 0 0

Le Bureau du #KDL et moi-même vous souhaitons une bonne fête des Louves 🌹🌷💐🐾

1 0 0 0
Original post on infosec.town

semi-cursed idea: a #KDL representation of _every #XMPP stanza_, mostly for denser raw storage.

Most clients decide very-lossy data storage is good enough, but that doesn't satisfy me. The current storage mechanism for Spades is based on the XML stanzas (in MAM form) and the size of the XML in […]

0 0 0 1
Preview
La Boutique du Loup Cliquez sur la photo pour accéder à la Boutique. Pensez au partage

En commandant sur La Boutique du Loup, vous participez au fonctionnement de l'association Le Klan du Loup car 💯 des bénéfices lui sont reversés 🐺
laboutiqueduloup.fr
#KDL

0 0 0 0
Original post on infosec.town

secretly genius #xmpp idea: KDL representation of Data Forms.

So this beast:


Bot Configuration
Fill out this form to configure your new bot!

jabber:bot

Section 1: Bot Info






Section 2: Features

contests
news […]

0 0 0 0

Le Bureau du #KDL et moi-même vous souhaitons une très belle fête de Beltaine 🏵️🔥

1 0 0 0

Omg the #kdl plainfield charter township library is huge! I went there on a whim after dropping off books at my branch which was closed. Might go there again sometime since it's only a few minutes further away.

0 0 0 0
 3.8.3.1. Bare Suffix Type Annotation

When a Value (Section 3.7) is a Number (Section 3.14) that meets certain criteria, it's possible to append an Identifier String (Section 3.10), and ONLY an Identifier String, as a suffix directly to the Number, as its Type Annotation (Section 3.8). The criteria are as follows:

The Number MUST be a Decimal (that is, it MUST NOT start with 0b, 0o, or 0x). Additionally, the tokens 0b, 0o, and 0x MUST be treated as syntax errors (incomplete non-decimal numbers).

It MUST NOT have an exponent part (e.g. 5.2e+3).

The Identifier String used for the type itself MUST NOT start with either . or ,.

As part of the exponential restriction, the suffix MUST NOT match [eE]([-+]|[0-9]) (e.g. 5.2e+ SHOULD be considered a "bad exponential", and MUST NOT parse as (e+)5.2).
For example, the following are all illegal:

10,000 (suffix would start with ,)

10e0n (suffix on an exponential)

0xyz (starts with reserved hexadecimal prefix)

0b (starts with reserved binary prefix)

5e+oops (looks too close to an exponential)

1.2.3-abc (suffix would start with . AND Identifier Strings can't start with .<digit>)
Whereas the following are all legal:

0u8 = (u8)0

5em = (em)5, the e is not followed by a digit.

1xyz = (xyz)1, no longer starts with 0 as above.

20b = (b)20, "20 bytes", no longer starts with just 0 as above.
If the desired suffix would violate any of the above rules, either Prefix Type Annotations (Section 3.8.2) or Explicit Suffix Type Annotations (Section 3.8.3.2) may be used.

3.8.3.1. Bare Suffix Type Annotation When a Value (Section 3.7) is a Number (Section 3.14) that meets certain criteria, it's possible to append an Identifier String (Section 3.10), and ONLY an Identifier String, as a suffix directly to the Number, as its Type Annotation (Section 3.8). The criteria are as follows: The Number MUST be a Decimal (that is, it MUST NOT start with 0b, 0o, or 0x). Additionally, the tokens 0b, 0o, and 0x MUST be treated as syntax errors (incomplete non-decimal numbers). It MUST NOT have an exponent part (e.g. 5.2e+3). The Identifier String used for the type itself MUST NOT start with either . or ,. As part of the exponential restriction, the suffix MUST NOT match [eE]([-+]|[0-9]) (e.g. 5.2e+ SHOULD be considered a "bad exponential", and MUST NOT parse as (e+)5.2). For example, the following are all illegal: 10,000 (suffix would start with ,) 10e0n (suffix on an exponential) 0xyz (starts with reserved hexadecimal prefix) 0b (starts with reserved binary prefix) 5e+oops (looks too close to an exponential) 1.2.3-abc (suffix would start with . AND Identifier Strings can't start with .<digit>) Whereas the following are all legal: 0u8 = (u8)0 5em = (em)5, the e is not followed by a digit. 1xyz = (xyz)1, no longer starts with 0 as above. 20b = (b)20, "20 bytes", no longer starts with just 0 as above. If the desired suffix would violate any of the above rules, either Prefix Type Annotations (Section 3.8.2) or Explicit Suffix Type Annotations (Section 3.8.3.2) may be used.

Finally managed to go back to my #KDL suffix type annotations PR, and I'm pretty happy with where I've landed so far with the usage criteria, which had gotten a bit hairy. These rules are MUCH more straightforward, imo.

What do y'all think? Does this make sense?

PR: github.com/kdl-org/kdl/...

6 0 1 0
Preview
kdl/.github at main · kdl-org/kdl the kdl document language specifications. Contribute to kdl-org/kdl development by creating an account on GitHub.

Can #kdl be used for GitHub Action YAML @zkat.tech ?

github.com/kdl-org/kdl/...

My first thought to 'hack' it would be to use the existing tools to translate KDL to YAML (probably by using the subset that can go to JSON, as YAML<->JSON) - but I think it would awkward to commit generated yaml 🤷

1 0 1 0
bare-suffix 123px 10.5%
explicit 30#u8 0o777#my-user

bare-suffix 123px 10.5% explicit 30#u8 0o777#my-user

FINALLY got around to speccing out the new suffix type annotation feature for #KDL: github.com/kdl-org/kdl/... Commentary welcome! It's very exciting!

I believe right now that the complexity cost, esp w/ the escape hatch, is well worth the value of people being able to write DSLs with this.

17 2 2 0
A screenshot of a testcase error. The content is not important. It shows a snippet of the testcase and underlines `foobar` with an annotation saying "this node is missing an argument".

A screenshot of a testcase error. The content is not important. It shows a snippet of the testcase and underlines `foobar` with an annotation saying "this node is missing an argument".

A screenshot of a failing testcase. The content is not important. It shows the testcase and a node with one argument. The node and the argument are both highlighted, each with an annotation saying: "This node has an argument of a wrong kind." and "this one" on the wrong parameter.

A screenshot of a failing testcase. The content is not important. It shows the testcase and a node with one argument. The node and the argument are both highlighted, each with an annotation saying: "This node has an argument of a wrong kind." and "this one" on the wrong parameter.

Some example testcase errors

0 0 0 0
Original post on meow.social

Alright!

I just released a first functional version of a new crate:

🔧 `test-dsl` at 0.1.0

🦀 https://github.com/TheNeikos/test-dsl/

To paraphrase the readme: `test-dsl` allows you to easily author tests by decoupling between the 'test harness', 'verbs' and 'conditions'.

It's role in your […]

0 2 1 0
Screenshot of the iOS GitHub app, showing syntax highlighted KDL text

Screenshot of the iOS GitHub app, showing syntax highlighted KDL text

Screenshot of GitHub on mobile, showing syntax highlighted KDL text

Screenshot of GitHub on mobile, showing syntax highlighted KDL text

GitHub is now officially highlighting #KDL docs!! On the app, too!

68 2 1 0

2nd session for #KULTDivinityLost #KDL #TheBlackMadonna tonight!
Excited like hell!

0 0 0 0

Realistically, would #KDL being officially standardized by one of the major international standards organizations influence your interest and/or ability to use KDL, especially at work?

And yes it seems like this might be happening

24 1 8 0
Preview
Idea: number suffixes as annotations · Issue #510 · kdl-org/kdl There was a discussion over at YaLTeR/niri#1142 (comment) when trying to come up with enhancements to Niri's DSL regarding numerical stuff. The tl;dr is that there's interest in being able to type ...

There is a proposal for #KDL to extend it such that you can have things like `10%` or `20px` and have that mostly Just Work in terms of existing KDL features

But, t’s not as perfectly clean as I would’ve liked, and so I’m hoping others (you?) will help 👀 for other issues

github.com/kdl-org/kdl/...

10 2 1 0

lol turns out that when you base a language on xml/s-exp and you give it a really lightweight syntax, it just kinda turns into a really really nice DSL format #KDL

13 0 0 0