On 28 Mai, 19:57, Yuval Levy <[email protected]> wrote:
> To continue with the "cut fingernails" example: > > If *you* have a script that cuts the fingernails for you, you don't need > another one. And if there is already one in the repository, or even with > Hugin's core, there seem to be no need for a new one. But if somebody else > feels an itch to write a different one, why prevent them from reinventing the > wheel and adding an extra wheel to the repository? Sounds like the argument I > was making yesterday? it is! Not quite. I reinvented the wheel, told the group about it and offered it for download from my own repo. This is quite different to uploading it to the project's repo. I'd not really upload something as ad-hoc. Maybe just my standards, though. > The life-cycle of such plugins has already been written/documented. The > repository of Firefox is full of competing "fingernail-cutter" plugins. The > repository only makes sure they are safe before publishing them, so they DO look at them. What is safe? Something devious might be totally unsafe yet looks like an invitation to the Goldilocks zone. > otherwise it is a hands-off approach (as opposed to a "keep clean" approach). rather drastic way to cut your fingernails (giggle) > Sometimes a plugin raises to fame, propelled by viral user adoption > (downloads, ratings, sharing), the developer maintains and evolve it, > functionality migrates to the core. Download statistics, user ratings... I wonder if there isn't a readymade plugin distribution software? Sort of like a web shop or app shop or filesharing software which could be adapted to the purpose? Might even be an interesting project to write one! > Most of the time a plugin is just a one-man-show, solving the issue that the > developer wanted to tackle and making him, and maybe a small group of > followers, happy. > > And sometimes, as the developer lose interest, the plugin ends up outdated and > deprecated as the project moves on. > > Sometimes it is also possible that the new, apparently redundant way of doing > things is actually superior and replace the old canonical / officially > sanctioned way. > > This is why we as a community need to be constantly open for contributions > and > contributed code goes straight to the front of the line. > No need to waste energy trying to shape this flow. It flows naturally once > the infrastructure is there (repository, tagging, searching, rating, > downloading, talking/sharing). > > Then it becomes realitively easy to spot a rising star in the mass, and > propose it for inclusion in the core Hugin distribution. If there are enough > developers seconding such a motion, it will be supported and become part of > Hugin. > > On the other hand, a script that is part of core can also become deprecated, > exactly like code or installers (we have three Windows installers in the > repository, but only one is actively maintained and up to date). Okay. This two-level approach with 'core stuff' and 'the market' sounds fair enough. And I suppose we can always make exceptions to any rules we make or change the rules themselves. > ... > This rule will affect all developers / limit some of their freedoms, like the > informal rule about translations (no more new strings once a release is > branched). > The proposed rule would be: no more API (headers) changes once a release is > branched. Maybe it's more palatable if you call it a guideline. > > > 5. Naming Convention for Scripts > > > > Kay disagree with me on this one. I made two arguments for a naming > > > convention in the bug report. > > > >https://bugs.launchpad.net/hugin/+bug/789445 > > > hmmm... slowly coming round to your point of view... > > <humor style="sarcastic" class="sorry could not resist"> > I am not trying to convince you, really. I actually think we should just use > password-generation rules for the name of plugins to prevent them from sharing > the same name, so: minimum 10 characters, must contain a capital letter, a low > cap letter, a number and a symbol and may not reference any dictionary word. > </humor> sent in in triplicate to the scrutinizing committee, where the proposal is kept for a buffer period before a subcommitee is formed to apply to the high command for their sanction to consider a public hearing. Then ... > > I suppose on initial upload you can't reasonably expect anyone to look > > and check. I suppose it'll go like this: xyz uploads script uv and > > posts to hugin-ptx 'hey group I just uploaded uv, it does such-and- > > such, have a spin'. If xyz is known and the script sounds desirable, > > the group will try it out and if it's found to be good, eventually it > > will be proposed for general distribution. Otherwise it lives on in > > the publicly accessible part of the repo for everyone to browse it if > > they so desire. If someone needs the specific capability, googling for > > it should throw up the original posting to hugin-ptx, so it can be > > found. Of course xyz would be free to just upload and not announce, > > which would lower the chances of uv being noticed. > > yes, something along this way, although I see a three-tiered distribution: > 1- inner core: distributed with the Hugin tarball / living in the Hugin > repository > 2- script-database: downloadable from the public repository and living there, > referenced from a scripts directory on the official Hugin website - something > like addons.mozilla.org or wordpress.org/extend/plugins/ > 3- privately distributed: downloadable from private website or other > unofficial web space sounds like the cheese shop (Python Package Index). Python has the standard library, stuff that's with PyPI itself but not in the standard, and stuff you find via PYPI or which isn't even listed there. > you describe how a script moves from the third tier to the first. > > my concern is tier 2, and the issue is *trust*. For a plugin to be listed > there, its code must have been reviewed for not being malign. There have been > cases of malign code being distributed from addons.mozilla.org and they had to > fine-tune their hands-off approach. Currently the Python code can do anything. Spotting something malign that's cleverly disguised might be very difficult. You can make a good effort, but you still can't guarantee anything, really. If you're honest you may claim you've looked at it and it looks fine, but ultimately such protestations matter little if disaster strikes. Best to not claim anything in the first place except for core material. > I dopn't mind "useless" plugins (if somebody wants to offer a Python based > Tetris to waste^H^H^H^H^Henjoy the waiting time while Hugin is stitching, I am > all for it (not that I will use it, but still, it is an expression of > creativity). how about a customized tetris with fragments of the panorama being stitched, where you have to drag the images to overlap with the panorama at the bottom? With differnt levels, starting rectilinear and ending with fisheyes ;-) > So yes, once script uv is made public with a note on hugin-ptx, it can be > proposed for inclusion in the scripts directory (where it will be easier to > present compatibility information and search for scripts). > > > > 7. Formalized Interface > > Definitely. Please. Everyone else: help! > > Do we have anyone here who is competent with plugin interfaces? I > > mean, every other piece of decent software these days has a plugin > > interface, so there must be trodden paths. How do they do it? Can we > > do it the same way? > > I think you (or somebody else? my excuses for not doing proper attribution) > mentioned already Mathmap/Gimp as an example. Not me, at least not now. I'll quite probably be off soon again. Mathmap. The thing went pear-shaped on me since my distro upgrade. I wanted to use it a week ago and couldn't get it to run. And while it was still running it once failed to read my TIFF files and I posted to their NG with a reduced script displaying the problem and some wisecrack there asked me why I would want a 'script that does this' (like, an identity filter) - and that was the end of the thread. (miffed). Okay, Gimp is probably better, but it seems to develop towards dinosaurdome, and I've been waiting in vain for it to offer 16 bit editing for god-knows-how-long. A shame really; I think the mathmap approach is excellent and if gimp finally did 16bit I'd make an effort to figure out how they changed the UI yet again... A level of integration as exists between mathmap and the gimp is of course very nice to have, but I suppose there is a fat load of protocol to make this possible, and someone has to specify, implement, document, maintain it... not to mention the contributors who have to learn it. - I think we don't have the resources, so we have to keep it simple. The question is how we can find a simple way that is still powerful. > And IIRC skimming over the exchanges there was some talk about using plain > wxPython and leaving it up to the plugin designers to shape the GUI > interaction with the user as they see fit; and IIRC there was a technical > issue implementing this? Yes, Can't remember precisely what it was, but some version issue or other. And the static linking on Windows. Some of the stuff may even go away by itself. > Personally my preference is for a wxPython kind of thing. And I would like to > see Hugin's current GUI app being replaced by a Python script starting with > import hsi, wxPython. Indeed. I think that's the best way. But a long way... > > > This will likely generate many tracker tickets, as there will be > > > incompatibilities, platform related quirks, bugs, etc. > > > I'm not looking forward to that > > it's called growing pain. You laid an egg and the chicken got lose. Have fun > ;-) Hope I don't have to chicken out eventually. Enough for today. Kay -- You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hugin-ptx
