Thread: What's your code footprint?

  1. #1
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396

    What's your code footprint?

    How many computers in the world are running your code?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Or you mean maybe what's the reach of your code?

    On my case, my most successful project only has two computers and a load balancer last time I checked some 8 years ago. That's a small footprint. But the public university application, calculation and final results system they run has served close to 300,000 students every year for the past 11 years. It is still the same software I built in 2 months on that hot summer of 2002.
    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.

  3. #3
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    Both of these questions seem hard to pin down. What is the limit of contributed code? If you are asking about complete applications, I'd guess that maybe 5000 people played my "rouge-like", and my early "Perl" web stuff was probably accessed by several tens of thousands, but I'd be more likely to forward code on work I can't claim as "mine" in several open source projects.

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Code that's part of something bigger still counts, as long as it actually executes and contributes something concrete to the software.

    People who contribute code to operating systems (either open source or not) have a big advantage on this one.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    I'm in pagers, mobile phones, POS's and related devices. Is it a coincidence that I wear 6D wide shoes? (I assumed it was from all the barefoot soccer as a yoot. Bunions don't help either.)

    gg

  6. #6
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Millions! (MySQL patch )

  7. #7
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,613
    Quote Originally Posted by brewbuck View Post
    How many computers in the world are running your code?
    I'm going to be modest and say zero, but not for lack of trying.

  8. #8
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Software that I have written has been deployed on several thousand computers, and server-side components of that software are accessed by several thousand more. I've also contributed patches to CodeLite, so it's anyone's guess how far that reaches.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  9. #9
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    On the conservative side, I'd say somewhere between 50-100. If you include a bunch of small fixes to OpenCASCADE community edition, probably somewhere between 10,000-500,000, a lot of things use OpenCASCADE.

  10. #10
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    I guess I haven't gone yet.

    I have code in Windows, Mac OS X, and several big-name desktop applications. So, guessing conservatively, I'd say 500 million computers but that might be an underestimate. If it was a billion machines I wouldn't be surprised.

    Codeplug: You do embedded, so you're probably way the heck up there as well. I'm starting to get code into such things, so maybe one day I'll crack two billion systems? It's impossible to know.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  11. #11
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Actually, realizing that I had made an intranet site for a company I worked for, I'll revise my conservative measure to 300-500

  12. #12
    and the hat of copycat stevesmithx's Avatar
    Join Date
    Sep 2007
    Posts
    587
    Quote Originally Posted by brewbuck View Post
    People who contribute code to operating systems (either open source or not) have a big advantage on this one.
    Also cross-platform malware authors(read NSA/GCHQ).
    Not everything that can be counted counts, and not everything that counts can be counted
    - Albert Einstein.


    No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
    - Herbert Mayer

  13. #13
    Registered User
    Join Date
    Mar 2012
    Location
    the c - side
    Posts
    373
    Quote Originally Posted by brewbuck View Post

    I have code in Windows, Mac OS X, and several big-name desktop applications. So, guessing conservatively, I'd say 500 million computers but that might be an underestimate. If it was a billion machines I wouldn't be surprised.
    Is the code c?

  14. #14
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by gemera View Post
    Is the code c?
    C++ code.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  15. #15
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by brewbuck View Post
    C++ code.
    I'm so sorry.
    Last edited by Yarin; 02-06-2014 at 12:12 AM. Reason: grammatical error

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memory footprint
    By Kempelen in forum C Programming
    Replies: 7
    Last Post: 01-15-2010, 01:27 PM
  2. memory footprint of Dictionary
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-17-2008, 08:39 AM
  3. Performance and footprint of virtual function
    By George2 in forum C++ Programming
    Replies: 8
    Last Post: 01-31-2008, 07:34 PM
  4. to reduce footprint
    By George2 in forum Tech Board
    Replies: 2
    Last Post: 12-19-2006, 01:31 AM
  5. Problem with class member layout (footprint)
    By Osaou in forum C++ Programming
    Replies: 3
    Last Post: 07-24-2006, 11:33 AM