LWN: Comments on "GTK+ 3.8.0 released"
http://lwn.net/Articles/544395/
This is a special feed containing comments posted
to the individual LWN article titled "GTK+ 3.8.0 released".
hourly2GTK+ 3.8.0 released
http://lwn.net/Articles/545551/rss
2013-04-02T11:03:43+00:00whilteheat
<div class="FormattedComment">
It is true in my experience....<br>
<p>
- This time last year I had to constantly restart (sometimes daily!) a Ruby background process because it kept memory leaking :( <br>
<p>
- While I have multiple Perl background processes I've written that continue to run without a restart for over 5 years :)<br>
<p>
So yes you have to be careful and not leave something silly around with Perl (re: DESTROY / weaken) but I've had far more success with Perl compared to Ruby (libs/VM) on this!<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/545205/rss
2013-03-29T15:47:55+00:00ebassi
that's not entirely correct: you can override DESTROY to release cycles. or you can use the 'weaken' function from Scalar::Util.
GTK+ 3.8.0 released
http://lwn.net/Articles/544991/rss
2013-03-28T17:38:13+00:00debacle
<div class="FormattedComment">
Good! Thanks for the upgrade.<br>
<p>
There is some useful software out there, like Gimp, Dia, Wireshark, Inkscape, etc. that is popular in win32 world and makes use of Gtk+.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544956/rss
2013-03-28T16:06:13+00:00whilteheat
<div class="FormattedComment">
In practise I have found Perl to leak memory far less than Python and especially Ruby VMs. So not a deal breaker :)<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544788/rss
2013-03-28T04:43:48+00:00talisein
<div class="FormattedComment">
I've made a few toy apps with it. It works very well in my experience. Where Glib or Gtk give something like a GList, Gtkmm transforms it into a standard library object such as a std::vector, and also accepts standard objects where expected. So its much more of a standard C++ experience than you would get with Qt. If some C library, like say libchamplain, isn't wrapped, you can just access it with C functions; you always have access to the underlying C GObject. You can also directly subclass Glib::Object and give it properties and such. <br>
<p>
I can't really say how it compares to Vala, other than I suspect it is more straightforward to use a non-GObject C or C++ library in Gtkmm than it is with Vala.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544776/rss
2013-03-28T02:27:12+00:00tetley80
<ul>
<i>
It isn't quite as simple. GObject offers quite a few things that the C++ object model doesn't: signals, introspection and an all-encompassing type hierarchy (GType/GValue) that, unlike the C++ object model, includes primitive types.
Of course it's a horrible pain to use all that from C, but that's why Vala exists.
</i>
</ul>
<p>
On a related note, there seems to be a decent C++ wrapper for GTK+, called <a rel="nofollow" href="http://www.gtkmm.org/en/">gtkmm</a> (which also has signals).
</p>
<p>
Does anybody have experience with it? How does it compare to using Vala, or Qt ?
</p>
GTK+ 3.8.0 released
http://lwn.net/Articles/544698/rss
2013-03-27T19:41:18+00:00boudewijn
<div class="FormattedComment">
"Some sort of C with classes" is a quote from the original poster. I know that gobject offers stuff that has been available to Java developers from the start and to C++ developers since Qt appeared -- but that doesn't make the original claim that C++ or Objective C is "just some sort of C with classes, comparable to GTK" sensible.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544675/rss
2013-03-27T18:11:25+00:00HelloWorld
<div class="FormattedComment">
Perl, unlike Ruby or Python, isn't able to collect reference cycles. That's a deal-breaker for me and many others.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544672/rss
2013-03-27T18:05:02+00:00HelloWorld
<div class="FormattedComment">
<font class="QuotedText">> Erm... I would hesitate to say that C++ is just some sort of C with classes, just like GTK uses. It's quite a bit more, and makes life quite a bit easier and high-level for the developer.</font><br>
It isn't quite as simple. GObject offers quite a few things that the C++ object model doesn't: signals, introspection and an all-encompassing type hierarchy (GType/GValue) that, unlike the C++ object model, includes primitive types.<br>
<p>
Of course it's a horrible pain to use all that from C, but that's why Vala exists.<br>
</div>
Wayland support
http://lwn.net/Articles/544657/rss
2013-03-27T17:26:53+00:00dlang
<div class="FormattedComment">
<font class="QuotedText">> And at that point you can support something like screen for GUIs, so you don't need to shut down the application when you log off</font><br>
<p>
This is possible today with X, no need to invoke Wayland.<br>
<p>
<a rel="nofollow" href="http://xpra.org/">http://xpra.org/</a><br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544656/rss
2013-03-27T17:24:49+00:00Su-Shee
<div class="FormattedComment">
The Gtk3.x bindings with Perl are a nice example of what you get with GObject bindings. <br>
<p>
Also, if one compares Gtk2 code in Perl, Ruby and Python, the differences are seriously minor - after all you deal with widgets and callbacks. No reason why Perl couldn't deal with it nicely. <br>
<p>
Example in C, ported to Python:<br>
<p>
<a rel="nofollow" href="http://mikehearn.wordpress.com/2006/03/26/gtk-windows-with-alpha-channels/">http://mikehearn.wordpress.com/2006/03/26/gtk-windows-wit...</a><br>
<p>
which was the inspiration for a port 1:1 in Ruby:<br>
<p>
<a rel="nofollow" href="http://pastie.org/343287">http://pastie.org/343287</a><br>
<p>
which I ported to Perl:<br>
<p>
<a rel="nofollow" href="https://github.com/Su-Shee/perlsnippets/blob/master/alphademo.pl">https://github.com/Su-Shee/perlsnippets/blob/master/alpha...</a><br>
<p>
If you don't like Perl, don't use it. <br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544646/rss
2013-03-27T16:29:56+00:00boudewijn
<div class="FormattedComment">
Erm... I would hesitate to say that C++ is just some sort of C with classes, just like GTK uses. It's quite a bit more, and makes life quite a bit easier and high-level for the developer. Also, big, professional apps like Mari are written in Python (and use Qt, but that as an aside).<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544606/rss
2013-03-27T13:16:35+00:00Cyberax
<div class="FormattedComment">
Are Google Apps somehow 'unserious'?<br>
</div>
Wayland support
http://lwn.net/Articles/544601/rss
2013-03-27T12:43:09+00:00Company
<div class="FormattedComment">
My goal is to make GTK backend support runtime-switchable. So you can for example move your windows from an X server to a Wayland display.<br>
<p>
And once we can do that, we can also switch between X servers or Wayland servers. And at that point you can support something like screen for GUIs, so you don't need to shut down the application when you log off. Or even better, move the application to broadway while logged off, so you can connect to it from a web browser and see if it's still doing what it's supposed to (say a long running rendering in Pitivi) and act on it from your Galaxy phone.<br>
<p>
But no, we're not there yet. But it shouldn't be too hard if someone wanted to spend a few weeks on it.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544599/rss
2013-03-27T12:31:16+00:00Company
<div class="FormattedComment">
Apps yes, but nobody writes serious applications or toolkits in Javascript or similarly high-level languages. Qt, WebKit, Mozilla and Cocoa just like GTK use some sort of C with classes. And large applications such as Photoshop, Libreoffice or MS Office are the same thing.<br>
<p>
The highest level languages you get for large applications and toolkits is Java with Android or Eclipse. But even those frameworks often have a lot of code still written in C-like languages (like SWT). Even large web applications use things like GWT to get away from Javascript onto the Java level.<br>
<p>
So I'm not sure your argument holds much ground.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544597/rss
2013-03-27T11:57:29+00:00robert_s
<div class="FormattedComment">
Geez, anything almost.<br>
<p>
C++ can be very pleasant in this field. I hesitate to mention Qt here.<br>
<p>
Hell, even javascript (and I am no javascript lover) is better for UI code. And a scary amount of UI code is being written in javascript these days.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544590/rss
2013-03-27T10:57:01+00:00HelloWorld
<div class="FormattedComment">
<font class="QuotedText">> What does one use today according to that lot of people?</font><br>
Pretty much anything is better than C for UI code. Vala is fairly suitable as it provides language support for GObject and does automatic refcounting. C is actually among the worst legacy programming languages besides Cobol and Bourne Shell.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544587/rss
2013-03-27T09:25:18+00:00Company
<div class="FormattedComment">
What does one use today according to that lot of people? Because I have a hard time matching your statement with reality...<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544555/rss
2013-03-27T02:03:28+00:00Tarnyko
<div class="FormattedComment">
Win32 : we're basically finished with 3.4, 3.6 only needs a bit a reviewing and a 64-bit build. I'm looking into 3.8 right now, would be nice if I can compile broadwayd.<br>
<p>
OSX : guys from Lanedo have recently pushed lots of fixes and enhancements upstream. See corporate link : <a rel="nofollow" href="https://twitter.com/LanedoTweets/status/304561497009434625">https://twitter.com/LanedoTweets/status/304561497009434625</a>.<br>
<p>
Android : I have some ideas, though nothing ready yet. Pushing some bricks right now.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544526/rss
2013-03-26T22:21:14+00:00atai
<div class="FormattedComment">
gtk+ is a toolkit and it is not gtk+'s business to recommend (or not to recommend) a language<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544518/rss
2013-03-26T21:28:49+00:00drag
<div class="FormattedComment">
Hey now. Let's be nice to everybody.<br>
<p>
<p>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544515/rss
2013-03-26T21:02:27+00:00rahulsundaram
<div class="FormattedComment">
"these days" does mean "new apps", so yes, thats what I meant. <br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544507/rss
2013-03-26T19:35:26+00:00khc
<div class="FormattedComment">
maybe you meant most new GTK apps? Many (if not most or close to all) GTK apps I use day to day are written in C.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544504/rss
2013-03-26T19:14:33+00:00rahulsundaram
<div class="FormattedComment">
Most GTK apps (not libraries themselves) use Javascript, Python or Vala these days.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544487/rss
2013-03-26T18:34:00+00:00robert_s
<div class="FormattedComment">
You may find it similarly difficult to find a lot of people who think it's a good idea to write UI code in C, but that doesn't seem to stop the gtk developers.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544485/rss
2013-03-26T17:55:47+00:00patrick_g
And there is at least one <a href="http://gmusicbrowser.org/">superb application</a> using it.<br>
I really like gmusicbrowser because you can define the look and feel (with just one click) to mimic other applications (Rhythmbox, Exaile, etc).
GTK+ 3.8.0 released
http://lwn.net/Articles/544464/rss
2013-03-26T15:09:27+00:00niner
<div class="FormattedComment">
Well, you may also just be wrong.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544463/rss
2013-03-26T14:52:37+00:00hp
<div class="FormattedComment">
I don't think it would be most people's current recommendation for how to write a gtk app<br>
<p>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544461/rss
2013-03-26T14:52:21+00:00guillomovitch
<div class="FormattedComment">
Why ? According to <a href="http://gtk2-perl.sourceforge.net">http://gtk2-perl.sourceforge.net</a>, the perl bindings seem to be still maintained.<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544462/rss
2013-03-26T14:48:19+00:00hummassa
<div class="FormattedComment">
Why, did it stop working?<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544460/rss
2013-03-26T14:30:50+00:00hp
<div class="FormattedComment">
after 11 years (<a href="https://mail.gnome.org/archives/gnome-announce-list/2002-March/msg00026.html">https://mail.gnome.org/archives/gnome-announce-list/2002-...</a>) it might be time to remove the mention of Perl from the GTK+ release boilerplate ;-)<br>
<p>
</div>
Wayland support
http://lwn.net/Articles/544459/rss
2013-03-26T14:29:31+00:00hp
<div class="FormattedComment">
note that a GTK app may choose to use X APIs or X-dependent APIs directly, though, so it isn't guaranteed to work just because the app uses GTK. The app has to *only* use GTK.<br>
<p>
</div>
Wayland support
http://lwn.net/Articles/544448/rss
2013-03-26T10:43:51+00:00wingo
<div class="FormattedComment">
Run-time: <a href="https://developer.gnome.org/gdk3/3.0/GdkDisplayManager.html">https://developer.gnome.org/gdk3/3.0/GdkDisplayManager.html</a><br>
</div>
Wayland support
http://lwn.net/Articles/544446/rss
2013-03-26T10:16:03+00:00HelloWorld
<div class="FormattedComment">
Is that a compile-time or run-time option? I. e. can I just start a GTK+ application on Weston and expect it to work, or do I have to recompile GTK+?<br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544442/rss
2013-03-26T09:40:05+00:00talisein
<div class="FormattedComment">
There's an ongoing enormous thread on the gtk-devel list (Is GTK+ a cross-platform toolkit ?). The gist is that there is some promising forward movement on the win32 front, with the current focus on improving the build system so that more people become capable of actually testing Glib/Gtk in a timely manner. The most active developer seems to be doing his work here: <a href="http://www.tarnyko.net/repo/gtk3_build_system/">http://www.tarnyko.net/repo/gtk3_build_system/</a><br>
</div>
GTK+ 3.8.0 released
http://lwn.net/Articles/544437/rss
2013-03-26T08:45:45+00:00debacle
<p>Any word about the current state of win32 and OS X support?</p>
<p><small>Not to mention crazy ideas like Android :~)</small></p>