On Oct 29, 2010, at 8:20 PM, Patrick wrote:
there's any reason too?
Since Python doesn't support $ as a name, you can use jQuery's other name: "jQuery"
J = jQuery
On Oct 30, 2010, at 7:22 AM, david jensen wrote:
Did you try making this work with Google's Closure?
Closure Compiler? Absolutely. I always minify my JS using Closure's simple-optimizations mode.
Closure Library? Sure. Just build the subset you need and include it first as another script. The pj-closure
conversion is mostly for fun.
How is is related to Pyjamas?
(2) I found the Pyjamas transformations source code hard to casually read, whereas with PYXC-PJ, I tried to make each transformation as independent as possible (so you can easily grok or modify the transformations)
Note: the general-purpose (Python --> Anything) code is in pj/pyxc/*, and it might be useful if you're whipping up a (Python --> Something) DSL.
Also, I used docco
for literate programming.
If you're interested:
On Oct 29, 2010, at 7:51 PM, Ned Batchelder wrote:
True. I'll try to improve the wording.
On Oct 29, 2010, at 7:32 PM, Matt Di Pasquale wrote:
Its author wrote yesterday: "I abandoned it when CoffeeScript appeared, but you might find something interesting there."
On Oct 29, 2010, someone wrote off-list:
Just curious -- any particular reason you wrote this instead of just
- Python seems more readable to me
- No mental switching cost when cycling between client-side and server-side window groups
- Compilers are fun to write, especially when you try to make the transformations readable and independent