[bind10-dev] Comments on proposed hooks framework
Francisco Obispo
fobispo at isc.org
Tue May 14 06:41:11 UTC 2013
Hi Michal,
Thanks for your comments.
I do believe that even though we might not be able to modify the stack in the same way Perl does, the concept of Roles is something that has proven to be very effective as means of inserting 'hooks' at several levels in the system.
A 'plugin' or an 'extension' could be interested in intercepting a call (replacing a call), and/or executing before or after. So those concepts could be useful in a system where you register hooks are callouts, using before_function_call(), and after_function_call(), or around_function_call(), the challenge will be not only to define the architecture, but also which functions calls are considered extensible and which ones not.
regards,
On May 13, 2013, at 11:35 PM, Michal 'vorner' Vaner <michal.vaner at nic.cz> wrote:
> Hello
>
> On Mon, May 13, 2013 at 10:34:07AM -0700, Francisco Obispo wrote:
>> Most likely this can be done with C++ Templates or a framework.
>
> Not easily. Not without turning everything that was written inside out first and
> rewriting it. And even then, I wouldn't like to code that in any generic manner.
>
> Unfortunately, C++ is much less flexible than any dynamic language. With perl
> being one of the most flexible languages out there, I don't see much chance in
> this approach.
>
> The approach of hook/callout looks much simpler to do and probably much simpler
> to understand for C++ programmers.
>
> With regards
>
> --
> Please stay calm. There is no use both of us being hysterical.
>
> Michal 'vorner' Vaner
> _______________________________________________
> bind10-dev mailing list
> bind10-dev at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind10-dev
Francisco Obispo
Director of Applications and Services - ISC
email: fobispo at isc.org
Phone: +1 650 423 1374 || INOC-DBA *3557* NOC
PGP KeyID = B38DB1BE
More information about the bind10-dev
mailing list