On Wednesday 13 May 2009 09.05:11 Diez B. Roggisch wrote:
> Adrian von Bidder schrieb:

[ok, topic drift alert ;-]

> > Or you could start to write a python to js translator

> The PyPy project comes with a python2js-compiler. And AFAIK pygments or
> something similar uses that.
>
> But even then - debugging *generated* client-side JS? I know what I
> *don't* like to do, but YMMV.

As I've said I work a bit with Google's Webkit which does Java -> JS.  The 
cool thing, and one of the reasons we've chosen it over other solutions, is 
debugging: using some serious behind the scenes magic, you can actually 
debug the stuff on the Java side while it is executed in the browser.  (It 
involves a special version of Firefox.  I'm not sure if they have a modified 
JS engine or if they simulate the JS engine's context and are executing the 
Java variant of the toolkit code.)

> And to share code between back- and frontend, you'd need to translate
> all the dependencies to JS, ending with a nightmarish several dozen MB
> to load *upfront* before a single page is displayed...

In the case of gwt, it's not "several dozen MB", but it is a substantial JS 
library, yes.  Since we're developping some enterprisy application that will 
mostly be used in the LAN, and mostly by a few people who use it frequently, 
so browser caching is very effective for us.)

[is not tg]

Much of tg could actually be used: just push the whole tg app to the client, 
using the embedded webserver as the main loop of the app.  (No, I'm not 
seriously proposing tg should invest any effort in such things.  Just 
thinking aloud what the current trend to make web stuff available online 
might mean.)

[As it happens, I have been thinking -- exactly as nebulously as the above 
whacky idea -- in the opposite direction myself: creating tg standalone apps 
by using tg controllers and replacing genshi by python-kde bindings ... so 
the same business logic could nicely be used for a full application for 
power users and a web application for web access.  Why?  Because I think 
that full GUI apps are still better to use than web apps.  But the gap is 
narrowing.]

cheers
-- vbi

-- 
It was the best extra 22 nanoseconds I've ever spent with the kids.
        -- Tom Van Baak, Time-Nut

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to