- From: Adam Sobieski <notifications@github.com>
- Date: Tue, 28 Nov 2023 20:19:01 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/issues/1233/1831191658@github.com>
In theory, stylesheets of event selectors, in the above cases CSS-based, would be runtime-compiled into functions which would invoke JavaScript functions as matching events were detected. The goal is to be able to efficiently filter and [process](https://en.wikipedia.org/wiki/Stream_processing) streams of incoming events. My thoughts for the CSS-based proposal are that most Web developers already understand CSS selectors syntax and the CSSOM. The hope is that it would be easier for Web developers to modify, as needed, selectors-based stylesheets then to modify event-filtering logic in JavaScript files. > Event-stream querying languages include, but are not limited to: [Stream Analytics Query Language](https://learn.microsoft.com/en-us/stream-analytics-query/stream-analytics-query-language-reference), [StreamSQL](https://en.wikipedia.org/wiki/StreamSQL), [Kafka KSQL](https://www.confluent.io/blog/ksql-open-source-streaming-sql-for-apache-kafka/), [SQLStreams](http://sqlstream.com/), [SamzaSQL](https://ieeexplore.ieee.org/document/7530060/), and [Storm SQL](http://storm.apache.org/releases/2.1.0/storm-sql.html). Other possibilities include utilizing selectors from JSON querying languages, e.g., [JSONiq](https://www.jsoniq.org/) and [JQL](https://github.com/yamafaktory/jql). From the [JSONiq specification](https://www.jsoniq.org/docs/JSONiq/webhelp/index.html): > The main source of inspiration behind JSONiq is XQuery, which has been proven so far a successful and productive query language for semi-structured data (in particular XML). JSONiq borrowed a large numbers of ideas from XQuery, like the structure and semantics of a FLWOR construct, the functional aspect of the language, the semantics of comparisons in the face of data heterogeneity, the declarative, snapshot-based updates. However, unlike XQuery, JSON is not concerned with the peculiarities of XML, like mixed content, ordered children, the confusion between attributes and elements, the complexities of namespaces and QNames, or the complexities of XML Schema, and so on. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1233#issuecomment-1831191658 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1233/1831191658@github.com>
Received on Wednesday, 29 November 2023 04:19:06 UTC