By Karel Driesen (auth.)

ISBN-10: 146135675X

ISBN-13: 9781461356752

ISBN-10: 1461516811

ISBN-13: 9781461516811

The implementation of object-oriented languages has been an lively subject of analysis because the Sixties while the 1st Simula compiler used to be written. the subject obtained renewed curiosity within the early Nineteen Eighties with the becoming approval for object-oriented programming languages equivalent to c++ and Smalltalk, and acquired one other develop with the appearance of Java. Polymorphic calls are on the middle of object-oriented languages, or even the 1st implementation of Simula-67 contained their vintage implementation through digital functionality tables. actually, digital functionality tables predate even Simula-for instance, Ivan Sutherland's Sketchpad drawing editor hired very comparable buildings in 1960. equally, through the Seventies and Nineteen Eighties the implementers of Smalltalk structures spent huge efforts on enforcing polymorphic demands this dynamically typed language the place digital functionality tables couldn't be used. Given this lengthy background of analysis into the implementation of polymorphic calls, and the fairly mature status it completed over the years, why, one may well ask, may still there be a brand new publication during this box? the answer's uncomplicated. either software program and have replaced significantly in recent times, to the purpose the place many assumptions underlying the unique paintings during this box aren't any longer actual. particularly, digital functionality tables aren't any longer adequate to enforce polymorphic calls even for statically typed languages; for instance, Java's interface calls can't be applied this fashion. moreover, trendy processors are deeply pipelined and will execute directions out-of­ order, making it tough to foretell the execution time of even easy code sequences.

Show description

Read Online or Download Efficient Polymorphic Calls PDF

Similar object-oriented software design books

Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day

Sams educate your self internet Publishing with HTML and CSS in a single Hour an afternoon is a brand new version of the best-selling publication that began the complete HTML/web publishing phenomenon. the total publication has been revised and sophisticated to mirror present net publishing practices and applied sciences. It comprises vast assurance of Cascading sort Sheets (CSS), that have turn into a staple in internet improvement.

Implementing Application Frameworks: Object-Oriented Frameworks at Work

Item expertise A gold mine of company program frameworks enforcing program Frameworks whereas frameworks can store your organization hundreds of thousands in improvement expenditures over the years, the preliminary funding could be very excessive. This book/CD-ROM package deal permits you to decrease the price of framework improvement through delivering forty case stories documenting the stories of framework developers and clients at significant firms and examine labs, world wide.

UML Applied: A .NET Perspective

UML utilized: A . web point of view is the 1st publication to envision the 2 worlds of Unified Modeling Language (UML) and . internet simultaneously. The middle of UML utilized: A . web viewpoint is a collection of confirmed, hands-on, team-oriented routines that may have the reader fixing real-world issues of UML speedier than whilst utilizing the other approach—often in lower than an afternoon.

A theory of Objects

Procedural languages are often good understood and their formal foundations forged within the kinds of quite a few lambda-calculi. For object-oriented languages but the scenario isn't as simple. during this booklet the authors suggest and advance a unique technique via constructing item calculi during which items are handled as primitives.

Extra resources for Efficient Polymorphic Calls

Example text

5% real overhead. Out of an array with 1388 entries, only 3 are unoccupied, and even these gaps are caused by contention over row offsets by one-entry rows, not by true fitting conflicts (remember that all rows need to have unique offsets in the compressed array). 3, we will present compression results for several other single inheritance class libraries. 4 CLASS NUMBERING FOR MULTIPLE INHERITANCE The depth-first numbering scheme can easily be applied to a multiple inheritance class library. a.

2 SAMPLES We choose sample class libraries taken from real systems for three reasons: it facilitates comparison with other methods, it eliminates the extra step of verifying whether the real world behaves the same as the artificial samples, and as an aside it gives us the opportunity to gather some statistics from programs with hundreds of classes, which is interesting in its own right. On the other hand, the data points do not cover the realm of possible class libraries as evenly as we would wish.

3). 5 PROGRAMMING ENVIRONMENT ASPECTS The choice of a dispatch technique is influenced by considerations other than space cost and execution speed (discussed in Section 5). Code organization and demands put upon the programming environment can preclude some techniques from being used. The following aspects, though non-comprehensive, give an idea of the issues involved: • Responsiveness. , immediate feedback to programming changes). Most static techniques need to recompute some data structures after a programming change.

Download PDF sample

Efficient Polymorphic Calls by Karel Driesen (auth.)


by David
4.0

Rated 4.95 of 5 – based on 5 votes