[maemo-developers] Making Javascript Application embedded in a small gtk window.

From: koos vriezen koos.vriezen at gmail.com
Date: Sun Jan 11 18:33:10 EET 2009
2009/1/11 koos vriezen <koos.vriezen at gmail.com>:
> 2009/1/9 Benoît HERVIER <khertan at khertan.net>:
>> Why ? don't know ... just though ...
>>
>> For simple apps, like tasks or some pims ... it can be done easily
>> with a nice ui in js ...
>>
>> And yep, HTML was document oriented, HTLM5 is no more that, it s
>> mainly a Application Oriented Language. HTML5 is made for offline and
>> online apps. This is why i say... : maybe it could be interesting.
>>
>> And when i was talking about other device it was mainly other mobile
>> device :) like Palm WebOS or iPhone which use WebKit also. But it
>> seems that the iPhone don't have the HTML5 part of Webkit right now.
>
> Aren't this two kinds of JavaScript? Ie. js as binding to the platform
> and js inside a html page where among others, security considerations
> limits its scope.
> For what I know, script binding currently are more or less just
> wrapping a specific toolkit so that doesn't bring much for
> portability. Would indeed be nice to have a toolkit independent spec,
> like eg. AWT for Java.

Wait, there is also the SWT approach. First wrap a toolkit in the
desired language and on top of that a common API. That sound a lot
easier since script bindings are there already (don't know about js
but there is a project at http://svn.gnome.org/viewvc/gjs/

> Since Palm already has something, might be worth taking a look in how
> far it can be implemented on Maemo.
>
> Koos
>>
>>
>> 2009/1/9 koos vriezen <koos.vriezen at gmail.com>:
>>> 2009/1/9 Benoît HERVIER <khertan at khertan.net>:
>>>> Hello everybody,
>>>>
>>>> For different reasons, i'm thinking of doing apps using Javascript and
>>>> HTML. Why ? :
>>>>
>>>> - Portability
>>>> - More possibility in term of design (depends of operating system)
>>>>
>>>> But i have many questions for you as i ve ever write something in javascript :
>>>>
>>>> - How to store and retrieve data ? I know that there is some
>>>> possibility with some part of the specifications of HTML5. I read
>>>> somewhere that webkit support it.
>>>> - Does the maemo actual webkit port support this feature ?
>>>> - Does there is python binding for webkit ?
>>>> - I suppose that with javascript we can't access nor the filesystem,
>>>> nor the camera, isn't it ?
>>>>
>>>> And the main one is about performance on an n8x0 device, do you think
>>>> it s could be really use to make application, as when i see how many
>>>> time required to launch browser, or simply importing gtk python
>>>> binding, i really doubt that my idea is a great one.
>>>>
>>>> What do you think ?
>>>
>>> If I want to put scripts in a html page, I use javascript. If I want
>>> to retrieve information out of text I use perl or sed. If I want to
>>> write an app for maemo I use Hildon/Gtk, for Android Java and for KDE
>>> I use Qt/kdelibs.
>>> In short, I try to use the tools made for the job. Not that I think
>>> that Gtk is the best solution for GUI programming, but it is on this
>>> platforms _the_ preferred toolkit to develop against.)
>>> So why not stick with it?
>>>
>>> (Btw. Gtk or Qt code should be portable to Mac or Windows platforms
>>> and you get a fast and good resource efficient, though not smallest,
>>> solution)
>>>
>>> Koos
>>>
>>
>>
>>
>> --
>> Benoît HERVIER - http://khertan.net/
>> _______________________________________________
>> maemo-developers mailing list
>> maemo-developers at maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>
More information about the maemo-developers mailing list