| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<link href="style.css" rel="stylesheet"> |
| 5 |
<title>MuJS Introduction</title> |
| 6 |
</head> |
| 7 |
|
| 8 |
<body> |
| 9 |
|
| 10 |
<header> |
| 11 |
<h1>MuJS Introduction</h1> |
| 12 |
</header> |
| 13 |
|
| 14 |
<nav> |
| 15 |
<a href="introduction.html">Introduction</a> |
| 16 |
<a href="reference.html">Reference</a> |
| 17 |
<a href="examples.html">Examples</a> |
| 18 |
<a href="license.html">License</a> |
| 19 |
<a href="http://git.ghostscript.com/?p=mujs.git;a=summary">Source</a> |
| 20 |
<a href="https://bugs.ghostscript.com/">Bugs</a> |
| 21 |
</nav> |
| 22 |
|
| 23 |
<article> |
| 24 |
|
| 25 |
<h2>Why choose MuJS?</h2> |
| 26 |
|
| 27 |
<h3>Javascript is a proven scripting language</h3> |
| 28 |
|
| 29 |
<p> |
| 30 |
Javascript is one of the most popular programming languages in the world. |
| 31 |
It is a powerful extension language, used everywhere on the web — both as |
| 32 |
a way to add interactivity to web pages in the browser, and on the server side |
| 33 |
with platforms like node.js. |
| 34 |
|
| 35 |
<p> |
| 36 |
With MuJS you can bring this power to your application as well! |
| 37 |
|
| 38 |
<h3>MuJS is standards compliant</h3> |
| 39 |
|
| 40 |
<p> |
| 41 |
MuJS implements ES5. |
| 42 |
There are no non-standard extensions, so you can remain confident that |
| 43 |
Javascript code that runs on MuJS will also run on any other standards |
| 44 |
compliant Javascript implementation. |
| 45 |
|
| 46 |
<h3>MuJS is portable</h3> |
| 47 |
|
| 48 |
<p> |
| 49 |
MuJS is written in portable C and can be built by compiling a single C file using any standard C compiler. |
| 50 |
There is no need for configuration or fancy build systems. |
| 51 |
MuJS runs on all flavors of Unix and Windows, on mobile devices (such as Android and iOS), |
| 52 |
embedded microprocessors (such as the Beagle board and Raspberry Pi), etc. |
| 53 |
|
| 54 |
<h3>MuJS is embeddable</h3> |
| 55 |
|
| 56 |
<p> |
| 57 |
MuJS is a simple language engine with a small footprint that you can easily embed into your application. |
| 58 |
The API is simple and well documented and allows strong integration with code written in other languages. |
| 59 |
You don't need to work with byzantine C++ templating mechanisms, or manually manage garbage collection roots. |
| 60 |
It is easy to extend MuJS with libraries written in other languages. |
| 61 |
It is also easy to extend programs written in other languages with MuJS. |
| 62 |
|
| 63 |
<h3>MuJS is small</h3> |
| 64 |
|
| 65 |
<p> |
| 66 |
Adding MuJS to an application does not bloat it. |
| 67 |
The source contains around 15'000 lines of C. |
| 68 |
Under 64-bit Linux, the compiled library takes 180kB if optimized for size, |
| 69 |
and 260kB if optimized for speed. |
| 70 |
|
| 71 |
Compare this with V8, SpiderMonkey or JavaScriptCore, |
| 72 |
which are all several hundred thousand lines of code, |
| 73 |
take several megabytes of space, |
| 74 |
and require the C++ runtime. |
| 75 |
|
| 76 |
<h3>MuJS is reasonably fast and secure</h3> |
| 77 |
|
| 78 |
<p> |
| 79 |
It is a bytecode interpreter with a very fast mechanism to call-out to C. |
| 80 |
The default build is sandboxed with very restricted access to resources. |
| 81 |
Due to the nature of bytecode, MuJS is not as fast as JIT compiling |
| 82 |
implementations but starts up faster and uses fewer resources. |
| 83 |
If you implement heavy lifting in C code, controlled by Javascript, |
| 84 |
you can get the best of both worlds. |
| 85 |
|
| 86 |
<h3>MuJS is free software</h3> |
| 87 |
|
| 88 |
<p> |
| 89 |
MuJS is free open source software distributed under the |
| 90 |
<a href="https://opensource.org/licenses/ISC">ISC license</a>. |
| 91 |
|
| 92 |
<h3>MuJS is developed by a stable company</h3> |
| 93 |
|
| 94 |
<p> |
| 95 |
<a href="http://artifex.com/">Artifex Software</a> has long experience in |
| 96 |
interpreters and page description languages, and has a history with open source |
| 97 |
that goes back to 1993 when it was created to facilitate licensing Ghostscript |
| 98 |
to OEMs. |
| 99 |
|
| 100 |
</article> |
| 101 |
|
| 102 |
<footer> |
| 103 |
<a href="http://artifex.com"><img src="artifex-logo.png" align="right"></a> |
| 104 |
Copyright © 2013-2017 Artifex Software Inc. |
| 105 |
</footer> |
| 106 |
|
| 107 |
</body> |
| 108 |
</html> |