[LWN Logo]
[LWN.net]
From:	 Kathryn Barrett <kathrynb@oreilly.com>
To:	 lwn@lwn.net
Subject: "Jython Essentials" Released by O'Reilly
Date:	 Tue, 9 Apr 2002 20:08:27 -0700 (PDT)

For Immediate Release
April 9, 2002
For more information, a review copy, cover art, or an interview with
the authors, contact:
Kathryn Barrett (707) 827-7094 or kathrynb@oreilly.com 


Rapid Scripting a la Python in Java:
O'Reilly Releases "Jython Essentials"


Sebastopol, CA--History teaches us that the combination of two
fundamentally valuable substances can produce yet another substance
that is also of value. Steel, which is made by adding a small amount of
carbon to iron, has turned out to be a rather nifty metal. Which does
not imply that iron and carbon are not useful on their own. Man's use
of iron tools ushered the end of the Stone Age. And carbon--in
combination with other elements--forms the basis for life. It also
makes good pencil lead. In programming circles, we have Jython: an
implementation of the Python programming language written in Java.

"Jython is an increasingly important target platform for client and
server side applications with a wide range of powerful existing tools,"
explains Noel Rappin, coauthor with Samuele Pedroni of "Jython
Essentials" (O'Reilly, US $24.95). "Jython offers an alternative to the
Java language for using these tools, offering shorter programs that are
easier to write, read, and maintain. Using Jython can cut development
time significantly."

As Pedroni and Rappin explain, Jython combines a scripting language of
unparalleled ease of development with an operating environment for
which many powerful tools have been written. The combination can be
immensely valuable for programmers, enabling them to cut development
time significantly while still retaining the ability to use existing
Java tools, such as applets and Servlets. Just as Python was originally
conceived as glue to bind together other programs, Jython acts as glue
to help developers get the most out of Java-based tools. In particular,
Pedroni and Rappin assert, Jython excels at simplifying the use of
complex Java programming libraries and APIs, such as the Swing
graphical interface toolkit or the JDBC database connectivity API.

"The subject matter is important to programmers who want a choice of
languages when dealing with Java Virtual Machine," says Rappin. "By
offering this choice, Jython makes the JVM more powerful and more
valuable to its developers."

"While the one platform, one language approach has its advantages and
appeal," Pedroni adds, "Jython doesn't want to replace Java, but to
integrate with it. The right point of view is to imagine Unix with only
C, without Perl and Python, and think whether that would make sense."

"Jython Essentials" provides a solid introduction to the Python
language, offering a brief but thorough tour of Python concepts
necessary to use Jython effectively. The book makes frequent
comparisons between Python and Java with special emphasis on the
different object-oriented semantics of the two languages.

The book also covers the various ways in which Jython and Java can
interact. For example, Jython code can create instances of preexisting
Java classes and call methods in those instances. Programmers can write
Jython classes that are direct subclasses of existing Java classes and
use introspection to discern the capabilities of JavaBeans components.
"Jython Essentials" provides examples of how to use Jython with
existing Java libraries, including the Swing GUI toolkit, the JDBC
database API, the Servlet API, and various XML tools.

This book was written for Java programmers who want to learn Jython to
be more productive with the tools they already know, or to add
scripting capabilities to existing programs. Readers will also include
Python programmers who want to use Java tools without giving up the
productivity gains of using Python. Regardless of their background,
developers will find everything they need to start creating
applications that mix the best of Python's interactivity and Java's
robust libraries in "Jython Essentials."

Additional resources:

An article by coauthor Noel Rappin, "Tips for Scripting Java with
Jython" can be found at:
http://www.onjava.com/pub/a/onjava/2002/03/27/jython.html

Chapter 1, "Introduction to Jython" is available free online at:
http://www.oreilly.com/catalog/jythoness/chapter/ch01.html

For more information about the book, including Table of Contents,
index, author bios, and samples, see:
http://oreilly.com/catalog/jythoness/

For a cover graphic in jpeg format, go to:
ftp://ftp.ora.com/pub/graphics/book_covers/hi-res/0596002475.jpg

Jython Essentials
By Samuele Pedroni and Noel Rappin
ISBN 0-596-00247-5, 277 pages, $24.95 (US), $38.95 (CAN)
order@oreilly.com
1-800-998-9938
1-707-827-7000
http://www.oreilly.com

About O'Reilly 
O'Reilly & Associates is the premier information source for
leading-edge computer technologies. The company's books, conferences,
and web sites bring to light the knowledge of technology innovators.
O'Reilly books, known for the animals on their covers, occupy a
treasured place on the shelves of the developers building the next
generation of software. O'Reilly conferences and summits bring alpha
geeks and forward-thinking business leaders together to shape the
revolutionary ideas that spark new industries. From the Internet to
XML, open source, .NET, Java, and web services, O'Reilly puts
technologies on the map. For more information: http://www.oreilly.com

# # #

O'Reilly is a registered trademark of O'Reilly & Associates, Inc. All
other trademarks are property of their respective owners.