The Artima Developer Community
Sponsored Link

Java Buzz Forum
Modularization Strategies in Scripting Languages

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Toyokazu Tomatsu

Posts: 66
Nickname: tomatsu
Registered: Jul, 2003

Toyokazu Tomatsu is a developer of Pnuts.
Modularization Strategies in Scripting Languages Posted: Apr 9, 2004 10:22 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Toyokazu Tomatsu.
Original Post: Modularization Strategies in Scripting Languages
Feed Title: Pnuts Addict
Feed URL: http://pnuts.org/~tomatsu/jroller-rss.xml
Feed Description: Toyokazu Tomatsu's Weblog
Latest Java Buzz Posts
Latest Java Buzz Posts by Toyokazu Tomatsu
Latest Posts From Pnuts Addict

Advertisement

Another aspect of scripting engines that influences their applications is how they reuse/construct modules. This memo may help you understand the differences among the scripting engines.

Reuse - What are the components?
  • (1) Java classes (a.k.a POJO)
  • (2) Java classes that implement a particular interface
  • (3) Functions or classes of the language, accessible via a module system
  • (4) Symbols that are available when script files are loaded
Construction - How to make a component
  • (A) Generate Java classes from scripts
  • (B) Write Java code and compile it
  • (C) Provide a set of functions/classes in a script file

NormativeOptional
Pnuts21, 3, 4(Reuse)
B (C)A(Construction)
Rhino2 (4)1, 3
BA, C
Jython31, 4
CB, A
Groovy14
A (B)C
Beanshell4 (1)-
CB

Caveat:

- Each section is a typical usage that I found on the web.

Summary:

- Pnuts, Rhino, and Jython make use of their own module system. Jython makes use of existing Python libraries provided as script files.
- Groovy uses Java classes as their components.
- Beanshell uses simple script files for small applications, and Java classes for larger applications.

Comments and corrections are welcome.

Read: Modularization Strategies in Scripting Languages

Topic: Three Minor Velocity Peeves Previous Topic   Next Topic Topic: OTA MIDlet Installation on PalmOS Devices

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use