473,385 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C container and persistent library ?

Hello,

i have a few program parts that need a downgrade from C++ to C.

I looked at it and while emulating the class system manually is not
that hard, i really miss my templates and container types. Is there
any any library for c that has generic (aka void* pointer)
hashtables, linked lists and maybe btree's ? If there is a way to read/
write such containers to disk it would be perfect.

Google didn't found anything but i can't believe that all you are
rewritting this code all the time.

Mar 2 '07 #1
45 1783
llothar <ll*****@web.dewrote:
[ ... ] Is there
any any library for c that has generic (aka void* pointer)
hashtables, linked lists and maybe btree's ? If there is a way to read/
write such containers to disk it would be perfect.
You might try glib, http://www.gtk.org/api/2.6/glib/index.html .

--
pa at panix dot com
Mar 3 '07 #2
On Mar 2, 3:43 pm, "llothar" <llot...@web.dewrote:
Hello,

i have a few program parts that need a downgrade from C++ to C.

I looked at it and while emulating the class system manually is not
that hard, i really miss my templates and container types. Is there
any any library for c that has generic (aka void* pointer)
hashtables, linked lists and maybe btree's ? If there is a way to read/
write such containers to disk it would be perfect.

Google didn't found anything but i can't believe that all you are
rewritting this code all the time.
I like these:
http://eternallyconfuzzled.com/jsw_home.aspx

This is always an easy bet:
http://sourceforge.net/search/index.php

Wiki almost always has code links:
http://en.wikipedia.org/wiki/Hash_table
http://en.wikipedia.org/wiki/Linked_list
http://en.wikipedia.org/wiki/Btree

Or google:
http://www.google.com/search?sourcei...algorithm+code

or whatever. It doesn't take much moxie to find this stuff.

Mar 3 '07 #3
On Mar 2, 4:59 pm, "user923005" <dcor...@connx.comwrote:
It doesn't take much moxie to find this stuff.
But finding it does take the fun out of writing it
yourself, which is what C is all about. Can you
really call yourself a C programmer if you haven't
implemented a generic self-serializing hashtable?

-bluejack
Mar 3 '07 #4
bluejack wrote:
On Mar 2, 4:59 pm, "user923005" <dcor...@connx.comwrote:
>It doesn't take much moxie to find this stuff.

But finding it does take the fun out of writing it
yourself, which is what C is all about. Can you
really call yourself a C programmer if you haven't
implemented a generic self-serializing hashtable?
Rather you can call yourself a *good* programmer if you
have implemented a *good* hash table.
Mar 3 '07 #5
llothar wrote:
>
i have a few program parts that need a downgrade from C++ to C.

I looked at it and while emulating the class system manually is not
that hard, i really miss my templates and container types. Is there
any any library for c that has generic (aka void* pointer)
hashtables, linked lists and maybe btree's ? If there is a way to
read/write such containers to disk it would be perfect.

Google didn't found anything but i can't believe that all you are
rewritting this code all the time.
You mean you didn't enter a suitable search. As far as hashtables
are concerned, see hashlib.zip, found at:

<http://cbfalconer.home.att.net/download/>

which puts virtually no restrictions on the type of data stored.
Licensed under GPL, unless you negotiate another license.

For btrees etc. look for Ben Pfaff.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
Mar 3 '07 #6
llothar wrote:
Hello,

i have a few program parts that need a downgrade from C++ to C.
You misspelled "upgrade". Try trolling elsewhere.

Mar 3 '07 #7
On 2 Mar 2007 15:43:04 -0800, in comp.lang.c , "llothar"
<ll*****@web.dewrote:
>Hello,

i have a few program parts that need a downgrade from C++ to C.
You mean it needs to be ported to a platform that doesn't support C...
(you wont win friends here by implying that C is an inferior cousin to
C++)
>I looked at it and while emulating the class system manually is not
that hard, i really miss my templates and container types. Is there
any any library for c that has generic (aka void* pointer)
hashtables, linked lists and maybe btree's ? If there is a way to read/
write such containers to disk it would be perfect.
C++ which relies extemsively on templates and the STL is going to be
hard to port. I would suggest that you determine the algo you need to
implement, and rewrite it.
>Google didn't found anything but i can't believe that all you are
rewritting this code all the time.
Porting from C++ to C is probably pretty rare.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Mar 3 '07 #8
You mean it needs to be ported to a platform that doesn't support C...
(you wont win friends here by implying that C is an inferior cousin to
C++)
Exactly i want to port to HPUX but don't want to send the huge cheque
to HP for there C++
compiler. It's not the topic of this posting - but i see it as a
downgrade - yes.

