首页> 外文期刊>Computer Languages, Systems & Structures >A minimalist approach to objects
【24h】

A minimalist approach to objects

机译:物体的简约方法

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

摘要

Dynamically typed environment-passing interpreters (EPIs), such as Scheme, are known for their small footprint. In this era of ubiquitous computing, there is an advantage for providing in situ programming support for systems having limited resources. Thus, EPIs may play an important role in programming embedded systems, especially with system-on-a-chip approaches. It is desirable that embedded interpreters be full featured, such as including an object system. By taking a view that equates function definitions with classes and environments with objects, it is shown how any EPI having functions and environments as first-class objects can be made object-oriented with a strong inheritance model through the addition of proxies and judicious use of dynamic scope and/or assignment. Moreover, the sum total of the necessary changes is surprisingly small. The result is an object-oriented interpreter with little additional cost in terms of interpreter size or specialized syntax.
机译:动态类型的环境传递解释器(EPI)(例如Scheme)以其占用空间小而闻名。在无处不在的计算时代,具有为资源有限的系统提供原位编程支持的优势。因此,EPI在嵌入式系统的编程中可能扮演重要角色,尤其是在片上系统方法中。期望嵌入式解释器具有全部功能,例如包括对象系统。通过将函数定义与类和环境与对象等同起来,可以说明如何通过添加代理和明智地使用代理将具有函数和环境作为一等对象的任何EPI都具有强大的继承模型,使其面向对象。动态范围和/或分配。此外,必要更改的总和令人惊讶地很小。结果是面向对象的解释器,在解释器大小或专用语法方面几乎没有额外的成本。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号