C
Chris H
Ian Collins said:Yet the standard includes _Complex and all that wonderful stuff in
<tgmath.h> that programmers of 8 bit micros had (not) been crying out for.
Which explains the rapid take up of C99....
Ian Collins said:Yet the standard includes _Complex and all that wonderful stuff in
<tgmath.h> that programmers of 8 bit micros had (not) been crying out for.
Bartc said:DVD players with no graphics are not going to be too popular...
The graphics (video display) is either built-in (to a screen), or
present in the video output.
rahul said:
Really? Okay, pretend I'm from Missouri - show me a Java program that can
open a network connection on my 80286 (which has no IP stack, no network
card, and no Java implementation).
Fine. When you are writing for DVD player, you can pretend C has noMany systems that C excels in targetting (embedded micros) often do not
have *any* support for network, graphics etc, (think micros in your car
engine or DVD player).
How come? If an implementation X does not have support for networking,If the C Standard codified interfaces for networking or graphics they
would either have to be left out on implementations targetting these
platforms (thus non-confirming), or create stubs and no-ops for these
routines. Both will break source code portability.
There is a great difference; but portable libraries do exist. And byThere is a very great difference (in terms of magnitude) between
implementing basic arithmetic operations and something like a portable
graphics library.
You generally do not write a TCP/IP protocol stack or a rasterUnfortunately learning only one (or a few) language and expecting it to
provide built-in routines to solve all problems is an easy trap to fall
Bartc said:DVD players with no graphics are not going to be too popular...
Chris H said:None of the DVD players in my PC's have a screen...
Richard Heathfield said:rahul said:
Just because ISO says "here is a standard set of networking functions",
that does NOT mean that hardware manufacturers are suddenly obliged to put
networking hardware onto their engine management system or washing machine
or programmable calculator. The lack of portability is a fact of life.
Bartc said:I was once at a talk by Vint Cerf (the internet guy) who suggested that
nearly everything in the future will be connected to the internet. Even
socks (so that you can always find the missing one of a pair; exactly how
I'm not sure, perhaps they have gps too).
So washing machines and every other household appliance will almost
certainly be on-line.
It might be about time then to incorporate networking into C, before it gets
left behind.
Well, I was talking about Graphical User Interfaces (GUI), not raw
audio/video processing.- Hide quoted text -
Bartc said:DVD players with no graphics are not going to be too popular...
The graphics (video display) is either built-in (to a screen), or
present in the video output.
CBFalconer said:You need to realize what you are talking about. First, actually
develop at least one, preferably six, complete such graphics or DVD
Bartc said:I was just pointing out that DVD /players/ (as opposed to mere optical
drives) are quite likely to have graphics hardware incorporated. I
wasn't proposing anything.
santosh said:Bartc wrote:
Ah, we misunderstood it seems. I was talking about DVD drives. Anyway,
it's beside the point, which is that there are many gadgets and systems
that use primitive processors that would be quite unable to support
anything beyond a freestanding C implementation.
Even systems that can support current hosted implementations might not
be able to support a future hosted implementation that aims to conform
to a Standard that requires support for network, graphics, threading
etc. One example that comes to mind is DOS, but I'm sure that there are
others too.
Besides, there already are de facto and actual standards for such tasks
which are reasonably widely implemented and I doubt that anything that
WG14 could codify would surpass these in terms of implementations or
portability. WG14 can just wave a wand and do magic, implementors must
feel motivated to follow, and after C99...
Bartc said:I don't use networking or threads but graphics would be nice to have
in a /simple/ package, not something monstrous like GTK; quote from
the webpage:
"You will need to get the GLib, cairo, Pango, ATK, GTK+,
gettext-runtime, libpng, libjpeg, libtiff and zlib developer packages
to build against GTK+, and the corresponding runtime packages to run
GTK+ programs." Oh, is that all?
All I want is something only slightly more advanced than readpixel()
and writepixel(). And by simple I suggest *one* include file and *one*
dll file (or equivalent).
The GTK download seems to contain about 1800 files.
santosh said:Bartc wrote:
Well GTK does do a *lot* for you. If you wanted to do all that yourself,
Ah, if that's all that you want, you ought to be able to write it
youself for the platforms that interest you.
Bartc said:Sure, but for quick, basic stuff?
Well I have done that (although my platform Windows GDI seems to go
out of it's way to make things as difficult as possible).
For basic graphics (forget GUI and imaging and whatever), wouldn't it
great if, as well as stdout, there was say stdwind (or some such
name), with half-a-dozen or a dozen functions to display graphics on
it, and maybe even working with fprintf()? Then we could have output a
little more interesting than printf() gives, and with very little
effort.
santosh said:True, though tgmath.h isn't required under freestanding implementations.
Serve said:Always the same discussion. First somebody claims something is not
portable because it doesnt work on some arcane system. Then somebody
else brings in something from the current standard that doesnt work on
that same system either. And then the talk about hosted/freestanding
starts.
So we have an easy fix then. Just add to the standard:
*networking support is not required under freestanding
implementations*
Richard said:I don't understand why you make an exception for lcc-win - its maintainer's
attitude towards the Standard seems to be an idyllic combination of
ignorance and contempt.
> I don't understand why you make an exception for lcc-win - its
> maintainer's
> attitude towards the Standard seems to be an idyllic combination of
> ignorance and contempt.
jacob said:Richard Heathfield wrote:
I have worked now something like 10 years implementing the C99
standard. Library, syntax, headers, it is an enormous amount of work.
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.