From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Fri, 10 Jan 2014 18:57:57 +0100 Subject: RFE: .so filters In-Reply-To: <52D029F9.40805@xinu.at> References: <20140109225802.GM7608@serenity.lan> <20140110090639.GN7608@serenity.lan> <52D029F9.40805@xinu.at> Message-ID: On Fri, Jan 10, 2014 at 6:12 PM, Florian Pritz wrote: > > Isn't this (fast scripting with lots of features) when people normally > start using lua? > This would have the same challenges as using .so files, w.r.t. hooking write() (or the html functions), but would be very interesting indeed, because Lua... Any implementation of this would probably have to work in the same way I was thinking for the .so file. Namely, the lua script implements event handlers for: - filter_open(int stdout_fd, char *argv[]) - filter_write(char *data, size_t len) - filter_close() This seems doable. I don't know how I feel about the added size of doing this yet, but it is enticing enough to entertain and see how the idea develops.