And because it is a system extension for the ruby scripting language
it is more natural to use only C.
Google didn't found anything but i can't believe that all you are
rewritting this code all the time.

Porting from C++ to C is probably pretty rare.
If you enter "C container library" or something like this you see that
google makes no difference between C++ and C. I only found C++
references, thats why i asked.

Mar 3 '07 #9
llothar wrote:
>>You mean it needs to be ported to a platform that doesn't support C...
(you wont win friends here by implying that C is an inferior cousin to
C++)

Exactly i want to port to HPUX but don't want to send the huge cheque
to HP for there C++
<OT>then use gcc and its "their"</OT>

--
Ian Collins.
Mar 3 '07 #10
Yevgen Muntyan <mu****************@tamu.eduwrites:
bluejack wrote:
>On Mar 2, 4:59 pm, "user923005" <dcor...@connx.comwrote:
>>It doesn't take much moxie to find this stuff.

But finding it does take the fun out of writing it
yourself, which is what C is all about. Can you
really call yourself a C programmer if you haven't
implemented a generic self-serializing hashtable?

Rather you can call yourself a *good* programmer if you
have implemented a *good* hash table.
And you can call yourself a *smart* programmer if you can find and use
a good hash table that somebody else has already written.

That's assuming your goal is to get the program working. If your goal
is to learn how to implement a good hash table, then of course
implementing it yourself is the only smart way to go.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Mar 3 '07 #11
"llothar" <ll*****@web.dewrites:
>You mean it needs to be ported to a platform that doesn't support C...
(you wont win friends here by implying that C is an inferior cousin to
C++)

Exactly i want to port to HPUX but don't want to send the huge cheque
to HP for there C++
compiler. It's not the topic of this posting - but i see it as a
downgrade - yes.
<OT>
gcc is free, it supports both C and C++, and it should work on HPUX.
</OT>

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Mar 3 '07 #12
llothar wrote, On 03/03/07 17:18:
>You mean it needs to be ported to a platform that doesn't support C...
(you wont win friends here by implying that C is an inferior cousin to
C++)

Exactly i want to port to HPUX but don't want to send the huge cheque
to HP for there C++
<OT>
Try gcc then.
</OT>

<snip>
>>Google didn't found anything but i can't believe that all you are
rewritting this code all the time.
Porting from C++ to C is probably pretty rare.

If you enter "C container library" or something like this you see that
google makes no difference between C++ and C. I only found C++
references, thats why i asked.
Generally the best way to implement things of significant complexity in
C is not the same as in C++, so if you have to do it in C you are better
off looking at the problem fresh to see what the best way of
implementing it in C is.
--
Flash Gordon
Mar 3 '07 #13
<OT>
gcc is free, it supports both C and C++, and it should work on HPUX.
</OT>
The ruby interpreter comes compiled with HP C compiler, don't want to
run into problems linking HP and GCC executables.
And much more important gcc is generating very slow code, that hurts
on this old PA-RISC machines.

Mar 3 '07 #14
Ian Collins said:
llothar wrote:
>>>You mean it needs to be ported to a platform that doesn't support
C... (you wont win friends here by implying that C is an inferior
cousin to C++)

Exactly i want to port to HPUX but don't want to send the huge cheque
to HP for there C++

<OT>then use gcc and its "their"</OT>
If you're going to flame someone else's grammar, at least get your own
grammar right. It's "it's", not "its". "Its X" means "the X belonging
to it", whereas "it's X" is a contraction of "it is X" or "it has X".
You are also missing a comma.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 3 '07 #15
On 3 Mar 2007 09:18:28 -0800, in comp.lang.c , "llothar"
<ll*****@web.dewrote:
>You mean it needs to be ported to a platform that doesn't support C...
(you wont win friends here by implying that C is an inferior cousin to
C++)

