Hi!
I'm looking for useful libraries that are strictly ISO C. Any kind of
library, from lists, stacks, to trees, searching tools, sorting
tools... really *any* kind.
Do you have any idea? :)
--
Sensei <se******@mac.com>
The difference between stupidity and genius is that genius has its
limits. (A. Einstein) 22 1890
"Sensei" <se******@tin.it> wrote in message
news:dg**********@news.doit.wisc.edu... I'm looking for useful libraries that are strictly ISO C.
If you mean standard libraries, there're no such thing in the standard C
library.
If you mean the code itself being OK in terms of the ISO/ANSI C standard,
then it's a different thing, there may be such libraries.
Any kind of library, from lists, stacks, to trees, searching tools, sorting tools... really *any* kind.
Do you have any idea? :)
Google or write them yourself. If you want to write them, then get books by
Knuth or Sedgewick to get some ideas on how the various data structures can
be made and for what purposes they should be used.
Alex
On 2005-09-14 14:00:49 +0200, "Alexei A. Frounze" <al*****@chat.ru> said: "Sensei" <se******@tin.it> wrote in message news:dg**********@news.doit.wisc.edu... I'm looking for useful libraries that are strictly ISO C. If you mean standard libraries, there're no such thing in the standard C library. If you mean the code itself being OK in terms of the ISO/ANSI C standard, then it's a different thing, there may be such libraries.
I was thinking about something like boost for C... Google or write them yourself. If you want to write them, then get books by Knuth or Sedgewick to get some ideas on how the various data structures can be made and for what purposes they should be used.
My question is about ISO C, many libraries exist, even GNU libs but
it's not guaranteed that they are ISO C.
--
Sensei <se******@mac.com>
The difference between stupidity and genius is that genius has its
limits. (A. Einstein)
"Sensei" <se******@tin.it> wrote in message
news:dg**********@news.doit.wisc.edu...
.... My question is about ISO C, many libraries exist, even GNU libs but it's not guaranteed that they are ISO C.
Then just check them and fix if/where appropriate.
Alex
Sensei <se******@tin.it> writes: I'm looking for useful libraries that are strictly ISO C. Any kind of library, from lists, stacks, to trees, searching tools, sorting tools... really *any* kind.
I think that GNU libavl may be strict ISO C.
I am not sure of it, however; there are likely to be lapses,
especially in the test programs.
--
"The way I see it, an intelligent person who disagrees with me is
probably the most important person I'll interact with on any given
day."
--Billy Chambless
In article <dg**********@news.doit.wisc.edu>, Sensei <se******@tin.it>
writes On 2005-09-14 14:00:49 +0200, "Alexei A. Frounze" <al*****@chat.ru> said:
"Sensei" <se******@tin.it> wrote in message news:dg**********@news.doit.wisc.edu... I'm looking for useful libraries that are strictly ISO C.
If you mean standard libraries, there're no such thing in the standard C library. If you mean the code itself being OK in terms of the ISO/ANSI C standard, then it's a different thing, there may be such libraries.
I was thinking about something like boost for C...
Google or write them yourself. If you want to write them, then get books by Knuth or Sedgewick to get some ideas on how the various data structures can be made and for what purposes they should be used.
My question is about ISO C, many libraries exist, even GNU libs but it's not guaranteed that they are ISO C.
Why do you want ISO C libraries. Just because libraries are written to
ISO C it does not mean they are any good or even work as specified.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Chris Hills wrote: In article <dg**********@news.doit.wisc.edu>, Sensei <se******@tin.it> writes
On 2005-09-14 14:00:49 +0200, "Alexei A. Frounze" <al*****@chat.ru> said:
"Sensei" <se******@tin.it> wrote in message news:dg**********@news.doit.wisc.edu...
I'm looking for useful libraries that are strictly ISO C.
If you mean standard libraries, there're no such thing in the standard C library. If you mean the code itself being OK in terms of the ISO/ANSI C standard, then it's a different thing, there may be such libraries.
I was thinking about something like boost for C...
Google or write them yourself. If you want to write them, then get books by Knuth or Sedgewick to get some ideas on how the various data structures can be made and for what purposes they should be used.
My question is about ISO C, many libraries exist, even GNU libs but it's not guaranteed that they are ISO C.
Why do you want ISO C libraries. Just because libraries are written to ISO C it does not mean they are any good or even work as specified.
It is also irrelevant, as he did not ask for good/bad - just code
conforming to ISO C.
A search on www.freshmeat.net for "ANSI C" or "ISO C" - including the
quotes - might be helpful
"Sensei" <se******@tin.it> wrote I'm looking for useful libraries that are strictly ISO C. Any kind of library, from lists, stacks, to trees, searching tools, sorting tools... really *any* kind.
I've got quite a collection, of everything from hash tables to red black
trees, JPEG codecs, 3d graphics algorithms, statistical functions.
Can you be a bit more specific about what you want to do?
On 2005-09-16 19:36:08 +0200, "Malcolm" <re*******@btinternet.com> said: "Sensei" <se******@tin.it> wrote I'm looking for useful libraries that are strictly ISO C. Any kind of library, from lists, stacks, to trees, searching tools, sorting tools... really *any* kind. I've got quite a collection, of everything from hash tables to red black trees, JPEG codecs, 3d graphics algorithms, statistical functions. Can you be a bit more specific about what you want to do?
A survey for students. I'd like them to focus on their tasks and not on
something complementary like lists or trees, or hashes, or anything.
--
Sensei <se******@mac.com>
The difference between stupidity and genius is that genius has its
limits. (A. Einstein)
"Sensei" <se******@tin.it> wrote A survey for students. I'd like them to focus on their tasks and not on something complementary like lists or trees, or hashes, or anything.
The problem with C is that the simpler data structures (linked lists,
queues, basic trees, stacks etc) are easier to code from scratch than to use
from a library.
I've got a hash table and red-black tree I can send you, however.
On 2005-09-18 11:25:45 +0200, "Malcolm" <re*******@btinternet.com> said: "Sensei" <se******@tin.it> wrote A survey for students. I'd like them to focus on their tasks and not on something complementary like lists or trees, or hashes, or anything.
The problem with C is that the simpler data structures (linked lists, queues, basic trees, stacks etc) are easier to code from scratch than to use from a library.
I've got a hash table and red-black tree I can send you, however.
Thank you anyway. I really like the spirit of STL, that's useful for
small projects when you have to use something without wasting time on
things you do already know.
Think about numerical recipes. Students can concentrate on other
aspects rather than reimplement another gaussian elimination...
Some kind of wiki... probably would help... I will think about it.
--
Sensei <se******@mac.com>
The difference between stupidity and genius is that genius has its
limits. (A. Einstein)
Sensei wrote: On 2005-09-14 14:00:49 +0200, "Alexei A. Frounze" <al*****@chat.ru> said:
"Sensei" <se******@tin.it> wrote in message news:dg**********@news.doit.wisc.edu...
I'm looking for useful libraries that are strictly ISO C.
If you mean standard libraries, there're no such thing in the standard C library. If you mean the code itself being OK in terms of the ISO/ANSI C standard, then it's a different thing, there may be such libraries. I was thinking about something like boost for C...
Google or write them yourself. If you want to write them, then get books by Knuth or Sedgewick to get some ideas on how the various data structures can be made and for what purposes they should be used.
My question is about ISO C, many libraries exist, even GNU libs but it's not guaranteed that they are ISO C.
That's the beauty of GNU, you don't need the guarantee.
--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
In article <c-********************@comcast.com>, Joe Wright
<jw*****@comcast.net> writes Sensei wrote: On 2005-09-14 14:00:49 +0200, "Alexei A. Frounze" <al*****@chat.ru> said:
"Sensei" <se******@tin.it> wrote in message news:dg**********@news.doit.wisc.edu...
I'm looking for useful libraries that are strictly ISO C.
If you mean standard libraries, there're no such thing in the standard C library. If you mean the code itself being OK in terms of the ISO/ANSI C standard, then it's a different thing, there may be such libraries. I was thinking about something like boost for C...
Google or write them yourself. If you want to write them, then get books by Knuth or Sedgewick to get some ideas on how the various data structures can be made and for what purposes they should be used.
My question is about ISO C, many libraries exist, even GNU libs but it's not guaranteed that they are ISO C. That's the beauty of GNU, you don't need the guarantee.
why not ?
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
On 2005-09-20 08:46:50 +0200, Chris Hills <ch***@phaedsys.org> said: That's the beauty of GNU, you don't need the guarantee. why not ?
Provided as-it-is, no guarantee of any kind.
--
Sensei <se******@mac.com>
The difference between stupidity and genius is that genius has its
limits. (A. Einstein)
In article <dg**********@news.doit.wisc.edu>, Sensei <se******@tin.it>
writes On 2005-09-20 08:46:50 +0200, Chris Hills <ch***@phaedsys.org> said:
That's the beauty of GNU, you don't need the guarantee. why not ?
Provided as-it-is, no guarantee of any kind.
How is that helpful?
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Sensei wrote: On 2005-09-18 11:25:45 +0200, "Malcolm" <re*******@btinternet.com> said:
"Sensei" <se******@tin.it> wrote A survey for students. I'd like them to focus on their tasks and not on something complementary like lists or trees, or hashes, or anything.
The problem with C is that the simpler data structures (linked lists, queues, basic trees, stacks etc) are easier to code from scratch than to use from a library.
I've got a hash table and red-black tree I can send you, however.
Thank you anyway. I really like the spirit of STL, that's useful for small projects when you have to use something without wasting time on things you do already know.
Think about numerical recipes. Students can concentrate on other aspects rather than reimplement another gaussian elimination...
Some kind of wiki... probably would help... I will think about it.
Check out GTK+ glib - I think this is ANSI C, not completely sure. Not
sure how good it is either.
Also look at CBFalconer's hash library, and Paul Hsieh's hash library
(not sure if that one is completely ANSI C).
Chris Hills wrote: In article <c-********************@comcast.com>, Joe Wright <jw*****@comcast.net> writes
Sensei wrote:
On 2005-09-14 14:00:49 +0200, "Alexei A. Frounze" <al*****@chat.ru> said:
"Sensei" <se******@tin.it> wrote in message news:dg**********@news.doit.wisc.edu...
>I'm looking for useful libraries that are strictly ISO C.
If you mean standard libraries, there're no such thing in the standard C library. If you mean the code itself being OK in terms of the ISO/ANSI C standard, then it's a different thing, there may be such libraries. I was thinking about something like boost for C...
Google or write them yourself. If you want to write them, then get books by Knuth or Sedgewick to get some ideas on how the various data structures can be made and for what purposes they should be used. My question is about ISO C, many libraries exist, even GNU libs but it's not guaranteed that they are ISO C.
That's the beauty of GNU, you don't need the guarantee.
why not ?
Because you have the sources. If the GNU code is not sufficiently ISO
for you, you can modify it to taste. That's the whole point.
A guarantee promises your money back or something if not satisfied.
You'd have to pay RMS and the FSF for emacs or something. Can't do it.
They can point you to it but they won't sell it to you. It's free.
Guarantees do not apply.
--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
In article <Q9********************@comcast.com>, Joe Wright
<jw*****@comcast.net> writes Chris Hills wrote: In article <c-********************@comcast.com>, Joe Wright <jw*****@comcast.net> writes
Sensei wrote:
On 2005-09-14 14:00:49 +0200, "Alexei A. Frounze" <al*****@chat.ru> said:
>"Sensei" <se******@tin.it> wrote in message >news:dg**********@news.doit.wisc.edu... > > >>I'm looking for useful libraries that are strictly ISO C. > > >If you mean standard libraries, there're no such thing in the standard >C library. >If you mean the code itself being OK in terms of the ISO/ANSI C >standard, then it's a different thing, there may be such libraries. I was thinking about something like boost for C...
>Google or write them yourself. If you want to write them, then get >books by Knuth or Sedgewick to get some ideas on how the various data >structures can be made and for what purposes they should be used. My question is about ISO C, many libraries exist, even GNU libs but it's not guaranteed that they are ISO C.
That's the beauty of GNU, you don't need the guarantee. why not ? Because you have the sources. If the GNU code is not sufficiently ISO for you, you can modify it to taste. That's the whole point.
and you are completely liable for all of it....
I have done support for a compiler and 19 times out of 20 when a
"compiler bug" was found it turned out the compiler was correct and the
person who found the bug was wrong. SO 19 out of 20 "fixes" will in fact
make things worse.
A guarantee promises your money back or something if not satisfied.
IANAL
It also has fitness for purpose. It means that the tool producer is
taking some of the liability. When you use open source YOU are taking
the responsibility (and the liability). I f you ship something that has
a bug that causes an accident they will send the lawyer to you....
If you "saved money" by using open source YOU will have to prove how
you tested it was fit for purpose etc.
With a commercial tool you buy where you can't edit the source you have
reasonable grounds to expect it will work as advertised.
Like it or not you are in the software business and it is a business
like any other. Liability and responsibility for things still applies
IF a surgeon used "open source" and home made equipment in the OR and
it went wrong you would scream blue murder. If he used commercial
equipment from a medical equipment company and it went wrong you would
go after that company.
Commercial tools are (usually) well tested and checked. Often certified
etc. SO unless you are going to test and certify the actual Open source
system you are using you are asking for trouble.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Sensei wrote: On 2005-09-18 11:25:45 +0200, "Malcolm" <re*******@btinternet.com> said:
"Sensei" <se******@tin.it> wrote A survey for students. I'd like them to focus on their tasks and not on something complementary like lists or trees, or hashes, or anything.
The problem with C is that the simpler data structures (linked lists, queues, basic trees, stacks etc) are easier to code from scratch than to use from a library.
I've got a hash table and red-black tree I can send you, however.
Thank you anyway. I really like the spirit of STL, that's useful for small projects when you have to use something without wasting time on things you do already know.
Check our generic sglib at http://sourceforge.net/projects/sglib
freely inspired by STL. It is still very simple, yet providing lists,
double linked lists, sorted lists, implements generic sorting
algorithms on arrays, red-black trees, etc. You may like it.
Marian
In article <1k**************@phaedsys.demon.co.uk>,
Chris Hills <ch***@phaedsys.demon.co.uk> wrote: It also has fitness for purpose. It means that the tool producer is taking some of the liability.
Has a compiler producer ever been successfully sued for a bug in the
compiler?
Given the number of companies who use gcc, I think your objection is
purely theoretical.
-- Richard
In article <dg***********@pc-news.cogsci.ed.ac.uk>, Richard Tobin
<ri*****@cogsci.ed.ac.uk> writes In article <1k**************@phaedsys.demon.co.uk>, Chris Hills <ch***@phaedsys.demon.co.uk> wrote:
It also has fitness for purpose. It means that the tool producer is taking some of the liability. Has a compiler producer ever been successfully sued for a bug in the compiler?
No idea. I would expect this would have been settled out of court long
before it hit the news if it has.
Given the number of companies who use gcc, I think your objection is purely theoretical.
IANAL
At the moment possibly only theoretical. However the game is changing.
Engineers are being licensed (world wide) and there are changes to the
corporate manslaughter act. (UK that I know of)
The problem is that the laws are going to relate to accidents that
happen after the law comes in. That means the actual development may
have been done some time before.
It only needs one successful prosecution because one well meaning idiot
modified the compiler and did insufficient testing of the system so a
bug slipped though and caused an accident. The system will cause the
accident but the lawyers will look at the development process and the
tools. If the programer is using free tools that he modified (and did
not fully test with an "industry standard" test suite etc) they will
jump on it.
This could be anywhere in the world under any jurisdiction.
As lawyers go for easy targets it will be a small company or contractor
who gets hit. The lawyers may not care that the don't make any money of
a small case suing a one man company because if it sets a precedent they
will make a fortune on the other cases that will come up.
It is the same as any other industry. Liability, "proper" tools,
professional process. With more and more software being safety and
mission critical it is only a matter of time.
There is much you ca do to guard against these problems, use version
control, proper specs, static analysis, test plans basically show due
diligence.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Chris Hills wrote: In article <Q9********************@comcast.com>, Joe Wright <jw*****@comcast.net> writes
Chris Hills wrote:
[ Too much snippage I fear ]
I said;That's the beauty of GNU, you don't need the guarantee.
why not ?
Because you have the sources. If the GNU code is not sufficiently ISO for you, you can modify it to taste. That's the whole point.
and you are completely liable for all of it....
I have done support for a compiler and 19 times out of 20 when a "compiler bug" was found it turned out the compiler was correct and the person who found the bug was wrong. SO 19 out of 20 "fixes" will in fact make things worse.
A guarantee promises your money back or something if not satisfied.
IANAL It also has fitness for purpose. It means that the tool producer is taking some of the liability. When you use open source YOU are taking the responsibility (and the liability). I f you ship something that has a bug that causes an accident they will send the lawyer to you....
If you "saved money" by using open source YOU will have to prove how you tested it was fit for purpose etc.
With a commercial tool you buy where you can't edit the source you have reasonable grounds to expect it will work as advertised.
Like it or not you are in the software business and it is a business like any other. Liability and responsibility for things still applies
IF a surgeon used "open source" and home made equipment in the OR and it went wrong you would scream blue murder. If he used commercial equipment from a medical equipment company and it went wrong you would go after that company.
Commercial tools are (usually) well tested and checked. Often certified etc. SO unless you are going to test and certify the actual Open source system you are using you are asking for trouble.
Chris,
I was addressing 'guarantee' and now you 'liability' as regards Open
Source Software (OSS). IANAL either but if you were to offer me a piece
of software as free and open, and I accept it, great. As I didn't pay
for it, the idea of guarantee is meaningless (Double your money back?).
If you disclaim any merchantability or fitness for use for this software
of yours, which I got for nothing, how can I possibly hold you liable
when the program, trying to kill a process, actually kills my cat?
Do you use the gcc stuff? I do. It's OSS. It's free. It doesn't have a
guarantee. There is nobody to sue if your program doesn't work right.
When was the last time Microsoft, Oracle, or any software company paid
off on a liability suit on poor software? When?
--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Thanks to everyone who helped me! :)
--
Sensei <se******@mac.com>
The difference between stupidity and genius is that genius has its
limits. (A. Einstein) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bobby |
last post by:
We are developing our Windows applications in Visual C++
6.0 using MFC. We are starting now the process of deciding
whether .NET could be useful to us and whether it make
sense to us to upgrade to...
|
by: Nikki Locke |
last post by:
Archive-name: C++-faq/libraries/part1
Comp-lang-c++-archive-name: C++-faq/libraries/part1
Available C++ Libraries FAQ
===========================
Introduction
~~~~~~~~~~~~
Dos and don'ts -...
|
by: Hattuari |
last post by:
I'm learning C++ after having spent several years in the computer industry
doing both system administration and engineering. I've written code in
Perl, Bash, Pascal, Ada, C, Mathematica (hundreds...
|
by: fabio de francesco |
last post by:
Hello,
I have a couple of years of experience with C++. I started studying
C++ syntax, then I read the B.Stroustrup's book, and eventually I went
through the N.Josuttis' book on how to program...
|
by: leegold |
last post by:
Show full header Is there any way to make relevance when using boolean
mode more useful? If not, are there plans in the Fulltext development
"todo" for making it useful?
I'm thinking of just...
|
by: Clint Olsen |
last post by:
I did a Google about this, and I've seen this covered quite a few times -
some leading to useful tricks with offsetof() to discern alignment and
others using a big-union of intrinsic types to...
|
by: joseluismarchetti |
last post by:
Hello everybody,
Although I am sure this is an important question for this group, I
am not sure this question belongs to this group and I will be
happy to move it to the correct one after you...
|
by: Matt Kruse |
last post by:
Some libraries go a little overboard (IMO) extending javascript's built-in
types (of course, extending Object is bad).
But extending String, Array, Number, Function with useful methods can make...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
| |