Judoscript

Judoscript
Paradigm object-oriented, scripting
Designed by James Jianbo Huang
Developer James Jianbo Huang
First appeared November 2001
Stable release RC1 / Dec. 2006
Typing discipline dynamic, strong
Platform JVM
License LGPL
Website http://judoscript.org/home.html
Influenced by
Python, Ruby, Perl, Smalltalk, Java

Judoscript is one of several general purpose programming languages designed primarily for scripting on the Java platform. Its originator and primary developer is software engineer James Jianbo Huang.[1][2][3]

Overview

Judoscript was one of the first general purpose scripting languages designed specifically for use with the Java platform.

History

James Jianbo Huang originated Judoscript initially as a collection of several separate packages, libraries and Domain specific languages that he originated for use with the Java platform in J2EE Enterprise applications.

Huang designed Judoscript to provide a globally simple and intuitive scripting framework capable of leveraging the full suite of Java packages and third-party extensions to Java. The foundation of this design strategy was to provide an infrastructure: 1) with all the flexibility of a command shell; 2) with full interoperability and access to all facilities of Java; and 3) a simplified syntax that was intuitive to developers who are not necessarily Java programmers.[1]

Language design

Because of the design principles of Judoscript, Huang has stated that it is generally not suitable for Enterprise-scale application development, and is not intended to replace traditional Java syntax. For example, unlike the Beanshell scripting language, Judoscript has many simplifying syntax constructs (i.e., "syntactic sugar") that is not available within traditional Java syntax. This means that code written for Judoscript cannot be expected to compile in a Java compiler without any changes.

The advantage gained by this trade-off is that Judoscript allows for specialized constructs that are designed specifically for use with a given problem-domain. This obviates the need for "bottom up" programming that is designed from scratch using basic data structures and custom-made algorithms. Admittedly, such "bottom-up" programming is already obviated in large part by the extensive availability of standard and third-party libraries within the Java platform itself. The problem, according to Huang, is that these libraries often assume a higher level of experience with Java programming than is feasible or practical given the development requirements of most scripting applications.

Language features

Example: a simple HTML scraping routine written as a loop:

// print out information found inside HTML
do 'http://www.example.com' as sgml {
    <a>:          println 'Found a hyperlink:' , $_.href;
    <p>:          println 'Found a paragraph tag.';
    TEXT:         println 'Found some text:'   , $_.length();
}

See also

References

  1. 1 2 "Judoscript Home Page". Retrieved 2007-10-04.
  2. Artiges, Mark (2004). Bea Weblogic Server 8. 1 Unleashed. Indianapolis: SAMS. ISBN 0-672-32487-3.
  3. Holzner, Steven (2005). Ant. Sebastopol: O'Reilly. ISBN 0-596-00609-8.

External links

This article is issued from Wikipedia - version of the Friday, April 08, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.