Posted on 2005-01-23 12:22
tedazf 阅读(1349)
评论(4) 编辑 收藏
今天无聊就上了Python的官方网站,看到了Jython语言介绍,简单的翻译一点介绍贴过来,英文原本附在后面。
什么是Jython?
Jython是一种高层次整合Python语言与Java平台的,动态的、面向对象的编程语言。Jython的前身——Jpython,被确认为100%的纯Java。Jython无论是否是商业上的使用都可以免费的使用。Jython补充了Java,且尤其适合在以下几方面:
l 内嵌脚本 Java允许在程序中加入Jython的类库,并且允许用户编写简单或复杂的脚本以函数的形式加入程序。
l 交互性试验 Jython提供了一个可以被用于与Java包和Java运行中的程序交互的解释器,这也就允许用Jython来调试Java程序。
l 程序快速开发 Jython开发同等Java程序,但开发时间只是Java开发时间的二分之一到十分之一。这将直接增长编程的生产力。Java与Jython的无缝整合允许开发者在开发过程中自由的混合两种语言。
What is Jython?
Jython is an implementation of the high-level, dynamic, object-oriented language Python seamlessly integrated with the Java platform. The predecessor to Jython, JPython, is certified as 100% Pure Java. Jython is freely available for both commercial and non-commercial use and is distributed with source code. Jython is complementary to Java and is especially suited for the following tasks:
- Embedded scripting - Java programmers can add the Jython libraries to their system to allow end users to write simple or complicated scripts that add functionality to the application.
- Interactive experimentation - Jython provides an interactive interpreter that can be used to interact with Java packages or with running Java applications. This allows programmers to experiment and debug any Java system using Jython.
- Rapid application development - Python programs are typically 2-10X shorter than the equivalent Java program. This translates directly to increased programmer productivity. The seamless interaction between Python and Java allows developers to freely mix the two languages both during development and in shipping products.