Tips for using Elite and JRuby dynamic languages in Operamasks

Source: Internet
Author: User
Tags expression

With the launch of Microsoft's IronPython, the first Open-source programming tool based on dynamic language was launched, followed by Sun's formal announcement that the acquisition of Jruby,ruby would become the first dynamic language supported by the JVM, and dynamic languages were always around us. How to use dynamic language to help us write Javawebui? What kind of dynamic language can fit into the Java development team? SirsiDynix's architect Travisjensen five rough metrics to evaluate the performance of the Groovy,jruby,jython three dynamic languages in Java.

1. Interaction between a dynamic language and Java

Support for 2.IDE Tools

3.Java Learning curve for developers

4. Alternative Web Framework

5. Community Support

The conclusion is that groovy will be the most suitable dynamic language in javaweb development. In this also do not comment on these comments, simple combination of AOM this JSF implementation, introduce several dynamic languages in the Javaweb development of the use. In the process of familiarity with AOM, the new dynamic language of elite was discovered, and as elite and AOM were the same development team's products, an example was also made of the combined use of the two.

While doing the following, you need to make a simple introduction to the development environment you use:

Java2standardedition (J2SE) 5.0 (JDK1.5) or later, download address: http://java.sun.com/javase/downloads

ApusicApplicationServer5.1 (built-in AOM2.0 and ELite0.2) Download address: http://www.apusic.com/dist/apusicAS/

ApusicOperaMasks2.0 (Spring plug-in with Spring2.0 and AOM) Download address: Http://www.operamasks.org/download

APUSICSTUDIO5.1M5 Download Address: http://www.apusic.com/dist/apusicStudio/

JRuby1.1.2 Download Address: http://dist.codehaus.org/jruby/

As for the path or java_home, and so on set, here is not all about the,

2. Use of Elite in Operamasks

Because of the elite support embedded in the AOM, it is easy to use elite dynamic language in applications that use AOM as a web framework, either directly as an El expression in an XHTML page, or directly using elite in a background bean. are very natural and reliable choices.

Introduction to 2.1.ELite

Elite's introduction also needs to start with the El (expressionlanguage) expression language, and in JSP2.0, an expression language called Expressionlanguage is introduced, with the main purpose of facilitating user access to JavaBean in the background. In JSF1.1, because JSP2.0 El cannot satisfy all requirements, a set of its own El expression language is also defined in JSF1.1; Fortunately, in JSP2.1 and JSF12, the two were unified and renamed: Unifiedexpressionlanguage, Abbreviation: EL.

Elite, born out of the El running engine in AOM, has greatly expanded the El expression language on the basis of JSR-252, becoming a new dynamic language, and Elite is an object-oriented programming language with command and functional style. Both High-order functions (first-classfunctions), List derivation (list-comprehension), pattern matching (pattern-matching), The language features of functional languages such as delay evaluation (lazy-evaluation) have the same grammatical structure as Java, so that users who are familiar with Java are easy to use.

At present, Elite has been drawn out from the Operamasks, its Project homepage is: Www.sourceforge.net/projects/aom-elite, The elite engine is included in the latest downloaded ApusicApplicationServer5.1 or the latest AOM2.0.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.