Towards partially evaluating reflection in Java
Mathias Braux, Jacques Noyé · ACM SIGPLAN Notices · 1999
Reflection plays a major role in the programming of generic applications. However, it introduces an interpretation layer which is detrimental to performance. A solution consists of relying on partial evaluation to remove this interpretation layer. This paper deals with improving a standard partial evaluator in order to handle the Java reflection API. The improvements basically consist of taking type information into account when distinguishing between static and dynamic data, as well as introducing two new specialization actions: reflection actions . Benchmarks using the serialization framework show the benefits of the approach.
Cited by 10 works. doi:10.1145/328691.328693 Open-access PDF
Authors
References
- Lecture Notes in Computer Science 1205
- The Computer Science Department.
- Aspect-oriented programming
- Partial evaluation and automatic program generation
- Tutorial notes on partial evaluation
- Object-oriented type systems
- A uniform approach for compile-time and run-time specialization
- Documenting frameworks using patterns
- Frameworks in the Financial Engineering Domain An Experience Report
- Tempo