pcp
[Top] [All Lists]

Re: ANN: pcp-machine - a Lua query engine for PCP

To: <fche@xxxxxxxxxx>
Subject: Re: ANN: pcp-machine - a Lua query engine for PCP
From: Ryan Doyle <ryan@xxxxxxxxxxxx>
Date: Thu, 04 Feb 2016 10:55:18 +1100
Cc: <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <y0mio2593ay.fsf@xxxxxxxx>
References: <c91e1401b60f97dec012aba1d08eeebe@xxxxxxxxxxxx> <y0mio2593ay.fsf@xxxxxxxx>
Reply-to: ryan@xxxxxxxxxxxx
User-agent: Roundcube Webmail/0.4.2
On Wed, 03 Feb 2016 11:17:09 -0500, fche@xxxxxxxxxx (Frank Ch. Eigler) wrote:
Hi, Ryan -

Would it be fair to say that the core portion is more like a lua
binding to the PMAPI, and the pmie portion is the hard-coded lua
conditionals in the samples/*.lua files?

Yep it's a very small Lua binding. I avoided making it a more generic, reusable library at the moment as I think of Lua to be used within a specific domain.


As of 3.11, the former portion can be expressed as pretty compact
python code now.  So for example, the samples/nprocs.lua could
look thusly in pcp 3.11 python:

Ah, that's pretty neat. The fetch group API is quite new to me but looks a lot easier to use.

Cheers,
Ryan

<Prev in Thread] Current Thread [Next in Thread>