A Completeley Redesigned C library
A Completeley Redesigned C library
Hi
My question to you is if you could redesign the entire C standard library, what new features would you include and how would you design it?
My question to you is if you could redesign the entire C standard library, what new features would you include and how would you design it?
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
...Tiny misconception really.
There is not really one "C library".
Quite a few implement standard features from the Single UNIX Specification and some other POSIX extensions, Systems like Linux for example adds various other functions and might be distributed with with one many different C libraries (GNU libc/uclibc/Newlib).
Most of the BSD's have their own C library, Supporting most common functions, Some may know of OpenBSD's strlcpy/strlcat functions.
It really depends on the implementation, But I'm guessing a majority of people here write their own C library while adding any additional things as they see fit.
The member here named spix made a fork of RedHat's Newlib library and is adding various new functions and features for his Operating System named Mort.
Another member named solar is designing a public domain C library that will eventually support the full ISO 9899:1989 / 1999 C library framework.
Some people even rename functions entirely and make there own non-standard API
http://sourceforge.net/projects/pdclib/
http://sources.redhat.com/newlib/
http://www.uclibc.org/
http://www.gnu.org/software/libc/
http://www.mort-os.com/
Hope I helped
EDIT: Whoops forgot to mention Durand Miller's libUNIX, It's quite interesting. http://djm.co.za/spoon/libUNIX.php
There is not really one "C library".
Quite a few implement standard features from the Single UNIX Specification and some other POSIX extensions, Systems like Linux for example adds various other functions and might be distributed with with one many different C libraries (GNU libc/uclibc/Newlib).
Most of the BSD's have their own C library, Supporting most common functions, Some may know of OpenBSD's strlcpy/strlcat functions.
It really depends on the implementation, But I'm guessing a majority of people here write their own C library while adding any additional things as they see fit.
The member here named spix made a fork of RedHat's Newlib library and is adding various new functions and features for his Operating System named Mort.
Another member named solar is designing a public domain C library that will eventually support the full ISO 9899:1989 / 1999 C library framework.
Some people even rename functions entirely and make there own non-standard API
http://sourceforge.net/projects/pdclib/
http://sources.redhat.com/newlib/
http://www.uclibc.org/
http://www.gnu.org/software/libc/
http://www.mort-os.com/
Hope I helped
EDIT: Whoops forgot to mention Durand Miller's libUNIX, It's quite interesting. http://djm.co.za/spoon/libUNIX.php
Last edited by Brynet-Inc on Thu Jan 18, 2007 6:27 pm, edited 1 time in total.
when i said C library i meant a system library along the lines of the current standard library but with completely different functions. Basically, if you were to write an operating system and a c library to go along with it how would you make it better than the current c library. Would you have new features? or maybe you would completely redesign it. This thread is just a gathering point for ideas.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
I don't quite see your point, There is no really common standard.. Some operating systems lack functions that others have.. Quite a few people here are writing their own C library and are usually aware of a large list of common functions they should implement, Most do add functions which are less common or are for their OS only.. Or review other libraries.iammisc wrote:when i said C library i meant a system library along the lines of the current standard library but with completely different functions. Basically, if you were to write an operating system and a c library to go along with it how would you make it better than the current c library. Would you have new features? or maybe you would completely redesign it. This thread is just a gathering point for ideas.
A good example of this is Microsoft's C library While it has a few basic functions.. It's not the most standard library around.
In reality it really depends on the programmers preference bud.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Agree with nick8325 (that's one of the least original nicknames I've ever seen). If I can write intelligent C++ code that does something in 1000 lines and somebody else can write intelligent C code that does the same in 10000 lines, I'm still off better, especially on the maintenance level. Why use C if you can use assembly and why use assembly when you can use machine language? BA0A01B80900CD21EBFE51454424 (run as COM file in windows/dos).Brynet-Inc wrote:Who wants to travel? boring...nick8325 wrote:Sure, and if you want to travel half-way across the world you can walk. It doesn't mean it's a good idea...Brynet-Inc wrote:Anything that should be programmed can be done so in C or Assembly
[edit] Of course I screwed up the offsets. [/edit]
Last edited by Candy on Fri Jan 19, 2007 3:35 pm, edited 1 time in total.