I tried to port my Pyjs project to Brython recently, and it failed because 
Brython was terribly slow.  Just loading library took more than 10 minutes 
and my web browser died due to memory problem in Brython.  Beside speed, 
Brython seems to have a big problem in memory management. So, I had no 
choice but to coming back to Pyjs. I think that Brython may be good for a 
small-sized project, but not for a big project.

Pyjs has advantages compared to Brython as follows:

1. Pyjs compiles Python to Javascript offline. So, loading and execution 
speed is fast especially when source size is big. 

Brython converts Python source to Javascript during runtime. Theoretically, 
loading and compiling Python code is faster than loading compiled 
javascript code in the low speed Internet. But in reality, this conversion 
is very slow consuming a lot of memory when source size is big. 

2. Python source code is not exposed to public

The compiled Javascript by Pyjs is complicated enough to hide Python 
source. It is not perfect protection compared to compiled byte-code. But it 
is a lot better than most obfuscation software available for Python. If you 
use Brython, your source code is literally exposed to public.

3. Pyjs is designed to support MVC(Model-View-Controller)

Thanks to MVC, You don't have to write HTML code and you can reuse existing 
module and class easily. Brython is designed mainly to replace Javascript, 
and you have to write html code undermining reusability and unreadability.

4. Pyjs has desktop solution

Brython is a brwoser-only solution.  On the other hand, Pyjs' desktop 
solution makes debugging easier though not perfect.

I hope to see further improvement of Pyjs.  Brython will not be able to 
replace Pyjs in the near future due to the fundamental differences listed 
above.  Pyjs is the only solution for my project so far.


2016년 3월 1일 화요일 오후 7시 20분 54초 UTC+9, Adrien 님의 말:
>
> BTW Pyjamas is dead and pyjs is slowly dying. I would not advice to 
> start a new project with it. People here would probably recommend you to 
> have a look at Brython: http://brython.info 
>
> Regards, 
> Adrien 
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to