P
Paul Mesken
I do hope that MSVC++.not programmer was intentional. If not, it was
a magnificently freudian typo.
It's not a typo, ".not" is like windoze and Micro$oft
I do hope that MSVC++.not programmer was intentional. If not, it was
a magnificently freudian typo.
Lawrence said:Extrnal libraries could even be written in standard C. But they are only
well defined and portable in the comp.lang.c sense if their source code is
available and considered to be part of the program under consideration.
It is not standard but it is just an external library.
External libraries are allowed of course!
External libraries can be very portable. Mr Boehm's GC
runs under Unix, windows, and many other OSes.
Just a clarification. Do you mean that only C is allowed <...>
Note that if your implementation provides garbage collection as an
extension, you have to exercise some discipline to use it. Not as
much discipline as what's required to use malloc/free properly, but GC
can potentially break some valid C programs. (The cases I can think
of involve storing a pointer value as a disconnected sequence of
bytes, thus hiding it from the GC system, and then reconstructing it;
there may be other cases I can't think of.)
Michael said:The point is
that there are a handful of ways in which conforming C programs can
hide a pointer value from a collector and recover it later.
Is that because objects reduce the amount of code or because objects are
easier to deal with at this level?
C is obsolete.
C++ was designed to replace C
and that seems to be what is happening.
jacob navia said:If they use the collector and do that, those programs will crash.
Who cares?
English lesson.Emmanuel Delahaye said:Yes. Sorry for being unclear.
What I constantly harp on about is the timewasting potential of computers.Martin Johansen said:Is C still the language of choice for serious programming?
Which businesses favour C, e.g. game, driver, os, device or even web
developement?
Is C on the decline?
English lesson.
"C is not an option" means "C may not be used".
"C is not optional" means we may not refuse to use C.
I can knock together an algorithm in C basically as fast as I can type. Use
any other language and you spend time playing with its features, making this
virtual or overloading the equals method for that class or trying out fancy
loops in another language that allows snappy syntax for reading from files.
In other words wasting time.
That's the trap everyone falls into with computers.Paul Mesken said:I agree that this is a danger of learning a new language (especially
with C++) but I believe this desire to be a natural part of learning a
new language (or any new thing) and, thus, a transitory thing.
The source code of Mr Boehm's GC is available everywhere.
Lawrence said:If iot is written in standard, portable C, and you make its source code
part of the source code of your application then fine.
Lawrence
The code of Mr Boehm is his property. I do not want to make
a parallel distribution of his code.
The code is available at request from me of course, but it is better
to get it from the official distribution.
The code is system code of course. Standard C doesn't cover virtual
memory, threads, and many other things, so it is written in C, but
not exclusively in ANSI C, specially because it uses low level
system calls.
E. Robert Tisdale said:Good programmers "cause" better programming discipline.
C is obsolete.
In may areas yes. However in many areas C++ can not replace CC++ was designed to replace C
and that seems to be what is happening.
Paul said:I think discipline is even more important with languages that are not
OOP. But for medium to big projects (those that result in more than
10,000 lines of code, to give a rough idea) I'd favor C++.
I'd say writing device drivers, OS, embedded systems, etc. A lot of
games are written in C++ nowadays (and often some Assembly is thrown
in). There are specialized languages for web development. I wouldn't
want to make a site with C.
C has a lot of competition of C++. At least where I live, companies
hardly ever ask for C programmers anymore but there is a substantial
demand for C++ programmers.
Martin Johansen said:Hey guys
Since C is my language of choice for almost any kind of application, I'd
like to know what the status of C is around the world today.
And I am ofcourse not talking about C++ or C#. I think the lack of object
orientation and garbage collection causes better programming discipline
needed for harder projects anyway.
Is C still the language of choice for serious programming?
Which businesses favour C, e.g. game, driver, os, device or even web
developement?
Is C on the decline?
Thanks!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.