On Jan 29, 12:18 pm, Simon Toth <
Happy.Cerbe...@gmail.com> wrote:
>
> But well as allways, it's your choice :) I just wanted to know if you
> even considered the posibility.
>
Basically Hotwire started its life as a prototype (and in many ways,
it still is). But as Rui said - I know Python and I know GTK+ both
pretty well, and wasn't really interested in blocking on learning
something new. It just happened that at some point I was like "hey
wow, I can actually use this thing!", and it's fun to hack on =)
But to get back to your question - is Qt is the right platform to
switch to? What is the best platform to target?
It's actually really frustrating, because in the Free Software world
there are *so many* platforms to choose from. Even the two I use
right now, Python and GTK+, each want to be platforms of their own.
They both for example duplicate the code to spawn subprocesses in a
crossplatform way. They both have data structures like lists and
hashes, Unicode handling, etc. I actually wrote a blog entry recently
about programming languages and platforms:
http://cgwalters.livejournal.com/12380.html
To be honest - If I had to make a guess about the future of client
platforms, at least for personal computers, I would bet on Firefox.
Not in the sense of your-app-as-a-web-page, but in the sense of
XULRunner - reusing some of the Firefox infrastructure like Tamarin
that they plan to ship with Mozilla 2/Firefox 4, and their
crossplatform GUI toolkit (though I'm not really sold on XUL as the
API). Firefox is an application that so many Windows and Mac users
already have installed, it's pretty nice to just depend on it.
If I could compile Python to run on the Tamarin VM, we'd be about 50%
of the way there.
SLOC Directory SLOC-by-Language (Sorted)
6450 hotwire python=6450
5599 hotwire_ui python=5599
678 DistUtilsExtra python=678
571 hotvte python=571
536 ui python=536
451 hotapps python=451
83 top_dir python=83
hotwire_ui and hotvte are the parts of the code that "import
gtk" (6171 lines). The other 6500 lines just use the Python standard
library.
With Qt - sure it's a nicer experience than GTK+ on Windows, but who
knows if Nokia will really try to keep trying to push the (currently
money-losing) business of selling Windows toolkit licenses, versus
going all out for mobile?
On Linux, Qt/GTK+ is pretty much a wash. GTK+ has pretty much
everything we need for Hotwire - it's not really a conventional GUI
application, all we need at the core is a text entry box, and decent
treeview and textview widgets.