Exactly i want to port to HPUX but don't want to send the huge cheque
to HP for there C++
why not install a free one?
>compiler. It's not the topic of this posting - but i see it as a
downgrade - yes.
then you're likely to find little sympathy in Comp.lang.c.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Mar 3 '07 #16
Richard Heathfield wrote:
Ian Collins said:

>>llothar wrote:
>>>>You mean it needs to be ported to a platform that doesn't support
C... (you wont win friends here by implying that C is an inferior
cousin to C++)

Exactly i want to port to HPUX but don't want to send the huge cheque
to HP for there C++

<OT>then use gcc and its "their"</OT>


If you're going to flame someone else's grammar, at least get your own
grammar right. It's "it's", not "its". "Its X" means "the X belonging
to it", whereas "it's X" is a contraction of "it is X" or "it has X".
You are also missing a comma.
It wasn't a flame, I was correcting a word, not the grammar. My intent
was to help the OP with a common English mistake, not flame.

When I was at school, we were told never to precede and with a comma.

--
Ian Collins.
Mar 3 '07 #17
On 3 Mar 2007 14:19:33 -0800, in comp.lang.c , "llothar"
<ll*****@web.dewrote:
><OT>
gcc is free, it supports both C and C++, and it should work on HPUX.
</OT>

The ruby interpreter comes compiled with HP C compiler, don't want to
run into problems linking HP and GCC executables.
Shouldn't be any. This is still your best bet, and you should probably
ask in a gcc group for more info,
>And much more important gcc is generating very slow code, that hurts
on this old PA-RISC machines.
Same comment.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Mar 3 '07 #18
Ian Collins wrote:
llothar wrote:
>>You mean it needs to be ported to a platform that doesn't
support C... (you wont win friends here by implying that C is
an inferior cousin to C++)

Exactly i want to port to HPUX but don't want to send the huge
cheque to HP for there C++

<OT>then use gcc and its "their"</OT>
I suspect llothar is not a native English speaker, and is doing
pretty well with the language. The crying shame is the native
speakers who can't use grammar and can't spell.

GCC is probably better than HPUX anyhow. Just guessing, no
experience with HPUX.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
Mar 4 '07 #19
Richard Heathfield wrote:
Ian Collins said:
.... snip ...
>>
<OT>then use gcc and its "their"</OT>

If you're going to flame someone else's grammar, at least get your
own grammar right. It's "it's", not "its". "Its X" means "the X
belonging to it", whereas "it's X" is a contraction of "it is X"
or "it has X". You are also missing a comma.
I think there is a strong correlation (among native English
speakers) between correct grammar/spelling, and programming
ability.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
Mar 4 '07 #20
CBFalconer wrote:
Ian Collins wrote:
llothar wrote:
>You mean it needs to be ported to a platform that doesn't
support C... (you wont win friends here by implying that C is
an inferior cousin to C++)

Exactly i want to port to HPUX but don't want to send the huge
cheque to HP for there C++
<OT>then use gcc and its "their"</OT>

I suspect llothar is not a native English speaker, and is doing
pretty well with the language. The crying shame is the native
speakers who can't use grammar and can't spell.

GCC is probably better than HPUX anyhow. Just guessing, no
experience with HPUX.
I'm surprised that HPUX doesn't come bundled with a C compiler, since
most UNIX systems do.

Mar 4 '07 #21
santosh wrote:
CBFalconer wrote:
>>
GCC is probably better than HPUX anyhow. Just guessing, no
experience with HPUX.

I'm surprised that HPUX doesn't come bundled with a C compiler, since
most UNIX systems do.
Not any more.

--
Ian Collins.
Mar 4 '07 #22
CBFalconer <cb********@maineline.netwrote:
>GCC is probably better than HPUX anyhow. Just guessing, no
experience with HPUX.
You are correct, or at least were at one time. Once we installed gcc,
no one ever went back. (This is 10 years ago--I don't know the current
HPUX situation. I do remember that barely anyone at HP referred to it
as "H-pucks", though. Odd.)

-Beej

Mar 4 '07 #23
Ian Collins said:
Richard Heathfield wrote:
>Ian Collins said:

>>>llothar wrote:

>You mean it needs to be ported to a platform that doesn't support
>C... (you wont win friends here by implying that C is an inferior
>cousin to C++)

