  
 | 
  
  85025 packages online
 | 
 
 
 | 
  | 
 
 | 
dev/lang/SpiderMonkey-js-bin.lha | 
 | 
 
| 
  No screenshot available
 | 
  |  
This is my port of Mozilla's open-source "SpiderMonkey" JavaScript
interpreter.  In the archive is an executable called "js" which can
be run interactively or as a command to execute JavaScript files.
Also included is the general README.html from the original SpiderMonkey
distribution.
SpiderMonkey is generally intended to be used as a shared library and
embedded in other applications, but it comes with a command-line 
interpreter for testing and learning.  That is what is included here.
Example (interactive):
    6.Fad:Dev/js/src> js
    js> myDate = new Date();
    Wed Nov 22 2006 11:55:31 GMT+0000
    js> myDate.toLocaleString();
    Wed Nov 22 11:55:31 2006
    js> quit()
Example (command):
    6.Fad:Dev/js/src> js myfile.js
	 (or, to include some startup code before running myfile:)
    6.Fad:Dev/js/src> js -f shell.js myfile.js
It would be entirely possible to create a javascript.library using the
SpiderMonkey source code, offering a JavaScript interpreter to any 
Amiga application.  I am not enough of a guru to do this yet. :)  If
a knowledgable someone would like to work on this, please contact me.
The source code should be on Aminet to accompany this binary.
"Features" of this Amiga version (22 Nov 2006):
    - currently no file support
    - currently no support for passing arguments using Workbench
          (recommended to run from CLI)
    - compiled for 68020+FPU using SAS/C 6.58
          (non-FPU binary might be possible)
    - requires a stack size >= 50000, but I have not inserted the code
          to enforce this and have not turned off SAS/C's stack checking
          (but have not enabled automatic stack growth, either)
    - passes all the same ECMA JavaScript tests on Amiga as it does
          on other platforms, with a few very minor exceptions
          (MAX_FLOAT is a tiny bit smaller, and a call to Date()
              might not have the same second as the next call to
              Date(), but this makes sense and is no problem)
    - tested on A4000T/060-50/64mb/OS 3.5 and A1200/030/8mb/OS 3.0
Notes (22 Nov 2006):
    - to quit, enter "quit()" and press return
    - build instructions for my dumb build system are in the
          readme included with the source code package, in case
          you want to compile this yourself
References (22 Nov 2006):
    Mozilla's JavaScript projects:
    http://www.mozilla.org/js/
    SpiderMonkey JavaScript:
    http://developer.mozilla.org/en/docs/SpiderMonkey
    SpiderMonkey command-line interpreter:
    http://developer.mozilla.org/en/docs/Introduction_to_the_JavaScript_shell
 |  
  Contents of dev/lang/SpiderMonkey-js-bin.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  277     628  44.1% -lh5- e1a4 Nov 22 13:09 js.info
[generic]               208635  438772  47.5% -lh5- fcc5 Nov 22 12:52 js/js
[generic]                  387     831  46.6% -lh5- 3686 Nov 22 13:13 js/js.info
[generic]                 1385    2880  48.1% -lh5- a246 Nov 22 13:48 js/README.amiga
[generic]                  305     571  53.4% -lh5- 3450 Nov 22 13:09 js/README.amiga.info
[generic]                13661   42348  32.3% -lh5- 068b Nov 22 12:52 js/README.html
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         6 files  224650  486030  46.2%            Nov 23 00:43
  |   
 |  
  | 
  | 
| Page generated in 0.02 seconds | 
Aminet © 1992-2024 Urban 
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |