R
Richard Tobin
Rob Kendrick said:I can't help but notice that net.lang.c isn't the group we're having this
discussion in.
Yes it is. The great renaming was (surprise!) a renaming.
-- Richard
Rob Kendrick said:I can't help but notice that net.lang.c isn't the group we're having this
discussion in.
Martin Wells said:The C Standard says that "int" and "unsigned" will be the "natural"
integer types, the quickest ones.
If presented as a portable program that will produce correct output on anyRichard Heathfield said:Kelsey Bjarnason said:
[snips]
Harald van Dijk found one, I found another, so can you find a third?
Actually, I believe I have pointed out errors in stuff posted by Good
Mister Heathfield on more than one occasion.
I don't doubt it, for I am far from infallible - but I think Malcolm was
referring to the program I showed upthread as being a (mildly flawed)
example of a program that seems portable on the surface, but which
contains a handful of non-portable assumptions.
Harald van Dijk found a bug in the code. Malcolm claims he found
another, but I can't find any reference to it. Malcolm /may/ have meant
that he has identified one of the non-portable assumptions.
The campaign for 64 bit ints is a campaign for the future of C, but it isJoe Wright said:Ed Jensen wrote:
I think comp.std.c is the appropriate place to discuss the future of
Standard C.
jacob navia said:YES!
But according to Heathfield and co, this is now forbidden because...
Well, because they decided so.
int would be 64 bits. However char would still be an octet and short wouldjacob navia said:Chris Dollin wrote:
True, everything would be much simpler (this is the reason why
Malcolm advocates this I think), but the lost of flexibility would
be enormous.
Besides, in small machines, C would not even run: it wouldn't have
enough RAM to load the program!
Keith said:Apparently you believe that everything currently discussed in
comp.std.c should instead be discussed in comp.lang.c. Apparently you
believe that comp.std.c should never have been created, and should
have no traffic.
Because you decided so.
Some people can't read. "Not uncommonly" implies that there are some apps
for which this is not true. Of course there are.
However more often than not the complexity of the user interface
determines the amount of effort required to write a program, for desktop
apps at least.
Most of what we want to do with computers is
computationally quite trivial.
The difficulty is in presenting the
information to the user and letting him manipulate it in an intuitive
way.
The campaign for 64 bit ints is a campaign for the future of C, but it is
not a campaign to change the standard.
Where can one find the original charters for both comp.lang.c and
comp.std.c?
Before a proposal [for some change to C] is presented to the
standard,
it is much better to discuss it informally among interested people.
THEN, it can be presented to the committee.
If presented as a portable program that will produce correct output on
any conforming implementation, it is bugged, because an array of
UCHAR_MAX is not guaranteed to fit in available stack space, sorry,
automatic memory. However if you restrict it to 8 bit char platforms,
by far the most common, it is OK.
What I want to retain from 1982 is the openness to new ideas. The
attitude that doesn't deny change or improvements per se.
Before a proposal is presented to the standard, it is much better to
discuss it informally among interested people.
THEN, it can be presented to the committee.
But according to Heathfield and co, this is now forbidden because...
Well, because they decided so.
It says "natural"; it does *not* say "quickest".
Ed said:Where can one find the original charters for both comp.lang.c and
comp.std.c?
Don't forget the important part of what I said:People in positions to do something about it,
do participate in that newsgroup regularly.
No, it's a campaign for people implementing the standard to make int 64Kelsey Bjarnason said:So how do you ensure C will have 64 bit ints, unless you mandate this in
the standard?
Oh, right, you can't. So it *is* a campaign to change the standard, to
mandate 64-bit ints.
I'm sure all the people using and developing 16-bit, 32-bit and 128-bit
implementations will love this idea.
int would be 64 bits. However char would still be an octet and short
would be 16 bits. In practical terms we will also have to introduce a 32
bit type.
However the fact they are not called "int" discourages people from using
them, unless they really need the extra speed or memory efficiency.
The software problem is not usually that processors are not fast enough.
It is that software modules are not sufficiently standardised, leading
to endless reduplication of effort, and erros as parts are fitted together.
However 64 bit ints are not the perfect solution,
in the sense that
there are no good arguments agiant them.
One of which is that the raison
d' etre of C is a very efficient language. If int is not in fact the
most efficent integer type, that is a big sacrifice to make.
However
rewritng everything with size_t's isn't going to solve that problem.
There will still be lots of 64 integers in play, but everything else
will break, as we have two standards for a general-purpose integer.
jacob navia said:Before a proposal is presented to the standard, it is much better to
discuss it informally among interested people.
THEN, it can be presented to the committee.
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.