Fork me on GitHub
#clara
<
2019-01-24
>
kahunamoore00:01:54

Did you ever get a response here or elsewhere?

jvtrigueros00:01:50

I would use that. Trying to figure out a rule system isn’t straightforward if you’re not used to it

eraserhd16:01:05

@kahunamoore no discussion elsewhere

eraserhd16:01:32

I suspect I'll eventually do it, but it's behind another personal project that's probably months away.

mikerod16:01:58

@eraserhd sorry for delay, wasn’t completely clear on what you were saying there

mikerod16:01:33

is a “rule description” a set of rules/queries? so a ruleset?

mikerod16:01:41

And this would be convenient because you could tie it in with scripts?

wparker18:01:12

I'm also not clear on what's being discussed - is this a proposed tool for rule generation?

eraserhd19:01:21

Ahhh.... OK. So I'm thinking of a tool like awk that can take a ruleset with -e the way awk takes a program, and reads facts from input, like an FS separated file.

eraserhd19:01:35

The example I came up with was a script to iterate through my tmux panes and use their positions to find the upper-rightmost pane (because I need to configure the editor in that one).

eraserhd19:01:57

So essentially I had two tables: <top> <left> <pane-id> and <pane-id> <editor-id>.

eraserhd19:01:12

And this is in shell, because my editor likes to be extended that way.

eraserhd19:01:04

But it seemed natural to have a tool that can do datalog-like queries on files like this.