[翻译:陈市明 摘自:http://www.jython.org]
Jython项目
SupeSite/X-Space社区门户+V|t
DW3]
Jython是用纯java实现的动态面向对象的高级语言,她无缝的结合了java和python两种语言。用户可以在任何java虚拟机上使用python。
HT3L)q&~z'v#c:J2 最新消息:目前发布的最新Release版本是Jython 2.2 Beta
HD3|8F'l2hw2什么是JythonSupeSite/X-Space社区门户Z0d�~@5n[_
Jython是动态面向对象的高级语言,可以无缝集成到java平台上。不管你是商业还是非商业的,都可以免费的使用Jython,也可以和你的源码一起发布。Jython可以弥补java的某些缺点特别是在一下几个方面:
(N%n?r:a
E;i.^;WS{2 * 嵌入式教本 - Java开发人员在他们的系统中添加Jython的类库后,可以允许最终用户在他们的系统中编写各种脚本
_.y'\,Z%{!J'h2 * 交互式测试 - Jython可以提供允许和java交互的接口,方便开发人员在java系统中有效调试SupeSite/X-Space社区门户Z @6|z$lr M
* 快速开发 - 同样的功能,java的代码量是python的2到10倍左右,python的开发效率远远比高于java的开发。python和java的无缝的交互是的快发爱发人员可以免费的同时使用两种语言进行开发。
z
y#t~H$}6FF*d2 有许多脚本语言可以在java虚拟机中运行,但是jython相比较,有以下优势:
5G/QcwOd%y2 * 动态编译成java字节码
P8G9f
k'O-ac2 * 通过jython可以直接调用现有的java类SupeSite/X-Space社区门户4L1J#D]f$n'OC
* Bean PropertiesSupeSite/X-Space社区门户
p4u/{*_s(|6H
* python语法
&cC�Q;[6yh P2
Q!y9?.z$?FS2
"]L
U+?d9?!I2
a^ vyHa9R:gS6B3u2The Jython Project
6Bf0xm�s/S~*Vvz[2SupeSite/X-Space社区门户pKA#n;N;S#S P;j%f
Jython
is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated
with the Java platform. It thus allows you to run Python on any Java
platform.SupeSite/X-Space社区门户YS,LP7K#~!@
SupeSite/X-Space社区门户*{$x i`Q9o
Latest News
TK*i_8dK9LV2
'IL"Dg-J8T2The Jython development team is proud to announce a new release: Jython 2.2 Beta1!SupeSite/X-Space社区门户eKW/MYQ
m/L&K5BupeSite/X-Space社区门户eKW/MYQ
The Jython Project
Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.
Latest News
The Jython development team is proud to announce a new release: Jython 2.2 Beta1!
* Download it,
* install it,
* then kick the tires and start filing bug reports to help get 2.2 polished up and done, so we can get going on the next Jython 2.x.
What is Jython?
Jython, lest you do not know of it, is the most compelling weapon the Java platform has for its survival into the 21st century:-)
—Sean McGrath, CTO, Propylon
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.
There are numerous alternative languages implemented for the Java VM. The following features help to separate Jython from the rest:
* Dynamic compilation to Java bytecodes - leads to highest possible performance without sacrificing interactivity.
* Ability to extend existing Java classes in Jython - allows effective use of abstract classes.
* Optional static compilation - allows creation of applets, servlets, beans, ...
* Bean Properties - make use of Java packages much easier.
* Python Language - combines remarkable power with very clear syntax. It also supports a full object-oriented programming model which makes it a natural fit for Java's OO design.
m/L&K5B
m/L&K5B