ossp-web/pkg/lib/js/index.wml
#use wml::ossp area=pkg:lib subarea=js
<title>OSSP js</title>
<img src="spidermonkey.png" alt="" align="right">
<h1>Mozilla JavaScript Engine</h1>
<h2>Abstract</h2>
OSSP js is a stand-alone distribution of the JavaScript
(JS) programming language reference implementation from <a
href="http://www.mozilla.org/">Mozilla</a> -- aka JSRef or <a
href="http://www.mozilla.org/js/spidermonkey/">SpiderMonkey</a>. This
distribution provides a smart, stand-alone and portable distribution of
Mozilla JavaScript through a build environment based on GNU autoconf,
GNU libtool and GNU shtool, including support for easy JavaScript
build-time feature set selection (ECMA-3, JS-1.5, JS-1.6), optional
CLI line editing support, optional "stdio" based File object support,
optional Dynamic Shared Object (DSO) based C extension loading support
and JS/Perl bindings. Additionally, the C API in "libjs" contains both
the JavaScript engine and the required Sun math library ("fdlibm") and
with all internal symbols carefully protected under the "js" namespace.
Finally, a js-config(1) utility and a pkg-config(1) specification is
provided to allow applications to easily build with the JavaScript C
API.
<h2>Justification</h2>
OSSP js was created because for OSSP and similar pedantic C coding
projects a smart, stand-alone, portable, clean, powerful and robust
scripting language engine is required. JavaScript is a great programming
language and Mozilla JavaScript "SpiderMonkey" definitely is an
acceptable clean, powerful and robust implementation. Unfortunately
there is just a stand-alone distribution released from time to time
by Mozilla and it is far away from really being smart, stand-alone
and portable. At least for OSSP it was not acceptable having to
tell the community that for small and stand-alone C components like
the OSSP components they either have to install the great but large
Mozilla Firefox application (where Mozilla JavaScript is included) or
have to fiddle around theirself with an older stand-alone JavaScript
distribution and its weak build environment. OSSP js combines the best
from two worlds: the 1:1 repackaged JavaScript code base from Mozilla
and the usual amount of GNU autoconf, GNU libtool and GNU shtool
wrappers as always used by OSSP. Additionally, stand-alone ("stdio"
instead of NSPR based) File object support was required.
<h2>Versioning</h2>
The version of OSSP js is M.N.YYYYMMDD where M.N is the JavaScript
branch and YYYYMMDD is the date where the JavaScript code was
extracted from the Mozilla CVS repository.
<h2>Documentation</h2>
<h2>Authors</h2>
<pkg_author name="Brendan Eich" mail="brendan@mozilla.org">
<pkg_author name="Ralf S. Engelschall" mail="rse@engelschall.com">
<h2>Status</h2>
<pkg_status
name="js" assign="rse"
genesis="Jul-2006"
stable="1.6.20070208" stable_date="08-Feb-2007"
unstable="none" unstable_date="none"
done=100>
<h2>Source</h2>
<pkg_files
cvs=$(CVS_ROOT_URL)/pkg/lib/js/
url=$(FTP_ROOT_URL)/pkg/lib/js/
directory=$(FTP_ROOT_DIR)/pkg/lib/js/
files="js-*.tar.gz"
stable="js-1.6.20070208.tar.gz" unstable="none">
<h2>Donation</h2>
<pkg_donation name="js" return="$(BASE_URL)/pkg/lib/js/">