March 29, 2005

OOo 2.0 與 Java

OOo 2.0 將有更多 Java 的整合,有趣的是,OOo 本身是 free 的,但是 OOo's Java integration 不全然是 free 的,引用了一些 Sun 專屬的 APIs,這阻撓了 Free Java Runtime 的使用。

我們來看一些新聞報導,NewsForge 的 [OpenOffice.org 2.0 and the FOSS community],爾後 Slashdot 引述這篇報導 [Java Fallout: OO.o 2.0 and the FOSS Community],Bruce Byfield 提到 OOo Java 的議題,我們也可以看到 Debian/Ubuntu 與 Gentoo 對此議題的態度,在沒有 Free Runtime 徹底支援的前提,就可能要犧牲這個 Integration。而 RedHat 本身有 GCJ team 在做這樣的突破,可以參考 Anthony Green 前輩的 blog [OO.o 2.0 and gcj],已經有初步的成效了。

但無論如何,這也彰顯 Free/Open-Source 發展的意義,透過所謂的「社群」參與,檢視過去 OOo codebase 許多不適當的設計,而原本 Java Integration 過多的錯誤假設 (跟 Sun JDK 緊密的整合,排除 follow Java spec 的 VM),也逐步被修正。這些 Sun undocumented APIs 的使用的確使得 GCJ team 疲於奔命。我們也可以發現有趣的現象,如 Taras Glek 的回覆 [Re: Java fallout: OpenOffice.org 2.0 and the FOSS community] 甚至提到:


    In reality open source Java runtimes are good enough for a surprising amount of tasks. They just need more developer attention and respect. GCJ and Kaffe are already kicking some Sun ass. Both can run eclipse. Soon they will run it well. I have some Java code that runs 20x faster under Kaffe due to bugs in hotspot. GCJ allows people to distribute binary versions of their software without demanding that end users download the bloat-o-runtime from Sun.

這是 Free Runtime 的好處,我們可以針對特定情況作最佳化,也可以透過 GCJ 這樣的機制來將 OOo 打包成適合 redistribution 的套件。

Free Java rules!

由 jserv 發表於 March 29, 2005 09:05 AM
迴響
發表迴響









記住我的資訊?