Why are there so few hooks in MediaWiki? Is this part of an effort to be lean or have you not gotten around to it?
Aron
Why are there so few hooks in MediaWiki?
Imbalanced forward pack, I'm afraid; locks and flankers are in order, but the front row needs some work.
In good sadness, though, did you have something like Apache's bucket brigades in mind?
-- Peter Danenberg . wikisophia.org ..:
On 09/12/05, Peter Danenberg pcd@wikitex.org wrote:
Imbalanced forward pack, I'm afraid; locks and flankers
are in order, but the front row needs some work.
In good sadness, though, did you have something like
Apache's bucket brigades in mind?
?!
Was something lost in translation here ["in good sadness" = "in all seriousness"?], is there an awful lot of jargon I'm unaware of ["flankers"? "bucket brigades"?], or is this whole message genuine gibberish?
Or, as I'm beginning to suspect the more I think about it, a mixture of the three (if I'm right about "in all seriousness", there was intended to be some degree of humour or frivolity in the first sentence...)
-- Rowan Collins BSc [IMSoP]
Or, as I'm beginning to suspect the more I think about it, a mixture of the three [...].
Excellent semantic reconstruction, Rowan: in good sad- ness is an Elizabethan phrase meaning "but seriously;"* while hook, lock and flanker belong to an elaborate rubgy analogy.
In order to avoid the proliferation of hooks, Apache introduced a notion of filter in 2.0: each filter is passed a "bucket brigade" or stream of data which it may process before passing it to the next filter.
Autonomous, chained filters are said to be more effi- cient than centrally managed mods.
----------- * See Taming of the Shrew, V.ii: "Now, in good sadness, son Petruchio, I think thou hast the ver- iest shrew of all."
"... hook, lock and flanker belong to an elaborate rubgy analogy."
... with subtle play on the fishing idiom "Hook, line and sinker". Nice.
On 12/11/05, Peter Danenberg pcd@wikitex.org wrote:
Or, as I'm beginning to suspect the more I think about it, a mixture of the three [...].
Excellent semantic reconstruction, Rowan: in good sad-
ness is an Elizabethan phrase meaning "but seriously;"* while hook, lock and flanker belong to an elaborate rubgy analogy.
In order to avoid the proliferation of hooks, Apache
introduced a notion of filter in 2.0: each filter is passed a "bucket brigade" or stream of data which it may process before passing it to the next filter.
Autonomous, chained filters are said to be more effi-
cient than centrally managed mods.
- See Taming of the Shrew, V.ii: "Now, in good
sadness, son Petruchio, I think thou hast the ver- iest shrew of all." _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica
Without advocating too much hook promiscuity, a larger base set of hooks would need to be provided because the extensions would need to execute before certain state changes or, in the case that prompted this thread, before the close of a certain div tag. In mediawiki the content is rendered as it goes (via a call like addHTML) so if a hook was to execute after target content was generated it would have to reprocess the OutputPage buffer. I doubt there would need to be too many (subjective, I know) hooks added because most extensions probably fall under the wikitext extension category.
Aron
Peter Danenberg wrote:
Why are there so few hooks in MediaWiki?
Imbalanced forward pack, I'm afraid; locks and flankers
are in order, but the front row needs some work.
In good sadness, though, did you have something like
Apache's bucket brigades in mind?
-- Peter Danenberg . wikisophia.org ..: _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On 12/11/05, Aron Rubin arubin@atl.lmco.com wrote:
Without advocating too much hook promiscuity, a larger base set of hooks would need to be provided because the extensions would need to execute before certain state changes or, in the case that prompted this thread, before the close of a certain div tag. In mediawiki the content is rendered as it goes (via a call like addHTML) so if a hook was to execute after target content was generated it would have to reprocess the OutputPage buffer. I doubt there would need to be too many (subjective, I know) hooks added because most extensions probably fall under the wikitext extension category.
Aron
Peter Danenberg wrote:
Why are there so few hooks in MediaWiki?
Imbalanced forward pack, I'm afraid; locks and flankers
are in order, but the front row needs some work.
In good sadness, though, did you have something like
Apache's bucket brigades in mind?
-- Peter Danenberg . wikisophia.org ..: _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On 09/12/05, Aron Rubin arubin@atl.lmco.com wrote:
Why are there so few hooks in MediaWiki? Is this part of an effort to be lean or have you not gotten around to it?
The latter, I believe - hooks of any sort were only implemented relatively recently, and the ones available are just ones that seemed useful at the time. If there's a particular event you want to define a hook for, perhaps file a request for it at http://bugzilla.wikimedia.org, attaching a patch if possible.
-- Rowan Collins BSc [IMSoP]
Rowan Collins wrote:
On 09/12/05, Aron Rubin arubin@atl.lmco.com wrote:
Why are there so few hooks in MediaWiki? Is this part of an effort to be lean or have you not gotten around to it?
The latter, I believe - hooks of any sort were only implemented relatively recently, and the ones available are just ones that seemed useful at the time. If there's a particular event you want to define a hook for, perhaps file a request for it at http://bugzilla.wikimedia.org, attaching a patch if possible.
And also come talk with the dev on irc://irc.freenode.net/mediawiki
On 12/9/05, Aron Rubin arubin@atl.lmco.com wrote:
Why are there so few hooks in MediaWiki? Is this part of an effort to be lean or have you not gotten around to it?
Not gotten around to it, they're created mostly on a as we need them basis, if you need more request them, preferrably with patches.
wikitech-l@lists.wikimedia.org