Exactly i want to port to HPUX but don't want to send the huge
cheque to HP for there C++

<OT>then use gcc and its "their"</OT>


If you're going to flame someone else's grammar, at least get your
own grammar right. It's "it's", not "its". "Its X" means "the X
belonging to it", whereas "it's X" is a contraction of "it is X" or
"it has X". You are also missing a comma.
It wasn't a flame,
Then I apologise for misinterpreting your intent.
I was correcting a word, not the grammar.
I think it could be argued either way, actually, but this isn't really
the place to conduct such a debate.
My
intent was to help the OP with a common English mistake, not flame.

When I was at school, we were told never to precede and with a comma.
When I was at school, we were told that 1 is prime. That doesn't mean I
have to believe it, and I'm sure you'd be the first to agree.

The omission of a comma after 'and' is to do with lists:

"Chris, the other Chris, Steve and Keith are all highly respected
regular contributors to comp.lang.c."

Even there, the comma is optional. If used, it is known as the "Oxford
comma":

"Chris, the other Chris, Steve, and Keith are all highly respected
regular contributors to comp.lang.c."

When 'and' is being used as a conjunction, it often makes sense (but not
always) to use a comma just before it, and I hope this sentence gives
you a good example of that fact.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 4 '07 #24
santosh wrote:
CBFalconer wrote:
.... snip ...
>>
GCC is probably better than HPUX anyhow. Just guessing, no
experience with HPUX.

I'm surprised that HPUX doesn't come bundled with a C compiler,
since most UNIX systems do.
2 years before the turn of the century (i.e. 1999) I was
occasionally using an HPUX system. The only compiler supplied was
a K&R 1 (note 1) package.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
Mar 4 '07 #25
CBFalconer wrote, On 04/03/07 00:52:
Richard Heathfield wrote:
>Ian Collins said:
... snip ...
>><OT>then use gcc and its "their"</OT>
If you're going to flame someone else's grammar, at least get your
own grammar right. It's "it's", not "its". "Its X" means "the X
belonging to it", whereas "it's X" is a contraction of "it is X"
or "it has X". You are also missing a comma.

I think there is a strong correlation (among native English
speakers) between correct grammar/spelling, and programming
ability.
It is not a simple thing. Dyslexics tend to be worse at spelling than
the average, and as a result are in lower English sets (where it is
streamed) and so are taught less about English grammar. However,
dyslexics in IT (including programming) tend to be good at it. Of
course, I do not have any studies to back this up just what I have seen.
Also I have and use a spilling chicken to make my spooling look butter
than it is.
--
Flash Gordon,
Dyslexic Programmer,
At least the compiler ensures I spell variable names consistently wrong.
Mar 4 '07 #26
CBFalconer wrote:
Richard Heathfield wrote:
>>Ian Collins said:

.... snip ...
>>><OT>then use gcc and its "their"</OT>

If you're going to flame someone else's grammar, at least get your
own grammar right. It's "it's", not "its". "Its X" means "the X
belonging to it", whereas "it's X" is a contraction of "it is X"
or "it has X". You are also missing a comma.

I think there is a strong correlation (among native English
speakers) between correct grammar/spelling, and programming
ability.
More likely where and when they went through primary school. I had to
suffer through the English system in the 60s when teaching the basics
was considered too old fashioned to be included in the curriculum.

There might be a strong correlation between grammar/spelling pedantry
and C programming...

--
Ian Collins.
Mar 4 '07 #27
Flash Gordon said:
Also I have and use a spilling chicken to make my spooling look
butter than it is.
I never bother with them. I find them to be a complete waste of time. My
mistpyes are rare and my spelling erers rarererererer, so I don't
really see the point. (That is not to say they are not useful to others
- just not to me.)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 4 '07 #28
Ian Collins said:
CBFalconer wrote:
<snip>
>>
I think there is a strong correlation (among native English
speakers) between correct grammar/spelling, and programming
ability.
More likely where and when they went through primary school. I had to
suffer through the English system in the 60s
So did I. Er, so what?

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 4 '07 #29
On Mar 4, 2:52 am, "santosh" <santosh....@gmail.comwrote:
CBFalconer wrote:
Ian Collins wrote:
llothar wrote:
>>You mean it needs to be ported to a platform that doesn't
>>support C... (you wont win friends here by implying that C is
>>an inferior cousin to C++)
>Exactly i want to port to HPUX but don't want to send the huge
>cheque to HP for there C++
<OT>then use gcc and its "their"</OT>
I suspect llothar is not a native English speaker, and is doing
pretty well with the language. The crying shame is the native
speakers who can't use grammar and can't spell.
GCC is probably better than HPUX anyhow. Just guessing, no
experience with HPUX.

