首页> 外文会议>Generic Programming >Efficient Implementation of Run-time Generic Types for Java
【24h】

Efficient Implementation of Run-time Generic Types for Java

机译:Java的运行时通用类型的有效实现

获取原文
获取外文期刊封面目录资料

摘要

We describe an efficient compiler and run-time system for NEXTGEN, a compatible extension of the Java programming language supporting run-time generic types designed by Cartwright and Steele. The resulting system is comparable in performance with both standard Java and the GJ extension of Java, which does not support run-time generic types. Our implementation of NEXTGEN consists of a compiler extending the GJ compiler and a special class loader that constructs type instantiation classes on demand. The compiler relies on the implementation strategy proposed by Cartwright and Steele with one major exception: to support polymorphic recursion in the definition of generic classes, the compiler generates templates for instantiation classes which are constructed on demand by the class loader. We include an extensive set of benchmarks, specifically developed to stress the use of generic types. The benchmarks show that the additional code required to support run-time generic types has little overhead compared with ordinary Java and GJ.
机译:我们描述了NEXTGEN的高效编译器和运行时系统,NEXTGEN是Java编程语言的兼容扩展,支持由Cartwright和Steele设计的运行时泛型类型。最终的系统在性能上可与标准Java和Java的GJ扩展(不支持运行时泛型类型)相媲美。我们对NEXTGEN的实现包括一个扩展GJ编译器的编译器和一个特殊的类加载器,该类加载器根据需要构造类型实例化类。编译器依赖于Cartwright和Steele提出的实现策略,但有一个主要例外:为了在通用类的定义中支持多态递归,编译器会为实例化类生成模板,这些模板是由类加载器按需构造的。我们包括一组广泛的基准,这些基准是专门为强调泛型类型的使用而开发的。基准测试表明,与常规Java和GJ相比,支持运行时泛型类型所需的其他代码的开销很小。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号