Article View: perl.javascript
Article #1Announce: JSP v1.0
From: Salvador Ortiz Garcia
Date: Wed, 09 Jun 2010 21:33
Date: Wed, 09 Jun 2010 21:33
50 lines
3147 bytes
3147 bytes
I'm happy to announce the first release (1.00) of the JSP Perl module,
an open source bridge between Perl and Mozilla's SpiderMonkey JavaScript
engines.
JSP is a datatype reflection engine and an object life cycle synchronizer.
JSP allows you to write programs using both languages at the same time.
Features:
* Objects and other values pass freely between interpreters. They
are encapsulated in specialized classes, giving them correct
semantics on their non-native interpreter. Values and objects and
are "alive".
* All Perl classes are exportable to JavaScript.
// Use DBI from javascript
Sys.install('DBI', 'DBI');
var dbh = DBI.connect(...);
dbh.prepare(sqlstement);
* Easy to build on supported javascript engines.
* Builds against SpiderMonkey 1.7.0 up to (unreleased) 1.8.5 (Gecko
1.9.3).
* Exceptions pass freely between interpreters. A language can
handle, in a native way, exceptions thrown from the other
language. In JavaScript you use /throw, try and catch/. In Perl
you use /die, eval and $@/. You can /cath/ a perl's /die/ and also
after an /eval, $@/ will be set to the error /throw/n.
* Perl can access and manipulate javascript's /this/.
* Full support for utf8 even when SpiderMonkey wasn't compiled with
support for it.
* A command line *jsp* javascript interpreter included for
standalone javascript execution.
* Big test battery. Almost 1000 tests.
* Extensive reference documentation.
Requirements:
Perl 5.8 or higher
SpiderMonkey 1.7 or higher
Get it from your nearest CPAN site at: http://search.cpan.org/dist/JSP/
or visit us at http://jsp.msg.mx
The JSP project is looking for both developers and users.
I'd appreciate your comments and feedback.
Thank you,
Salvador Ortiz
Technical Details
Message-ID:
<4C100892.6090106@msg.com.mx>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-perl.javascript.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!kanaga.switch.ch!switch.ch!news.tele.dk!news.tele.dk!small.news.tele.dk!usenet.stanford.edu!nntp.perl.orgShow Full Headers
Complete Article Headers
Message-ID: <4C100892.6090106@msg.com.mx> Subject: Announce: JSP v1.0 Date: Wed, 09 Jun 2010 16:33:06 -0500 From: sog@msg.com.mx (Salvador Ortiz Garcia) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-perl.javascript.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!kanaga.switch.ch!switch.ch!news.tele.dk!news.tele.dk!small.news.tele.dk!usenet.stanford.edu!nntp.perl.org Newsgroups: perl.javascript Return-Path: <sog@msg.com.mx> Mailing-List: contact perl-javascript-help@perl.org; run by ezmlm Delivered-To: mailing list perl-javascript@perl.org Delivered-To: perl-javascript@perl.org X-Spam-Status: No, hits=1.3 required=8.0 tests=RDNS_NONE,SPF_PASS X-Spam-Check-By: la.mx.develooper.com Organization: Matรญas Software Group User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; MIME-Version: 1.0 To: perl-javascript@perl.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Approved: news@nntp.perl.org Lines: 50 X-Original-Bytes: 3011