Jython
Jython Logo | |
當前版本 |
|
---|---|
原始碼庫 | |
程式語言 | Python 和 Java |
作業系統 | 跨平台 |
平台 | JAVA虛擬機 |
類型 | Python解釋器 |
許可協議 | 多種,見[Jython#許可協議]] |
網站 | www.jython.org |
Jython,(原JPython),是一個用JAVA語言寫的Python解釋器。
概述
Jython程序可以和Java無縫集成。除了一些標準模塊,Jython使用Java的模塊。Jython幾乎擁有標準的Python中不依賴於C語言的全部模塊。比如,Jython的用戶界面將使用Swing,AWT或者SWT。 Jython可以被動態或靜態地編譯成Java字節碼。
Jython還包括jythonc,一個將Python代碼轉換成Java代碼的編譯器。這意味着Python程式設計師能夠將自己用Python代碼寫的類庫用在Java程序里。
許可協議
Jython同時使用以下三種協議授權:[2]
- Python Software Foundation License (v2)
- Jython 2.0, 2.1 license
- JPython 1.1.x Software License.
前兩個是自由軟件協議。第三個還不清楚,因為還沒有被自由軟件基金會接受。
歷史
Jim Hugunin於1997年創造了Jython,並將它發展到1999年。1999年2月,Barry Warsaw接管了他的工作。2000年十月,Jython項目被移動到SourceForge。很長一段時間內主要由Samuele Pedroni負責維護和開發Jython。2004年底,Pedroni將精力集中在PyPy,但他仍然被認為是Jython內部管理層的一員。2005年1月,Brian Zimmer因開發Jython而得到Python軟件基金會的資助。2005年12月,Frank Wierzbicki作為主要開發者接替了Zimmer的工作。2005年,Jython的發展因為缺少優秀的開發者而放緩
2008年3月3日,升阳电脑公司就像之前僱傭2名JRuby開發者那樣請來Ted Leung和Frank Wierzbicki為Jython和Python工作。[3] 開發進度穩步增長。[4][5] Jython現在甚至可以運行Django(類似於Ruby on Rails的框架).[6]
現狀和未來
當前的Jython版本是Jython-2.2.1。它改進了與Java的整合併且實現了CPython 2.2的功能。CPython 2.5將在下一個版本實現。[7].
Jython 2.5的開發版自從2008年7月以來已經提供下載。 2009年5月26日,Jython2.5 rc3 發佈了。[8]
Jython的優點
參見
- IronPython,Python的.NET平台解釋器。
- Python
- PyPy
參考資料
- ^ Release v2.7.3.
- ^ The Jython License. Jython's project. [2008-02-09].
- ^ Leung. The Sun is going to shine on Python. 2008-03-03 [2008-03-03]. 已忽略未知參數
|name=
(幫助) - ^ WhosDoingWhat. Jython's Wiki. 2007-12-29 [2008-02-09].
- ^ Nutter, Charles. Jython's Back, Baby!. 2008-01-03.
- ^ Baker, Jim. Django on Jython: Minding the Gap. 2008-01-03.
- ^ Jython Roadmap. Jython's Project. [2007-05-09].
- ^ Jython Homepage
外部連結
- Jython Home Page
- Jython Sourceforge Page
- differences between CPython and Jython
- Charming Jython: Learn how the Java implementation of Python can aid your development efforts
- Get to know Jython
- Learn how to write DB2 JDBC tools in Jython
- Tips for Scripting Java with Jython
- Jython tips for Python programmers
- Jython license information
- Scripting on the Java platform
- Jython Bibliography