<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    jinfeng_wang

    G-G-S,D-D-U!

    BlogJava 首頁 新隨筆 聯系 聚合 管理
      400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
    http://www.javaworld.com/javaworld/jw-03-2005/jw-0314-scripting-p4.html

    最重要的信息:“目前有so多的Java scripting language”, :-)

    轉一張評測圖:
                   

    作者的final thoughts還是挺有意義的:

    Final thoughts
    If you need to integrate scripting support code into your Java application, my advice is to pick a single scripting interpreter and standardize on it. Costs are associated with each scripting language you support in your product, so don't make more work for yourself by trying to hook more than one scripting interpreter into your application. When adding scripting support, you can further simplify things by using an interpreter written in Java instead of a native interpreter such as Python or Tcl. That will make your solution more portable and simplify the integration task between your Java program and the interpreter.

    If your developers or customers are already familiar with a particular scripting language like Tcl, Python, Ruby, or JavaScript, obviously you'll want to look seriously at the interpreter that supports that language (Jacl, Jython, JRuby, or Rhino, respectively). If you don't have that constraint, you will have a harder choice. In some ways, it's a bit like going to a new car lot. All of the choices will work, so you are left with balancing the differences between the alternatives, such as performance or options.

    Some of these interpreters perform simple tasks faster than others. Some are updated and released more often, or have better documentation or debugging facilities than others. Some support compilation of scripts to bytecode. Some have language syntaxes that will either appeal to a developer or not, depending on preference, programming background, and the specific task at hand. As with most engineering tasks, you have to define your requirements and then investigate some to come up with the right answer.

    If I had to distill what I learned from working with the different interpreters down to a bare minimum, here's what I'd say:

    Jacl eases your entrance into scripting. Integration is simple, and if you need your scripts to be written in Tcl, it works well. If speed is your top priority, you may want to consider other choices.

    Jython is one of the fastest scripting interpreters. From looking at the Website, it seems that Jython development is about to renew, which is good news. There are several good books on Jython. If you like the Python language, Jython is a solid choice.

    BeanShell is not as fast as the quickest of the interpreters, but the 2.0 release supports loading of ordinary Java source, which is a strong selling point. I tried loading and running several Java source programs as scripts and found BeanShell to work fine, which is impressive. The libraries are well-organized and make integration simple. If performance is not the single most important criteria for your scripting interpreter and you want to write Java scripts, look at BeanShell.

    Rhino is the winner of the performance benchmarking test and also supports Java-like syntax in its scripting. There are plenty of books on JavaScript available. Rhino appears to be well supported, and the distribution includes a useful debugger.

    Pnuts is one of the fastest scripting interpreters. I am impressed with the completeness of the documentation, the simple usability of the debugger, and how straightforward it is to get things working with Pnuts. If the Pnuts syntax is a good fit for your needs, this interpreter deserves a good look.

    JudoScript is in the middle of the pack for the performance benchmark, but supports a JavaScript-like syntax that is easy to learn. The documentation seems to be thorough and well organized, and the distribution includes lots of script examples. I ran version 0.9, which seemed to work well.

    JRuby brings the feature set of Ruby to the table. It isn't the fastest of the interpreters, but if Ruby syntax and functionality is important to you, take a look at this interpreter. I ran version 0.8, which seemed to work just fine for my simple tests.

    Groovy has attracted quite a bit of attention and development effort in the Java community. It is one of the fastest interpreters on the benchmarking tests, even without compiling the scripts down to classfiles. The syntax is Java-like and supports some powerful features that Java doesn't. This is an interesting addition to the programmer's toolkit that has a lot of potential.

    posted on 2005-03-15 08:47 jinfeng_wang 閱讀(297) 評論(0)  編輯  收藏 所屬分類: javaZZ
    主站蜘蛛池模板: 亚洲女人被黑人巨大进入| 免费很黄很色裸乳在线观看| 精品亚洲综合在线第一区| 免费国产在线精品一区| 午夜国产大片免费观看| 亚洲AV无码专区国产乱码不卡| 成全视频免费高清| 亚洲色精品三区二区一区| 午夜成人免费视频| 亚洲精品无码aⅴ中文字幕蜜桃| 在线观看免费毛片| 羞羞漫画小舞被黄漫免费| 亚洲成a人片在线观看日本麻豆| 狼色精品人妻在线视频免费| 亚洲综合色在线观看亚洲| a级大片免费观看| 久久亚洲精品成人| 亚洲高清视频免费| 久久亚洲国产最新网站| 免费在线观看毛片| 国产一级高青免费| 亚洲高清免费在线观看| 最新中文字幕免费视频| 一级免费黄色大片| 久久久久亚洲AV无码专区首| 一二三四在线观看免费高清中文在线观看 | 国产天堂亚洲国产碰碰| 亚洲日韩在线中文字幕第一页 | 鲁丝片一区二区三区免费| 亚洲精品中文字幕乱码| 午夜老司机免费视频| www一区二区www免费| 亚洲男人天堂av| 处破痛哭A√18成年片免费| 看成年女人免费午夜视频| 亚洲不卡中文字幕无码| 女人让男人免费桶爽30分钟| eeuss影院ss奇兵免费com| 亚洲精品免费在线| 国产免费看插插插视频| 午夜网站在线观看免费完整高清观看|