From what I can read on the various blogs, the pyjs compiler is more full featured but I hear has whole laundry list of problems one of the bloggers had posted. He had also compared other alternatives as well.
I also notice that pyjaco was listed as much better than the pyjs compiler in these areas.
Plus pyjaco seems to be active development.
I understand pyjamas is much more than just the pyjs compiler.
Questions:
1. Does pyjaco generate more efficient in speed and size?
2. Can the pyjaco compiler replace the pyjs compiler and if not what would be missing. That would leave pyjamas to focus on the gwt widget sets in python as well as pyjd. Does this make sense.
3. As of now the pyjs tool and widgets set produces very large JavaScript code. Someone mentioned 30M for hello world program uncompressed. What are the root causes for this bloat and is there any work happening in this area. And there was a thread on the Pyjs newsgroup that claimed that the latest gwt compiler produced java script code that was 200kb of javascript while the an equivalently features application using pyjamas generated 5Mb of javascript. Is this a problem with the python-to-javascript compiler OR is it python translation of the GWT code that causes this difference in size.
Why do I ask.
1. I plan to use pyjamas and/or pyjaco and find this approach to development exciting.
2. I have a very small budget that I plan to use for improvements to the toolset. In my opinion on things like efficiency of the generated code as well as gwt version upgrade. And have junior a engineer from India that I am funding that I was thinking of assigning to this task. Don't expect magic from him, he is no Luke or Kees Bos but I expect him to learn and contribute in whatever way possible.
3. I know I want the GWT widget set in python. But I am trying to decide which python-to-javascript compiler is the better bet going forward.
Thanks
Sarvi
What s the difference between the pyjaco and the pyjs compilers.
From what I can read on the various blogs, the pyjs compiler is more full featured but I hear has whole laundry list of problems one of the bloggers had posted. He had also compared other alternatives as well.
I also notice that pyjaco was listed as much better than the pyjs compiler in these areas.
Plus pyjaco seems to be active development.
I understand pyjamas is much more than just the pyjs compiler.
Questions:
1. Does pyjaco generate more efficient in speed and size?
2. Can the pyjaco compiler replace the pyjs compiler and if not what would be missing. That would leave pyjamas to focus on the gwt widget sets in python as well as pyjd. Does this make sense.
3. As of now the pyjs tool and widgets set produces very large JavaScript code. Someone mentioned 30M for hello world program uncompressed. What are the root causes for this bloat and is there any work happening in this area. And there was a thread on the Pyjs newsgroup that claimed that the latest gwt compiler produced java script code that was 200kb of javascript while the an equivalently features application using pyjamas generated 5Mb of javascript. Is this a problem with the python-to-javascript compiler OR is it python translation of the GWT code that causes this difference in size.
Why do I ask.
1. I plan to use pyjamas and/or pyjaco and find this approach to development exciting.
2. I have a very small budget that I plan to use for improvements to the toolset. In my opinion on things like efficiency of the generated code as well as gwt version upgrade. And have junior a engineer from India that I am funding that I was thinking of assigning to this task. Don't expect magic from him, he is no Luke or Kees Bos but I expect him to learn and contribute in whatever way possible.3. I know I want the GWT widget set in python. But I am trying to decide which python-to-javascript compiler is the better bet going forward.
Thanks
--
Sarvi
You are subscribed to the Google Group pyj...@googlegroups.com
To unsubscribe from this group, send email to
pyjaco+un...@googlegroups.com
--
You are subscribed to the Google Group pyj...@googlegroups.com
To unsubscribe from this group, send email to
pyjaco+un...@googlegroups.com
--
//Samuel Ytterbrink
--
You are subscribed to the Google Group pyj...@googlegroups.com
To unsubscribe from this group, send email to
On Friday, December 21, 2012 10:49:28 AM UTC-5, Neppord wrote:1. in a way, We want to as much as possible fully support the "__" methods and other cools stuffs from python. This was atleast 2 years ago quite limited in Pyjamas.
Here is the available compile time configuration options (we have discussed the idea of using decorators to apply some of these options on specific functions, for example if you use get/set attribute overloading on object but have some complex computational function and you want to avoid the extra attribute lookup calls you would be able to decorate that function to avoid wrapping each get/set operating in a function call and instead resort to native javascript attribute access, eg: obj.attr (cant tie in python machinery) insead of obj.get(attr) (ties into python machinery but now includes extra function call):$ ./pyjscompile --helpUsage:usage: pyjscompile [options] file...Options:-h, --help show this help message and exit-o OUTPUT, --output=OUTPUTPlace the output into <output>-m MODULE_NAME, --module-name=MODULE_NAMEModule name of output-i, --list-imports List import dependencies (without compiling)-D, --enable-default (group) enable DEFAULT options-d, --enable-debug (group) enable DEBUG options-O, --enable-speed (group) enable SPEED options, degrade STRICT-S, --enable-strict (group) enable STRICT options, degrade SPEED--enable-wrap-calls enable call site debugging [False]--enable-print-statementsenable printing to console [True]--enable-check-args enable function argument validation [False]--enable-check-attrs enable attribute validation [False]--enable-accessor-protoenable __get/set/delattr__() accessor protocol [True]--enable-bound-methodsenable proper method binding [True]--enable-descriptor-protoenable __get/set/del__ descriptor protocol [False]--enable-track-sourcesenable tracking original sources [False]--enable-track-lines enable tracking original sources: every line [False]--enable-store-sourcesenable storing original sources in javascript [False]--enable-inline-code enable bool/eq/len inlining [False]--enable-operator-funcsenable operators-as-functions [True]--enable-number-classesenable float/int/long as classes [False]--enable-locals enable locals() [False]--enable-stupid-mode enable minimalism by relying on javascript-isms[False]--use-translator=TRANSLATORoverride translator [proto]
--
You are subscribed to the Google Group pyj...@googlegroups.com
To unsubscribe from this group, send email to
pyjaco+un...@googlegroups.com
I am going with the assumption people don't choose reinvent the wheel intentionally. It usually happens due to the lack of proper information or communication.
I am aware of the pypy project and its toy JavaScript backend. Now that you mention it that would be an excellent way to achieve this goal. Do you know anyone who is working on that backend.
Have you suggested this to either the pyjaco team or one of the other teams working on python to JavaScript?
Sarvi
--
You are subscribed to the Google Group pyj...@googlegroups.com
To unsubscribe from this group, send email to
pyjaco+un...@googlegroups.com
People don't choose to reinvent the wheel just for fun, but because they feel a need for it or they feel something is missing or if its not convenient.
At least based on this thread, my understanding was that there were some misconceptions of the pyjamas compiler that was just clarified. Plus some changes have happenned in leadership as well that might be considered more favourable as well. So I felt people might want to rethink their strategy.
Me personally was trying understand the reasons for the community split but more importantly to understand where to put additional effort and why?
Sorry if I came as rude. That wasn't my intention
Sarvi