On May 28, 2011 05:21:08 AM kfj wrote:
> > actually I do not worry about bloat in terms of disk space or bandwidth.
> >  I worry about bloat in terms of namespace / quantity of scripts.
> >  Example: there can be a gazillion of scripts to generate an initial pto
> > with the input images distributed according to a pre-determined shooting
> > pattern (a feature request that has come up fairly often).  One can have
> > a script that does stacks, another a script that shoots left to right;
> > another is optimized for fisheyes (the typical 6+Z+N), etc.  how many
> > such scripts do we want to include with the core Hugin? and how many
> > more will there be in the online script repository?
> 
> This is a hard one. If we have a script to cut fingernails, we may not
> need scripts to cut thumbnails - but who would be in a position to
> judge? Mind you, I don't anticipate us being swamped by scripts and
> plugins any time soon, and for a script to make it into the distro I
> suppose it will have to be found to be useful by the peer group.

We don't have to reinvent the wheel - even if it is fun for you ;-)

There are plenty of projects out there with scripts/plug-in repositories, like 
Gimp, Wordpress, Squirrelmail, Firefox - just to name a few I am familiar 
with.  We can look at them and learn from their dynamics.

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!

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, otherwise it 
is a hands-off approach (as opposed to a "keep clean" approach).

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.

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).


> > I would propose that we adopt a rule:  scripts should be written against
> > the API that is frozen in a release (e.g. 2011.2, 2011.4, 2012.0, ...).
> > Everything else is at risk of breaking any time and users of the
> > bleeding edge should expect to experience such errors.
> 
> sounds like a good idea

any other developer want to comment on that?  we are starting to give 
ourselves rules how to go about the interaction between the C++ code and the 
Python scripts in the interest of everybody.

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.




 
> > There will still be an extra burden: with every release all scripts will
> > need testing and eventually update.  This has positive sides as well:
> >  it will prune the body of scripts from scripts that have been
> > supreseeded.
> 
> to reduce the body of 'currently available up-to-date scripts' to only
> 1/4 gazillion ;-)

Yes, this is what happens with Firefox and Wordpress and the likes.  Scale it 
up^H^Hdown to our community's dimension.

 
> > 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>


> > 6. Scripting Guidelines
> > 
> > > Good examples go a long way.
> > 
> > Yes on the "write" side, i.e. to empower users to write their own
> > scripts.   But on the "read" side, i.e. when the project team receives
> > contributed scripts for inclusion in the repository, what are the
> > criteria to determine the cut, acceptable or not for the repository?
> 
> 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

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.

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).

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.

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?

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.

 
> > 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 
;-)


> > 8. Quo Vadis?
> 
> gotta be off to do other stuff. carry on later

yes, let's keep this going.
Yuv

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to