Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Making Javascript Application embedded in a small gtk window.

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


khertan at khertan

Jan 9, 2009, 4:59 AM

Post #1 of 8 (1354 views)
Permalink
Making Javascript Application embedded in a small gtk window.

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 ?

--
Benoît HERVIER - http://khertan.net/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


koos.vriezen at gmail

Jan 9, 2009, 1:19 PM

Post #2 of 8 (1293 views)
Permalink
Re: Making Javascript Application embedded in a small gtk window. [In reply to]

2009/1/9 Benoît HERVIER <khertan [at] khertan>:
> 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
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


monteslu at cox

Jan 9, 2009, 2:02 PM

Post #3 of 8 (1309 views)
Permalink
Re: Making Javascript Application embedded in a small gtk window. [In reply to]

I paid good money for this cool little nokia tablet and will run
whatever I can get to run on it.


Javascript has a bad rap as an ugly thing used for annoying popups. It's
gotten much better, especially when using APIs like dojo and jquery.

If it helps:
Android, iPhone, and blackberry developers can use the opensource
Phonegap ( http://phonegap.com ) . It creates apps that are simply
wrappers for the web browser but with a common javascript API to use the
location, acclerometers, vibration, etc.

Would be nice to see a maemo port of phonegap.

Luis



On Fri, Jan 9, 2009 at 2:50 PM , koos vriezen wrote:

> 2009/1/9 Benoît HERVIER <khertan [at] khertan>:
>> 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
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


khertan at khertan

Jan 9, 2009, 2:04 PM

Post #4 of 8 (1309 views)
Permalink
Re: Making Javascript Application embedded in a small gtk window. [In reply to]

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.


2009/1/9 koos vriezen <koos.vriezen [at] gmail>:
> 2009/1/9 Benoît HERVIER <khertan [at] khertan>:
>> 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
https://lists.maemo.org/mailman/listinfo/maemo-developers


koos.vriezen at gmail

Jan 11, 2009, 8:16 AM

Post #5 of 8 (1291 views)
Permalink
Re: Making Javascript Application embedded in a small gtk window. [In reply to]

2009/1/9 Benoît HERVIER <khertan [at] khertan>:
> 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.
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>:
>> 2009/1/9 Benoît HERVIER <khertan [at] khertan>:
>>> 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
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


koos.vriezen at gmail

Jan 11, 2009, 8:33 AM

Post #6 of 8 (1291 views)
Permalink
Re: Making Javascript Application embedded in a small gtk window. [In reply to]

2009/1/11 koos vriezen <koos.vriezen [at] gmail>:
> 2009/1/9 Benoît HERVIER <khertan [at] khertan>:
>> 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>:
>>> 2009/1/9 Benoît HERVIER <khertan [at] khertan>:
>>>> 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
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


vern at riseup

Jan 11, 2009, 9:03 AM

Post #7 of 8 (1288 views)
Permalink
Re: Making Javascript Application embedded in a small gtk window. [In reply to]

Hi
> 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/

have a look at http://www.grillbar.org/wordpress/?p=307
and
http://live.gnome.org/Gjs


Ian
--
http://ianlawrence.info
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


mikko.ohtamaa at twinapex

Nov 24, 2009, 7:21 AM

Post #8 of 8 (722 views)
Permalink
Re: Making Javascript Application embedded in a small gtk window. [In reply to]

> If it helps:
> Android, iPhone, and blackberry developers can use the opensource
> Phonegap ( http://phonegap.com ) . It creates apps that are simply
> wrappers for the web browser but with a common javascript API to use the
> location, acclerometers, vibration, etc.
>
> Would be nice to see a maemo port of phonegap.
>
> Luis

Luis,

Looks like your "dream just came true":

http://blog.twinapex.fi/2009/11/24/phonegap-ported-on-n900-maemo/

=)

Cheers,
Mikko

--
Mikko Ohtamaa
http://www.twinapex.com
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.