It doesn't implement everything so far. For example Python modules are
still missing, that is a very important feature.
>
> If this compiler+library is really as complete as it seems, with a
> much lighter footprint than Pyjamas (the examples seem to all compile
> to under 12KB), I think it would be a very good idea to port my
> grafpad project to it. From looking at the example source code, it
> looks like it doesn't require wrappers to communicate to JS, so it
> automatically supports all JS functionality, is that correct? I'm
I think it does, or could be easily tweaked to do.
> considering using it in combination with a JS selector engine, like
> Sizzle, to manipulate the DOM, would the 2 have any trouble working
> together? Are there any limitations in terms of being able to use this
> on the same page as another JS framework, like jQuery (not that I'm
> planning to bloat up my page with multiple frameworks, but it's nice
> to have that option :) ). Is this still based on Niall's version of
As far as I know, it should work just fine with anything.
> py2js, since I see the structure between the two seems very different
> now? If so, what made you guys decide to go away from the detached
> input/output setup, were there issues with it? If not, would you guys
We wrote it from scratch with Mateusz, and then Sam and Christian
contributed significant code as well.
> mind if I branched/forked your version to see if I can make a detached
> input/output setup that could eventually allow other languages to be
> supported as input/output plugins? Also, what is your stance on
Absolutely, go ahead. Sam and Christian are also maintaining a fork,
I am not sure what the status of it is. If you want to contribute back,
just send us a pull request.
> widgets? If I decided to slap together some widgets like custom
> SelectBox and PopupPanel similar to the ones in jQuery and MooTools,
> would you rather have them be a separate project or part of this one?
Why not to use some javascript library for it?
However, I don't see any problem, why it couldn't be in some
additional module inside py2js.
Ondrej
So it sounds like the libraries just happen to be named the same,
> > considering using it in combination with a JS selector engine, like
> > Sizzle, to manipulate the DOM, would the 2 have any trouble working
> > together? Are there any limitations in terms of being able to use this
> > on the same page as another JS framework, like jQuery (not that I'm
> > planning to bloat up my page with multiple frameworks, but it's nice
> > to have that option :) ). Is this still based on Niall's version of
>
> As far as I know, it should work just fine with anything.
>
> > py2js, since I see the structure between the two seems very different
> > now? If so, what made you guys decide to go away from the detached
> > input/output setup, were there issues with it? If not, would you guys
>
> We wrote it from scratch with Mateusz, and then Sam and Christian
> contributed significant code as well.
>
ironic.
While JS widgets will probably have a smaller footprint and most
> > mind if I branched/forked your version to see if I can make a detached
> > input/output setup that could eventually allow other languages to be
> > supported as input/output plugins? Also, what is your stance on
>
> Absolutely, go ahead. Sam and Christian are also maintaining a fork,
> I am not sure what the status of it is. If you want to contribute back,
> just send us a pull request.
>
> > widgets? If I decided to slap together some widgets like custom
> > SelectBox and PopupPanel similar to the ones in jQuery and MooTools,
> > would you rather have them be a separate project or part of this one?
>
> Why not to use some javascript library for it?
>
> However, I don't see any problem, why it couldn't be in some
> additional module inside py2js.
>
people will probably use those, there could be some advantages to
Python widgets too. Being written in Python, they could be easier to
tweak/enhance/inherit for people wishing to expand the functionality,
but not wanting to learn JS. Additionally, these widgets can be
written to include methods/interfaces similar to those of other Python
ui libraries to allow for easier porting of Python apps to the web.
Imagine matplotlib implemented using canvas, for example.
> Ondrej
I thought the old py2js is dead, so we just reused the name. Maybe it
was a mistake.
>
> Im sad to hear you say this Ondrej, cause actually this is not true if you
> look into the git logs... alot of the tests are from the old py2js wich is
> what you have found.
Thanks for the notice, I forgot about the tests. I just put the
credits into the AUTHORs file:
https://github.com/qsnake/py2js/commit/4dc41274895989da54ebca4a5317f156e59fd126
let me know if it fixes the confusion.
Ondrej