On 23 Jun., 05:09, Yuval Levy <[email protected]> wrote:
> On June 20, 2011 04:39:09 AM kfj wrote:
>
> > In my own projects, when I was at leasure to do so, I would regularly
> > start afresh at some point.

> > wxPython-based GUI
>
> mix of wxPython and C++/wxWidgets

I hope this will eventually turn out to be feasible on all platforms.
Then it would indeed be ideal.

> > using dynamically loaded libraries on all platforms
>
> I think it was back in 2007 when the project said good bye to DLL-hell.  
> That's when we were first able to produce Windows binaries that actually
> worked.  Every now and then I see messages about missing DLLs and it reminds
> me of that time.

I can't prcisely recall where, but I remember people pointing out that
some evolution on Windows' handling of DLLs has made the problem much
less in the recent past. Fear of dynamic libraries on Windows maybe
outdated. It does certainly make hugin hard to build there and we
can't use minGW, which really would be desirable because then we'd be
using gcc on all platforms, reducing the differences between
thedifferent systems. minGW is supported by cmake, all the libraries
we use are available as DLLs on Windows - if I was (still) a committed
Windows user and developer, I'd give it a shot.

> > Database-like backend to contain projects
>
> what do you need a database for?

If you have ever used a project with, say, 50000 control points, or
other large collections, you may have noticed that the code scales
badly. You click a button and wait for 10 seconds for something at all
to happen. For smaller collections it's all right to do simple or
brute-force handling, but for larger ones you do want it done
efficiently, and the lightweight databases you can have for free
promise just that. You get data storage and mainatinance in a clean,
documented system which you don't have to implement or maintain, you
just specify and interface to it. As computers evolve, projects get
larger, and I prophesize that the scaling problems will become ever
more common.

Now we have a python interface, using such tools may become much less
involved than what would have been required in C++. There's a lot of
interesting approaches around which don't require you to plonk a full-
blown RDBMS on your system - import xyz is just about what it takes.

> > simple, powerful, extensible, readable replacement for pto
>
> if it ain't work, don't fix it
>

(giggle) - you mean if it's not BROKE don't fix it.

still there's no reason not to come up with something new and nice
which can coexist with the old one. My idea is that the already-coded
data structures in hugin should be enough to derive most of the needed
language elements and of their internal and database representation,
ending up with a meta-specification from which everything can be
derived and centrally changed - sort of an 'on rails' concept.

Maybe the panodata subsection of hugin does lend itself particularly
to such refactoring - I have indeed noticed that things are happening
under the hood there.

> > specific, modular, well-defined C/C++ libraries
>
> In the 2007 GSoC project Ippei did re-architecture the code.  Since then it
> has been through more iteration.  Slowly but surely it is becoming cleaner and
> more manageable, mostly thanks to Thomas and those who have come before him
> and have had the courage to dwelve into the layers of contributions.

admirable. big thumbs up.

> > I only fear that the general response to such an approach
> > will be along the lines of 'why do we need that, our system works just
> > fine'
>
> exactly.  check the 2007 GSoC project to see where this ends: wxWidget has
> improved enough to make us forget that we wanted to move to Qt.

I'm glad you didn't. I have a funny feeling with Qt. They might decide
suddenly they aren't licensing this or the other component to the free
world anymore or putting restrictions on what Qt-based code can be
used for. I feel much more comfortable with wxWidgets, never mind it's
probably not (yet) as evolved and polished.

> > > The Images and Lens tabs are excellent candidates to be moved over to
> > > Python, and even the outdated CP tab.
>
> > But then, you know the code, and I've hardly peeked in at all. If you
> > think such a transition is less painful than a redesign, I'm looking
> > forward to see it.
>
> Actually I don't claim to know the code.  What I know now is less than what I
> know three months ago.  I still find it difficult, after all this time, to
> wrap my head around C++.  I do understand the concepts, but they are expressed
> in such a cryptic manner.  I like human readable code.

I learned C++ some 20 years ago, coming from assembler and C. Back
then, it was complex, but manageable. I had Stroustrup's book which I
read several times backwards and forewards, and thought it was great.
I mainly used it to do OOP programming and didn't take so much notice
of the other innovations - exceptions were just on the rise, and the
problem with templates (before the STL) was that they were so new they
weren't uniformly handled over all the platforms I was working on.
There were no explicit namespaces yet. But just the very precise
control over the OOP features was very powerful. Looking at what has
happened to C++ since, I sometimes feel that the language suffers from
bloat, especially when it comes to templates. The power it gives you
becomes very difficult to harness.

The problem with C++ is that it allows you control on every level,
from switching on and off individual bits to very high-level concepts.
But the high-level concepts are better expressed in a less rigid
language (no strong types and hard linking). This is where python
comes in. If you put a python layer on top of C low level stuff (where
it's needed) the hybrid system is easier to manage, even though it
looks like it should be harder, using two different languages. I'm
glad we're moving this was now, and I hope everyone else will also
eventually agree this is the way to go.

Be all that as it may, I'm taking some time off again now. All the
best

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

Reply via email to