I'm surprised that HPUX doesn't come bundled with a C compiler, since
most UNIX systems do.
It does, and it's called "HP-UX bundled C compiler" (it's needed for
kernel recompilation when kernel's parameters change). It's stripped
of all the extras and I'm not even sure it handles ISO properly. IMO,
one is better off installing gcc. The "real thing", "HP C/aC++
Developer's Bundle" used to be good, but slow. Nowadays it's faster
but seems to be plagued with bugs.
--
WYCIWYG - what you C is what you get

Mar 4 '07 #30
It wasn't a flame, I was correcting a word, not the grammar. My intent
was to help the OP with a common English mistake, not flame.

When I was at school, we were told never to precede and with a comma.
And my teacher at school told me she never understood where commas
should be set in english. So sometimes im just using the german
rules.

And there/their was a result of posting at 3 o'clock in the morning
after 10 hours of work. But i thought in this newsgroups it's okay if
you speak english and not english++

Mar 4 '07 #31
llothar wrote:
It wasn't a flame, I was correcting a word, not the grammar. My intent
was to help the OP with a common English mistake, not flame.

When I was at school, we were told never to precede and with a comma.

And my teacher at school told me she never understood where commas
should be set in english. So sometimes im just using the german
rules.

And there/their was a result of posting at 3 o'clock in the morning
after 10 hours of work. But i thought in this newsgroups it's okay if
you speak english and not english++
Both english and english++ are unacceptable. However English is.

:-)

Mar 4 '07 #32
It does, and it's called "HP-UX bundled C compiler" (it's needed for
kernel recompilation when kernel's parameters change). It's stripped
of all the extras and I'm not even sure it handles ISO properly. IMO,
one is better off installing gcc. The "real thing", "HP C/aC++
Developer's Bundle" used to be good, but slow. Nowadays it's faster
but seems to be plagued with bugs.

Hmmm. The freeware site that offers prebuild depot files just
announced that they are moving away from compiling them with gcc and
are using HP C/aC++ now. They explicitly mention speed reasons. And if
you look at Linux for PA-RISC they say that you can only expect 50% of
the speed that you get from Linux compared to HP-UX.

It's the news from 13th Nov 2006
http://hpux.connect.org.uk/hppd/new.html

gcc code quality was never good in anything else then ix86/amd64 and
maybe PPC code.
Mar 4 '07 #33
Richard Heathfield wrote, On 04/03/07 08:21:
Flash Gordon said:
>Also I have and use a spilling chicken to make my spooling look
butter than it is.

I never bother with them. I find them to be a complete waste of time. My
mistpyes are rare and my spelling erers rarererererer, so I don't
really see the point. (That is not to say they are not useful to others
- just not to me.
I agree completely. For some people they are a waste of time, but for me
and some others a decently implemented unobtrusive spelling checker is,
if not essential, at least incredibly useful.
--
Flash Gordon
Mar 4 '07 #34
"llothar" <ll*****@web.dewrites:
><OT>
gcc is free, it supports both C and C++, and it should work on HPUX.
</OT>

The ruby interpreter comes compiled with HP C compiler, don't want to
run into problems linking HP and GCC executables.
And much more important gcc is generating very slow code, that hurts
on this old PA-RISC machines.
Please don't snip attribution lines (lines of the form
"So-and-so writes:").

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Mar 4 '07 #35
santosh said:

<snip>
Both english and english++ are unacceptable. However English is.

:-)
It's just as well this group discusses C rather than English, santosh,
or I'd have to take issue with your second sentence. As it is, I'm
going to shut up (at least insofar as I find that possible and
convenient).
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 4 '07 #36
On Mar 4, 12:25 pm, "llothar" <llot...@web.dewrote:
It does, and it's called "HP-UX bundled C compiler" (it's needed for
kernel recompilation when kernel's parameters change). It's stripped
of all the extras and I'm not even sure it handles ISO properly. IMO,
one is better off installing gcc. The "real thing", "HP C/aC++
Developer's Bundle" used to be good, but slow. Nowadays it's faster
but seems to be plagued with bugs.

