News for hackers. Stuff that matters.
Re:Pythonic syntax to declutter Javascript by malkia on Thursday January 14, 2010 @09:36PM (#1054105)
Nothing against python, but pyscript is terrible idea to go in the browser? Why? Because you can't remove the spaces, you can't compress your source code so that it uses less bandwidth.

Also really, honestly, I hate to post python script somewhere in forum, and because of the identation someone else cannot test it.

Hey there is [email protected] - right - you type something in google.wav - send it to the address above, and the clojure appspot program gives you back the result - nice REPL :)

Now how would that work with python, or this pyscript? Just thing about it?

Re:Pythonic syntax to declutter Javascript by sshumaker on Thursday January 14, 2010 @09:49PM (#1054117)
I would imagine you pre-process the pyscript before sending it to the browser as part of your deploy step. So you don't have the compression issues.
Re:Pythonic syntax to declutter Javascript by harto on Thursday January 14, 2010 @09:57PM (#1054129)
Actually, it looks like a separate script translates all script blocks with type="text/pyscript"
Re:Pythonic syntax to declutter Javascript by Semiapies on Friday January 15, 2010 @01:20PM (#1055464)
You can't minify, but you can still gzip.