课题基金 / 基金详情

Scalable Optimization of Generic Java

Scalable Optimization of Generic Java
通用 Java 的可扩展优化
批准号:
0105596
负责人:
Robert Cartwright
金额:
$22.0万
依托单位国家:
美国
项目类别:
Standard Grant
财政年份:
2001
资助国家:
美国
项目状态:
已结题
起止时间:
2001-09-01 至 2005-08-31

项目摘要

项目成果

Robert Cartwright的其他基金

相似基金

相关文献

中文摘要
翻译
Java程序员依赖于笨拙的“擦除”习惯用法来定义泛型操作:泛型类由常规类表示,其中对类型参数的所有引用都已被类型对象替换。依赖这一习惯用法的程序必须将泛型操作的结果反复强制转换为省略类型参数的类型。Java中的泛型操作比非泛型操作慢,因为这个习惯用法在表示实例化为基元类型的类型参数时引入了一定程度的间接性。研究人员最近完成了NexGen的原型编译器的构建,NexGen是由研究人员和Guy Steele设计的支持泛型的Java扩展。编译器依赖擦除习惯用法来实现泛型,因此不会提高涉及泛型类的计算的性能。要为泛型Java产生良好的性能,编译器必须消除泛型类实例表示中的间接性。必要的转换称为{\em整个程序分析},因为如果任何程序操作依赖于内联对象的地址,则它是无效的。幸运的是,在具体类型分析研究人员之前的工作基础上,有一个近乎线性的算法可以确定给定的对象字段是否可以内联。该项目将为NextGen开发一个新的优化编译器,它使用具体类型分析来内联泛型类的参数字段。
英文摘要
Java programmers rely on clumsy "erasure" idiom to define generic operations: a generic class is represented by conventional classes where all references to type parameters have been replaced by the type Object. Programs that rely on this idiom must repeatedly cast the results of generic operations to the types of omitted type parameters. Generic operations in Java are slower than their non-generic counterparts because this idiom introduces a level of indirection in the representation of type parameters instantiated as primitive types.The investigator has recently completed the construction of a prototype compiler for NexGen, a Java extension supporting genericity designed by the investigator and Guy Steele. The compiler relies on the erasure idiom to implement genericity and hence does not improve the performance of computations involving generic classes.To produce good performance for generic Java, a compiler must eliminate indirection in the representation of generic class instances. The requisite transformation is called {\em whole program analysis} because it is invalid if any program operation depends on the address of an inlined object. Fortunately, there is a nearly linear algorithm based on previous work by the investigator on concrete type analysis that can determine if a given object field can be inlined.This project will develop a new optimizing compiler for NextGen that uses concrete type analysis to inline the parametric fields of generic classes.
期刊论文(0)
专著(0)
科研奖励(0)
会议论文
SoD: Synthesizing Device Drivers
  • 批准号:
    0439017
  • 项目类别:
    Standard Grant
  • 资助金额:
    $0.0万
  • 财政年份:
    2004
  • 负责人:
    Robert Cartwright
  • 依托单位:
EI: Can We Teach Object-Oriented Design to Beginners?
  • 批准号:
    0306140
  • 项目类别:
    Continuing grant
  • 资助金额:
    $0.0万
  • 财政年份:
    2003
  • 负责人:
    Robert Cartwright
  • 依托单位:
First-Class Genericity for Java
  • 批准号:
    0306494
  • 项目类别:
    Continuing Grant
  • 资助金额:
    $0.0万
  • 财政年份:
    2003
  • 负责人:
    Robert Cartwright
  • 依托单位:
Educational Innovation: Exploring a Safe Approach to Software Engineering
  • 批准号:
    9713032
  • 项目类别:
    Standard Grant
  • 资助金额:
    $49.85万
  • 财政年份:
    1997
  • 负责人:
    Robert Cartwright
  • 依托单位:
国内基金
海外基金
Scalable Learning and Optimization: High-dimensional Models and Online Decision-Making Strategies for Big Data Analysis
供应链管理中的稳健型(Robust)策略分析和稳健型优化(Robust Optimization )方法研究
  • 批准号:
    70601028
  • 项目类别:
    青年科学基金项目
  • 资助金额:
    7.0万元
  • 批准年份:
    2006
  • 负责人:
    王明征
  • 依托单位: