pombreda / pygowave-server

Automatically exported from code.google.com/p/pygowave-server
Apache License 2.0
0 stars 0 forks source link

suggestion: use pyjamas python-to-javascript compiler instead of writing yet another one. #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. see http://pyjs.org
2. download it.
3. try it.
4. compare it to pycow.

Original issue reported on code.google.com by luke.lei...@gmail.com on 2 Jul 2009 at 3:49

GoogleCodeExporter commented 9 years ago
p2k: hi. sorry didn't have any time yesterday
[08:01] p2k: my arguments contra pyjamas:
[08:02] p2k: - too high-level
[08:02] p2k: - you have to write your entire app in pyjamas
[08:03] p2k: - I just want a small component translated with PyCow
[08:04] p2k: - like GWT, it breaks some compatibility with certain browsers 
(namely
my favorite: Opera)
[08:07] p2k: - I think it is to AJAX-biased; either I have to write a wrapper 
for
Orbited or I have to trash Orbited and set ip a new concept to do Comet-like 
data
transfer
[08:11] p2k: - pyjamas is too heavy; PyCow instead is lightweight enough that I 
can
let it translate the python code on-the-fly via django
[08:14] p2k: - in fact, I thaught about those arguments _before_ my decision to
implement PyCow

Original comment by zen...@googlemail.com on 7 Jul 2009 at 2:03

GoogleCodeExporter commented 9 years ago
> [08:02] p2k: - you have to write your entire app in pyjamas

 yehh, pretty much - close enough, anyway.  then you get to run it as a desktop app,
using the same python source code.  i added XULrunner support at europython last
week: the only thing that's broken is SVG 2D Canvas Context's "DrawImage" 
function. 
out of what... 3,000 functions and 400 DOM objects in XULrunner, that's pretty 
damn good.

> [08:04] p2k: - like GWT, it breaks some compatibility with certain browsers 
(namely
my favorite: Opera)

this isn't true [of GWT or pyjamas].  there are platform-specific overrides for 
the
widgets and for the DOM-model.

if the opera-specific overrides haven't been maintained or don't work, that's a 
bug,
and should be reported as such.  sadly, opera isn't as popular (being 
proprietary) so
tends to get a bit left out, from testing, but that's another story.

> [08:11] p2k: - pyjamas is too heavy; PyCow instead is lightweight enough that 
I can
let it translate the python code on-the-fly via django

pyjamas "the widget set" this is a matter of user choice, yes.

pyjamas "the javascript compiler" i disagree.  pyjamas has a *stand-alone*
python-to-javascript compiler that is equivalent to PyCow, except that it has 
had ...
2 years in which to mature, and thus can bring far more of the python syntax to 
users.

> [08:07] p2k: - I think it is to AJAX-biased; either I have to write a wrapper 
for
Orbited or I have to trash Orbited and set ip a new concept to do Comet-like 
data
transfer

no, it's not AJAX-based.  there is a python module which wraps HTTPRequest (for
developers' convenience), and then there is another python module which 
implements a
JSONRPC client (using the HTTPRequest module) but that's it.

i've not heard of orbited - if it's a javascript library, it's faaairly easy to
integrate random javascript libraries (depending on their level of complexity 
and
level of code-cleanliness).  but it's a documented process, and has a chapter
dedicated to doing javascript wrapping and use, in the pyjamas book.

Original comment by luke.lei...@gmail.com on 7 Jul 2009 at 2:37

GoogleCodeExporter commented 9 years ago
hiya,

ok - we just had another person on the pyjamas-dev mailing listsay that they 
want to
do yet another python-to-javascript translator.  it seems to be all the rage.  
the
reason i'm contacting you is to see if you'd be interested, like johnathon, in 
making
pycow possible to use in pyjamas as an alternative compiler.

johnathon's approach is very interesting:

http://groups.google.com/group/pyjamas-dev/browse_thread/thread/7f2c26f8e4c6cb6f

Original comment by luke.lei...@gmail.com on 14 Jul 2009 at 11:40

GoogleCodeExporter commented 9 years ago
Hi

I'm the person Luke just referred to (and last weekend he told me about PyCow). 
Looks interesting, didn't know about it.

I've looked for, and not found, the source files for PyCow.  I'm probably 
missing
something obvious, but could you tell me where to find them.

Original comment by Jonathan.Fine1@googlemail.com on 14 Jul 2009 at 12:28

GoogleCodeExporter commented 9 years ago
Hi,

You'll find a pycow 0.1 release version at the following URL:
http://pygowave-server.googlecode.com/files/pycow-0.1.tar.gz

SVN code is located at:
http://pygowave-server.googlecode.com/svn/branches/pycow/

Original comment by dereck...@gmail.com on 4 Sep 2009 at 2:23

GoogleCodeExporter commented 9 years ago

Original comment by patrick....@googlemail.com on 11 Nov 2009 at 10:33