Hmmm. The freeware site that offers prebuild depot files just
announced that they are moving away from compiling them with gcc and
are using HP C/aC++ now. They explicitly mention speed reasons. And if
you look at Linux for PA-RISC they say that you can only expect 50% of
the speed that you get from Linux compared to HP-UX.
No wonder I'd say, especially after having read the PA-RISC (1.1)
manuals. Anyhow, they seem to be moving away from PA-RISCs, focusing
on IA64.
It's the news from 13th Nov 2006http://hpux.connect.org.uk/hppd/new.html

gcc code quality was never good in anything else then ix86/amd64 and
maybe PPC code.
True, but then it costs nothing. In contrast, paying thousands of
dollars for an entry-class machine and not getting a decent compiler
is, mildly put, extortion.
--
WYCIWYG - what you C is what you get

Mar 4 '07 #37

Richard Heathfield wrote:
santosh said:

<snip>
Both english and english++ are unacceptable. However English is.

:-)

It's just as well this group discusses C rather than English, santosh,
or I'd have to take issue with your second sentence. As it is, I'm
going to shut up (at least insofar as I find that possible and
convenient).
Whoops, you're right! In future, I too will shut up with regard to OT
stuff.

Mar 4 '07 #38
santosh said:

<snip>
In future, I too will shut up with regard to OT stuff.
Don't make promises you can't keep. :-)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 4 '07 #39
No wonder I'd say, especially after having read the PA-RISC (1.1)
manuals. Anyhow, they seem to be moving away from PA-RISCs, focusing
on IA64.
Yes. But i got my Machine 750 MHz C3700 with 2 GB for only 100 Euro on
EBay.
I like it and it was the first Unix machine where i had no problems
with
my triple head display. Itaniums are still too expensive for me. But i
guess
that gcc is much better on this hardware. Can't believe that SGI is
using
anything else then gcc to compile the linux kernel for there super
computers.
And there speed is important.
True, but then it costs nothing. In contrast, paying thousands of
dollars for an entry-class machine and not getting a decent compiler
is, mildly put, extortion.
Correct. And i forgot that the compiler the provide is K&R.
And i'm not going back to this level, very sure. C90 is the minimum.
So i think i will stay with gcc. Maybe some day i get a second hand
license
to the full HP C compiler - or win in a lottery.

Mar 4 '07 #40
On Mar 4, 2:56 pm, Ian Collins <ian-n...@hotmail.comwrote:
santosh wrote:
CBFalconer wrote:
>GCC is probably better than HPUX anyhow. Just guessing, no
experience with HPUX.
I'm surprised that HPUX doesn't come bundled with a C compiler, since
most UNIX systems do.
Often, commercial UNIX systems come with no C compiler, so that you
have to pay extra for the compiler licence.
Mar 4 '07 #41
Old Wolf wrote:
On Mar 4, 2:56 pm, Ian Collins <ian-n...@hotmail.comwrote:
>>santosh wrote:
>>>CBFalconer wrote:
>>>>GCC is probably better than HPUX anyhow. Just guessing, no
experience with HPUX.
>>>I'm surprised that HPUX doesn't come bundled with a C compiler, since
most UNIX systems do.


Often, commercial UNIX systems come with no C compiler, so that you
have to pay extra for the compiler licence.
Or in case of the more friendly ones, download it for free.

The bundled compiler was a hangover from the days when the kernel had to
be rebuilt by the user.

--
Ian Collins.
Mar 4 '07 #42
matevzb wrote:
On Mar 4, 2:52 am, "santosh" <santosh....@gmail.comwrote:
I'm surprised that HPUX doesn't come bundled with a C compiler,
since most UNIX systems do.
It does, and it's called "HP-UX bundled C compiler" (it's needed for
kernel recompilation when kernel's parameters change). It's stripped
of all the extras and I'm not even sure it handles ISO properly.
When I was working on HPUX, the compiler not only didn't support ANSI
or ISO C, it would taunt you with that fact.

