[PATCH v9 1/3] Initial support for LuaJIT scripting

Victor Krapivensky krapivenskiy.va at phystech.edu
Mon Aug 14 22:08:47 UTC 2017


On Mon, Jul 31, 2017 at 03:18:21AM +0200, Eugene Syromiatnikov wrote:
> The problem here is that these function implement the same non-trivial
> logic as their C counterpart, thus, any change in the logic should be
> made in two places, which is indeed error-prone.

I'd still disagree. The logic is mostly trivial; if the representation
format changes (which is, I guess, unlikely), we would have to break the
API anyway. And these functions implement searching in terms of the data
we already provide to scripts.
It also gives an opportunity to change the way the searching is done
(e.g. using a Lua table) if linear search becomes too slow; the C side,
on the other hand, only needs to do resolving on startup.




More information about the Strace-devel mailing list