ComputingComputer ScienceCompilersProgramming LanguagesSystems ProgrammingCompiler ConstructionSoftware ConstructionType CheckingType SystemsStatic Type CheckingType Inference
We present the rationale, design, and implementation of Relaxed MultiJava (RMJ), a backward-compatible extension of Java that allows programmers to add new methods to existing classes and to write multimethods. Previous languages supporting these forms of extensibility either restrict their usage to a limited set of programming idioms that can be modularly typechecked (and modularly compiled) or simply forego modular typechecking altogether. In contrast, RMJ supports the new language features in a virtually unrestricted form while still providing mostly-modular static typechecking and fully-modular compilation. In some cases, the RMJ compiler will warn that the potential for a type error exists, but it will still complete compilation. In those cases, a custom class loader transparently performs load-time checking to verify that the potential error is never realized. RMJ's compiler and custom loader cooperate to keep load-time checking costs low. We report on qualitative and quantitative experience with our implementation of RMJ.
26
William Harrison, Harold Ossher · 1993 · 651 citations · Full text
Fast static analysis of C++ virtual function calls
David F. Bacon, Peter F. Sweeney · 1996 · 512 citations
Dynamic class loading in the Java virtual machine
Gilad Bracha · 1998 · 385 citations · Full text
Object-oriented programming with flavors
David A. Moon · ACM SIGPLAN Notices · 1986 · 302 citations
Robert Cartwright, Mike Fagan · 1991 · 302 citations · Full text