On Sat, Oct 08, 2016 at 10:24:35AM +0200, Thierry Fournier wrote:
> Sure, we already speak about this, and if i'm remember correctly, you
> are some difficulties for defining the stack and its consumed memory.
> We can speak about this.

OK great.

> The RPN stack for expression is a great feature. I'm a little sad
> because the Lua will be useless :).

No, Lua won't be useless, it will instead offer a little bit of
overlapping between the two, making people use Lua to write structured
programs and only RPN/fmt strings when having to manipulate formats.
For me it's the exact same difference as between sed and awk.

> In other way, I think that the special sample fetch called "fmt" which
> is taking a format string as parameter and have the sample-fetch
> behaviour is a good idea.
> 
> I think to some attention point like reentrant syntax:
> 
>    fmt(%[fmt("%C:%d:%[fmt(%[src])]),crc32()])

Good catch, maybe it was one of the issues as well. To be honnest I don't
remember precisely. But I seem to remember that the parsing context was
limited to one log format per config line for historical reasons and that
we needed to break and redesign the whole parser chain (4-5 levels of
indirections approx).

Willy

Reply via email to