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 cal

Re: C vs C++ for GTK

2007-12-18 Thread Jon Harrop
On Wednesday 12 December 2007 15:19, Dan H wrote: > Jon Harrop <[EMAIL PROTECTED]> wrote: > > My recommendation is to choose a garbage collected language for GUI > > work as it makes everything so much easier. Lots of GCd languages > > have GTK bindings these days. > > Just for the record, garbage

Re: C vs C++ for GTK

2007-12-13 Thread Murray Cumming
On Thu, 2007-12-13 at 22:06 +0100, Dan H wrote: > On Thu, 13 Dec 2007 11:40:41 -0700 > Michael L Torrie <[EMAIL PROTECTED]> wrote: > > > Dan H wrote: > > > > Isn't "smart pointers" just a reference counting scheme? > > > > Yup. Poor-man's garbage collection. Turns out to be just the > > ticke

Re: C vs C++ for GTK

2007-12-13 Thread Dan H
On Thu, 13 Dec 2007 11:40:41 -0700 Michael L Torrie <[EMAIL PROTECTED]> wrote: > Dan H wrote: > > Isn't "smart pointers" just a reference counting scheme? > > Yup. Poor-man's garbage collection. Turns out to be just the > ticket, though, for GUI programming. Because of that, I'd put > product

Re: C vs C++ for GTK

2007-12-13 Thread Michael L Torrie
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 pointers and for GUI devel

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 ve

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 >> langu

Re: C vs C++ for GTK

2007-12-12 Thread Dan H
On Mon, 26 Nov 2007 16:48:05 + Jon Harrop <[EMAIL PROTECTED]> wrote: > My recommendation is to choose a garbage collected language for GUI > work as it makes everything so much easier. Lots of GCd languages > have GTK bindings these days. Just for the record, garbage collection (which is a go

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 quo

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

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

Re: C vs C++ for GTK

2007-11-27 Thread Junior Polegato - GTK+ & GTKmm
Alan Lake escreveu: > The question is, "Do you want to drive a car, customize a car or design a > car?" None is better than > the others. They are different disciplines. > Hi, I think like you. The best language is the one you know and solves your problem. See aMSN, where his mentor only stud

Re: C vs C++ for GTK

2007-11-27 Thread Dan H
On Mon, 26 Nov 2007 21:12:17 -0800 (PST) JAMES SCOTT <[EMAIL PROTECTED]> wrote: > When I have to write in C, Glib is a godsend. Yes! When I came back to C from C++ (I had done a large project for which C++ was ideally suited, but I like C much better) the thing I missed most was the STL. I was

Re: C vs C++ for GTK

2007-11-27 Thread Alan Lake
n Finland. Alan JAMES SCOTT wrote: > 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, Nove

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

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 project

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 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, thanks

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 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

Re: C vs C++ for GTK

2007-11-26 Thread Benoît Dejean
Le lundi 26 novembre 2007 à 12:04 +0100, Dan H a écrit : > 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 smal

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 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 > > p

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 improve

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 be

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

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 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 th

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, th

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. > >

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-24 Thread Patrick
Patrick wrote: > Hi Allin > > I have no interest in QT. > > Your points are very strong. > > If most of the free/libre software is in C then I better stick with C, > especially if learning C++ does not guarantee an understanding of > plain C. > > Thanks very much for your help, it's easy to keep

Re: C vs C++ for GTK

2007-11-24 Thread Allin Cottrell
On Sat, 24 Nov 2007, Patrick wrote: > 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

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 be

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 usual