| Mark Damon Hughes | What is NetRexx? |
|
|
Index | What is NetRexx? | NetRexx Servlets | NetRexx is Mike Cowlishaw's alternate language for the Java Virtual Machine, based on his human-readable programming language REXX. Here's a minimal NetRexx program: /* date.nrx */ say Date() Compiling and running date.nrx: % nrc -run date NetRexx portable processor, version 2.05 Copyright (c) IBM Corporation, 2005. All rights reserved. Program hello.nrx Compilation of 'hello.nrx' successful Running hello... Fri Jan 13 12:06:39 PST 2006 Here's the equivalent Java program:
/* date.java */
import java.util.Date;
public class date {
public static void main(String[] args) {
System.out.println( new Date() );
}
}
Compiling and running date.java: % javac date.java % java date Fri Jan 13 12:07:33 PST 2006 I use NetRexx pretty routinely. If a task needs a Java library, but I don't feel like writing some giant Java app for one-shot problem-solving, NetRexx comes to my rescue. Last modified: 2006Jan13
|
Links:
Site Pages:
Blog ArchiveBlog Topics:
|