Re: [web2py] Interesting - Brython (python to javascript)

2013-01-03 Thread Arnon Marcus
The JavaScript generated, is very far from idiomatic... I wouldn't envy the poor guy who would have to debug this... The description doesn't even talk about the many problems of JavaScript, and says nothing about the shortcomings of foreign language traspilation. In short, a very amature looking

Re: [web2py] Interesting - Brython (python to javascript)

2013-01-02 Thread Bruno Rocha
Looks like PyJaCo works much better, even supporting classes. http://pyjaco.org/demo --

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-26 Thread Arnon Marcus
>From what I recently learned, when the question is "is client-side less secure?", then the short answer is "not necessarily", and the longer answer is these 2 talks: https://www.youtube.com/watch?v=w9hHHvhZ_HY https://www.youtube.com/watch?v=oBqeDYETXME :) On Wed, Dec 26, 2012 at 9:19 AM, Jef

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-26 Thread Jeff Kusi
I have a question about security (it may be unfounded), Isn't server-side interpretation more secure? Especially when business logic that doesn't pass as "controller" code is embedded into the view code. Brython would exposed such code to a front-end user. What are your thoughts? On Saturday

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-26 Thread Alec Taylor
On Sun, Dec 16, 2012 at 6:39 AM, Massimo Di Pierro wrote: > I was thinking the same. The issue, do we want the conversion done > client-side (like brython) or server side (like ocl, > https://github.com/mdipierro/ocl#convert-python-code-into-javascript-code) > > I'd prefer brython if it is fast. >

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-26 Thread Vinicius Assef
Very good, Francois! :-) On Fri, Dec 21, 2012 at 7:20 PM, Francois Dion wrote: > If you have had issues with these, you should report the bugs, because It > does support string interpolation, modules and scope. List comprehension and > the ternary operator have been added earlier this week. Clas

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-22 Thread Arnon Marcus
How do you debug this? Is here a source-map generation mechanism to allow debugging python code in the browser's debugger? Can the transpiler run server-side? On Fri, Dec 21, 2012 at 1:20 PM, Francois Dion wrote: > If you have had issues with these, you should report the bugs, because It > does

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-21 Thread Massimo Di Pierro
Thanks for letting us know. Are you one of the brython developers? On Friday, 21 December 2012 15:20:28 UTC-6, Francois Dion wrote: > > If you have had issues with these, you should report the bugs, because It > does support string interpolation, modules and scope. List comprehension > and the t

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-21 Thread Francois Dion
If you have had issues with these, you should report the bugs, because It does support string interpolation, modules and scope. List comprehension and the ternary operator have been added earlier this week. Classes is the main thing left. I started using brython in a limited deployment. I think

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-20 Thread Vinicius Assef
I agree. On Thu, Dec 20, 2012 at 1:18 PM, Massimo Di Pierro wrote: > Looks like this is too limited to be useful. > > > On Monday, 17 December 2012 01:08:41 UTC-6, viniciusban wrote: >> >> Brypthon doesn't support string interpolation, too. :-( >> >> On Sun, Dec 16, 2012 at 6:40 PM, Arnon Marcus

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-20 Thread Massimo Di Pierro
Looks like this is too limited to be useful. On Monday, 17 December 2012 01:08:41 UTC-6, viniciusban wrote: > > Brypthon doesn't support string interpolation, too. :-( > > On Sun, Dec 16, 2012 at 6:40 PM, Arnon Marcus > > > wrote: > > From what I saw, it does not support many fundamental featu

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-16 Thread Vinicius Assef
Brypthon doesn't support string interpolation, too. :-( On Sun, Dec 16, 2012 at 6:40 PM, Arnon Marcus wrote: > From what I saw, it does not support many fundamental features of python, > like class-inheritance (class, classMethod) modules (__import__, from, as), > scope (globals, nonlocal) and pa

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-16 Thread Arnon Marcus
>From what I saw, it does not support many fundamental features of python, like class-inheritance (class, classMethod) modules (__import__, from, as), scope (globals, nonlocal) and parsing (exec, eval). I think these are trivial for python developement, and should have some kind of design-patter

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-15 Thread Massimo Di Pierro
Taking a second look at brython. I think we should include it. On Saturday, 15 December 2012 13:01:16 UTC-6, Mariano Reingart wrote: > > Brython seems great, it even uses a html helper syntax like web2py! > > > t = TABLE() > for i in range(10): > t <= TR(TD(i)+TD(i*i)) > doc <= t > >

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-15 Thread Massimo Di Pierro
I was thinking the same. The issue, do we want the conversion done client-side (like brython) or server side (like ocl, https://github.com/mdipierro/ocl#convert-python-code-into-javascript-code) I'd prefer brython if it is fast. Massimo On Saturday, 15 December 2012 13:01:16 UTC-6, Mariano Rei

[web2py] Interesting - Brython (python to javascript)

2012-12-15 Thread ionel
http://www.brython.info/index_en.html --