[SailfishDevel] python development

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Thu Dec 19 22:58:05 UTC 2013


Hi David

You are pointing your finger at the wrong place. The blame (if any),  
belongs to Qt and not Jolla.

Jolla made the sensible decision not to reinvent the wheel. Instead  
they chose to leverage Qt, which is a strong contender as the de-facto  
multi-platform development toolkit, and one which is gaining  
increasing traction as the number of mobile platforms it supports grows.

Qt is programmed with a cocktail of C++, descriptive QML and Javascript.

Typically QML is used for the GUI stuff, Javascript for simple logic,  
and C++ from backend "heavy-lifting".

Depending on the nature of your project, and your preferences and  
experience you will have a different mix of these 3 languages /  
idioms. It is quite possible to create a Qt project with no more C++  
required than that generated in the default project. (I only use C++  
when I really can find no better way, while others will opt for a C++  
driven project).

Python is an alternative with bindings to Qt. If you search the  
archives of this mailing list you will find many questions on Python  
and Qt / Sailfish. So it is there, and it is being used, and there are  
ardent fans of Qt + Python out there.

The interesting question is, why did the original creators of Qt opt  
for C++, rather than the more obvious Java? I suspect that the answer  
is in the multi-platform ethos of Qt. Quite simply there is an open  
source C++ compiler available for almost any architecture you can  
think off, which is not the case for Java, especially in the mobile  
arena.

You should not find QML hard to learn, and if you have Java /  
Objective C experience, then I don't see why a limited amount of C++  
should put you off.


Chris


Zitat von "David Jensen" <davidjensen at usa.net>:

> Nokia's original book on Meego featured, I think, Python as the  
> development. I
> do not see this book on Amazon. However, almost none of the articles I have
> seen  relating to Jolla mention Python. I assumed Nokia believed  
> Python was an
> ideal language for an open system that was easily modifiable by  
> others.  I get
> the impression the language is C++. This is more difficult than Java and
> possibly also Objective C. How does Jolla expect their system to be  
> adapted as
> open if the language developers have to deal with is C++, with Python a vague
> afterthought?
>
>
> David Jensen
>
> _______________________________________________
> SailfishOS.org Devel mailing list
>





More information about the Devel mailing list