<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
    主站蜘蛛池模板: 成年人免费观看视频网站| 九九九国产精品成人免费视频| 暖暖免费在线中文日本| yy6080久久亚洲精品| 亚洲AV无码男人的天堂| 免费看国产曰批40分钟| 久久亚洲精品11p| 国产一区二区视频免费| 美女被免费网站在线视频免费 | 亚洲五月综合网色九月色| 999在线视频精品免费播放观看| 亚洲第一成年网站大全亚洲| 波多野结衣中文字幕免费视频| 亚洲第一男人天堂| 日本免费网站在线观看| 青青草国产免费国产是公开 | 8x8×在线永久免费视频| 亚洲妇女水蜜桃av网网站| 3344免费播放观看视频 | 67194在线午夜亚洲| 成人免费a级毛片无码网站入口| 亚洲av纯肉无码精品动漫| 亚洲综合色视频在线观看| a毛片在线还看免费网站| 亚洲精品第五页中文字幕| 人妻视频一区二区三区免费| 青青青亚洲精品国产| 亚洲综合无码AV一区二区| 最刺激黄a大片免费网站| 亚洲 欧洲 视频 伦小说| 亚洲五月午夜免费在线视频| 99久久久国产精品免费牛牛四川 | 亚洲日本一区二区| 日韩免费视频播播| 两个人看www免费视频| 亚洲国产精品综合一区在线 | 成人午夜免费福利视频| 四虎影视永久在线精品免费| 亚洲黄色免费电影| 亚洲av高清在线观看一区二区| 一级毛片成人免费看免费不卡|