Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

death of the locality

  • 09-06-2000 2:05pm
    #1
    Closed Accounts Posts: 120 ✭✭


    I've never liked the principle of locality of reference. In the computing world where everything is so ordered and pricise (mathematically neway) they come up with a theroy that memory access tends to cluster.

    Not really.

    Sure if you use a lot of loops and the same functions over and over again you'll access the same memory over and over again but with the increasing use of object-orientated methods I find I often have code that looks like this :

    myVariable = classOne->classFifeteen->classFour->classNine.array[x] + classOne->classFifeteen->classFour->classNine.array[y]

    It might happen that all these classes and varibales are in the same block of memory but it's not very likely.

    IMO as object-orientated programming becomes more widely used and systems more complex the principle of locality of reference will become less and less useful. Though what are the odds that it will be replaced (if at all) with something useful?


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    My cats name is mittens.

    IMO as object-orientated programming becomes more widely used and systems more complex

    When did you start writing that post? 1980?



  • Registered Users, Registered Users 2 Posts: 16,414 ✭✭✭✭Trojan


    rotflmao smile.gif

    but seriously Hobbes, there's a lot of people still not on the oo bandwagon, take mainframe for an example.

    Al.


  • Registered Users, Registered Users 2 Posts: 6,660 ✭✭✭Blitzkrieger


    database prople say they'll never swith to it cos there's still not a standard.

    Add to that I know 3 peeps in companies not using oo and I don't know that many peeps in software companies


  • Registered Users, Registered Users 2 Posts: 16,414 ✭✭✭✭Trojan


    Well, of a very limited experience of 2 software houses, *both* used strictly non-OO C...

    I know they weren't run of the mill avg co.s (one was a RAID production site, the other is mainframe), but still this shows that whilst OO is widespread it is not the be-all and end-all! smile.gif

    My $0.194324234923423 (on a pentium)...

    Al.

    [This message has been edited by Trojan (edited 13-06-2000).]


Advertisement