首页> 外文会议>Joint Modular Languages Conference(JMLC 2006); 20060913-15; Oxford(GB) >Flexible Type-Safe Linking of Components for Java-Like Languages
【24h】

Flexible Type-Safe Linking of Components for Java-Like Languages

机译:类似于Java语言的组件的灵活的类型安全链接

获取原文
获取原文并翻译 | 示例

摘要

We define a framework of components based on Java-like languages, where components are binary mixin modules. Basic components can be obtained from a collection of classes by compiling such classes in isolation; for allowing that, requirements in the form of type constraints are associated with each class. Requirements are specified by the user who, however, is assisted by the compiler which can generate missing constraints essential to guarantee type safety. Basic components can be composed together by using a set of expressive typed operators; thanks to soundness results, such a composition is always type safe. The framework is designed as a separate layer which can be instantiated on top of any Java-like language; a prototype implementation is available for a small Java subset. Besides safety, the approach achieves great flexibility in reusing components for two reasons: (1) type constraints generated for a single component exactly capture all possible contexts where it can be safely used; (2) composition of components is not limited to conventional linking, but is achieved by means of a set of powerful operators typical of mixin modules.
机译:我们基于类似Java的语言定义了一个组件框架,其中组件是二进制混合模块。可以通过单独编译这样的类来从类的集合中获取基本组件;为了允许这样做,将类型约束形式的要求与每个类相关联。需求由用户指定,但是由编译器协助,编译器可能会生成缺少的约束,这些约束对于保证类型安全至关重要。基本组件可以通过使用一组表达类型的运算符组合在一起;得益于稳健的结果,这样的合成始终是类型安全的。该框架被设计为一个单独的层,可以在任何类似Java的语言之上实例化;小型Java子集提供了原型实现。除了安全之外,该方法还具有很大的灵活性来重用组件,这有两个原因:(1)为单个组件生成的类型约束可精确捕获所有可以安全使用的上下文; (2)组件的组成不限于常规链接,而是通过混合模块典型的一组功能强大的运算符来实现的。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号