Re: C vs C++ for GTK

2007-12-18 Thread Jon Harrop
On Thursday 13 December 2007 08:28, Dan H wrote: On Wed, 12 Dec 2007 09:26:25 -0700 Michael L Torrie [EMAIL PROTECTED] wrote: GTKmm is based on some very nice C++ abstractions around pointers, providing many of the same benefits as any managed language with pure C++. They are called smart

Re: C vs C++ for GTK

2007-12-13 Thread Dan H
On Wed, 12 Dec 2007 09:26:25 -0700 Michael L Torrie [EMAIL PROTECTED] wrote: GTKmm is based on some very nice C++ abstractions around pointers, providing many of the same benefits as any managed language with pure C++. They are called smart pointers and for GUI development, they work very

Re: C vs C++ for GTK

2007-12-12 Thread Jon Harrop
On Saturday 24 November 2007 22:11, Patrick wrote: Hi Everyone. Sorry for the flame war bait, I know how passionate language debates get but I need some guidance. I am using PyGTK right now and I am happy with it, but a day is coming soon were the speed limitations... You might like to look

Re: C vs C++ for GTK

2007-12-12 Thread Daniel Dieterle
On Mon, 2007-11-26 at 16:48 +, Jon Harrop wrote: On Saturday 24 November 2007 22:11, Patrick wrote: I thought that C++ must be the way to go as it can do everything that C can plus plus but some heavy hitters don't seem enthused with it, Linus Torvalds in particular has been quoted as

Re: C vs C++ for GTK

2007-12-12 Thread Jon Harrop
On Saturday 24 November 2007 22:11, Patrick wrote: I thought that C++ must be the way to go as it can do everything that C can plus plus but some heavy hitters don't seem enthused with it, Linus Torvalds in particular has been quoted as calling it a horrible language. IIRC, Linus said that

Re: C vs C++ for GTK

2007-12-12 Thread Michael L Torrie
Jon Harrop wrote: On Saturday 24 November 2007 22:11, Patrick wrote: I thought that C++ must be the way to go as it can do everything that C can plus plus but some heavy hitters don't seem enthused with it, Linus Torvalds in particular has been quoted as calling it a horrible language.

Re: C vs C++ for GTK

2007-11-27 Thread Alan Lake
: Michael, Thanks for the feedback, it seems we are on the same page on several counts. James, - Original Message From: Michael L Torrie [EMAIL PROTECTED] To: gtk-app-devel-list@gnome.org Sent: Monday, November 26, 2007 5:32:22 PM Subject: Re: C vs C++ for GTK JAMES SCOTT wrote

Re: C vs C++ for GTK

2007-11-26 Thread Neil Bird
Around about 25/11/07 12:31, Benoît Dejean typed ... I've switched gnome-system-monitor to C++ and i'm very happy with it. Just out of interest, did you choose GTKmm or C++ with vanilla GTK+? I'm looking at doing some GTK from C++ (I've previously only really used GTK+ from C), and on

Re: C vs C++ for GTK

2007-11-26 Thread Dan H
On Sun, 25 Nov 2007 00:03:14 +0100 Tomas Carnecky [EMAIL PROTECTED] wrote: Am I limited with C? No, there are very few features in C++ that are hard/impossible to imitate in C, but you usually won't need those for small projects. In fact the GObject library (on which GTK is based) is an

Re: C vs C++ for GTK

2007-11-26 Thread Gian Mario Tagliaretti
2007/11/24, Patrick [EMAIL PROTECTED]: Hi Patrick, I can only spend 8-12 hours a week programming, I am not a professional programmer, is C++ to complicated? Is C going out of date? Am I limited with C? Before to switch to a new language are you sure that python is so slow that you can't use

Re: C vs C++ for GTK

2007-11-26 Thread Fernando Apesteguía
On 11/25/07, Benoît Dejean [EMAIL PROTECTED] wrote: Le dimanche 25 novembre 2007 à 00:03 +0100, Tomas Carnecky a écrit : Patrick wrote: is C++ to complicated? C++ is more complex than C, and thus harder to fully understand. Is C going out of date? No, it's still being used for lots

Re: C vs C++ for GTK

2007-11-26 Thread Benoît Dejean
Le lundi 26 novembre 2007 à 15:56 +0100, Fernando Apesteguía a écrit : On 11/25/07, Benoît Dejean [EMAIL PROTECTED] wrote: I've switched gnome-system-monitor to C++ and i'm very happy with it. It's still 95% Gtk + 5% Gtkmm Two questions about the sentence above: - What improvements or

Re: C vs C++ for GTK

2007-11-26 Thread Benoît Dejean
Le dimanche 25 novembre 2007 à 10:47 +0100, Tomas Carnecky a écrit : Allin Cottrell wrote: One reason for going with C is that the great bulk of free software is in C, including GLib and GTK. The main exception is Qt, the basis for KDE. So if you might want to get into KDE

