clara

http://www.clara-rules.org/
2019-01-24T00:08:54.079300Z

Did you ever get a response here or elsewhere?

2019-01-24T00:25:50.080500Z

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

eraserhd 2019-01-24T16:19:05.082300Z

@kahunamoore no discussion elsewhere

eraserhd 2019-01-24T16:19:32.082900Z

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

2019-01-24T16:28:58.083400Z

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

2019-01-24T16:29:33.083800Z

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

2019-01-24T16:31:41.084300Z

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

2019-01-24T18:38:12.085800Z

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

eraserhd 2019-01-24T19:53:21.087Z

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.

eraserhd 2019-01-24T19:54:35.088100Z

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).

eraserhd 2019-01-24T19:55:57.089400Z

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

eraserhd 2019-01-24T19:56:12.089800Z

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

eraserhd 2019-01-24T19:57:04.090300Z

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