Re: C or C++ for FOSS/linux?



In <en3652$bkv$1@xxxxxxxx> Jan Panteltje <pNaonStpealmtje@xxxxxxxxx> writes:

[del]
I mean it serious, yes I fail to see the beauty of C++.

I fail to see beauty in COBOL, fortran, LISP and prolog. It's just a
very subjective thing. Still, if a project requires it, or when the problem
looks like it will be easier & faster solvable with a certain language
I don't particular like, I'll do it.

Stroussup could not really program, that became clear to me after
reading his book. It needs too much text, to many :: and overloading
sucks and is for dummies.

Operator overloading is useful for template programming, IMHO. Think about
it - just for a minute ;-)

[del]

You mention Qt.
It is evil.
It (Qt4) took almost 4 hours to compile on a Duron 950.
I have no idea what it gives for that price,

You probably have to look again, no? Qt has been stuffed with all sorts
of things: SQL-libraries, screen editors, etc. pp. If you don't want
to build all that stuff, just disable it *before* running the compiler.

I use xforms,
it compiles in seconds, has only one small lib (libforms).
And has all the stuff I need and allows one to add stuff,
and is full GPL.

Because it concentrates solely on GUI. Qt contains a lot more than that
and is written as a whole platform. You are comparing apples with oranges
here. Besides, I don't really like Qt - not because it's bloated, for
which there are arguments, agreed, but because it reinvents the wheel
for basic types like strings (QString instead of STL-strings, for
instance). It does not make it faster as well.

And written in C, hasa fdesigng GUI designer to write C code for ye if
you cannot or do not want to write it yourself.
Qt 4 is the worst bloat I have seen in Linux since Linux 0.8 came out.

[del]
Maybe I should leave Qt, is KDE ported to QT4 already?
I hope not.
khexedit was about the only useful program in KDE for me.

KDE != Qt. You can use Qt for X in embedded contexts (which I have done,
yes) with a moderate (in a very modern sense) memory footprint. There's a
GPL embedded version available, too. BTW, I'm still using fvwm1.

But anyway, to respond to the original poster: if you want to code in
kernel context, C is the language of choice, because C++ is not allowed
in the kernel anyway.

For any other kind of programming under Linux, my advice would be to
choose the right language for solving the problem. This may be a scripting
language like python, perl, ruby, awk, shell scripts, etc. or a classical
compiler language like C, C++, java, mono, whatever. Study the problem,
check out what the main features of your program should be and then choose
the right language for implementing them, without any prejudices, politics
and without noticing flames from the outside world.

After all, programming open source should be fun, right?

CU,
Uli
--
Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@xxxxxx
Stormweg 24 |listening to: Cauchemar (Opération S)
24539 Neumuenster, Germany|Good Looks, Big Deal (Sweatmaster)
.



Relevant Pages

  • Re: [EGN] Numerical Accuracy
    ... The advice worked because in fact the Microsoft compiler had a bug. ... The capabilities of the optimizer are not so ... The language standard itself says ... of "programming" as a nonprofession. ...
    (comp.programming)
  • Re: Learning C++?
    ... >> abide such rules or there are people who don't know the rules. ... > programming is excellent, and its object-oriented support is quite ... code, like Java or Ada or what else, but no language can prevent the ... This is also something the compiler should be ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Beyond CL?
    ... around in the internals of the language. ... as the programmable programming language; ... Eventually a bank of many users' optimizations could be ... approach the fabled "sufficiently smart compiler". ...
    (comp.lang.lisp)
  • Re: Error message about my user defined type
    ... write a compiler that allow a true VB7 to run on the .Net platform ... > COM programming all day long. ... > wide available to any programming language who wants to use them. ... > other than using the CLR and the MSIL. ...
    (microsoft.public.vb.general.discussion)
  • Re: Error message about my user defined type
    ... the type lib delivers to the compiler all necessary information ... COM programming all day long. ... wide available to any programming language who wants to use them. ... CLR and the MSIL. ...
    (microsoft.public.vb.general.discussion)