On 10/10/2013 04:59 PM, Łukasz Mach wrote:
W dniu 10.10.2013 19:37, Steve Waterbury pisze:
[...]

Also, some part of pyjs/pyjamas library can be used by native python
code. Eg. in pyjd, when is fixed, or in new style of desktop pyjamas
(that one which uses qt/wxgtk...)

I don't understand this idea -- there are way more mature and
powerful python desktop gui technologies that use wx/qt,
such as pyface / enaml.

But do they give you the same python code working on both: desktop and web?

No, but way better desktop capabilities -- pyjd isn't in
the same league.  That's why I suggested using pyjs to
translate apps from those frameworks to the web, rather
than the other way around.

Full disclosure:  these are comments from one who *uses*
pyjs/pyjd, rather than a developer of pyjs/pyjd.  Obviously,
if you are developing pyjd, you will (and should) make decisions
based on your own judgment -- I'm just providing my opinion as a
user's perspective.

I believe that having a web app and/or UI and a desktop
UI generated from the same code is potentially a worthy
goal and possibly even a killer app, but I think starting with
one of the existing qt/wx frameworks or metaframeworks would be
the best approach -- for example, think of the fans that pyjs
would have if it could generate a web interface from some
*existing* qt or wx apps ... the mind boggles.

OTOH, I think it's a much more difficult case to make to a
developer who wants to create a good desktop app to say
"use pyjd because it will give you a web interface too",
unless there are minimal compromises in actual capabilities.

For example, for scientific apps that involve graphing, the
Bokeh js framework being developed by continuum.io is very
promising as a web UI with similar capabilities to existing
desktop UIs developed using (e.g.) scipy's "chaco".  It would
make a *huge* impact on that community if a Bokeh app could be
*generated* from the code for a chaco or matplotlib app ...
and I daresay pyjs/pyjd would then attract a large, competent,
and well-funded/supported community of potential new
contributors.

But first pyjs needs to be quite solid, because for example
the tool in which Bokeh is currently being developed,
CoffeeScript, is quite powerful and its syntax is already
quite similar in some ways to python's ... check out your
competition:  <http://coffeescript.org/>.  Yes, pyjs could
offer them a huge win if they could write a desktop app in
chaco or enaml and generate a nearly identical web UI, but
the generated javascript would need to be very efficient,
too, to make the trade-off worthwhile.

Steve

--

--- 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 pyjs-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to