"Automatic initialization of aggregates is an ANSI feature"

Brian
Mar 5 '07 #43
Default User <de***********@yahoo.comwrote:
>When I was working on HPUX, the compiler not only didn't support ANSI
or ISO C, it would taunt you with that fact.

"Automatic initialization of aggregates is an ANSI feature"
Ha! I remember this!

<OT>
The version we used (and I can't remember which HPUX this was... 8?) had
a "-Ae" switch to go to ANSI mode. And then it was too strict, so you
had to define stuff like _XOPEN_SOURCE and _HPUX_SOURCE to get some
unixy functionality back. gcc just made everything better.
</OT>

-Beej

Mar 5 '07 #44
In article <55**************@mid.individual.net>,
Ian Collins <ia******@hotmail.comwrote:
>The bundled compiler was a hangover from the days when the kernel had to
be rebuilt by the user.
Or the days when the majority of people bought computers with the
intention of writing software for them.

-- Richard

--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Mar 5 '07 #45
In article <45***************@yahoo.com>,
CBFalconer <cb********@maineline.netwrote:
>Richard Heathfield wrote:
>Ian Collins said:
... snip ...
>>>
<OT>then use gcc and its "their"</OT>

If you're going to flame someone else's grammar, at least get your
own grammar right. It's "it's", not "its". "Its X" means "the X
belonging to it", whereas "it's X" is a contraction of "it is X"
or "it has X". You are also missing a comma.

I think there is a strong correlation (among native English
speakers) between correct grammar/spelling, and programming
ability.
I suspect that they're not directly causally linked, though; it seems
more likely that they're both caused by an ability and willingness to
pay attention to little things like correctness, precision, and accuracy.
I suspect that this generalizes quite nicely to "correct grammar/spelling
in one's native language" when you look beyond native English speakers.

Dyslexics, as noted downthread, seem to be an exception to this
correlation, most likely because their poor grammar/spelling is caused by
factors other than carelessness.
I'd also be quite willing to believe that the skills they've developed to
deal with dyslexia would be readily transferrable to computer programming
and similar fields. (The people I've known who I knew were dyslexic have
been universally above average intelligence, though that is a vanishingly
small proportion of the people I've known and probably doesn't include
all the people I've known who were dyslexic.)
dave

--
Dave Vandervies dj******@csclub.uwaterloo.ca
>Void pointers will automatically be converted to the right type when the
assignment is made. --Simon Biber and
Or to the wrong type, as the case may be. Kaz Kylheku in CLC
Mar 6 '07 #46

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Paul Rubin | last post by:
I've had this recurring half-baked desire for long enough that I thought I'd post about it, even though I don't have any concrete proposals and the whole idea is fraught with hazards. Basically...
1
by: Wolfgang Lipp | last post by:
my question is: do we need container elements for repeating elements in data-centric xml documents? or is it for some reason very advisable to introduce containers in xml documents even where not...
4
by: M?rio Amado Alves | last post by:
Will you help an outsider trying to trace the current state of persistent object technology? "I expect that there will be persistent object stores with STL-conforming interfaces fitting into the...
8
by: Steve | last post by:
Can anyone tell me the preferred method for writing and retrieving persistent information using .Net. Specifically, I am referring to information that you used to see in registry keys or .ini...
4
by: Mitchel Haas | last post by:
Hello, Feeling a need for a generic tree container to supplement the available containers in the STL, I've created a generic tree container library (TCL). The library usage is very much like...
11
by: PengYu.UT | last post by:
The following program calls the normal constructor and the copy constructor. By calling the copy constuctor is redundandant, all I want is only a vector of a trial object. Is there any way to...
6
by: daveb | last post by:
I'm trying to write some code that calls the constructors of STL containers explicitly, and I can't get it to compile. A sample program is below. One compiler complains about the last two lines...
4
by: Sarath | last post by:
>From the documentation of MSDN, it is saying that bitset is not a STL container Unlike the similar vector<boolClass, the bitset class does not have iterators and is not an Standard Template...
3
by: Rob McDonald | last post by:
I am interested in having a container which has properties of both the STL's list and vector. (I want my cake and to eat it too). In my application, I will need to add/remove items from arbitrary...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.