Thread: Writing your own C++ Standard Library implementation...

  1. #1
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079

    Writing your own C++ Standard Library implementation...

    Have any of your older, more experienced programmers known of anyone who's taken on this task to write their own implementation of the C++ Standard Library? I know many young programmers write compilers, but I assume that means they just write the parsing and converting to assembly parts and they use pre-made implementations to the Standard Library. So has anyone embarked, or known someone who embarks, on this tedious quest? Surely, the real experienced programmers have known some cocky programmers in the past that insisted they could write more efficient implementations... it's just a matter of if they put their money where their mouth is.
    Sent from my iPadŽ

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Old co-worker of mine, his roommate was taking PhD level Comp Sci stuff, one of the classes they worked in teams to reimplement the STL as a class. In the end it came out to be better in some spots but overall less efficient.

  3. #3

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Do you keep this stuff like in a notebook? Or is it your memory is that good?

    Man! *clap* *clap*
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    Nah, he's just a robot.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  6. #6
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Prelude was a given... I didn't even expect her to reply. I was asking about others.
    Sent from my iPadŽ

  7. #7
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Quote Originally Posted by SlyMaelstrom
    Prelude was a given... I didn't even expect her to reply. I was asking about others.

    is she a she now?

  8. #8
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    is she a she now?
    Julian Walker? That's confuzzling.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  9. #9
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Quote Originally Posted by laserlight
    Julian Walker? That's confuzzling.

    that's ironic
    http://www.eternallyconfuzzled.com/

  10. #10
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    that's ironic
    Really?
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  11. #11
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    I'm slowly building up my own class & function library but it's nowhere near par with the STL - mainly a messy collection of useful... stuff.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  12. #12
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    We had someone here that knew Stroustrup. He'd die to enter this thread.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  13. #13
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    >> We had someone here that knew Stroustrup. He'd die to enter this thread.

    Stroustrup??? What did he ever do to a standard C++ library implementation?


    Quote Originally Posted by http://www.research.att.com/~bs/
    I designed and implemented the C++ programming language.
    Imagine being able to say that!


    >> Nah, he's just a robot.
    Or perhaps just a spider ... one who beats Google and Yahoo to their game
    Last edited by twomers; 10-02-2006 at 11:58 AM.

  14. #14
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    Quote Originally Posted by Mario F.
    Do you keep this stuff like in a notebook? Or is it your memory is that good?
    My memory .

  15. #15
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Prelude was a given...
    Hmm, I think you guys give me too much credit.

    >is she a she now?
    It depends on whom you ask. I'm sure that not a few people here see me as a dude.

    >We had someone here that knew Stroustrup. He'd die to enter this thread.
    That would be Dean. He's...indisposed at the moment and won't be joining the discussion. But his "knowing" Stroustrup was limited to email exchanges, and it's common knowledge that Bjarne Stroustrup is good about answering his email.

    >Stroustrup??? What did he ever do to a standard C++ library implementation?
    Save it from every crap proposal that crossed his desk?
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI with Standard Library
    By Sly in forum C Programming
    Replies: 2
    Last Post: 03-13-2009, 05:06 PM
  2. C++ main standard library Question
    By invisibleghost in forum Linux Programming
    Replies: 2
    Last Post: 10-24-2004, 12:05 PM
  3. C++ >> Standard Library >> Header File
    By hrk2006 in forum C++ Programming
    Replies: 2
    Last Post: 06-24-2003, 08:30 PM
  4. Source code of the standard library functions...
    By Nutshell in forum C Programming
    Replies: 2
    Last Post: 01-21-2002, 12:35 PM
  5. C standard library
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 12-08-2001, 12:08 PM