Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Limit of Programming

Limit of Programming

Scheduled Pinned Locked Moved The Lounge
comhelpquestionannouncement
36 Posts 18 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aamir Butt
    wrote on last edited by
    #1

    So, today I managed to reach there ;P This[^] is what I am talking about. I reached this milestone today and am advised by the Microsoft guy to break my module into further smaller modules to avoid getting this problem again. Being at a late stage of a release, I simply can't do it. Thanks to another guy who advised another workaround related to 'String Pooling' due to which I am back on track. But I was just wondering if 65K limit is enough for big commercial apps.

    "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

    C M M J E 10 Replies Last reply
    0
    • A Aamir Butt

      So, today I managed to reach there ;P This[^] is what I am talking about. I reached this milestone today and am advised by the Microsoft guy to break my module into further smaller modules to avoid getting this problem again. Being at a late stage of a release, I simply can't do it. Thanks to another guy who advised another workaround related to 'String Pooling' due to which I am back on track. But I was just wondering if 65K limit is enough for big commercial apps.

      "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      "The limit for the number of fields in a class on the CLR is 65536." I'm sorry, I don't think I'll ever hit that limit.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      R J J R 4 Replies Last reply
      0
      • A Aamir Butt

        So, today I managed to reach there ;P This[^] is what I am talking about. I reached this milestone today and am advised by the Microsoft guy to break my module into further smaller modules to avoid getting this problem again. Being at a late stage of a release, I simply can't do it. Thanks to another guy who advised another workaround related to 'String Pooling' due to which I am back on track. But I was just wondering if 65K limit is enough for big commercial apps.

        "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #3

        Aamir Butt wrote:

        But I was just wondering if 65K limit is enough for big commercial apps.

        I have never, ever, encountered that problem, except I think once. In a DOS application. 15 years ago. On an 8086 processor. When segments were limited to 64K.

        Aamir Butt wrote:

        Being at a late stage of a release, I simply can't do it.

        That's too bad. To be blunt about it, part of what I consider as qualifications for a commercial application is how it's engineered on the inside. You do not make huge modules. That's a fundamental lesson, I thought, of good programming practices. :~ Marc

        Thyme In The Country

        Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson
        People are just notoriously impossible. --DavidCrow
        There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer

        1 Reply Last reply
        0
        • C Christian Graus

          "The limit for the number of fields in a class on the CLR is 65536." I'm sorry, I don't think I'll ever hit that limit.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #4

          Christian Graus wrote:

          I'm sorry, I don't think I'll ever hit that limit.

          If someone had asked me if anyone would ever hit that limit 10 minutes ago, I would have answered "don't be silly!". :~

          -- Behold, for I am THE CORRUPTOR!

          1 Reply Last reply
          0
          • C Christian Graus

            "The limit for the number of fields in a class on the CLR is 65536." I'm sorry, I don't think I'll ever hit that limit.

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            R Offline
            R Offline
            Ray Kinsella
            wrote on last edited by
            #5

            How the hell do you hit that limit ... :wtf:

            Regards Ray "Je Suis Mort De Rire" Blogging @ Keratoconus Watch

            C A 2 Replies Last reply
            0
            • R Ray Kinsella

              How the hell do you hit that limit ... :wtf:

              Regards Ray "Je Suis Mort De Rire" Blogging @ Keratoconus Watch

              C Offline
              C Offline
              Chris Losinger
              wrote on last edited by
              #6

              i wonder if there's a Daily WTF article in it...

              image processing | blogging

              R 1 Reply Last reply
              0
              • C Chris Losinger

                i wonder if there's a Daily WTF article in it...

                image processing | blogging

                R Offline
                R Offline
                Ray Kinsella
                wrote on last edited by
                #7

                definitely .. its kinda reading the software of someone that is afraid of functions, I remember once reading DBaseII code that was one function with 6000 lines in it ...

                Regards Ray "Je Suis Mort De Rire" Blogging @ Keratoconus Watch

                C 1 Reply Last reply
                0
                • A Aamir Butt

                  So, today I managed to reach there ;P This[^] is what I am talking about. I reached this milestone today and am advised by the Microsoft guy to break my module into further smaller modules to avoid getting this problem again. Being at a late stage of a release, I simply can't do it. Thanks to another guy who advised another workaround related to 'String Pooling' due to which I am back on track. But I was just wondering if 65K limit is enough for big commercial apps.

                  "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

                  M Offline
                  M Offline
                  Michael P Butler
                  wrote on last edited by
                  #8

                  Aamir Butt wrote:

                  ut I was just wondering if 65K limit is enough for big commercial apps.

                  65K. What the hell are you writing! I hesitate to say bad design without knowing what problem your application was built to solve, but it sounds very badly designed to me.

                  Michael CP Blog [^] Development Blog [^]

                  E A 2 Replies Last reply
                  0
                  • R Ray Kinsella

                    definitely .. its kinda reading the software of someone that is afraid of functions, I remember once reading DBaseII code that was one function with 6000 lines in it ...

                    Regards Ray "Je Suis Mort De Rire" Blogging @ Keratoconus Watch

                    C Offline
                    C Offline
                    Chris Losinger
                    wrote on last edited by
                    #9

                    i've seen SQL stored-procs with 6000 lines. i completely refused to work on that part of the application.

                    image processing | blogging

                    R N P 3 Replies Last reply
                    0
                    • C Chris Losinger

                      i've seen SQL stored-procs with 6000 lines. i completely refused to work on that part of the application.

                      image processing | blogging

                      R Offline
                      R Offline
                      Ray Kinsella
                      wrote on last edited by
                      #10

                      must have made you popular at work ...

                      Regards Ray "Je Suis Mort De Rire" Blogging @ Keratoconus Watch

                      C 1 Reply Last reply
                      0
                      • C Christian Graus

                        "The limit for the number of fields in a class on the CLR is 65536." I'm sorry, I don't think I'll ever hit that limit.

                        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                        J Offline
                        J Offline
                        Jun Du
                        wrote on last edited by
                        #11

                        It is good to know the limit! Considering people are delivering software in gigabyte (on DVD) now, that doesn't seem to be a big number.

                        Best, Jun

                        E 1 Reply Last reply
                        0
                        • A Aamir Butt

                          So, today I managed to reach there ;P This[^] is what I am talking about. I reached this milestone today and am advised by the Microsoft guy to break my module into further smaller modules to avoid getting this problem again. Being at a late stage of a release, I simply can't do it. Thanks to another guy who advised another workaround related to 'String Pooling' due to which I am back on track. But I was just wondering if 65K limit is enough for big commercial apps.

                          "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

                          J Offline
                          J Offline
                          Judah Gabriel Himango
                          wrote on last edited by
                          #12

                          65 thousand some globals? Dear Lord.

                          Tech, life, family, faith: Give me a visit. I'm currently blogging about: And in this corner, the Party of Allah The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

                          A A 2 Replies Last reply
                          0
                          • A Aamir Butt

                            So, today I managed to reach there ;P This[^] is what I am talking about. I reached this milestone today and am advised by the Microsoft guy to break my module into further smaller modules to avoid getting this problem again. Being at a late stage of a release, I simply can't do it. Thanks to another guy who advised another workaround related to 'String Pooling' due to which I am back on track. But I was just wondering if 65K limit is enough for big commercial apps.

                            "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

                            E Offline
                            E Offline
                            El Corazon
                            wrote on last edited by
                            #13

                            Aamir Butt wrote:

                            But I was just wondering if 65K limit is enough for big commercial apps.

                            What does your application do? I have never run into this issue, and I push the memory limit to 1.8+gb, I push every limit I possibly can, but I guess I never pushed that one. Yes you should break your module into further smaller modules, not just because of some microsoft limit. 1) Efficiency. Chances are if you have modules that large, you are brute-forcing the machine. I have been accused of the same, and sometimes it is true. I did brute-force one map, I am currently rewriting it to be about 50 times more efficient. 2) Cache use. I guess this goes into efficiency, but you are talking about efficiency related to specific application of hardware. Instruction and memory cache operations will increase your speed two-fold, if you aren't breaking your functions at least to fit into the caches then you are your applications' own worst enemies. 3) maintenance. Other people would put this first, and there is a good reason to do so. If you want your application to last, you want to write it to last multiple releases. You will do rewrites, or at least you better if you want it to last multiple major releases, but you want to at least write something solid enough that you can make modifications: bug fixes and improvements. If your goal is to write code that will never be changed, ever, you're in the wrong business.

                            _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                            A 1 Reply Last reply
                            0
                            • R Ray Kinsella

                              must have made you popular at work ...

                              Regards Ray "Je Suis Mort De Rire" Blogging @ Keratoconus Watch

                              C Offline
                              C Offline
                              Chris Losinger
                              wrote on last edited by
                              #14

                              i'm pretty sure it had no effect

                              image processing | blogging

                              1 Reply Last reply
                              0
                              • A Aamir Butt

                                So, today I managed to reach there ;P This[^] is what I am talking about. I reached this milestone today and am advised by the Microsoft guy to break my module into further smaller modules to avoid getting this problem again. Being at a late stage of a release, I simply can't do it. Thanks to another guy who advised another workaround related to 'String Pooling' due to which I am back on track. But I was just wondering if 65K limit is enough for big commercial apps.

                                "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

                                P Offline
                                P Offline
                                Paul Watson
                                wrote on last edited by
                                #15

                                Aamir Butt wrote:

                                But I was just wondering if 65K limit is enough for big commercial apps.

                                Dude. Yes. Oh god yes. In fact, the limit should be a lot less than that to stop people getting anywhere near that level of insanity. There is *no* way you can mantain it with 65536 members. p.s. I don't envy your job :)

                                regards, Paul Watson Ireland FeedHenry needs you

                                Shog9 wrote:

                                eh, stop bugging me about it, give it a couple of days, see what happens.

                                1 Reply Last reply
                                0
                                • C Chris Losinger

                                  i've seen SQL stored-procs with 6000 lines. i completely refused to work on that part of the application.

                                  image processing | blogging

                                  N Offline
                                  N Offline
                                  NormDroid
                                  wrote on last edited by
                                  #16

                                  Chris Losinger wrote:

                                  i've seen SQL stored-procs with 6000 lines.

                                  :omg:

                                  We made the buttons on the screen look so good you'll want to lick them. Steve Jobs

                                  1 Reply Last reply
                                  0
                                  • C Christian Graus

                                    "The limit for the number of fields in a class on the CLR is 65536." I'm sorry, I don't think I'll ever hit that limit.

                                    Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                                    R Offline
                                    R Offline
                                    Rama Krishna Vavilala
                                    wrote on last edited by
                                    #17

                                    It is possible to reach the limit of you are using C++\CLI and don't partition your projects correctly or use header's incorrectly. That's one of the main reasons I don't like C++\CLI: adds too much junk to the metadata.


                                    1 Reply Last reply
                                    0
                                    • A Aamir Butt

                                      So, today I managed to reach there ;P This[^] is what I am talking about. I reached this milestone today and am advised by the Microsoft guy to break my module into further smaller modules to avoid getting this problem again. Being at a late stage of a release, I simply can't do it. Thanks to another guy who advised another workaround related to 'String Pooling' due to which I am back on track. But I was just wondering if 65K limit is enough for big commercial apps.

                                      "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

                                      N Offline
                                      N Offline
                                      NormDroid
                                      wrote on last edited by
                                      #18

                                      Your handywork or someone elses ( I hope ). X|

                                      We made the buttons on the screen look so good you'll want to lick them. Steve Jobs

                                      1 Reply Last reply
                                      0
                                      • A Aamir Butt

                                        So, today I managed to reach there ;P This[^] is what I am talking about. I reached this milestone today and am advised by the Microsoft guy to break my module into further smaller modules to avoid getting this problem again. Being at a late stage of a release, I simply can't do it. Thanks to another guy who advised another workaround related to 'String Pooling' due to which I am back on track. But I was just wondering if 65K limit is enough for big commercial apps.

                                        "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

                                        J Offline
                                        J Offline
                                        Jun Du
                                        wrote on last edited by
                                        #19

                                        Instead of throwing a run-time exception, Microsoft should have put that limit as a compile-time constraint.

                                        Best, Jun

                                        M 1 Reply Last reply
                                        0
                                        • M Michael P Butler

                                          Aamir Butt wrote:

                                          ut I was just wondering if 65K limit is enough for big commercial apps.

                                          65K. What the hell are you writing! I hesitate to say bad design without knowing what problem your application was built to solve, but it sounds very badly designed to me.

                                          Michael CP Blog [^] Development Blog [^]

                                          E Offline
                                          E Offline
                                          El Corazon
                                          wrote on last edited by
                                          #20

                                          Michael P Butler wrote:

                                          without knowing what problem your application was built to solve

                                          I am curious too. I have some huge classes and large number of globals as I try to fix some design issues of the past. But my software does so many things it sometimes surprises me how bloated it is. But the core is solid which was how I survived even with some bad designs on some of the objects. That large of number of members and the application had better bring world peace!

                                          _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups