[Qt-qml] Towards QtQuick 2.0 , what more improvements to make JS first class citizen?

Sivan Greenberg sivan at omniqueue.com
Sun Oct 9 14:49:12 CEST 2011


Question is , what is the recommended way? I am also all for explicit
things  (the problem with getting used to the XmlListModel is that
suddenly you think the execution environment owes you something and
are surprised it does not ;)) but would not it be wise to have a
"canonical" implementation utilizing C++ for performance for REST just
like XmlListModel is implemented for sake of creating a common
"stdlib" for stuff to do with QML? Every app having its own REST model
implementation is away from code re-use, which QML encourages?

Perhaps the solution is to separate the "core" language form and
stdlib? So perhaps we need an stdlib for QML (if not already in
existence) that would contain all those extra "features" , like Python
has?

If the performance of implementation in QML pure is the same, then
this  might be less a prio, but I believe would still be a very much
"nice to have". (Modern web services use REST almost if not all have
switched to REST + json and are leaving XML only for legacy support).

-Sivan

On Sun, Oct 9, 2011 at 2:25 PM, Ville M. Vainio <vivainio at gmail.com> wrote:
> I voted -1 on that (i.e. added a usual stop energy comment on the bug
> report ;-). Maybe I'm old, but I think explicit use of XHR is cleaner
> than yet another language feature / model class.
>
> On Sat, Oct 8, 2011 at 10:32 AM, Girish Ramakrishnan
> <girish at forwardbias.in> wrote:
>> I agree. You should vote at
>> https://bugreports.qt.nokia.com//browse/QTBUG-12117. It's got 42
>> votes, atm :-)
>>
>> Girish
>>
>> On Fri, Oct 7, 2011 at 8:49 PM, Johan Paul <johan.paul at gmail.com> wrote:
>>> XML is a first-class citizen in QML, which I find very "90s". JSON should be
>>> on the same level that XML currently is. Just think about the models that
>>> can be automatically built from XML. Being able to do the same from JSON
>>> would be awesome, and to be honest, matching today's requirements.
>>>
>>>
>>> --
>>> Johan
>>>
>>>
>>>> Why can't you just import json2.js?
>>>>
>>>> Girish
>>>>
>>>> On Fri, Oct 7, 2011 at 8:23 PM, Johan Paul<johan.paul at gmail.com>  wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> Nothing about QML JSON parsing? What a letdown.
>>>>>
>>>>>
>>>>> --
>>>>> Johan
>>>>>
>>>>>
>>>>>> Hi Sivan,
>>>>>> Have you seen the links below:
>>>>>> http://doc.qt.nokia.com/qt5-snapshot/qdeclarativejavascript.html
>>>>>> http://doc.qt.nokia.com/qt5-snapshot/qtquick2-whatsnew.html
>>>>>>
>>>>>> A new thing that I learnt from irc yesterday is that "property var"
>>>>>> has been implemented
>>>>>> (http://lists.qt.nokia.com/pipermail/qt-qml/2011-June/002667.html).
>>>>>>
>>>>>> Girish
>>>>>>
>>>>>> On Fri, Oct 7, 2011 at 3:33 PM, Sivan Greenberg<sivan at omniqueue.com>
>>>>>>  wrote:
>>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>>   Given
>>>>>>> http://doc.qt.nokia.com/4.7-snapshot/qdeclarativejavascript.html#qml-javascript-restrictions
>>>>>>> , what more improvements are planned? (Besides perhaps making JSON
>>>>>>> strings first class citizens as well as automatic arrays[0] ;))
>>>>>>>
>>>>>>>   As I'm moving on with my development utilizing JS within QtQuick, I
>>>>>>> realize that eventually there's not too much I need to fallback to C++
>>>>>>> for, at least for the prototyping and first release. I'm thankful for
>>>>>>> that.
>>>>>>>
>>>>>>>   Is there a development mailing list for that to follow ?
>>>>>>>
>>>>>>> Thanks QML team, keep up the good work!
>>>>>>>
>>>>>>> -Sivan
>>>>>>>
>>>>>>> [0]:
>>>>>>> https://bugreports.qt.nokia.com/browse/QTBUG-12117?focusedCommentId=165257#comment-165257
>>>>>>> _______________________________________________
>>>>>>> Qt-qml mailing list
>>>>>>> Qt-qml at qt.nokia.com
>>>>>>> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>>>>>>>
>>>>>> _______________________________________________
>>>>>> Qt-qml mailing list
>>>>>> Qt-qml at qt.nokia.com
>>>>>> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>>>>>
>>>>> _______________________________________________
>>>>> Qt-qml mailing list
>>>>> Qt-qml at qt.nokia.com
>>>>> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>>>>>
>>>
>>>
>> _______________________________________________
>> Qt-qml mailing list
>> Qt-qml at qt.nokia.com
>> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>



-- 
-Sivan


More information about the Qt-qml mailing list