[Qgis-developer] WG: Re: WG: Re: WG: Re: cpp-plugin for QGIS 2.0

Marco Bernasocchi marco at bernawebdesign.ch
Fri Nov 8 16:59:16 PST 2013


Hi Maaza, I think that for a plugin python makes much more sense due to the
easier distribution. I developed plugins in both c++ and python and I must
say that python was much faster to develop also.
I m not saying c++ is bad, on the contrary, i like its structured and
robust nature, I m just making a point for python ease of distribution and
quick  development.
Regarding performance, python is not as bad as you describe it, foremost if
using numpy for the numerical crunching. and even, you could just move the
computation in a c module _after_ you actually measure that python is too
slow.

so it is not that some want to be the ones that can do it in c++ (I had
basically no c++ knowledge when I did my first c++ plugin) it is just that
Python advantages are noteworthy.

ciao

Marco Bernasocchi (mobile)
http://opengis.ch
On 9 Nov 2013 08:22, "maaza mekuria" <sailmcm at yahoo.com> wrote:

> Dear Nathan and fellow QGIS Users/Developers:
>
> I am sorry that people are not encouraging the use of C++ for programming.
> I think this is not helpful at all. There are many reasons to skip Pyhton
> infavor of C++. In my experience Python is very slow for real
> computationally intensive work. Also QGIS itself is written in C++, why are
> do some asking it is too hard. I think it is the lack of documentation that
> is making development in C++ very difficult for many of us who are not in
> the QGIS development all the time. This also means that there will be less
> and less developers that can help with enhancement in expanding QGIS
> capability. I don't know if some are thinking that "We are the ones who can
> do it in C++ and let others be content with Python." But I am assuming
> trusting that that is is not so.
> So please answer questions and provide feedback when you can, but please
> do not discourage others from pursuing C++. In my opinion, it is still the
> most robust programming tool available.  Why is QGIS written in C++ and not
> in Python?
>
>
>
>   On Friday, November 8, 2013 3:12 AM, Nathan Woodrow <madmanwoo at gmail.com>
> wrote:
>  Compared to C++, Python is pretty easy to pick up.  There are some
> really good Python videos and after you watch a few of them (or even just
> one) I would say you would feel comfortable in it.  Because the PyQt and Qt
> C++ APIs are almost the same in terms of porting the code it almost comes
> right over; plus or minus a few little tweaks.
>
> I would even say that you would reduce your 3000 line count because Python
> is a lot less verbose then C++ and allows for some pretty handy styles that
> reduce the needed code.
>
> I use PyCharm as my Python IDE which I have so far found to be the best.
>  It supports PyQt API auto completion.
>
> - Nathan
>
>
> On Fri, Nov 8, 2013 at 8:11 PM, <SSchmidt at gfi-gis.de> wrote:
>
>
> Hi Paolo,
>
> yes, our company has to come to a strategic decision in the next time. And
> I'm not sure what to suggest. I don't know python but i think i need much
> time to port ca. 3000 lines existing code, otherwise in future it should
> grow up much more. Besides I'm spoiled of the IDE of VS, i need to look
> what pythondeveloper use for it. And do pythondeveloper not depend on sth,
> like PyQt? QGIS and Qt are programmed in C++, so there wait perhaps no bad
> surprises?... difficult
>
> Freundliche Grüße aus Leipzig
> Susann Schmidt
> Softwareentwicklung
>
> **************************************************************
>
> GFI - Gesellschaft für Informationstechnologie mbH
> Philipp-Rosenthal-Straße 9
> D-04103 Leipzig
> Geschäftsführer: Andreas Richter
> Amtsgericht Leipzig HRB 12054
> USt.-IdNr.: DE179049354     Steuer-Nr.: 231/109/06412
> ESRI Solution Partner      und       ER Mapper Reseller
> Tel. 0341 961 3310    Fax 0341 961 3311   Mail info at gfi-gis.de
> Web  www.gfi-gis.de  und  www.themenbrowser.de
>
> ----- Forwarded by Susann Schmidt/gfi on 08.11.2013 10:40 -----
>  *Paolo Cavallini <cavallini at faunalia.it <cavallini at faunalia.it>>*
> Sent by: qgis-developer-bounces at lists.osgeo.org
> 07.11.2013 14:28
>   To
> qgis-developer at lists.osgeo.org
> cc
>   Subject
> Re: [Qgis-developer] WG: Re:  WG: Re:  cpp-plugin for QGIS 2.0
>
>
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Il 07/11/2013 10:30, SSchmidt at gfi-gis.de ha scritto:
> >
> > Thank you Andreas,
> >
> > sounds like there is hope for me :-)
>
> IMHO you need very strong arguments not to do this job as a Python
> plugin. All the external C++ plugins I have seen have died out sooner
> or later for the problems in keeping API and ABI compatibility.
> All the best.
>
> - --
> Paolo Cavallini - Faunalia
> www.faunalia.eu
> Full contact details at www.faunalia.eu/pc
> Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.15 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlJ7lG4ACgkQ/NedwLUzIr4UiwCeOVYAuooE2kFbZFm+h7JubqAH
> HaoAnRjWsVkZ4nYegS9UN6v3JWF2Q6nD
> =5cFj
> -----END PGP SIGNATURE-----
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131109/f7a51103/attachment.html>


More information about the Qgis-developer mailing list