Re: C vs C++ for GTK

2007-11-26 Thread Benoît Dejean
Le lundi 26 novembre 2007 à 08:39 +, Neil Bird a écrit : Around about 25/11/07 12:31, Benoît Dejean typed ... I've switched gnome-system-monitor to C++ and i'm very happy with it. Just out of interest, did you choose GTKmm or C++ with vanilla GTK+? As i didn't start from scratch,

Re: C vs C++ for GTK

2007-11-26 Thread Michael L Torrie
Benoît Dejean wrote: In fact the GObject library (on which GTK is based) is an example of how full object-orientation can be achieved in C. Of course other C++ features like templates, operator overloading (ugh!) and namespaces are unique. This is totally a blocker for beginners. I've

Re: C vs C++ for GTK

2007-11-26 Thread Michael L Torrie
Patrick wrote: Hi Everyone. Sorry for the flame war bait, I know how passionate language debates get but I need some guidance. I am using PyGTK right now and I am happy with it, but a day is coming soon were the speed limitations and less-then-straight-forward threading will be an

Re: C vs C++ for GTK

2007-11-26 Thread Patrick
Hi Micheal Indeed, good advice! I am planning on using Python for everything I can. I just need a little extra speed for data collection and threading during collection. I think I will learn C so that I can re-use code from other open source projects. All of this advice has been great,

Fw: C vs C++ for GTK

2007-11-26 Thread JAMES SCOTT
- Forwarded Message From: JAMES SCOTT [EMAIL PROTECTED] To: Michael L Torrie [EMAIL PROTECTED] Sent: Monday, November 26, 2007 2:37:18 PM Subject: Re: C vs C++ for GTK To list members following this subject: I have a question - not a flame, as I try to understand the diversity

Re: C vs C++ for GTK

2007-11-26 Thread Michael L Torrie
JAMES SCOTT wrote: To list members following this subject: I have a question - not a flame, as I try to understand the diversity of responses to this topic. How many of you who have suggested Patrick learn something other than C, know C already for yourself. Over the course of my

Re: C vs C++ for GTK

2007-11-26 Thread Chris Vine
On Mon, 2007-11-26 at 12:04 +0100, Dan H wrote: On Sun, 25 Nov 2007 00:03:14 +0100 Tomas Carnecky [EMAIL PROTECTED] wrote: Am I limited with C? No, there are very few features in C++ that are hard/impossible to imitate in C, but you usually won't need those for small projects. In

Re: C vs C++ for GTK

2007-11-26 Thread JAMES SCOTT
Michael, Thanks for the feedback, it seems we are on the same page on several counts. James, - Original Message From: Michael L Torrie [EMAIL PROTECTED] To: gtk-app-devel-list@gnome.org Sent: Monday, November 26, 2007 5:32:22 PM Subject: Re: C vs C++ for GTK JAMES SCOTT wrote

Re: C vs C++ for GTK

2007-11-25 Thread Tomas Carnecky
Allin Cottrell wrote: One reason for going with C is that the great bulk of free software is in C, including GLib and GTK. The main exception is Qt, the basis for KDE. So if you might want to get into KDE programming, maybe learning C++ would be better. You can use gtk in C++, there's

Re: C vs C++ for GTK

2007-11-25 Thread Tomas Carnecky
Tomas Carnecky wrote: Allin Cottrell wrote: One reason for going with C is that the great bulk of free software is in C, including GLib and GTK. The main exception is Qt, the basis for KDE. So if you might want to get into KDE programming, maybe learning C++ would be better. You can

Re: C vs C++ for GTK

2007-11-25 Thread Benoît Dejean
Le dimanche 25 novembre 2007 à 00:03 +0100, Tomas Carnecky a écrit : Patrick wrote: is C++ to complicated? C++ is more complex than C, and thus harder to fully understand. Is C going out of date? No, it's still being used for lots of projects. Am I limited with C? No, there are

C vs C++ for GTK

2007-11-24 Thread Patrick
Hi Everyone. Sorry for the flame war bait, I know how passionate language debates get but I need some guidance. I am using PyGTK right now and I am happy with it, but a day is coming soon were the speed limitations and less-then-straight-forward threading will be an issue. I figure my next

Re: C vs C++ for GTK

2007-11-24 Thread Tomas Carnecky
Patrick wrote: is C++ to complicated? C++ is more complex than C, and thus harder to fully understand. Is C going out of date? No, it's still being used for lots of projects. Am I limited with C? No, there are very few features in C++ that are hard/impossible to imitate in C, but you usually

Re: C vs C++ for GTK

2007-11-24 Thread Chris Sparks
Not trying to start a language flame war but I always prefer Ada. And no it hasn't gone away either! ;-) Chris Patrick wrote: is C++ to complicated? C++ is more complex than C, and thus harder to fully understand. Is C going out of date? No, it's still being used for