SOFTWARE

 

See Also

Embedthis Ejscript™ Overview

Ejscript is an enhanced implementation of the JavaScript language for use in embedded applications such as web servers, embedded and mobile devices. It is especially suited for Server-Side JavaScript web applications.

Ejscript is a dynamic, interpreted, object-oriented scripting language that supports classes, objects, exceptions, statements, expressions and a powerful suite of data types.

Standards Based

Ejscript fully supports and complies with the standardized version of JavaScript known as ECMAScript Edition 3 (ECMA-262-3). Ejscript also implements the ECMAScript E4X for XML (ECMA-357) specification.

The Ejscript development community is also actively participating in the various JavaScript standards efforts including:

Ejscript Components

Ejscript provides a complete Ejscript programming environment that includes:

Ejscript Design Goals

The goal of Ejscript is to create a standards-based JavaScript implementation that is ideally suited for running outside the browser in embedded applications and devices such as for Server-Side JavaScript web frameworks.

Embedded applications typically require small and efficient memory utilization and modest CPU requirements. However, most JavaScript implementations are designed for use inside a browser on the PC desktop. They have large memory footprints, typically more than 4MB and often larger than 64MB — too large for many embedded applications.

By contrast, Ejscript, requires from 200K of code and has minimal memory requirements to execute (from 400K). To do this, Ejscript sheds browser baggage and prioritizes design trade-offs toward memory efficiency.

Why Enhance JavaScript?

JavaScript is now one of the most popular programming languages in the world. However, JavaScript was written many years ago during the height of the browser wars. It was written in a hurry and under corporate pressure. As a result, the language has some glaring weaknesses that impact the security of programs and the programming experience of users — especially when used outside the browser and as programs become larger.

Some of the more major issues are:

Ejscript Language Enhancements

Credit where credit is due. Ejscript has learned from the ongoing JavaScript research and standardization efforts and from Adobe's ActionScript. For the Ejscript web framework, Ruby on Rails has provided many good patterns.

Ejscript adds the following language enhancements:

You can choose to take advantage of the enhancements offered by Ejscript for a more secure, scalable and pleasant programming experience or you can can use it in strict ECMAScript compliant mode and utilize only standard features.

Ejscript History

Early versions of Ejscript have been used in the Embedthis Appweb embedded web server for years and is now embedded in millions of devices. The new VM based version has also been used in a range of mobile devices to empower widget-style applications.

Open Source and Free

Open Source Embedded Web ServerEjscript software products are created using an Open Source development model where a community of developers contribute enhancements and fixes. Products are licensed under the GNU GPL open source license and are provided with full source code. Embedthis Software has generously provided infrastructure, developers and funding to make this possible and is also providing commercial support and licenses for Ejscript.

See http://www.embedthis.com for details.

© Embedthis Software, 2003-2009. All rights reserved. Privacy Policy and Terms of Use.   Generated on April 9, 2009.